GET /api/topology/hosts/{hostID}

Description

Get a host with id of hostID from the topology.

If the hostID is set to localhost then the host that running the Node Manager that this API is running on is returned.


Resource URL

https://localhost:8090/api/topology/hosts/{hostID}


Parameters

hostID mandatory The id of the host to return.

Response Codes

Response Code Description
200 Success. The response body contains the host. Refer to Javadoc for com.vordel.api.topology.model.Host.
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/host-1

HTTP 1.1 200 OK

{
    "result": {
        "id": "host-1",
        "name": "host.com"
    }
}