Get one node
From Hostway API Documentation
Revision as of 16:45, 4 February 2015 by Donghyun.kim (Talk)
Contents |
GET /accounts/{accountId}/loadbalancers/{lbId}/nodePools/{nodePoolId}/nodes/{nodeId}
This operation retrieves all the information about a single node from a given load balancer.
Request
GET /accounts/{accountId}/loadbalancers/{lbId}/nodePools/{nodePoolId}/nodes/{nodeId}
Request Parameters
- accountId - string
- The selected account id.
- lbId - string
- The selected loadbalancer id.
- nodePoolId - string
- The selected node pool id.
- nodeId -- string
- The selected node id.
Response
Response Codes
- 200 OK
- 401 Unauthorized
- This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.
- 404 Not Found
- The resource does not exist.
Response Body
{ "id": "{lbNodeId}", "server": [{"href": "{serverUrl}", "rel": "related"}], "port": "{lbNodePort}", "status": "{lbStatus}", "links": [{"href": "http://{api-server}/accounts/{accountId}/loadbalancers/{lbId}/nodePools/{nodePoolId}/nodes/{lbNodeId}", "rel": "self"}] }
Parameters
- id - string
- The id of node
- server - list
- Hypermedia to a resource of the server node hosted by Hostway
- it could be flexcloud servers virtual machine URL (http://{api-server}/account/{accountId}/flexcloud/servers/{serverId})
- port - integer
- The ports on node that LB forward traffic to
- Allowed range is 1 ~ 65535
- status - string
- The status of a node
- Allowed values are ENABLED or DISABLED
Examples
Successfully list details for specified load balancer node
Request
GET /accounts/{accountId}/loadbalancers/{lbId}/nodePools/{nodePoolId}/nodes/{nodeId} Content-Type:application/json Charset=UTF-8 Authorization: Basic {Base64-encoded username & password string}
Response
HTTP/1.1 200 OK { "id" : "1401", "server" : [{"href": "http://{api-server}/account/{accountId}/flexcloud/servers/{serverId}", "rel": "related"}], "port": "80", "status" : "ENABLED", "links" : [{"href" : "http://{api-server}/accounts/{accountId}/loadbalancers/{lbId}/nodePools/{nodePoolId}/node/{nodeId}", "rel" : "self"}] }