• Elastic Load Balancing

elb
  1. Help Center
  2. Elastic Load Balancing
  3. API Reference
  4. Classic Load Balancer APIs
  5. Backend ECS
  6. Adding Backend ECSs

Adding Backend ECSs

Function

This API is used to add backend ECSs to a listener for monitoring.

To add backend ECSs to a UDP listener, IP addresses can be pinged and UDP services must be enabled.

URI

POST /v1.0/{project_id}/elbaas/listeners/{listener_id}/members
Table 1 Parameter description

Parameter

Mandatory

Type

Description

project_id

Yes

String

Specifies the project ID of the operator.

listener_id

Yes

String

Specifies the listener ID.

server_id

Yes

String

Specifies the backend ECS ID.

address

Yes

String

Specifies the private IP address of the backend ECS.

Request

  • Request parameters

    None

  • Example request
    [
        {
            "server_id": "dbecb618-2259-405f-ab17-9b68c4f541b0",
            "address": "172.16.0.31"
        }
    ]

Response

  • Response parameters
    Table 2 Parameter description

    Parameter

    Type

    Description

    uri

    String

    Specifies the URI of the task for adding a backend ECS. It is returned by Combined API.

    job_id

    String

    Specifies the unique ID assigned to the task for adding a backend ECS in Combined API.

  • Example response
    {
        "uri": "/v1/55300f3c8f764c06b1a32e2302edc305/jobs/4010b39b4fd3d5ff014fd3ec3ed8002d",
        "job_id": "4010b39b4fd3d5ff014fd3ec3ed8002d"
    }

Returned Values

  • Normal

    200

  • Abnormal

    Returned Value

    Description

    400 badRequest

    Request error

    401 unauthorized

    Authentication failed.

    403 userDisabled

    You do not have the rights to perform the operation.

    404 Not Found

    The requested page does not exist.

    500 authFault

    Internal service error.

    503 serviceUnavailable

    The service is unavailable.