Get Default Policy
Released in v6.7 DescriptionReturns the identifier of the current default storage policy associated with the specified datastore.
Request
URLURL
https://{api_host}/rest/vcenter/datastore/{datastore}/default-policy
Parameters
Parameters
string
datastore
Required
Identifier of the datastore for which the default policy is requested.
The parameter must be an identifier for the resource type: Datastore.
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
Response
Response
Response BodyResponse Body
200 OK returns
DatastoreDefaultPolicyGetResponseBody
of type application/json
Identifier of the default storage policy associated with the specified datastore. this field is unset if there is no default storage policy associated with the datastore. The result will be an identifier for the resource type: com.vmware.vcenter.StoragePolicy.
{
"value": "string"
}
string
value
Optional
Identifier of the default storage policy associated with the specified datastore. this field is unset if there is no default storage policy associated with the datastore. The result will be an identifier for the resource type: com.vmware.vcenter.StoragePolicy.
cURL Command
curl -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" https://{api_host}/rest/vcenter/datastore/{datastore}/default-policy
Errors
403
com.vmware.vapi.std.errors.unauthorized : if the user does not have the required priveleges.
500
com.vmware.vapi.std.errors.error : if the system reports an error while responding to the request.
503
com.vmware.vapi.std.errors.service_unavailable : if the system is unable to communicate with a service to complete the request.
default
'Default' means this response is used for all HTTP codes that are not covered individually for this operation.