Check Compatibility Policies
Released in v6.7Returns datastore compatibility summary about a specific storage policy.
Request
URLURL
https://{api_host}/rest/vcenter/storage/policies/{policy}?action=check-compatibility
Parameters
Parameters
string
policy
Required
The storage policy identifier
The parameter must be an identifier for the resource type: com.vmware.vcenter.StoragePolicy.
Header Parameters
Header Parameters
string
vmware-api-session-id
Required
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id Example
b00db39f948d13ea1e59b4d6fce56389
Request Body
Request Body
StoragePoliciesCheckCompatibilityRequestBody of type application/json (required){
"datastores": [
"string"
]
}
array of
string
datastores
Required
Datastores used to check compatibility against a storage policy. The number of datastores is limited to 1024. The parameter must contain identifiers for the resource type: Datastore.
Response
Response
Response BodyResponse Body
200 OK returns
StoragePoliciesCheckCompatibilityResponseBody
of type application/json
datastore compatibility summary about a specific storage policy.
{
"value": {
"compatible_datastores": [
{
"datastore": "string"
}
]
}
}
value
Optional
datastore compatibility summary about a specific storage policy.
cURL Command
curl -X POST -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" -H "Content-Type: application/json" -d '{"datastores":["string"]}' https://{api_host}/rest/vcenter/storage/policies/{policy}?action=check-compatibility
Errors
401
com.vmware.vapi.std.errors.unauthenticated : if the user can not be authenticated. | com.vmware.vapi.std.errors.unauthorized : if the user doesn't have the required privileges.
404
com.vmware.vapi.std.errors.error : if the system reports an error while responding to the request. | com.vmware.vapi.std.errors.not_found : if the storage policy specified does not exist.
503
com.vmware.vapi.std.errors.service_unavailable : if the system is unable to communicate with a service to complete the request.
507
com.vmware.vapi.std.errors.unable_to_allocate_resource : if input more than 1024 datastores.
default
'Default' means this response is used for all HTTP codes that are not covered individually for this operation.