[{"label":"Latest (v37.2)","version":"latest"},{"version":"v37.1"},{"version":"v37.0"},{"version":"v36.3"},{"version":"v36.2"},{"version":"v36.1"},{"version":"v36.0"},{"link":"https://developer.vmware.com/apis/1046/vmware-cloud-director","version":"v35.0"}]
vmware-cloud-director

VdcComputePolicy

Definition of VdcComputePolicy.


Properties

string
name Required

Display name.


array of string
compatibleVdcTypes Optional

A list of read-only compatible vDC types for this policy.

Added in 32.0

integer as int32
cpuCount Optional

The maximum number of CPUs allowed for a VM. This is optional. When provided, VMs with this policy cannot have more than number of CPUs defined by this field.

Added in 32.0

integer as int64
cpuLimit Optional

The limit of CPU in MHz for the VM on which this policy is applied. -1 means unlimited. This is optional. If not provided, limit would be equal to the vCPUSpeed multiplied by numCPU.

Added in 32.0

number as double
cpuReservationGuarantee Optional

The factor of the configured CPU reserved for the VM on which this policy is applied.

Added in 32.0

integer as int32
cpuShares Optional

The number of CPU shares for the VM on which this policy is applied. This is optional. If not provided, Normal shares would be applied to the VM.

Added in 32.0

integer as int64
cpuSpeed Optional

The CPU speed in MHz of this VM. This is optional. When provided, VMs with this policy cannot have more than CPU speed defined by this field.

Added in 32.0

string
description Optional

map of string
extraConfigs Optional

Map of extra configs to be set on the VM with this policy.

Added in 32.0

string
id Optional

UUID for vDC compute policy. This is immutable.


boolean
isAutoGenerated Optional

This field cannot be updated and is a read-only field in the client. It defines if the policy is auto-generated.

Added in 33.0

boolean
isSizingOnly Optional

This field cannot be updated and is a read-only field in the client after creation. It defines whether the policy is SIZING_ONLY or if it also contains affinity information.

Added in 33.0

array of EntityReference
logicalVmGroupReferences Optional

List of logical vm group references. This value is set at creation time and cannot be edited later.

Added in 33.0

integer as int64
memory Optional

The maximum memory in MB allowed for a VM. This is optional. When provided, VMs with this policy cannot have configured memory more than defined by this field.

Added in 32.0

integer as int64
memoryLimit Optional

The limit of memory in MB for the VM on which this policy is applied. -1 means unlimited. This is optional. If not provided, limit would be equal to the configured memory of the VM.

Added in 32.0

number as double
memoryReservationGuarantee Optional

The factor of the configured memory reserved for the VM on which this policy is applied.

Added in 32.0

integer as int32
memoryShares Optional

The number of memory shares for the VM on which this policy is applied. This is optional. If not provided, Normal shares would be applied to the VM.

Added in 32.0

integer as int32
coresPerSocket Optional

The cores per socket to be configured for the VM where this policy is applied.

Added in 32.0

array of EntityReference
namedVmGroups Optional

List of list of vmGroups grouped together in a meaningful manner. A group of vmGroups would consist of one functionally equal vmGroup picked from each cluster of the pvdc.

Added in 33.0

pvdcComputePolicy Optional

This field cannot be updated and is a read-only field in the client after creation.


pvdcComputePolicyRef Optional

Deprecated in Api 32.0, this property will be removed in future release.


string
pvdcId Optional

URN for Provider VDC.

Added in 33.0

JSON Example

{
	"name": "string"
}

Vendor Extensions

This class contains the following vendor extensions defined in the spec:
x-vcloud-property-annotations:
    pvdcComputePolicy:
        x-vcloud-added-in: "32.0"
        x-vcloud-restricted: |
            Restricted field, requires 'View Alternate Admin version of Compute Policies for an Organization VDC' right to access this field.
    pvdcComputePolicyRef:
        x-vcloud-added-in: "31.0"
        x-vcloud-deprecated-alternative: pvdcComputePolicy
        x-vcloud-deprecated-in: "32.0"
        x-vcloud-removed-in: "32.0"
        x-vcloud-restricted: |
            Restricted field, requires 'View Alternate Admin version of Compute Policies for an Organization VDC' right to access this field.
[{"label":"Latest (v37.2)","version":"latest"},{"version":"v37.1"},{"version":"v37.0"},{"version":"v36.3"},{"version":"v36.2"},{"version":"v36.1"},{"version":"v36.0"},{"link":"https://developer.vmware.com/apis/1046/vmware-cloud-director","version":"v35.0"}]
vmware-cloud-director
Property Of

InlineVdcComputePolicies1
Parameter To

Update VDC Compute Policy
Update VDC Max Compute Policy
Create VDC Compute Policy
Returned By

Create VDC Compute Policy
Get VDC Compute Policy
Update VDC Compute Policy
Get VDC Max Compute Policy
Update VDC Max Compute Policy

Feedback

Was this page helpful?