Queries scaling rules.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
edas:ReadApplication |
get |
*Application
|
None | None |
Request syntax
GET /pop/v5/app/scalingRules HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
Yes |
The ID of the application. |
33e39be9-3e5f-********* |
| GroupId |
string |
Yes |
The ID of the instance group to which the application is deployed. |
d8bb9d60-9************** |
| Mode |
string |
No |
The type of the scaling rule. You can leave this parameter empty. Valid values:
|
SCALE_IN |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The content that is returned. |
||
| Code |
integer |
The HTTP status code that is returned. |
200 |
| Message |
string |
The message that is returned. |
success |
| UpdateTime |
integer |
The time when the scaling rule was last updated. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. |
1574251601785 |
| RequestId |
string |
The ID of the request. |
D16979DC-4D42-*********** |
| Data |
object |
The data that is returned. |
|
| OversoldFactor |
integer |
The overcommit ratio supported by a Docker cluster. Valid values:
|
1 |
| VpcId |
string |
The ID of the virtual private cloud (VPC). |
vpc-wz9b246z****** |
| UpdateTime |
integer |
The time when the scaling rule was last updated. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. |
1574251601785 |
| ClusterType |
integer |
The type of the cluster. Valid values:
|
2 |
| RuleList |
object |
||
| Rule |
array<object> |
The array data of the scaling rule. |
|
|
object |
The object data of the scaling rule. |
||
| VpcId |
string |
The ID of the VPC. |
vpc-wz9b246z****** |
| UpdateTime |
integer |
The time when the scaling rule was last modified. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. |
1574251601785 |
| CreateTime |
integer |
The time when the scaling rule was created. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. |
1574251601801 |
| Rt |
integer |
The service latency that triggers the scaling rule. Unit: milliseconds. |
1 |
| SpecId |
string |
The ID of the specification. |
03f493c0-xxxx-xxxx-xxxx-12e85cadeb41 |
| MultiAzPolicy |
string |
The policy of auto scaling across multiple zones. Valid values:
|
PRIORITY |
| ResourceFrom |
string |
The source of the instance that you want to add during a scale-out. Valid values:
|
AVAILABLE |
| Mode |
string |
The type of the scaling rule. Valid values:
|
SCALE_OUT |
| LoadNum |
integer |
The system load that triggers the scaling rule. The system load is evaluated based on the number of processes that are being executed by CPUs and the number of processes that wait to be executed by CPUs. |
1 |
| TemplateVersion |
integer |
The version of the launch template. |
1143542 |
| Step |
integer |
The number of instances that are added during each scale-out or removed during each scale-in. |
1 |
| Cond |
string |
The relationship among the conditions that trigger the scaling rule.
|
OR |
| Cpu |
integer |
The minimum CPU utilization that triggers the scaling rule. |
1 |
| GroupId |
string |
The ID of the instance group to which the application is deployed. |
d8bb9d60-91b5-4cdf-****-************ |
| InstNum |
integer |
The maximum number of instances in the group when a scale-out is performed, or the minimum number of instances in the group when a scale-in is performed. |
2 |
| AppId |
string |
The ID of the application. |
33e39be9-3e5f-********* |
| Duration |
integer |
The duration of the scaling rule. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. |
1574251601 |
| VSwitchIds |
string |
The IDs of the vSwitches. The IDs of multiple vSwitches are separated by commas (,). |
vsw-mxxxxkxxxx4xxxxwbionj |
| MetricType |
string |
The type of the metric. |
HSF |
| TemplateId |
string |
The ID of the launch template. |
lt-bp1xxxxn73pxxxxf83l |
| Enable |
boolean |
Indicates whether scale-ins or scale-outs are allowed. Valid values:
|
true |
Examples
Success response
JSON format
{
"Code": 200,
"Message": "success",
"UpdateTime": 1574251601785,
"RequestId": "D16979DC-4D42-***********",
"Data": {
"OversoldFactor": 1,
"VpcId": "vpc-wz9b246z******",
"UpdateTime": 1574251601785,
"ClusterType": 2,
"RuleList": {
"Rule": [
{
"VpcId": "vpc-wz9b246z******",
"UpdateTime": 1574251601785,
"CreateTime": 1574251601801,
"Rt": 1,
"SpecId": "03f493c0-xxxx-xxxx-xxxx-12e85cadeb41",
"MultiAzPolicy": "PRIORITY",
"ResourceFrom": "AVAILABLE",
"Mode": "SCALE_OUT",
"LoadNum": 1,
"TemplateVersion": 1143542,
"Step": 1,
"Cond": "OR",
"Cpu": 1,
"GroupId": "d8bb9d60-91b5-4cdf-****-************",
"InstNum": 2,
"AppId": "33e39be9-3e5f-*********",
"Duration": 1574251601,
"VSwitchIds": "vsw-mxxxxkxxxx4xxxxwbionj",
"MetricType": "HSF",
"TemplateId": "lt-bp1xxxxn73pxxxxf83l",
"Enable": true
}
]
}
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.