vCenter Data Center:Update Vcenter Data Center

Search (SHIFT+S)



Update Vcenter Data Center

PUT /compute/vcenter-data-centers/{id}

Update a vCenter data center.

idthe URN of a ViPR vCenter data center

Required Roles

Requires one of the following roles:

  • SYSTEM_ADMIN
  • SECURITY_ADMIN
  • TENANT_ADMIN

Request Payload

All parameters are required unless otherwise stated.

Field Description Type Notes
<vcenter_data_center_update>
<tenant> The tenant URI for the vCenterDataCenter. URI
<name> The name label for this vCenter data center String
</vcenter_data_center_update>

Response Body

The details of the vCenter data center, including its id and link, when update 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 Valid Values:
  •  urn:storageos:resource-type:UUID:
<link> A hyperlink to the details for this resource
<creation_time> A timestamp that shows when this resource was created in ViPR DateTime Valid Values:
  •  YYYY-MM-DDTHH:mm:ssZ
<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 Valid Values:
  •  true
  •  false
<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 Valid Values:
  •  true
  •  false
</vcenter_data_center>

Examples

Request
PUT https://192.168.0.0:4443/compute/vcenter-data-centers/urn:storageos:VcenterDataCenter:c28ede1d-cb2c-4ad1-8398-f569a349d2f2: HTTP/1.1

Content-Type: application/xml
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
<vcenter_data_center_update>
<name>OldDataCenterUpdated</name>
</vcenter_data_center_update>
Response
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>OldDataCenterUpdated</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>
Notes: