Update a node

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

Latest revision as of 12:13, 24 July 2015

This operation will update the contents of a load balancer node.

Contents

[edit] PUT /accounts/{accountId}/loadbalancers/{lbId}/nodePools/{nodePoolId}/nodes/{nodeId}

This operation updates node attributes.

[edit] Request

PUT /accounts/{accountId}/loadbalancers/{lbId}/nodePools/{nodePoolId}/nodes/{nodeId}

[edit] 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.

[edit] Request Body

{ 
    "status": "{status}",
}

[edit] Parameters

status - string
The status of a node
Allowed values are ENABLED or DISABLED

[edit] Response

[edit] Response Codes

204 No Content
400 Bad Request
The request has wrong data
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.
502 Bad Gateway
LB backend server returned error

[edit] Examples

[edit] Successfully update contents of specified load balancer node

Request

PUT /accounts/{accountId}/loadbalancers/{lbId}/nodePools/{nodepoolId}/nodes/{nodeId}
Content-Type:application/json
Charset=UTF-8
Authorization: Basic {Base64-encoded username & password string}

{
    "status":"ENABLED"
}

Response

HTTP/1.1 204 NoContent
Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox