Modifying Configuration Parameters (V2)
Function
You can modify the configuration parameters of your DCS instance to optimize DCS performance based on your requirements.
URI
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| project_id | String | Yes | Project ID. |
| instance_id | String | Yes | ID of the instance to be modified. |
Request
Request parameters
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| redis_config | Table 3 Array | Yes | Array of configuration items of the DCS instance. |
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| param_id | String | Yes | Configuration item ID. |
| param_name | String | Yes | Configuration item name. |
| param_value | String | Yes | Value of the configuration item. |
For possible values of parameters in Table 3, see Table 4.
Example request
PUT https://{dcs_endpoint}/v1.0/{project_id}/instances/{instance_id}/configs {
"redis_config": [
{
"param_id": "1",
"param_name": "timeout",
"param_value": "100"
}
]
} Response
Response parameters
None.
Example response
None
Status Code
| Status Code | Description |
|---|---|
| 204 | DCS instance configurations modified successfully. |
| 400 | Invalid request. |
| 500 | Failed to complete the request because of an internal service error. |
Error Code
For details, see Error Codes.
Last Article: Querying Configuration Parameters (V2)
Next Article: Modifying Configuration Parameters (Unavailable Soon)
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.