You are not logged in.
ResizeInstanceVolume
This API is used to scale up the storage space of a DB instance.
Name | Type | IN | Mandatory | Description |
---|---|---|---|---|
x-auth-token | string | header | Yes | Specifies the user token obtained from the IAM service. |
instance_id | string | path | Yes | Specifies the instance ID, which can be obtained by calling the API for querying instances and details. If you do not have an instance, you can call the API used for creating an instance. |
project_id | string | path | Yes | Specifies the project ID of a tenant in a region. |
Name | Type | Mandatory | Description |
---|---|---|---|
volume | ResizeInstanceVolumeOption object | Yes | Specifies detailed information about the volume request. |
is_auto_pay | boolean | No | 扩容包年包月实例的存储容量时可指定,表示是否自动从账户中支付,此字段不影响自动续订的支付方式。
|
Name | Type | Mandatory | Description |
---|---|---|---|
group_id | string | No | Specifies the group ID.
|
size | string | Yes | Specifies the requested disk capacity. The value must be an integer multiple of 10 and greater than the current storage space.
|
node_ids | Array of strings | No | This parameter is required when the disk capacity of the read replica of a replica set instance is expanded. Only one element can be transferred in the list. |
Success.
Name | Type | Description |
---|---|---|
job_id | string | Indicates the task ID. |
order_id | string | 订单ID,仅扩容包年包月实例的存储容量时返回该参数。 |
Client or server error.
Name | Type | Description |
---|---|---|
error_code | string | Specifies the error returned when a task submission exception occurs. |
error_msg | string | Specifies the description of the error returned when a task submission exception occurs. |
Clusters:
"POST https://{endpoint}/v3/054e292c9880d4992f02c0196d3ea468/instances/054e292c9880d4992f02c0196d3ein02/enlarge-volume"
{
"volume": {
"group_id": "1b0c008adbcb495c81a3d5762a02a2abgr02",
"size": 20
}
}
Replica sets:
"POST https://{endpoint}/v3/054e292c9880d4992f02c0196d3ea468/instances/054e292c9880d4992f02c0196d3ein02/enlarge-volume"
{
"volume": {
"size": 20
}
}
Single nodes:
"POST https://{endpoint}/v3/054e292c9880d4992f02c0196d3ea468/instances/054e292c9880d4992f02c0196d3ein02/enlarge-volume"
{
"volume": {
"size": 20
}
}
The read replica of a replica set:
"POST https://{endpoint}/v3/054e292c9880d4992f02c0196d3ea468/instances/054e292c9880d4992f02c0196d3ein02/enlarge-volume"
{
"volume": {
"size": 20,
"node_ids": [
"8f643d252d834a4c916b2db4322f9955no02"
]
}
}
Success.
{
"job_id": "04efe8e2-9255-44ae-a98b-d87cae411890"
}