vcenter inventory datastore: find

Returns datastore information for the specified datastores. The key in the result key/value pairs is the datastore identifier and the value in the key/value pairs is the datastore information.

Request:

HTTP request

POST https://{server}/rest/com/vmware/vcenter/inventory/datastore?~action=find

Request Body Structure:

{
    "datastores"[
        "obj-103",
        "obj-103"
    ]
}

Request Body Parameters:

Name Type Description
bold = required
datastores string[] Identifiers of the datastores for which information will be returned.

Response:

HTTP Status Code: 200

Representation:

{
    "value"[
        {
            "key""obj-103",
            "value"{
                "type""string"
            }
        }
    ]
}

Response Type:

Name Type Description
bold = required
value list Datastore information for the specified datastores. The key in the result key/value pairs is the datastore identifier and the value in the key/value pairs is the datastore information.List of {"key": string, "value": info}
value[].key string
value[].value info Optional.
value[].value.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:

HTTP Status Code Type Description
404 not_found if no datastore can be found for one or more of the datastore identifiers in datastores