Query Pvdc Compute Policies

Query Pvdc Compute Policies

Get list of provider vDC compute policies. Only filtering by pvdc compute policy name is supported.

Request
URI
GET
https://{api_host}/cloudapi/1.0.0/pvdcComputePolicies
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.


Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns PvdcComputePolicies2 of type(s) application/json;version=38.1
This response body class contains all of the following: Page , InlinePvdcComputePolicies21
{
    "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 PvdcKubernetesPolicy.\nFollow /1.0.0/pvdcComputePolicies example to know payload to create a PvdcVmPolicy type\nof compute policy. Note that policyType field will have to be added to the payload taken\nfrom /1.0.0/pvdcComputePolicies example, if you are using /2.0.0/pvdcComputePolicies.\n",
            "policyType": "PvdcKubernetesPolicy",
            "name": "myPolicy",
            "pvdcId": "urn:vcloud:providervdc:d1c4cc73-f111-4bc2-a361-e91839c061c9",
            "supervisorCluster": {
                "moref": "domain-c8",
                "name": "test-cluster"
            },
            "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
                }
            }
        }
    ]
}