vcenter datastore default policy: get

Returns the identifier of the current default storage policy associated with the specified datastore. This operation was added in vSphere API 6.7

Request:

HTTP request

GET https://{server}/rest/vcenter/datastore/{datastore}/default-policy

Path Parameters

Name Type Description
Required
datastore string Identifier of the datastore for which the default policy is requested.

Response:

HTTP Status Code: 200

Representation:

{
    "value""obj-103"
}

Response Type:

Name Type Description
bold = required
value string Optional. Identifier of the default storage policy associated with the specified datastore.

Errors:

HTTP Status Code Type Description
500 error if the system reports an error while responding to the request.
404 not_found if the specified datastore does not exist.
503 service_unavailable if the system is unable to communicate with a service to complete the request.
401 unauthenticated if the user is not authenticated.
403 unauthorized if the user does not have the required priveleges.