Cloud Enterprise Object Storage REST API

Search (SHIFT+S)




Insert VDC Attributes

PUT /object/vdcs/vdc/{vdcName}

Insert the attributes for the current VDC or a VDC which you want the current VDC to connect. Enables the name of the VDC, the end points that can be used to communicate with it, and a secret key used to encrypt traffic between VDCs to be set.

vdcNameVDC name for which mapping needs to be inserted

Required Roles

Requires one of the following roles:

  • SYSTEM_ADMIN

  • SERVICE


Prerequisites

The following conditions must be met in order to call this operation.

  • VDC must exist


Request Payload

All parameters are required unless otherwise stated.

Field Description Type Notes
vdc_insert
vdcName Name of VDC to be inserted String
interVdcEndPoints End points for the VDC String
interVdcCmdEndPoints Control Plane end points for the VDC String Valid Values:
  •  Optional
secretKeys Secret key to encrypt communication between VDC String
managementEndPoints The management end points for the VDC String Valid Values:
  •  Optional

Response Body

Response indicating Success or Failure to insert VDC


Examples

Request
PUT https://192.168.0.0:4443/object/vdcs/vdc/vdc1 

Content-Type: application/xml
X-SDS-AUTH-TOKEN=BAAcRGtUUmNOZHNpbitMaEVhZUhhdWtad1J3WDRRPQMAUAQADTEzNzk1NDIwMjQ4MzACAAEABQA5dXJuOnN0b3JhZ2VvczpUb2tlbjoxYmVhNGJiMy04M2MwLTRlOGItODc4Ni1iYWYxYmM4NTZkNTY6AgAC0A8=

<vdc_insert>
   <vdcName>vdc1</vdcName>
   <interVdcEndPoints>10.245.134.106,10.245.134.107,10.245.134.108</interVdcEndPoints>
   <secretKeys>12345</secretKeys>
</vdc_insert>
Response
HTTP/1.1 200 OK
Content-Type: application/xml