Help Center/ Elastic Load Balance/ API Reference/ API (V2)/ Backend Server/ Querying Details of a Backend Server
Updated on 2024-04-18 GMT+08:00

Querying Details of a Backend Server

Function

This API is used to query details of a backend server.

URI

GET /v2/{project_id}/elb/pools/{pool_id}/members/{member_id}

Table 1 Parameter description

Parameter

Mandatory

Type

Description

project_id

Yes

String

Specifies the project ID.

pool_id

Yes

String

Specifies the ID of the backend server group.

member_id

Yes

String

Specifies the backend server ID.

NOTE:
  • The value of this parameter is not the ID of the server. It is an ID automatically generated for the backend server that is associated with the load balancer.
  • You can obtain this value by calling the API described in Querying Backend Servers.

Request

None

Response

Table 2 Parameter description

Parameter

Type

Description

member

Member object

Specifies the backend server. For details, see Table 3.

Table 3 member parameter description

Parameter

Type

Description

id

String

Specifies the backend server ID.

NOTE:

The value of this parameter is not the ID of server. It is the ID automatically generated for the backend server associated with the load balancer.

tenant_id

String

Specifies the ID of the project where the backend server is used.

The value contains a maximum of 255 characters.

project_id

String

Specifies the ID of the project to which the backend server belongs. This parameter has the same meaning as tenant_id.

name

String

Specifies the backend server name.

The value contains a maximum of 255 characters.

address

String

Specifies the private IP address of the backend server. This IP address must be in the subnet specified by subnet_id.

This parameter can be set only to the IP address of the primary NIC, for example, 192.168.3.11.

The value contains a maximum of 64 characters.

protocol_port

Integer

Specifies the port used by the backend server. The port number ranges from 1 to 65535.

subnet_id

String

Specifies the ID of the subnet where the backend server resides. The private IP address of the backend server is in this subnet.

IPv6 subnets are not supported.

admin_state_up

Boolean

Specifies the administrative status of the backend server.

This parameter is reserved. The value can be true or false.

  • true: Enabled
  • false: Disabled

weight

Integer

Specifies the backend server weight. The value ranges from 0 to 100.

If the value is 0, the backend server will not accept new requests. The default value is 1.

operating_status

String

Specifies the health check result of the backend server. The value can be one of the following:

  • ONLINE: The backend server is running normally.
  • NO_MONITOR: No health check is configured for the backend server group that the backend server belongs to.
  • OFFLINE: The cloud server used as the backend server is stopped or does not exist.

Example Request

  • Example request: Querying details of a backend server
    GET https://{Endpoint}/v2/145483a5107745e9b3d80f956713e6a3/elb/pools/5a9a3e9e-d1aa-448e-af37-a70171f2a332/members/cf024846-7516-4e3a-b0fb-6590322c836f

    Example request 2: Querying the EIP bound to a load balancer

  • For details, see Querying EIPs.
  • Example request
    GET https://{EIP_Endpoint}/v1/{project_id}/publicips?port_id={vip_port_id}

    vip_port_id is the value of vip_port_id of the load balancer.

Example Response

  • Example response 1
    {
        "member": {
            "name": "", 
            "weight": 1, 
            "admin_state_up": true, 
            "subnet_id": "823d5866-6e30-45c2-9b1a-a1ebc3757fdb", 
            "tenant_id": "145483a5107745e9b3d80f956713e6a3",
            "project_id": "145483a5107745e9b3d80f956713e6a3",
            "address": "192.172.3.100", 
            "protocol_port": 8080, 
            "operating_status": "ONLINE", 
            "id": "e58f5bfa-0e46-4bc5-951c-8473d3e5f24a"
        }
    }
  • Example response 2
    {
        "publicips": [
            {
                "id": "6285e7be-fd9f-497c-bc2d-dd0bdea6efe0",
                "status": "DOWN",
                "profile": {
                  "user_id": "35f2b308f5d64441a6fa7999fbcd4321",
                  "product_id": "00301-48027-0--0",
                  "region_id": "xxx",
                  "order_id": "xxxxxxxxx"
                },
                "type": "5_bgp",
                "public_ip_address": "161.xx.xx.9",
                "private_ip_address": "192.168.2.4",
                "tenant_id": "8b7e35ad379141fc9df3e178bd64f55c",
                "create_time": "2015-07-16 04:22:32",
                "bandwidth_id": "3fa5b383-5a73-4dcb-a314-c6128546d855",
                "bandwidth_share_type": "PER",
                "bandwidth_size": 5,
                "bandwidth_name": "bandwidth-test",
                "enterprise_project_id":"b261ac1f-2489-4bc7-b31b-c33c3346a439",
                "ip_version": 4,
                "port_id": "c7157e7a-036a-42ca-8474-100be22e3727"
            }
        ]
    }

    public_ip_address indicates the EIP bound to the load balancer.

Status Code

For details, see Status Codes.