This API has a deprecated equivalent from v7.0U1.
Check Compatibility Policies
Returns datastore compatibility summary about a specific storage policy.
Request
URLURL
https://{api_host}/api/vcenter/storage/policies/{policy}?action=check-compatibility
Path Parameters
Path 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, obtained by first calling Create Session API
Request Body
Request Body
StoragePoliciesCheckCompatibilityRequestBody of mimetype application/json
Optional
This is a request body class for an operation.
(The request body parameter is missing description)
{
"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
StoragePoliciesCompatibilityInfo of type application/json
datastore compatibility summary about a specific storage policy.
{
"compatible_datastores": [
{
"datastore": "string"
}
]
}
compatible_datastores
Required
Info about a list of datastores compatible with 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}/api/vcenter/storage/policies/{policy}?action=check-compatibility
Errors
403
com.vmware.vapi.std.errors.unauthorized : if the user doesn't have the required privileges.
500
com.vmware.vapi.std.errors.error : if the system reports an error while responding to the request. | com.vmware.vapi.std.errors.unable_to_allocate_resource : if input more than 1024 datastores.
503
com.vmware.vapi.std.errors.service_unavailable : if the system is unable to communicate with a service to complete the request.
Availability
Added in 7.0U2