List Policies Compliance
Returns compliance information about entities matching the filter Compliance.FilterSpec. Entities without storage policy association are not returned.
Request
URLURL
Query Parameters
Query Parameters
Compliance Status that a virtual machine must have to match the filter.
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
StoragePoliciesComplianceSummary of type application/json
compliance information about entities matching the filter Compliance.FilterSpec.
[
{
"disks": "COMPLIANT",
"vm": "string",
"vm_home": "COMPLIANT"
}
]
Identifier of virtual machine When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: VirtualMachine. When operations return a value of this structure as a result, the field will be an identifier for the resource type: VirtualMachine.
This enumeration defines the set of status values for a compliance operation.
COMPLIANT : Entity is in compliance.
NON_COMPLIANT : Entity is out of compliance.
UNKNOWN : Compliance status of the entity is not known.
NOT_APPLICABLE : Compliance computation is not applicable for this entity because it does not have any storage requirement that apply to the object-based datastore on which the entity is placed.
OUT_OF_DATE : Compliance status becomes out of date when the profile associated with the entity is edited and not applied. The compliance status will remain out of date until the latest policy is applied to the entity.
Possible values are: COMPLIANT , NON_COMPLIANT , UNKNOWN , NOT_APPLICABLE , OUT_OF_DATE
This enumeration defines the set of status values for a compliance operation.
COMPLIANT : Entity is in compliance.
NON_COMPLIANT : Entity is out of compliance.
UNKNOWN : Compliance status of the entity is not known.
NOT_APPLICABLE : Compliance computation is not applicable for this entity because it does not have any storage requirement that apply to the object-based datastore on which the entity is placed.
OUT_OF_DATE : Compliance status becomes out of date when the profile associated with the entity is edited and not applied. The compliance status will remain out of date until the latest policy is applied to the entity.
Possible values are: COMPLIANT , NON_COMPLIANT , UNKNOWN , NOT_APPLICABLE , OUT_OF_DATE
Errors
com.vmware.vapi.std.errors.invalid_argument : if the Compliance.FilterSpec.status field contains a value that is not supported by the server.
com.vmware.vapi.std.errors.unauthorized : if the user doesn’t have the required privileges.
com.vmware.vapi.std.errors.error : if the system reports an error while responding to the request.
com.vmware.vapi.std.errors.service_unavailable : if the system is unable to communicate with a service to complete the request.
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
PowerCLI Client SDK Example
cURL Command
Vendor Extensions
x-vmw-doc-operation: list