Obtaining the Backend Switch Control Information List
Function
This API is used to obtain the switch control information list of the current version.
Calling Method
For details, see Calling APIs.
URI
GET /v2/{project_id}/cbs/feature/config
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Definition Project ID, which uniquely identifies a project. To obtain the value, see Obtaining a Project ID. Constraints N/A Range The value can contain 32 characters. Only letters and digits are allowed. Default Value N/A |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | Yes | String | Definition User token. You can obtain the token by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token. For details, see Obtaining a User Token. Constraints N/A Range String type. The value can contain 1 to 28,000 characters. Default Value N/A |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| switch_info | SwitchInfo object | Status of service functions. |
| version_info | VersionInfo object | Status of instance edition functions. |
| Parameter | Type | Description |
|---|---|---|
| is_support_unibuy | Boolean | Whether unibuy is supported. |
| is_support_float_ipv6 | Boolean | Whether floating IPv6 addresses are supported. |
| is_support_admin_login | Boolean | Whether administrator login is supported. |
| is_support_update_ha | Boolean | Whether HA update is supported. |
| is_support_tms | Boolean | Whether TMS is supported. |
| is_support_eps | Boolean | Whether EPS is supported. |
| is_support_iam_login | Boolean | Whether IAM login is supported. |
| is_support_ipv6 | Boolean | Whether IPv6 is supported. |
| is_support_ha | Boolean | Whether HA is supported. |
| is_support_reset | Boolean | Whether the password of the admin user can be reset and whether the admin login mode is supported. |
| is_support_upgrade_instance | Boolean | Whether the instance can be upgraded. |
| is_support_change_security_group | Boolean | Whether security groups can be changed. |
| is_support_manually_ip | Boolean | Whether the IP address can be manually configured. |
| is_support_capacity_expantion | Boolean | Whether the capacity can be expanded. |
| is_support_ha_expantion | Boolean | Whether HA expansion is supported. |
| is_support_agency_authorize | Boolean | Whether the proxy authorization is supported. |
| is_support_change_vpc | Boolean | Whether the VPC can be changed. |
| is_support_cluster | Boolean | Whether clusters are supported. |
| is_support_ondemand | Boolean | Whether pay-per-use billing is supported. |
| is_support_period | Boolean | Whether yearly/monthly billing is supported. |
| Parameter | Type | Description |
|---|---|---|
| require_eip | String | EIP-enabled instance versions supported. |
| iam_login | String | Instance versions that support IAM login. |
| admin_login | String | Instance versions that support administrator login. |
| float_ipv6 | String | Instance versions that support floating IPv6 addresses are supported. |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_description | String | Incorrect request parameters. |
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 | Not CBH instances found. |
Example Requests
None
Example Responses
Status code: 200
{
"switch_info" : {
"is_support_unibuy" : false,
"is_support_float_ipv6" : true,
"is_support_admin_login" : true,
"is_support_update_ha" : true,
"is_support_tms" : true,
"is_support_eps" : true,
"is_support_iam_login" : true,
"is_support_ipv6" : true,
"is_support_ha" : true,
"is_support_reset" : true,
"is_support_upgrade_instance" : true,
"is_support_change_security_group" : true,
"is_support_manually_ip" : true,
"is_support_capacity_expantion" : true,
"is_support_ha_expantion" : true,
"is_support_agency_authorize" : true,
"is_support_change_vpc" : true,
"is_support_cluster" : true,
"is_support_ondemand" : false,
"is_support_period" : true
},
"version_info" : {
"require_eip" : "3.3.2.0",
"iam_login" : "3.3.44.0",
"admin_login" : "3.3.52.1",
"float_ipv6" : "3.3.56.0"
}
} Status Codes
| Status Code | Description |
|---|---|
| 200 | get switch config info Success |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Access denied. |
| 404 | Not Found |
Error Codes
See Error Codes.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot