Updated on 2024-11-26 GMT+08:00

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.
Table 1 Parameter description

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.
Table 2 Parameter description

Parameter

Type

Mandatory

Description

redis_config

Array

Yes

Array of configuration items of the DCS instance.

Table 3 redis_config parameter description

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

Status Code

Table 4 describes the status code of successful operations. For details about other status codes, see Table 1.

Table 4 Status code

Status Code

Description

204

DCS instance configurations modified successfully.