Scaling Up Storage Space
API Description
This API is used to scale up the storage space of a DB instance.
URI
|
Name |
Type |
IN |
Mandatory |
Description |
|---|---|---|---|---|
|
project_id |
string |
path |
Yes |
Project ID of a tenant in a region. To obtain the project ID, see Obtaining a Project ID. |
|
instance_id |
string |
path |
Yes |
Instance ID, which can be obtained by calling the API described in Querying Instances and Details. If you do not have an instance, call the API described in Creating a DB Instance to create one. |
Request Parameters
|
Parameter |
Type |
IN |
Mandatory |
Description |
|---|---|---|---|---|
|
X-Auth-Token |
string |
header |
Yes |
User token |
|
Parameter |
Type |
Mandatory |
Description |
|---|---|---|---|
|
volume |
Object |
Yes |
The detailed information about the volume request. For more information, see Table 4. |
|
is_auto_pay |
Boolean |
No |
Whether the order is automatically paid from your account when you scale up the storage of a yearly/monthly DB instance. This parameter does not affect the payment mode of automatic renewal.
|
|
Parameter |
Type |
Mandatory |
Description |
|---|---|---|---|
|
group_id |
String |
No |
The role ID.
|
|
size |
String |
Yes |
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. |
- Request example
Replica sets:
{ "volume" : { "size" : 20 } }Single nodes:{ "volume" : { "size" : 20 } }Read replicas in a replica set instance:{ "volume" : { "size" : 20, "node_ids" : [ "8f643d252d834a4c916b2db4322f9955in02" ] } }
Response Parameters
- Parameter description
Table 5 Parameter description Parameter
Type
Mandatory
Description
job_id
String
Yes
The task ID.
order_id
String
No
The order ID. This parameter is returned only when the storage capacity of a yearly/monthly DB instance is expanded.
- Example response
{ "job_id" : "04efe8e2-9255-44ae-a98b-d87cae411890" }
Status Code
For details, see Status Code.
Error Code
For details, see Error Code.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot