Vcenter Compute Policies list
Returns information about the compute policies 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://{api_host}/api/vcenter/compute/policies
COPY
Responses
200
The list of compute policies available on this vCenter server.
[
{
"policy": "string",
"name": "string",
"description": "string",
"capability": "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
"Vapi Std Errors Unauthorized Object"
Code Samples
COPY
curl -H 'Authorization: <value>' https://{api_host}/api/vcenter/compute/policies