List Hosts Or Clusters

List Hosts Or Clusters

Lists all the hosts or clusters of the datacenter.

Request
URI
GET
https://{api_host}//localhost/rest/external/v1/hosts-or-clusters
COPY
Query Parameters
string
datacenter_id
Required

Datacenter ID

string
vcenter_id
Required

Virtual Center ID


Authentication
This operation uses the following authentication methods.
Responses
200

OK

[
    {
        "container": "HostOrClusterContainer Object",
        "details": {
            "cluster": true,
            "datacenter_id": "datacenter-1",
            "incompatible_reasons": [
                "string"
            ],
            "name": "Cluster",
            "path": "/Datacenter/host/ServicesFolder/Cluster",
            "vcenter_id": "d0325b13-2bf1-4fa4-b027-e780004f2d1e",
            "vgpu_types": [
                "string"
            ]
        },
        "id": "domain-s425"
    }
]

401

User is not authenticated

Operation doesn't return any data structure

404

Not Found

Operation doesn't return any data structure