Get Hosts By VC And Cluster ID

Get Hosts By VC And Cluster ID

Use this endpoint to get cluster's hosts
Authorized Roles : PROVIDER

Request
URI
GET
https://{api_host}/provider/vcenter/{id}/clusters/{clusterMorId}/hosts
COPY
Path Parameters
string
id
Required

vCenter Id

string
clusterMorId
Required

Morid of the Cluster


Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns HostDTO of type(s) application/vnd.vmware.dms-v1+json
{
    "value": [
        {
            "hostName": "string",
            "hostMoid": "string"
        }
    ]
}
value
Optional

value


400

Bad Request

Operation doesn't return any data structure