To limit the maximum compute resources that tenants can allocate to individual virtual machines within an organization VDC, system administrators can change the maximum VDC compute policy.
Prerequisites
To change the maximum VDC compute policy, you must be a system administrator or organization administrator.
Procedure
- To retrieve the max compute policy of an organization VDC, retrieve an XML representation of the target VDC.
GET https://vcloud.example.com/api/vdc/83
The response contains a
MaxComputePolicy element with
href.
<MaxComputePolicy
href="https://vcloud.example.com/cloudapi/1.0.0/vdcs/83/maxComputePolicy"
type="application/json" />
- To change the max compute policy of an organization VDC, modify the MaxComputePolicy element and use a PUT request to the target VDC.
PUT https://vcloud.example.com/api/vdc/83
...
...
<IsEnabled>true</IsEnabled>
<VdcStorageProfiles>
<VdcStorageProfile
.../>
</VdcStorageProfiles>
<MaxComputePolicy id="59" name="flex_max_sizing_policy"
type="com.vmware.vcloud.entity.vdcComputePolicy"/>
<VCpuInMhz2>1000</VCpuInMhz2>
<ResourceGuaranteedMemory>0.2</ResourceGuaranteedMemory>
<ResourceGuaranteedCpu>0.2</ResourceGuaranteedCpu>
...
...
What to do next
From VMware Cloud Director API version 33.0, to view and update the maximum compute policy of an organization VDC, you can use the VMware Cloud Director OpenAPI. See Getting Started with VMware Cloud Director OpenAPI at https://code.vmware.com.