Get Datastore
Retrieves information about the datastore indicated by datastore.
Request
URLURL
Path Parameters
Path Parameters
Identifier of the datastore for which information should be retrieved. The parameter must be an identifier for the resource type: Datastore.
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
Information about the datastore associated with datastore.
{
"accessible": false,
"free_space": 0,
"multiple_host_access": false,
"name": "string",
"thin_provisioning_supported": false,
"type": "VMFS"
}
Whether or not this datastore is accessible.
Whether or not more than one host in the datacenter has been configured with access to the datastore.
Name of the datastore.
Whether or not the datastore supports thin provisioning on a per file basis. When thin provisioning is used, backing storage is lazily allocated.
The Datastore.Type enumerated type defines the supported types of vCenter datastores.
VMFS : VMware File System (ESX Server only).
NFS : Network file system v3 (linux & esx servers only).
NFS41 : Network file system v4.1 (linux & esx servers only).
CIFS : Common Internet File System.
VSAN : Virtual SAN (ESX Server only).
VFFS : Flash Read Cache (ESX Server only).
VVOL : vSphere Virtual Volume (ESX Server only).
Possible values are: VMFS , NFS , NFS41 , CIFS , VSAN , more...
Available space of this datastore, in bytes. The server periodically updates this value.
This field will be unset if the available space of this datastore is not known.
Errors
com.vmware.vapi.std.errors.unauthorized : if the user doesn’t have the required privileges.
com.vmware.vapi.std.errors.not_found : if the datastore indicated by datastore does not exist.
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-deprecated-method: get
x-vmw-doc-deprecated-path: /rest/vcenter/datastore/{datastore}
x-vmw-doc-operation: get