查询特性开关 - readCciFeatureGates
功能介绍
该API用于查询特性开关的详细信息。
调用方法
请参见如何调用API。
授权信息
账号具备所有API的调用权限,如果使用账号下的IAM用户调用当前API,该IAM用户需具备调用API所需的权限。
- 如果使用角色与策略授权,具体权限要求请参见权限和授权项。
- 如果使用身份策略授权,当前API调用无需身份策略权限。
URI
GET /v1/{project_id}/feature-gates
| 参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
| project_id | 是 | String | Specifies the project ID. |
请求参数
| 参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
| X-Auth-Token | 是 | String | 调用接口的认证方式分为Token和AK/SK两种,如果您使用的Token方式,此参数为必填,请填写Token的值,获取方式请参见认证鉴权 |
响应参数
状态码:200
| 参数 | 参数类型 | 描述 |
|---|---|---|
| [数组元素] | Array of io.cci.huaweicloud.api.pkg.apis.versioned.featuregates.v1.FeatureGates objects | FeatureGates contains information about feature gates. |
| 参数 | 参数类型 | 描述 |
|---|---|---|
| deprecated | Boolean | Deprecated means the feature will be deprecated. Default doed not return this field. If the feature is about to deprecated, return true. |
| description | String | The description of feature. |
| feature | String | Feature name. |
| type | String | Types of feature values, including "boolean", "int", "list", "string". |
| value | String | Feature value. |
请求示例
无
响应示例
状态码:200
OK
[ {
"description" : "List of resources to be sold.",
"feature" : "sale_policy_list",
"type" : "list",
"value" : "[\"general-computing\"]"
} ] 状态码
| 状态码 | 描述 |
|---|---|
| 200 | OK |
| 400 | BadRequest |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | NotFound |
| 405 | MethodNotAllowed |
| 406 | NotAcceptable |
| 409 | Conflict |
| 415 | UnsupportedMediaType |
| 422 | Invalid |
| 429 | TooManyRequests |
| 500 | InternalError |
| 503 | ServiceUnavailable |
| 504 | ServerTimeout |