Querying Backend Servers of a VPC Channel
Function
This API is used to query the backend servers of a VPC channel.
URI
GET /v2/{project_id}/apic/instances/{instance_id}/vpc-channels/{vpc_channel_id}/members
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID. For details about how to obtain the project ID, see Appendix > Obtaining a Project ID in the ROMA Connect API Reference. |
| instance_id | Yes | String | Instance ID. |
| vpc_channel_id | Yes | String | VPC channel ID. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| offset | No | Long | Offset from which the query starts. If the offset is less than 0, the value is automatically converted to 0. Default: 0 |
| limit | No | Integer | Number of items displayed on each page. Minimum: 1 Maximum: 500 Default: 20 |
| name | No | String | Cloud server name. |
| member_group_name | No | String | Name of the backend server group. |
| member_group_id | No | String | ID of the backend server group. |
| precise_search | No | String | Parameter name for exact matching. If multiple parameters need to support exact match, separate them with commas (,). Currently, name and member_group_name are supported. |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | Yes | String | User token, which can be obtained by calling the IAM API (value of X-Subject-Token in the response header). |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| size | Integer | Length of the returned resource list. |
| total | Long | Number of resources that match the query conditions. |
| members | Array of VpcMemberInfo objects | Cloud server list. |
| Parameter | Type | Description |
|---|---|---|
| host | String | Backend server address. This parameter is valid when the member type is IP address. Maximum: 64 |
| weight | Integer | Backend server weight. The higher the weight is, the more requests a cloud server will receive. It is valid only when the VPC channel type is set to 2. Minimum: 0 Maximum: 10000 |
| is_backup | Boolean | Indicates whether it is a standby node. After this parameter is enabled, the corresponding backend service functions as the standby node and works only when all non-standby nodes are faulty. [The instance must be upgraded to the corresponding version to support this function. If the instance does not support this function, contact technical support.] (tag:hws;hws_hk;hcs;fcs;g42;) Default: false |
| member_group_name | String | Name of the backend server group. Select a server group for the backend service address so that the backend addresses of the corresponding server group can be changed in a unified manner. |
| status | Integer | Backend server status.
|
| port | Integer | Backend server port. Minimum: 0 Maximum: 65535 |
| ecs_id | String | [Backend server ID.] (tag:hws;hws_hk;hcs;fcs;g42;) [This parameter is mandatory when the backend instance type is ecs. The value can contain 1 to 64 characters, including letters, digits, hyphens (-), and underscores (_).] (tag:hws;hws_hk;hcs;fcs;g42;) Maximum: 255 |
| ecs_name | String | [Backend server name.] [This parameter is mandatory when the backend instance type is ecs. The value can contain 1 to 64 characters, including letters, digits, hyphens (-), underscores (_), and periods (.).] (tag:hws;hws_hk;hcs;fcs;g42;) Maximum: 64 |
| id | String | Backend instance object ID. |
| vpc_channel_id | String | VPC channel ID. |
| create_time | String | Time when the backend server is added to the VPC channel. |
| member_group_id | String | Backend server ID. |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_msg | String | Error description. |
Status code: 401
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_msg | String | Error description. |
Status code: 403
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_msg | String | Error description. |
Status code: 404
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_msg | String | Error description. |
Status code: 500
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_msg | String | Error description. |
Example Requests
None
Example Responses
Status code: 200
OK
{
"total" : 2,
"size" : 2,
"members" : [ {
"create_time" : "2020-07-23T07:11:57Z",
"vpc_channel_id" : "56a7d7358e1b42459c9d730d65b14e59",
"host" : "192.168.0.5",
"weight" : 1,
"id" : "be63c6260a1043888187f84af39c9f0e",
"status" : 1
}, {
"create_time" : "2020-07-23T07:11:57Z",
"vpc_channel_id" : "56a7d7358e1b42459c9d730d65b14e59",
"host" : "192.168.1.124",
"weight" : 2,
"id" : "a57b13f1b89b417ca8acd76909e6df67",
"status" : 1
} ]
} Status code: 400
Bad Request
{
"error_code" : "APIG.2012",
"error_msg" : "Invalid parameter value,parameterName:name. Please refer to the support documentation"
} Status code: 401
Unauthorized
{
"error_code" : "APIG.1002",
"error_msg" : "Incorrect token or token resolution failed"
} Status code: 403
Forbidden
{
"error_code" : "APIG.1005",
"error_msg" : "No permissions to request this method"
} Status code: 404
Not Found
{
"error_code" : "APIG.3023",
"error_msg" : "The VPC channel does not exist,id:56a7d7358e1b42459c9d730d65b14e59"
} Status code: 500
Internal Server Error
{
"error_code" : "APIG.9999",
"error_msg" : "System error"
} Status Codes
| Status Code | Description |
|---|---|
| 200 | OK |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 500 | Internal Server Error |
Error Codes
See Error Codes.
Last Article: Adding or Updating Backend Servers
Next Article: Updating a Backend Instance
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.