Modifying Parameters of a Specified DB Instance
Function
This API is used to modify parameters of a specified DB instance.
Constraints
- This API supports the following DB instances:
- GaussDB(for Cassandra)
- GaussDB(for Mongo) cluster 3.4 and replica set 4.0
- GaussDB(for Influx)
- This API supports GaussDB(for Cassandra) instances.
- The values can only be set for the parameters that are defined by the system and can be modified.
- This API is an asynchronous API. A successful response does not indicate that the parameters are successfully modified.
URI
Requests
- Parameter description
Table 2 Parameter description Name
Mandatory
Type
Description
values
Yes
Object
Specifies the parameter values defined by users based on the default parameter template.
For details, see Table 3.
Table 3 values field data structure description Name
Mandatory
Type
Description
key
Yes
String
Specifies the parameter name.
For example, for "concurrent_reads":"64", concurrent_reads indicates the key.
value
Yes
String
Specifies the parameter value. For example, for "concurrent_reads":"64", 64 indicates the value.
- Request header
PUT https://GaussDB NoSQL_Endpoint/v3/{project_id}/instances/{instance_id}/configurations - Example request
{ "values": { "concurrent_reads": "64" } }
Responses
- Parameter description
Table 4 Parameter description Name
Type
Description
job_id
String
Indicates the ID of the asynchronous task for modifying instance parameters.
restart_required
Boolean
Indicates whether the instance needs to be restarted.
- If the value is true, restart is required.
- If the value is false, restart is not required.
- Response example
{ "job_id": "fde51b36-c4f5-4424-9ac4-bf286f21e063", "restart_required": false }
Status Code
For more information, see Status Code.
Error Code
For more information, see Error Code.
Last Article: Applying a Parameter Template
Next Article: Obtaining Parameters of a Specified DB Instance
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.