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 | Project ID. To obtain the value, see Obtaining a Project ID. |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | Yes | String | User token. You can obtain it by calling the IAM API for obtaining a user token. The token is the value of X-Subject-Token in the response header. For details, see Obtaining a User Token. |
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 resetting 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 is supported. |
| is_support_period | Boolean | Whether monthly/yearly subscription is supported. |
| Parameter | Type | Description |
|---|---|---|
| require_eip | Boolean | Whether EIP is supported. |
| iam_login | Boolean | Whether IAM login is supported. |
| admin_login | Boolean | Whether administrator login is supported. |
| float_ipv6 | Boolean | Whether 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 | Failed to verify the token. |
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
get switch config info Success
"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.
Feedback
Was this page helpful?
Provide feedbackThank 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