• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Neutron
  5. LBaas
  6. Create member

Create member

Function Description

This interface is used to create a member that belongs to the specified pool.

Interface Format

Method

URI

Description

POST

/v2.0/lbaas/pools/{pool_id}/members

Creates a member that belongs to the specified pool.

Restrictions

  • Values for port and address for members of the same pool must be unique.
  • The subnet specified when you create a member must be in the VPC that houses the VIP subnet.
  • The protocol_port value can be set to 0 only in DR mode.

The value of parameter admin_state_up must be set to true.

  • NICs for the members must be primary NICs.

Request Parameter

Parameter

Type

Mandatory

Description

member

Dict

Yes

Specifies the member. For details, see Table 5.

The address, protocol_port, and subnet_id fields are mandatory.

Response Parameter

Parameter

Type

Mandatory

Description

member

Dict

Yes

Specifies the member. For details, see Table 5.

Request Example

POST /v2.0/lbaas/pools/5a9a3e9e-d1aa-448e-af37-a70171f2a332/members
{
    "member": {
        "subnet_id": "33d8b01a-bbe6-41f4-bc45-78a1d284d503",
        "protocol_port": "88",
        "name": "member-jy-tt-1",
        "address": "192.168.44.11"
    }
}

Response Example

{
    "member": {
        "name": "member-jy-tt-1",
        "weight": 1,
        "admin_state_up": true,
        "subnet_id": "33d8b01a-bbe6-41f4-bc45-78a1d284d503",
        "tenant_id": "145483a5107745e9b3d80f956713e6a3",
        "address": "192.168.44.11",
        "protocol_port": 88,
        "id": "c0042496-e220-44f6-914b-e6ca33bab503"
    }
}

Error Code

See section Return Code Processing.