Querying Storage Autoscaling Policies of a DB Instance
Function
This API is used to query storage autoscaling policies of a DB instance. Before calling this API:
- Learn how to authenticate this API.
URI
GET https://{Endpoint}/v3/{project_id}/instances/{instance_id}/auto-enlarge-policy
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Explanation: Project ID of a tenant in a region. For details about how to obtain the project ID, see Obtaining a Project ID. Restrictions: None Value range: The value can contain 32 characters. Only letters and digits are allowed. Default value: None |
| instance_id | Yes | String | Instance ID, which is compliant with the UUID format. |
Request Parameters
None
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| switch_option | Boolean | Whether to enable or disable storage autoscaling. |
| limit_volume_size | Integer | Maximum storage that can be automatically scaled to. |
| min_volume_size | Integer | Minimum storage that can be automatically scaled to. |
| max_volume_size | Integer | Maximum storage that the system can provide for the instance. |
| trigger_available_percent | Integer | Percentage of available storage. The storage will be automatically scaled up if the available storage drops to or below the value of this parameter. |
| percents | Array of integers | Percentages of available storage that you can choose from. |
| step_size | Integer | Scaling step when the storage is scaled by fixed size. |
| step_percent | Integer | Scaling step when the storage is scaled by percentage. |
Example Request
Querying storage autoscaling policies of a DB instance
GET https://gaussdb-opengauss.eu-west-101.myhuaweicloud.eu/v3/0c8243400d37468bb4aed3cc94c2911d/instances/f9b5f9b296ec6808e067in14/auto-enlarge-policy
Example Response
Storage autoscaling policies queried.
{
"switch_option" : true,
"limit_volume_size" : 200,
"min_volume_size" : 160,
"max_volume_size" : 240,
"trigger_available_percent" : 20,
"percents": [
20,
25,
50
],
"step_size": 200,
"step_percent": null
} Status Code
- Normal
- Abnormal
For details, see Status Codes.
Error Code
For details, see Error Codes.