Obtaining the CBH Instance List
Function
Obtaining the CBH Instance List.
URI
GET /v1/{project_id}/cbs/instance/list
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID. To obtain the value, see Obtaining a Project ID. |
Request Parameters
None
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| total | Integer | Total number of instances. |
| quotaDetail | QuotaDetail object | The CBH quota of the current user. The default value null is returned. |
| instance | Array of InstanceDetail objects | CBH instance list. |
| Parameter | Type | Description |
|---|---|---|
| zh_cn | String | Quota description. |
| en_us | String | Quota description. |
| remaining | Integer | Remaining quota. |
| Parameter | Type | Description |
|---|---|---|
| publicip | String | EIP of the CBH instance. The default value null is returned. |
| expTime | String | Expiration time of the CBH instance. |
| startTime | String | Start time of the CBH instance, in timestamp format. |
| endTime | String | End time of the CBH instance, in timestamp format. |
| releaseTime | String | Release time of the CBH instance, in timestamp format. |
| name | String | CBH instance name. |
| instanceId | String | CBH instance ID, in UUID format. |
| privateIp | String | Private IP address of the CBH instance. |
| taskStatus | String | The status of tasks for the CBH instance. |
| status | String | CBH instance status. |
| created | String | Time when the CBH instance was created, in UTC format. |
| region | String | Site where the CBH instance was located. |
| zone | String | Region where the CBH instance is located. |
| availability_zone_display | String | Name of the region where the CBH instance is located. |
| vpcId | String | ID of the VPC where the CBH instance is located. |
| subnetId | String | ID of the subnet where the CBH instance is located. |
| securityGroupId | String | ID of the security group to which the CBH instance belongs. |
| specification | String | CBH instance specifications. |
| update | String | Whether the CBH instance can be upgraded. |
| createinstanceStatus | String | Status of a CBH instance during instance creation. |
| failReason | String | Cause of the CBH instance creation failure. |
| instanceKey | String | CBH instance tag key. |
| orderId | String | Order ID. |
| periodNum | String | Number of subscription periods of a CBH instance. |
| resourceId | String | Resource ID of the CBH instance, in UUID format. |
| bastion_type | String | CBH instance type. |
| alterPermit | String | Whether the CBH instance can be expanded. |
| publicId | String | ID of the EIP bound to the CBH instance. The value is in UUID format. |
| bastionVersion | String | Current version of the CBH instance. |
| newBastionVersion | String | The version the CBH instance can be upgraded to. |
| instanceStatus | String | CBH instance status. |
| instanceDescription | String | CBH instance status description. |
| slaveZone | String | AZ where the standby instance locates. By default, null is returned. |
| enterpriseProjectId | String | ID of the enterprise project to which the CBH instance belongs. |
| instanceType | String | CBH instance type. |
| haId | String | ID of the primary/standby CBH instance. |
| slaveZoneDisplay | String | Name of the AZ where the standby CBH instance is located. For a single-node CBH instance and a standby CBH instance, null is returned. For an HA CBH instance, the name of the AZ where the standby instance resides is returned. |
| webPort | String | Port for accessing the web page of the CBH instance. |
| vip | String | Floating IP address of the CBH instance. The default value null is returned. |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error Code |
| error_description | String | Invalid request parameter. |
Status code: 401
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_description | String | Token verification failed. |
Status code: 403
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error Code. |
| error_description | String | Permissions required. |
Status code: 404
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_description | String | No CBH instances found. |
Example Requests
None
Example Responses
Status code: 200
The CBH instance list is queried successfully.
{
"total" : 1,
"quotaDetail" : null,
"instance" : [ {
"publicip" : "null",
"expTime" : "14",
"startTime" : "1669911490000",
"endTime" : "1672675199000",
"releaseTime" : "1675267199000",
"name" : "CBH-8a80",
"instanceId" : "f7854c8d-9bbc-4970-8b7d-6ed8280f6bfe",
"privateIp" : "192.168.0.67",
"status" : "SHUTOFF",
"taskStatus" : "NO_TASK",
"created" : "2022-12-02 00:04:42.0",
"region" : "xx-xxxx-4",
"zone" : "xx-xxxx-4c",
"availability_zone_display" : "AZ 3",
"vpcId" : "279e8217-4a8a-4d83-8fd9-b8f14d47170b",
"subnetId" : "a86217e6-a96d-4803-ae5c-b57da6811249",
"securityGroupId" : "c5564ac2-bdcf-4e45-b892-92c2ae79ecd9",
"specification" : "cbh.basic.50",
"update" : "OLD",
"createinstanceStatus" : "starting-cbs-service",
"failReason" : "No FailReason Now",
"instanceKey" : "6771",
"orderId" : "CS22120200031TOLA",
"periodNum" : "1,2",
"resourceId" : "01903dfb-11fc-4ae4-8bff-bca51d11ad92",
"bastion_type" : "OEM",
"publicId" : "",
"alterPermit" : "1",
"bastionVersion" : "3.3.41.0",
"newBastionVersion" : "3.3.40.1",
"instanceStatus" : "error",
"instanceDescription" : "LoadBalance service error!,2022-12-19 17:14:30,{\"d_usage\":\"0.80\",\"m_usage\":\"30.04\",\"c_usage\":\"0.62\",\"session_count\":\"0\"",
"webPort" : "443",
"enterpriseProjectId" : "0",
"vip" : null,
"slaveZone" : null,
"slaveZoneDisplay" : null,
"haId" : null,
"instanceType" : null
} ]
} Status Codes
| Status Code | Description |
|---|---|
| 200 | The CBH instance list is queried successfully. |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
