Querying FeatureGates
Function
This API is used to query detailed information about feature gates.
Calling Method
For details, see Calling APIs.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, no identity policy-based permission required for calling this API.
URI
GET /v1/{project_id}/feature-gates
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Specifies the project ID. |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | Yes | String | Requests for calling an API can be authenticated using either a token or an AK/SK pair. If token authentication is used, this parameter is mandatory and must be set to a user token. For details, see Authentication. |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| [items] | Array of io.cci.huaweicloud.api.pkg.apis.versioned.featuregates.v1.FeatureGates objects | FeatureGates contains information about feature gates. |
| Parameter | Type | Description |
|---|---|---|
| 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. |
Example Requests
None
Example Responses
Status code: 200
OK
[ {
"description" : "List of resources to be sold.",
"feature" : "sale_policy_list",
"type" : "list",
"value" : "[\"general-computing\"]"
} ] Status Codes
| Status Code | Description |
|---|---|
| 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 |
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