forked from docs/doc-exports
Reviewed-by: Bobkova, Natalia <natalia.bobkova@t-systems.com> Co-authored-by: Chen, Junjie <chenjunjie@huawei.com> Co-committed-by: Chen, Junjie <chenjunjie@huawei.com>
13 KiB
13 KiB
Modifying Configuration Parameters
Function
You can modify the configuration parameters of your DCS instance to optimize DCS performance based on your requirements.
URI
PUT /v1.0/{project_id}/instances/{instance_id}/configs
Table 1 describes the parameters.
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
project_id |
String |
Yes |
Project ID. For details on how to obtain the value of this parameter, see Obtaining a Project ID. |
instance_id |
String |
Yes |
ID of the instance to be modified. |
Request
Request parameters
Table 2 describes the request parameters.
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
- Request URL:
PUT https://{dcs_endpoint}/v1.0/{project_id}/instances/{instance_id}/configs
- Example:
{ "redis_config": [ { "param_id": "1", "param_name": "timeout", "param_value": "100" } ] }
Response
Response parameters
None
Example response
None
Parent topic: Parameter Management APIs