Find Datastore
Returns datastore information for the specified datastores. The key in the result map is the datastore identifier and the value in the map is the datastore information. if you do not have all of the privileges described as follows: - Operation execution requires System.Read. - The resource Datastore referenced by the parameter datastores requires System.Read.
Request
URLURL
Query Parameters
Query Parameters
Identifiers of the datastores for which information will be returned. The parameter must contain identifiers 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
map
of
InventoryDatastoreInfo
of type application/json
Datastore information for the specified datastores. The key in the result map is the datastore identifier and the value in the map is the datastore information. The key in the result map will be an identifier for the resource type: Datastore.
{
"type": "string"
}
Type of the datastore. When clients pass a value of this structure as a parameter, the field must be one of Datastore or StoragePod. When operations return a value of this structure as a result, the field will be one of Datastore or StoragePod.
Errors
com.vmware.vapi.std.errors.not_found : if no datastore can be found for one or more of the datastore identifiers in datastores
‘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: post
x-vmw-doc-deprecated-path: /rest/com/vmware/vcenter/inventory/datastore?~action=find
x-vmw-doc-operation: find