List Virtual Disks

List Virtual Disks

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/virtual-disks
COPY
Query Parameters
string
vcenter_id
Required

Virtual Center ID

vcenter_id example
d0325b13-2bf1-4fa4-b027-e780004f2d1e
string
datastore_id
Optional

Datastore ID

datastore_id example
domain-c85
boolean
populate_all_disks
Optional

Populates all virtual disks irrespective of their compatability. Default value is false.

populate_all_disks example
true

Authentication
This operation uses the following authentication methods.
Responses
200

OK

[
    {
        "attached": false,
        "datastore_id": "datastore-29",
        "id": "a219420d-4799-4517-8f78-39c74c7c4efc",
        "incompatible_reason": "string",
        "name": "virtual-disk.vmdk",
        "path": "[datastore] vm/virtual-disk.vmdk"
    }
]

400

Bad Request

Operation doesn't return any data structure

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