list_hosts_or_clusters
List hosts and clusters in a vCenter datacenter to obtain host_or_cluster_id required by datastore, resource pool, network label, and provisioning tools.
Instructions
List hosts and clusters in a vCenter datacenter.
The host_or_cluster_id is required by list_datastores, list_resource_pools, list_network_labels, and create_desktop_pool / create_rdsh_farm provisioning_settings.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"vcenter_id": "<vcenter_id>",
"datacenter_id": "<datacenter_id>"
},
"name": "list_hosts_or_clusters"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vcenter_id | Yes | vCenter ID — obtain from list_virtual_centers | |
| datacenter_id | Yes | Datacenter ID — obtain from list_datacenters |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |