Query Vdc Compute Policies
Get list of organization VDC compute policy.
Results can be filtered by:
- id
- name
- pvdcId
- isSizingOnly
- policyType
- vdc.id
- pvdcComputePolicy.id
- publishableToVdc
- pvdc
- isAutoGenerated
- _context
Supported contexts are: Org VDC Urn ID (_context==orgVdcUrn) - |
Returns all the VDC compute policies which are available to a specific Org VDC.
Request
URI
GET
https://{api_host}/cloudapi/2.0.0/vdcComputePolicies
COPY
Query Parameters
string
filter
Optional
Filter for a query. FIQL format.
string
sortAsc
Optional
Field to use for ascending sort
string
sortDesc
Optional
Field to use for descending sort
integer
page
Required
Page to fetch, zero offset.
integer
pageSize
Required
Results per page to fetch.
Responses
200
OK
Returns VdcComputePolicies2 of type(s) application/json;version=37.2
This response body class contains all of the following: Page , InlineVdcComputePolicies21
{
"resultTotal": 0,
"pageCount": 0,
"page": 0,
"pageSize": 0,
"associations": [
{
"entityId": "string",
"associationId": "string"
}
],
"values": [
{
"description": "This is an example payload to create a policy of type VdcKubernetesPolicy.\nFollow /1.0.0/vdcComputePolicies example to know payload to create a VdcVmPolicy type\nof compute policy. Note that policyType field will have to be added to the payload taken\nfrom /1.0.0/vdcComputePolicies example, if you are using /2.0.0/vdcComputePolicies.\n",
"policyType": "VdcKubernetesPolicy",
"name": "myPolicy",
"pvdcComputePolicy": {
"name": "nameOfPvdcPolicy",
"id": "urn:vcloud:pvdcComputePolicy:494f4a50-09ce-4ba7-913b-3fde593bc7ef"
},
"kubernetesConfig": {
"storageClasses": [
{
"storageClass": "gold",
"limit": 20480
},
{
"storageClass": "silver",
"limit": 10240
}
],
"virtualMachineClasses": [
"best-effort-xsmall",
"best-effort-small"
],
"namespaceResourceSpec": {
"cpuLimit": 1000,
"memoryLimit": 1024,
"memoryReservationGuarantee": 1,
"cpuReservationGuarantee": 1
}
},
"vdc": {
"name": "vdc1",
"id": "urn:vcloud:vdc:f8dfe02d-47e5-4e3c-ba71-f0d67810d0ef"
}
}
]
}
Availability
Added in 35.0
Vdc Compute Policies2 Operations
POST
Add Vdc Compute Policy To Vdcs
POST
Create Vdc Compute Policy
DELETE
Delete Vdc Compute Policy
GET
Get Vdc Compute Policy
GET
Get Vdc Compute Policy Metrics
GET
Get Vdc Compute Policy Vdcs
GET
Query Vdc Compute Policies
GET
Query Virtual Machine Classes
PUT
Update Vdc Compute Policy