An administrator can update an existing virtual datacenter to change its name or description.
1 | |
2 | Create a Vdc element that contains the new name and description. This Vdc element need only specify the new name and Description. See Example: Change the Name and Description of an Existing VDC. |
3 | Make a PUT request to the rel="edit" link to change the name or description of the VDC . |
This example changes the name and description of the VDC created in Example: Create a VDC From a Template.
PUT https://vcloud.example.com/api/vdc/130 Content-Type: application/vnd.vmware.vcloud.vdc+xml ... <?xml version="1.0" encoding="UTF-8"?> <Vdc xmlns="http://www.vmware.com/vcloud/v1.5" name="NewVdcName" type="application/vnd.vmware.vcloud.vdc+xml"> <Description>New VDC description</Description> </Vdc>
202 Accepted Content-Type: application/vnd.vmware.vcloud.task+xml <Task name="task" status="running" operation="Updating Virtual Datacenter templateVdc (130)" ... ... </Task>