6.1. Listing HostsΒΆ
GET /hosts
Lists both the controller and compute hosts in the PowerPanel infrastructure.
Request example:
# curl -s -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' \
https://<controller_hostname>/api/v1/hosts
Response example:
[
{
"created_at": "2020-12-14T10:49:55.000000",
"hostname": "host1.local.site",
"id": "59d7a0ea5e994e33a955b868472aadac"
},
{
"created_at": "2020-12-14T10:50:06.000000",
"hostname": "host2.local.site",
"id": "64acae36796c4db7b5be65544464c8b3"
},
{
"created_at": "2020-12-18T08:08:13.000000",
"hostname": "controller.local.site",
"id": "705242071d344935810d9d2f6599b63c"
}
]
Dec 08, 2021