Querying DCS Instance Configuration Parameters
Function
This API is used to query the configuration parameters of a DCS instance.
Calling Method
For details, see Calling APIs.
URI
GET /v2/{project_id}/instances/{instance_id}/configs
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
instance_id |
Yes |
String |
Parameter description: Instance ID. It can be viewed on the instance details page on the DCS console. Constraints: N/A. Value range: N/A. Default value: N/A. |
project_id |
Yes |
String |
Parameter description: Project ID. For details, see Obtaining a Project ID. Constraints: N/A. Value range: N/A. Default value: N/A. |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
config_time |
String |
Parameter description: Time when the instance was operated on. For example, 2017-03-31T12:24:46.297Z. Value range: N/A. |
instance_id |
String |
Parameter description: Instance ID. Value range: N/A. |
redis_config |
Array of QueryRedisConfig objects |
Parameter description: Array of configuration items of the instance. Value range: N/A. |
config_status |
String |
Parameter description: Instance status that is being modified or has been modified. Value range:
|
status |
String |
Parameter description: Instance status. Value range:
|
Parameter |
Type |
Description |
---|---|---|
param_value |
String |
Parameter description: Configuration parameter value. Value range: N/A. |
value_type |
String |
Parameter description: Type of the configuration parameter value. For example, Integer and String. Value range: N/A. |
value_range |
String |
Parameter description: Range of the configuration parameter value. Value range: N/A. |
description |
String |
Parameter description: Description of the configuration item. Value range: N/A. |
default_value |
String |
Parameter description: Default value of the configuration parameter. Value range: N/A. |
param_name |
String |
Parameter description: Configuration parameter name. Value range: N/A. |
param_id |
String |
Parameter description: Configuration parameter ID. Value range: N/A. |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_msg |
String |
Parameter description: Error message. Value range: N/A. |
error_code |
String |
Parameter description: Error code. Value range: For details, see Error Codes. |
error_ext_msg |
String |
Parameter description: Extended error information. This parameter is not used currently and is set to null. Value range: N/A. |
Status code: 500
Parameter |
Type |
Description |
---|---|---|
error_msg |
String |
Parameter description: Error message. Value range: N/A. |
error_code |
String |
Parameter description: Error code. Value range: For details, see Error Codes. |
error_ext_msg |
String |
Parameter description: Extended error information. This parameter is not used currently and is set to null. Value range: N/A. |
Example Requests
GET https://{dcs_endpoint}/v2/{project_id}/instances/{instance_id}/configs
Example Responses
Status code: 200
Instance configuration parameters queried successfully.
{ "instance_id" : "50829e5a-a4fc-4c01-8651-80be8a491602", "config_status" : "SUCCESS", "config_time" : "2020-07-06T07:04:31.464Z", "redis_config" : [ { "param_id" : "1", "param_name" : "timeout", "description" : "Close the connection after a client is idle for N seconds (0 to disable)", "param_value" : "101", "value_range" : "0-7200", "value_type" : "Interger", "default_value" : "0" } ], "status" : "RUNNING" }
Status Codes
Status Code |
Description |
---|---|
200 |
Instance configuration parameters queried successfully. |
400 |
Invalid request. |
500 |
Internal service error. |
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.