Updated on 2025-08-06 GMT+08:00

Modifying the Parameter Settings of a Cluster

Function

This API is used to modify the parameter settings of a cluster.

Calling Method

For details, see Calling APIs.

URI

PUT /v2/{project_id}/clusters/{cluster_id}/configurations/{configuration_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Definition

Project ID. To obtain the value, see Obtaining a Project ID.

Constraints

N/A

Range

N/A

Default Value

N/A

cluster_id

Yes

String

Definition

Cluster ID. For details about how to obtain the value, see Obtaining the Cluster ID.

Constraints

N/A

Range

N/A

Default Value

N/A

configuration_id

Yes

String

Definition

Parameter template ID.

Constraints

N/A

Range

N/A

Default Value

N/A

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

configurations

Yes

Array of ConfigurationParameterValue objects

Definition

Cluster parameter configuration list.

Range

N/A

Table 3 ConfigurationParameterValue

Parameter

Mandatory

Type

Description

type

Yes

String

Definition

Parameter type.

Range

cn or dn.

name

Yes

String

Definition

Parameter name.

Range

N/A

value

Yes

String

Definition

Parameter value.

Range

N/A

Response Parameters

Status code: 200

Custer parameter settings modified.

None

Example Requests

Change the CN and DN types of the enable_constraint_optimization parameter in a cluster to off.

PUT https://{Endpoint}/v2/89cd04f168b84af6be287f71730fdb4b/clusters/4ca46bf1-5c61-48ff-b4f3-0ad4e5e3ba90/configurations/2846d355-cd2a-4239-ae54-a7aef0b7963d

{
  "configurations" : [ {
    "type" : "cn",
    "name" : "enable_constraint_optimization",
    "value" : "off"
  }, {
    "type" : "dn",
    "name" : "enable_constraint_optimization",
    "value" : "off"
  } ]
}

Example Responses

None

Status Codes

Status Code

Description

200

Custer parameter settings modified.

400

Request error.

401

Authentication failed.

403

You do not have required permissions.

404

No resources found.

500

Internal server error.

503

Service unavailable.