Querying the List of ELBs That Can Be Bound to a Cluster
Function
This API is used to query the list of ELBs that can be bound to a cluster.
Calling Method
For details, see Calling APIs.
URI
GET /v2/{project_id}/clusters/{cluster_id}/elbs
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Definition Project ID. To obtain the value, see Obtaining a Project ID. Constraints N/A Range N/A Default Value N/A |
| cluster_id | Yes | String | Definition Cluster ID. For details about how to obtain the value, see Obtaining the Cluster ID. Constraints The value must be a valid DWS cluster ID. Range It is a 36-digit UUID. Default Value N/A |
Request Parameters
None
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| elbs | Array of ClusterElbInfo objects | Definition ELB list. Range N/A |
| count | Integer | Definition Total number of records. Range N/A |
| Parameter | Type | Description |
|---|---|---|
| id | String | Definition ELB ID. Range N/A |
| cluster_id | String | Definition Cluster ID. Range It is a 36-digit UUID. |
| name | String | Definition ELB name. Range N/A |
| description | String | Definition ELB description. Range N/A |
| vip_address | String | Definition ELB address. Range N/A |
| vip_subnet_id | String | Definition Subnet ID. Range N/A |
| tenant_id | String | Definition Tenant ID. Range N/A |
| type | String | Definition ELB type. Range Internal: dedicated External: shared |
| admin_state_up | Boolean | Definition ELB status. Range true: in use false: not in use |
| bandwidth | Integer | Definition Bandwidth information. Range An integer greater than or equal to 0 |
| vpc_id | String | Definition VPC ID. Range N/A |
| ip_target_enable | Boolean | Definition Whether cross-VPC binding is supported. Range N/A |
Example Requests
Query the list of ELBs that can be bound to a cluster.
get https://{Endpoint}/v2/4cf650fd46704908aa071b4df2453e1e/clusters/194408fa-9d41-435c-a140-91edcf5fe519/elbs Example Responses
Status code: 200
{
"elbs" : [ {
"id" : "1e6e0b66-6223-4523-bfd9-033c88b4ce9f",
"name" : "loadbalancer5",
"description" : "simple lb",
"bandwidth" : 0,
"admin_state_up" : true,
"cluster_id" : "194408fa-9d41-435c-a140-91edcf5fe519",
"vip_subnet_id" : "374eca02-cfc4-4de7-8ab5-dbebf7d9a720",
"tenant_id" : "0536cdee2200d5912f7cc00b877980f1",
"type" : "Internal",
"vip_address" : "",
"vpc_id" : "7f1222cb-e1b4-41c5-a594-8ea47de370e6",
"ip_target_enable" : true
} ],
"count" : 1
} Status Codes
| Status Code | Description |
|---|---|
| 200 | ELB list queried. |
| 400 | Request error. |
| 401 | Authentication failed. |
| 403 | You do not have required permissions. |
| 404 | No resources found. |
| 500 | Internal server error. |
| 503 | Service unavailable. |