List Policies
Returns information about the compute policies available in this vCenter server. if you do not have all of the privileges described as follows: - Operation execution requires System.Read.
Request
URLURL
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Authentication
Response
Response BodyResponse Body
array
of
ComputePoliciesSummary
of type application/json
The list of compute policies available on this vCenter server.
[
{
"capability": "string",
"description": "string",
"name": "string",
"policy": "string"
}
]
Identifier of the capability this policy is based on. When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: com.vmware.vcenter.compute.policies.Capability. When operations return a value of this structure as a result, the field will be an identifier for the resource type: com.vmware.vcenter.compute.policies.Capability.
Description of the policy.
Name of the policy.
Identifier of the policy. When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: com.vmware.vcenter.compute.Policy. When operations return a value of this structure as a result, the field will be an identifier for the resource type: com.vmware.vcenter.compute.Policy.
Errors
com.vmware.vapi.std.errors.unauthorized : if the user doesn’t have the required privileges.
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
cURL Command
Vendor Extensions
x-vmw-doc-operation: list