libra/doc/api/rest/protocols.rst
Endre Karlson af55574093 API documentation re-amp
* Split the API into 1 section pr item aka vip, lb etc
* Update docs to be up to date with features.
* Add healthmonitoring section

Change-Id: I3cc568a6dec089060e51da263e93c08a52c5b5d2
2013-09-26 00:39:28 +02:00

2.5 KiB

Protocols

Get List of Supported LBaaS Protocols

Operation

Resource Operation Method Path
Protocols Get list of supported protocols GET {baseURI}/{ver}/protocols

Description

All load balancers must be configured with the protocol of the service which is being load balanced. The protocol selection should be based on the protocol of the back-end nodes. The current specification supports HTTP (port 80) and TCP (port 443) services. HTTPS traffic is supported currently via the TCP connection. Support for SSL termination on the load balancer is not currently supported.

Request Data

None required.

Query Parameters Supported

None required.

Required HTTP Header Values

X-Auth-Token

Request Body

None required.

Normal Response Code

HTTP Status Code Description
200 OK

Response Body

The response body contains the currently supported protocols and port numbers.

Error Response Codes

HTTP Status Code Description
400 Bad Request
401 Unauthorized
404 Not Found
405 Not Allowed
500 LBaaS Fault

Example

Curl Request

curl -H "X-Auth-Token: TOKEN" https://uswest.region-b.geo-1.lbaas.hpcloudsvc.com/v1.1/protocols

Response

{
    "protocols": [
    {
                "name": "HTTP",
                "port": 80
        },
        {
                "name": "TCP",
                "port": 443
        }
        ]
}