This API is used to set DB instance parameters.
A parameter template (with same name as the DB instance) will be created if needed.
PATH: /rds/v1/{project_id}/instances/{nodeId}/parameters
Method: PUT
Name |
Mandatory |
Description |
|---|---|---|
project_id |
Yes |
Specifies the project ID of a tenant in a region. |
nodeId |
Yes |
Specifies the primary node ID of the DB instance. NOTE:
This field is not the DB instance ID. You are advised to use API v3 and the DB instance ID to perform related operations. |
Name |
Type |
Description |
|---|---|---|
values |
Dictionary data structure |
Specifies the parameter value list. key specifies the parameter name. value specifies the parameter value. |
{
"values": {
"connect_timeout": 17,
"sync_binlog": 1
}
}
Name |
Type |
Description |
|---|---|---|
shouldRestart |
String |
Indicates whether the parameter needs to be restarted for the modifications to take effect.
|
setParameteResult |
String |
Indicates the parameter modification result.
|
{
"shouldRestart": "0",
"setParameteResult": "0"
}
For details, see Abnormal Request Results.