Modifying Parameters in a Parameter Template
Function
This API is used to modify parameters in a specified parameter template, including the parameter names, descriptions, and values.
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)
- The modified parameter template name must be different from the name of an existing or a default parameter template.
- Default parameter templates cannot be modified.
- The values can only be set for the parameters that are defined by the system and can be modified.
URI
Requests
- Parameter description
At least one parameter in the request body must be specified. Otherwise, the request fails to be delivered.
Table 2 Parameter description Name
Mandatory
Type
Description
name
No
String
Specifies the parameter template name. It contains a maximum of 64 characters and can contain only uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and periods (.).
description
No
String
Specifies the parameter template description. It contains a maximum of 256 characters except the following special characters: >!<"&'= The value is left blank by default.
values
No
Object
Specifies the parameter values defined by users based on the default parameter template. If the value is empty, the parameter value is not changed.
For details, see Table 3.
Table 3 values field data structure description Name
Mandatory
Type
Description
key
No
String
Specifies the parameter name.
For example, for "concurrent_reads":"64", concurrent_reads indicates the key.
If the key is not empty, value cannot be left empty.
value
No
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}/configurations/{config_id} - Example request
{ "name": "configuration_test", "description": "configuration_test", "values": { "concurrent_reads": "64" } }
Status Code
For more information, see Status Code.
Error Code
For more information, see Error Code.
Last Article: Creating a Parameter Template
Next Article: Applying a Parameter Template
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.