This API is used to change the DB instance volume.
PATH: /rds/v1/{project_id}/instances/{instanceId}/action
Method: POST
Name |
Mandatory |
Description |
|---|---|---|
project_id |
Yes |
Specifies the project ID of a tenant in a region. |
instanceId |
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 |
|---|---|---|
resize |
Dictionary data structure. For details, see Table 3. |
Specifies the information about the request parameter volume. |
Name |
Type |
Description |
|---|---|---|
volume |
Dictionary data structure. For details, see Table 4. |
Specifies the information about the request parameter size. |
{
"resize": {
"volume": {
"size": 400
}
}
}
Name |
Type |
Description |
|---|---|---|
extendparam |
Dictionary data structure. For details, see Table 6. |
Indicates the returned extendparam key-value pair. |
Name |
Type |
Description |
|---|---|---|
jobs |
List data structure. For details, see Table 7. |
Indicates the returned jobs parameter information. |
{
"extendparam": {
"jobs": [
{
"id": "2b414788-a600-4883-a023-90e2eb0ea227"
}
]
}
}
For details, see Abnormal Request Results.