5.5

Table Of Contents
id="urn:vcloud:providervdcstorageprofile:128"
href="https://vcloud.example.com/api/admin/pvdcStorageProfile/128" />
...
</ProviderVdcStorageProfileReferences>
Using information, you can construct the AddStorageProfile element in the request body.
Request:
POST https://vcloud.example.com/api/admin/vdc/44/vdcStorageProfiles
Content-Type: application/vnd.vmware.admin.updateVdcStorageProfiles+xml
...
<?xml version="1.0" encoding="UTF-8"?>
<UpdateVdcStorageProfiles
xmlns="http://www.vmware.com/vcloud/v1.5" >
<AddStorageProfile>
<Enabled>true</Enabled>
<Units>MB</Units>
<Limit>5038</Limit>
<Default>false</Default>
<ProviderVdcStorageProfile
href="https://vcloud.example.com/api/admin/pvdcStorageProfile/128" />
</AddStorageProfile>
</UpdateVdcStorageProfiles>
Response:
202 Accepted
Content-Type: application/vnd.vmware.vcloud.task+xml
...
<Task ... >
...
</Task>
Enable, Disable, or Remove a VDC
A system administrator can use the enable, disable, and remove links in an AdminVdc body to enable, disable,
or remove an organization VDC.
Prerequisites
Verify that you are logged in to the vCloud API as a system administrator.
Procedure
n
To enable a VDC, POST a request to its action/enable link.
n
To disable a VDC, POST a request to its action/disable link.
When you disable an organization VDC, you prevent further use of its compute and storage resources.
Running vApps and powered on virtual machines continue to run, but you cannot create or start
additional vApps or virtual machines.
n
To remove a VDC, remove all the objects it contains, then disable and remove it.
a Relocate or remove any vApps that have been uploaded to the VDC.
b Remove any organization VDC networks that the VDC contains.
c Remove any Edge Gateways that the VDC contains.
vCloud API Programming Guide
168 VMware, Inc.