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, UUID, and name of the maximum compute
policy.
<MaxComputePolicy href="https://vcloud.example.com/cloudapi/1.0.0/vdcComputePolicies/urn:vcloud:vdcComputePolicy:8ed8bb12-f168-493a-b1d0-ddd619395e52"
id="urn:vcloud:vdcComputePolicy:8ed8bb12-f168-493a-b1d0-ddd619395e52"
name="System Default"
type="application/json" />
-
To change the maximum 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>
...
...