Cloud Enterprise Object Storage REST API

Search (SHIFT+S)




Update Multi Vdc Info

POST /object/vdcs/multivdc

Update VDC info corresponding to multiple VDCs in one go. Only vdcId is required.


Required Roles

Requires one of the following roles:

  • SYSTEM_ADMIN

  • SERVICE


Request Payload

All parameters are required unless otherwise stated.

Field Description Type Notes
multivdc
vdcs     0-* Elements
vdcId String
vdcName Name of VDC to be inserted String
interVdcEndPoints End points for the VDC String
interVdcCmdEndPoints String
secretKeys Secret key to encrypt communication between VDC String
managementEndPoints The management end points for the VDC String

Response Body

Response indicating Success or Failure to insert VDCs


JSON Example

Request
cat req_payload.json
{
   "vdcs":[
      {
         "vdcName":"VDC_B",
         "vdcId":"urn:storageos:VirtualDataCenterData:4433d4e2-39a0-45ed-b369-ddccfc358816",
         "interVdcEndPoints":"10.10.30.25,10.10.30.26,10.10.30.27,10.10.30.28",
         "interVdcCmdEndPoints":"10.10.30.25,10.10.30.26,10.10.30.27,10.10.30.28"
      },
      {
         "vdcName":"VDC_E",
         "vdcId":"urn:storageos:VirtualDataCenterData:7d3a6cf3-4afc-48be-82ac-79cac9731318",
         "interVdcEndPoints":"10.10.30.55,10.10.30.56,10.10.30.57,10.10.30.58",
         "interVdcCmdEndPoints":"10.10.30.55,10.10.30.56,10.10.30.57,10.10.30.58"
      }
   ]
}

curl -k -v -H 'Accept:application/json' -H 'Content-Type:application/json' -H 'X-SDS-AUTH-TOKEN:$TOKEN' -X POST -d @req_payload.json https://$ip:4443/object/vdcs/multivdc
*   Trying 192.168.0.3...
* Connected to 192.168.0.3 (192.168.0.3) port 4443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
* Server certificate: localhost
> POST /object/vdcs/multivdc HTTP/1.1
> Host: 192.168.0.3:4443
> User-Agent: curl/7.43.0
> Accept:application/json
> Content-Type:application/json
> X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
> Content-Length: 133
>
* upload completely sent off: 133 out of 133 bytes
Response
< HTTP/1.1 200 OK
< Date: Tue, 09 May 2017 19:51:45 GMT
< Content-Type: application/json
< Content-Length: 0
< Connection: keep-alive
<