GET /api/topology/hosts/id
Description
Get a host id.
Resource URL
https://localhost:8090/api/topology/hosts/id?hostName=myhostname
Parameters
hostName | mandatory | The name of the host. |
Response Codes
Response Code | Description |
---|---|
200 | Success. The response body contains the hostname. |
404 | The response contains an error indicating that the host does not exist in the topology. |
Example Request and Response
GET https://localhost:8090/api/topology/hosts/id?hostName=myhostname
HTTP 1.1 200 OK
{
"result": "host-1"
}