Citrix

Produktdokumentation



Ganzes Dokument herunterladen

Updating a CloudBridge Resource

Oct. 21, 2015

The request and response formats to update a single resource. The URL must specify the type and name of the resource to be modified. The request header must provide the base64 encoded username and password.

Note: The examples in this documentation use the "user_account" resource type.
  • Request:

    HTTP Method
    PUT
    URL
    https://<cb_ip>/cb/nitro/v1/config/user_account/test1
    Request Headers
    Authorization: Basic <base64 encoded(username:password)> 
    Content-Type: application/vnd.com.citrix.cloudbridge.user_account+json 
    Accept: <Optional but validated if given. Can either be */* or same as the content-type.>
    
    Request Payload
    { 
        "user_account": 
        { 
            "privilege":"admin", 
            "password":"123" 
        } 
    }
    
  • Response:

    HTTP Status Code on Success
    200 OK
    HTTP Status Code on Failure
    4xx <string> or 5xx <string>. The response provides details of the error. See Error Handling.
    Response Header
    Content-Type: application/vnd.com.citrix.cloudbridge.user_account+json
    Response Payload
    { 
        "user_account": 
        { 
            "username":"test1", 
            "privilege":"admin" 
        } 
    }
    
Back to Top