Configuring an Autoscaling Policy for Storage Space
Function
This API is used to configure an autoscaling policy for storage space.
Constraints
- This API supports GeminiDB Cassandra and GeminiDB Redis instances.
- This API supports both pay-per-use and yearly/monthly instances.
- For yearly/monthly instances, the system bills new storage space automatically by default.
- Autoscaling is available only when your account balance is sufficient.
- If the instance status is not normal, autoscaling of storage space cannot be configured.
URI
PUT https://{Endpoint}/v3/{project_id}/instances/disk-auto-expansion
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Explanation: Project ID of a tenant in a region. To obtain this value, see Obtaining a Project ID. Constraints: N/A Values: N/A Default value: N/A |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
Explanation: User token Constraints: N/A Values: N/A Default value: N/A |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
instance_ids |
Yes |
Array of strings |
Explanation: IDs of instances for which storage autoscaling is enabled Constraints: A maximum of 50 instances are supported. Values: N/A Default value: N/A |
switch_option |
No |
String |
Explanation: Whether autoscaling is enabled. The value can be: Constraints: N/A Values:
Default value: on |
policy |
No |
diskAutoExpansionPolicy object |
Explanation: Autoscaling policies for storage space. Constraints: N/A Values: N/A Default value: N/A |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
threshold |
No |
Integer |
Explanation: Threshold for triggering autoscaling. Constraints: N/A Values:
Default value:
|
step |
No |
Integer |
Explanation: Autoscaling step (s%). Constraints:
NOTE:
Values:
Default value: 10 |
size |
No |
Integer |
Explanation: Storage limit in GB that autoscaling can increase storage space to. Constraints:
Values: N/A Default value: N/A |
Response Parameters
Status code: 204
No response parameters
Example Request
- Enabling the autoscaling policy of storage space
- URI example
PUT https://gaussdb-nosql.ap-southeast-1.myhuaweicloud.com/v3/619d3e78f61b4be68bc5aa0b59edcf7b/instances/disk-auto-expansion
- Enabling autoscaling for storage space (Set threshold to 90, step to 10, and size to 600.)
{ "instance_ids" : [ "93e4b3eda14349b1b870f72829bc3b9bin06" ], "policy" : { "threshold" : 90, "step" : 10, "size" : 600 } }
- URI example
- Disabling the autoscaling policy of storage space
- URI example
PUT https://gaussdb-nosql.ap-southeast-1.myhuaweicloud.com/v3/619d3e78f61b4be68bc5aa0b59edcf7b/instances/disk-auto-expansion
- Disabling the autoscaling policy of storage space
{ "instance_ids": [ "93e4b3eda14349b1b870f72829bc3b9bin06" ], "switch_option": "off" }
- URI example
Example Response
Status code: 204
No content
{ }
Status Codes
For details, see Status Codes.
Error Codes
For details, see Error Codes.
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