• Native OpenStack API

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

Update pool

Function Description

This interface is used to update a pool.

Interface Format

Method

URI

Description

PUT

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

Updates information about a pool.

Restrictions

Only lb_algorithmsession_persistencename, and description of a pool can be updated.

If the provisioning status of the load balancer associated with a pool is not ACTIVE, the pool cannot be updated.

Request Parameter

Parameter

Type

Mandatory

Description

pool

Dict

No

Specifies the pool. For details, see Table 3.

Response Parameter

Parameter

Type

Mandatory

Description

pool

Dict

No

Specifies the pool. For details, see Table 3.

Request Example

PUT  /v2.0/lbaas/pools/12ff63af-4127-4074-a251-bcb2ecc53ebe
{
    "pool": {
        "name": "pool2",
        "description": "pool two",
        "lb_algorithm": "LEAST_CONNECTIONS"
    }
}

Response Example

{
    "pool": {
        "lb_algorithm": "LEAST_CONNECTIONS",
        "protocol": "HTTP",
        "description": "pool two",
        "admin_state_up": false,
        "tenant_id": "1a3e005cf9ce40308c900bcb08e5320c",
        "session_persistence": {
            "cookie_name": null,
            "type": "HTTP_COOKIE"
        },
        "healthmonitor_id": null,
        "listeners": [
            {
                "id": "39de4d56-d663-46e5-85a1-5b9d5fa17829"
            }
        ],
        "members": [],
        "id": "12ff63af-4127-4074-a251-bcb2ecc53ebe",
        "name": "pool2"
    }
}

Error Code

See section Return Code Processing.