ambari_hosts_gethosts
Retrieve a list of all hosts in an Ambari cluster. Filter by fields, sort by host name, and control page size for efficient management.
Instructions
Returns a collection of all hosts
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ambari_hosts_gethosts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | Filter fields in the response | Hosts/* |
| sortBy | No | Sort resources in result by (asc | desc) | Hosts/host_name.asc |
| page_size | No | The number of resources to be returned for the paged response. |