
Creates a new vCenter data center.
id | the URN of the parent vCenter |
Requires one of the following roles:
All parameters are required unless otherwise stated.
Field | Description | Type | Notes |
<vcenter_data_center_create> | |||
<name> | The name label for this vCenter data center | String | |
</vcenter_data_center_create> |
The details of the vCenter data center, including its id and link, when creation completes successfully.
Field | Description | Type | Notes |
<vcenter_data_center> | |||
<vcenter> | |||
<id> | ViPR ID of the related object | URI | |
<link> | A hyperlink to the related object | ||
</vcenter> | |||
<tenant> | |||
<id> | ViPR ID of the related object | URI | |
<link> | A hyperlink to the related object | ||
</tenant> | |||
<name> | The name assigned to this resource in ViPR. The resource name is set by a user and can be changed at any time. It is not a unique identifier. | String | |
<id> | An identifier that is generated by ViPR when the resource is created. The resource ID is guaranteed to be unique and immutable across all virtual data centers for all time. | URI | |
<link> | A hyperlink to the details for this resource | ||
<creation_time> | A timestamp that shows when this resource was created in ViPR | DateTime | |
<tags> | Keywords and labels that can be added by a user to a resource to make it easy to find when doing a search. | ||
<tag> | String |
0-* Elements |
|
</tags> | |||
<inactive> | Whether or not the resource is inactive. When a user removes a resource, the resource is put in this state before it is removed from the ViPR database. | Boolean | |
<global> | Boolean | ||
<remote> | Boolean | ||
<vdc> | |||
<id> | ViPR ID of the related object | URI | |
<link> | A hyperlink to the related object | ||
</vdc> | |||
<internal> | Whether or not the resource is an internal resource. | Boolean | |
</vcenter_data_center> |
POST https://192.168.0.0:4443/compute/vcenters/urn:storageos:VcenterDataCenter:c28ede1d-cb2c-4ad1-8398-f569a349d2f2:/vcenter-data-centers HTTP/1.1 Content-Type: application/xml X-SDS-AUTH-TOKEN: <AUTH_TOKEN> <vcenter_data_center_create> <name>OldDataCenter2</name> </vcenter_data_center_create>
HTTP/1.1 200 OK Content-Type: application/xml <vcenter_data_center> <creation_time>1380657812644</creation_time> <id>urn:storageos:VcenterDataCenter:c28ede1d-cb2c-4ad1-8398-f569a349d2f2: </id> <inactive>false</inactive> <link href="/compute/vcenter-data-centers/urn:storageos:VcenterDataCenter:c28ede1d-cb2c-4ad1-8398-f569a349d2f2:" rel="self" /> <name>OldDataCenter2</name> <tags /> <tenant> <id>urn:storageos:TenantOrg:eccd5326-a319-4354-a4dd-f2df1da57552:</id> <link href="/tenants/urn:storageos:TenantOrg:eccd5326-a319-4354-a4dd-f2df1da57552:" rel="self" /> </tenant> <vcenter> <id>urn:storageos:Vcenter:842bdaaf-3c07-40a9-84e8-c0c8f92b09d7:</id> <link href="/compute/vcenters/urn:storageos:Vcenter:842bdaaf-3c07-40a9-84e8-c0c8f92b09d7:" rel="self" /> </vcenter> </vcenter_data_center>