Vcenter Compute Policies Capabilities list

Vcenter Compute Policies Capabilities list

Returns information about the compute policy capabilities available in this vCenter server.

This operation was added in vSphere API 7.0.3.0.

Returns an authorization error if you do not have all of the privileges described as follows:

  • Operation execution requires System.Read.
Request
URI
GET
https://{host}/api/vcenter/compute/policies/capabilities
COPY
Authorization
This operation uses the following authorization methods.
Responses
200

The list of compute policy capabilities available on this vCenter server.

[
    {
        "capability": "string",
        "name": "string",
        "description": "string"
    }
]

403

if the user doesn't have the required privileges.

Returns Vapi Std Errors Unauthorized of type(s) application/json
This response body class contains all of the following: InlineVapi Std Errors Unauthorized0
{
    "messages": [
        {
            "id": "string",
            "default_message": "string",
            "args": [
                "string"
            ],
            "params": {
                "params": {
                    "s": "string",
                    "dt": "string",
                    "i": 0,
                    "d": "number",
                    "l": "Vapi Std NestedLocalizableMessage Object",
                    "format": "string",
                    "precision": 0
                }
            },
            "localized": "string"
        }
    ],
    "data": {},
    "error_type": "string"
}

Code Samples
COPY
                    curl -H 'Authorization: <value>' https://{api_host}/api/vcenter/compute/policies/capabilities