View parameters for a lightweight database instance.
Operation description
This operation retrieves the parameter details of a lightweight database instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
swas-open:DescribeDatabaseInstanceParameters |
get |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The ID of the region where the lightweight database instance is located. You can call ListRegions to query the most recent region list. |
cn-hangzhou |
| DatabaseInstanceId |
string |
Yes |
The ID of the lightweight database instance. |
db-38263fa955774501a2ae1bdaed6f**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data returned. |
||
| RequestId |
string |
The request ID. |
30637AD6-D977-4833-A54C-CC89483E**** |
| Engine |
string |
The database engine. Currently, only |
MySQL |
| EngineVersion |
string |
The engine version. Valid values:
|
5.5 |
| ConfigParameters |
array<object> |
A list of configuration parameters being synchronized. After you modify and submit parameters, the instance starts to synchronize them. Once synchronization is complete, these parameters are removed from this list. |
|
|
object |
The details of a configuration parameter that is being synchronized. |
||
| ParameterDescription |
string |
The description of the parameter. |
Auto-increment columns are incremented by this |
| ParameterName |
string |
The name of the parameter. |
auto_increment_increment |
| ParameterValue |
string |
The value of the parameter. Note
The value varies by parameter. |
1 |
| ForceModify |
string |
Indicates whether you can modify the parameter value. Valid values:
|
true |
| ForceRestart |
string |
Indicates if the database must be restarted for a parameter modification to take effect. Valid values:
Default value: |
false |
| CheckingCode |
string |
The value range of the parameter. Note
The value range varies by parameter. |
[1-65535] |
| RunningParameters |
array<object> |
A list of running parameters. |
|
|
object |
The details of a running parameter. |
||
| ParameterDescription |
string |
The description of the running parameter. |
When this variable has a value of 1 (the default), the server automatically grants the EXECUTE and ALTER ROUTINE privileges to the creator of a stored routine, if the user cannot already execute and alter or drop the routine. (The ALTER ROUTINE privilege is required to drop the routine.) The server also automatically drops those privileges from the creator when the routine is dropped. If automatic_sp_privileges is 0, the server does not automatically add or drop these privileges. |
| ParameterName |
string |
The name of the parameter. |
autocommit |
| ParameterValue |
string |
The value of the running parameter. |
ON |
| ForceModify |
string |
Indicates whether you can modify the parameter value. Valid values:
|
true |
| ForceRestart |
string |
Indicates if the database must be restarted for a parameter modification to take effect. Valid values:
Default value: |
false |
| CheckingCode |
string |
The value range of the parameter. Note
The value range varies by parameter. |
[ON|OFF] |
Examples
Success response
JSON format
{
"RequestId": "30637AD6-D977-4833-A54C-CC89483E****",
"Engine": "MySQL",
"EngineVersion": "5.5",
"ConfigParameters": [
{
"ParameterDescription": "Auto-increment columns are incremented by this",
"ParameterName": "auto_increment_increment",
"ParameterValue": "1",
"ForceModify": "true",
"ForceRestart": "false",
"CheckingCode": "[1-65535]"
}
],
"RunningParameters": [
{
"ParameterDescription": "When this variable has a value of 1 (the default), the server automatically grants the EXECUTE and ALTER ROUTINE privileges to the creator of a stored routine, if the user cannot already execute and alter or drop the routine. (The ALTER ROUTINE privilege is required to drop the routine.) The server also automatically drops those privileges from the creator when the routine is dropped. If automatic_sp_privileges is 0, the server does not automatically add or drop these privileges.",
"ParameterName": "autocommit",
"ParameterValue": "ON",
"ForceModify": "true",
"ForceRestart": "false",
"CheckingCode": "[ON|OFF]"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.