Get a load balancer's session persistence
From Hostway API Documentation
(Difference between revisions)
(→Response Body) |
Mike.robski (Talk | contribs) m (1 revision: Release 109) |
Latest revision as of 12:13, 24 July 2015
Contents |
[edit] GET /accounts/{accountId}/loadbalancers/{lbId}/nodePools/{nodePoolId}/sessionPersistence
This operation lists the details for the specified session persistence
[edit] Request
GET /accounts/{accountId}/loadbalancers/{lbId}/nodePools/{nodePoolId}/sessionPersistence
[edit] Request Parameters
- accountId - string
- The selected account id.
- lbId - string
- The selected loadbalancer id.
- nodePoolId - string
- The selected node pool id.
[edit] Response
[edit] 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.
[edit] Response Body
{ "persistenceType": "{type}", "links": [{"href": "http://{api-server}/accounts/{accountId}/loadbalancers/{lbId}/nodePools/{nodePoolId}/sessionPersistence", "rel": "self"}] }
[edit] Parameters
- type - string
- type of session persistence
- Allowed value is HTTP_COOKIE (currently, only HTTP_COOKIE is supported)
- links - list
- Hypermedia for this resource. Links to self.
[edit] Examples
[edit] Successfully list details for specified load balancer session persistence
Request
GET /accounts/{accountId}/loadbalancers/{lbId}/nodePools/{nodePoolId}/sessionPersistence Content-Type:application/json Charset=UTF-8 Authorization: Basic {Base64-encoded username & password string}
Response
HTTP/1.1 200 OK { "persistenceType":"HTTP_COOKIE" "links" : [{"href" : "http://{api-server}/accounts/{accountId}/loadbalancers/{lbId}/nodePools/{nodePoolId}/sessionPersistence", "rel" : "self"}] }