Listdatastores

Listdatastores

At least one of the listed privileges is required -

Privileges Description
GLOBAL_CONFIG_VIEW Caller should have permission to this privilege, to perform this operation.
VC_CONFIG_VIEW Caller should have permission to this privilege, to perform this operation.
Request
URI
GET
https://{api_host}/rest/external/v1/datastores
COPY
Query Parameters
string
vcenter_id
Required

Virtual Center ID

vcenter_id example
d0325b13-2bf1-4fa4-b027-e780004f2d1e
string
host_or_cluster_id
Required

Host or Cluster ID

host_or_cluster_id example
domain-c85
string
resource_type
Optional

Resource type.

Possible values are : FARM, DESKTOP_POOL,
string
resource_id
Optional

Resource ID, can be desktop pool or farm id.

resource_id example
67bc8787-fa2e-4593-b441-616674b8fa97

Authentication
This operation uses the following authentication methods.
Responses
200

OK

[
    {
        "capacity_mb": 946176,
        "datacenter_id": "datacenter-1",
        "disk_type": "NON_SSD",
        "file_system_type": "VMFS",
        "free_space_mb": 88239,
        "host_or_cluster_id": "domain-c85",
        "id": "datastore-29",
        "incompatible_reasons": [
            "string"
        ],
        "local_datastore": true,
        "name": "Datastore1",
        "number_of_vms": 15,
        "path": "/Datacenter/host/Cluster/Datastore1",
        "vcenter_id": "d0325b13-2bf1-4fa4-b027-e780004f2d1e",
        "vmfs_major_version": "5"
    }
]

401

User is not authenticated

Operation doesn't return any data structure

403

Access to the resource is forbidden

Operation doesn't return any data structure

404

Not Found

Operation doesn't return any data structure