Invokes the DescribeAutoScalingConfig operation to query the elastic scaling feature configuration of an instance.
Operation description
Before you begin:
Use the latest version of the Alibaba Cloud or DAS SDK.
When calling DAS by using the SDK, set the region to cn-shanghai.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hdm:DescribeAutoScalingConfig |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
pc-2ze1prap1k46r**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The returned status code. |
200 |
| Message |
string |
The returned message. Note
If the request is successful, Successful is returned. If the request fails, an error message such as an error code is returned. |
Successful |
| RequestId |
string |
The request ID. |
B6D17591-B48B-4D31-9CD6-9B9796B2**** |
| Success |
string |
Indicates whether the request is successful. Valid values:
|
true |
| Data |
object |
The elastic scaling feature configuration of the instance. |
|
| Spec |
object |
The specification elastic scaling feature configuration. |
|
| Upgrade |
boolean |
Indicates whether automatic specification scale-up is enabled. Valid values:
|
true |
| CpuUsageUpperThreshold |
integer |
The average CPU utilization threshold that triggers automatic specification scale-up. Unit: %. |
70 |
| MemUsageUpperThreshold |
integer |
The average memory utilization threshold that triggers automatic specification scale-up. Unit: %. |
70 |
| MaxSpec |
string |
The maximum specification for automatic scale-up. For details, refer to the product specification documentation for each database instance:
|
polar.mysql.x8.12xlarge |
| MaxReadOnlyNodes |
integer |
The maximum number of read-only nodes for the instance. |
10 |
| ObservationWindowSize |
string |
The observation window. The value consists of a number and a time unit suffix. The time unit suffixes are:
Note
For example, 5m indicates 5 minutes. |
5m |
| CoolDownTime |
string |
The cool-down period. The value consists of a number and a time unit suffix. The time unit suffixes are:
Note
For example, 5m indicates 5 minutes. |
5m |
| Downgrade |
boolean |
Indicates whether automatic specification scale-down is enabled. Valid values:
|
true |
| Storage |
object |
The Automatic storage scaling feature configuration of the instance. |
|
| Upgrade |
boolean |
Indicates whether automatic storage scaling is enabled. Valid values:
|
true |
| DiskUsageUpperThreshold |
integer |
The average storage utilization threshold that triggers automatic storage scaling. Unit: %. |
70 |
| MaxStorage |
integer |
The maximum storage capacity. Unit: GB. |
32000 |
| Resource |
object |
The local resource elastic scaling feature configuration of the instance. |
|
| Enable |
boolean |
Indicates whether local resource elastic scaling is enabled. Valid values:
|
true |
| CpuUsageUpperThreshold |
integer |
The average CPU utilization threshold that triggers automatic local resource scale-up. Unit: %. |
70 |
| CpuStep |
integer |
The CPU scale-up increment. |
2 |
| UpgradeObservationWindowSize |
string |
The scale-up observation window. The value consists of a number and a time unit suffix. The time unit suffixes are:
Note
For example, 5m indicates 5 minutes. |
5m |
| DowngradeObservationWindowSize |
string |
The scale-down observation window. The value consists of a number and a time unit suffix. The time unit suffixes are:
Note
For example, 5m indicates 5 minutes. |
5m |
| Shard |
object |
The shard elastic scaling feature configuration of the instance. |
|
| Upgrade |
boolean |
Indicates whether automatic shard addition is enabled. Valid values:
|
true |
| MemUsageUpperThreshold |
integer |
The average memory utilization threshold that triggers automatic shard addition. Unit: %. |
70 |
| MaxShards |
integer |
The maximum total number of shards for the instance. |
16 |
| UpgradeObservationWindowSize |
string |
The observation window for automatic shard addition. The value consists of a number and a time unit suffix. The time unit suffixes are:
Note
For example, 5m indicates 5 minutes. |
5m |
| Downgrade |
boolean |
Indicates whether automatic shard removal is enabled. Valid values:
|
true |
| MemUsageLowerThreshold |
integer |
The average memory utilization threshold that triggers automatic shard removal. Unit: %. |
30 |
| MinShards |
integer |
The minimum total number of shards for the instance. |
4 |
| DowngradeObservationWindowSize |
string |
The observation window for automatic shard removal. The value consists of a number and a time unit suffix. The time unit suffixes are:
Note
For example, 1d indicates 1 day. |
1d |
| Bandwidth |
object |
The bandwidth elastic scaling feature configuration of the instance. |
|
| Upgrade |
boolean |
Indicates whether automatic bandwidth upgrade is enabled. Valid values:
|
true |
| BandwidthUsageUpperThreshold |
integer |
The average bandwidth usage threshold that triggers automatic bandwidth upgrade. Unit: %. |
70 |
| ObservationWindowSize |
string |
The observation window for automatic bandwidth upgrade. The value consists of a number and a time unit suffix. The time unit suffixes are:
Note
For example, 5m indicates 5 minutes. |
5m |
| Downgrade |
boolean |
Indicates whether automatic bandwidth downgrade is enabled. Valid values:
|
true |
| BandwidthUsageLowerThreshold |
integer |
The average bandwidth usage threshold that triggers automatic bandwidth downgrade. Unit: %. |
30 |
Examples
Success response
JSON format
{
"Code": "200",
"Message": "Successful",
"RequestId": "B6D17591-B48B-4D31-9CD6-9B9796B2****",
"Success": "true",
"Data": {
"Spec": {
"Upgrade": true,
"CpuUsageUpperThreshold": 70,
"MemUsageUpperThreshold": 70,
"MaxSpec": "polar.mysql.x8.12xlarge",
"MaxReadOnlyNodes": 10,
"ObservationWindowSize": "5m",
"CoolDownTime": "5m",
"Downgrade": true
},
"Storage": {
"Upgrade": true,
"DiskUsageUpperThreshold": 70,
"MaxStorage": 32000
},
"Resource": {
"Enable": true,
"CpuUsageUpperThreshold": 70,
"CpuStep": 2,
"UpgradeObservationWindowSize": "5m",
"DowngradeObservationWindowSize": "5m"
},
"Shard": {
"Upgrade": true,
"MemUsageUpperThreshold": 70,
"MaxShards": 16,
"UpgradeObservationWindowSize": "5m",
"Downgrade": true,
"MemUsageLowerThreshold": 30,
"MinShards": 4,
"DowngradeObservationWindowSize": "1d"
},
"Bandwidth": {
"Upgrade": true,
"BandwidthUsageUpperThreshold": 70,
"ObservationWindowSize": "5m",
"Downgrade": true,
"BandwidthUsageLowerThreshold": 30
}
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParams | The request parameters are invalid. | The request parameters are invalid. |
| 403 | NoPermission | You are not authorized to do this action. | You do not have the permissions to perform this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.