Get one node

From Hostway API Documentation
(Difference between revisions)
Jump to: navigation, search
(Response Body)
 
m (1 revision: Release 109)
 

Latest revision as of 12:13, 24 July 2015

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"}]

 }
Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox