Product Documentation

Adding a CloudBridge Resource

Oct 21, 2015

The request and response formats to add a single resource. The URL must specify the type of resource to be added. 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
    POST
    URL
    https://<cb_ip>/cb/nitro/v1/config/user_account
    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": 
        { 
            "username":"test1", 
            "privilege":"admin", 
            "password":"123" 
        } 
    }
    
  • Response:

    HTTP Status Code on Success
    201 Created
    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" 
        } 
    }