You can call ListScalingActivityV2 operation to view the scaling activity list.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ListScalingActivityV2 |
The operation that you want to perform. This parameter is required for API requests that you create by piecing together HTTP or HTTPS URLs. Valid values: ListScalingActivityV2. |
ClusterBizId | String | Yes | C-12324352352**** |
The ID of the cluster. You can call ListClusters Interface to view the cluster ID. |
RegionId | String | Yes | cn-hangzhou |
The region ID of the instance. You can call DescribeRegions Interface to view the latest list of Alibaba Cloud regions. |
ResourceGroupId | String | No | rg-acfmv6jutt6**** |
The ID of the resource group. You can call ListResourceGroups View the resource group ID. |
Limit | Integer | No | 0 |
Abandoned Field. |
PageNumber | Integer | No | 1 |
The number of the page to return. |
PageSize | Integer | No | 100 |
The number of entries to return per page. Maximum value: 100 Default value: 100 |
CurrentSize | Integer | No | 0 |
Abandoned Field. |
PageCount | Integer | No | 0 |
Abandoned Field. |
OrderField | String | No | id |
The page turning parameter. |
OrderMode | String | No | desc |
The page turning parameter. |
HostGroupId | String | No | G-2342423**** |
The ID of the host group. You can call ListClusterHostGroup View the machine group ID. |
ScalingGroupBizId | String | No | SGB-A2343453**** |
The ID of the scaling group. You can call ListScalingGroupV2 View the scaling group ID. |
ScalingRuleName | String | No | Scale-out load -1 |
The name of the scaling rule. |
HostGroupName | String | No | Scaling Group 1 |
The name of the machine group. |
Status | String | No | Successful |
Activity Status:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Items | Array of Item |
Scaling activity list |
|
Item | |||
BizId | String | asa-bp18jfxw7gqnkhtz**** |
The ID of the scaling activity. |
Cause | String | A user requests to execute scaling rule \"asr-bp1d8mebzisgwu34mcn3\", changing the Total Capacity from \"0\" to \"1\". |
The reason for the scaling activity. |
Description | String | \"1\" ECS instances are added |
The description of the instance. |
EndTime | Long | 1600691996000 |
The end of the time range to query. |
ExpectNum | Integer | 1 |
The expected number of scaling operations. |
HostGroupBizId | String | G-4A1833AA86EA**** |
The ID of the host group. |
HostGroupName | String | Scaling Group 1 |
The name of the machine group. |
InstanceIds | String | [\"i-bp1ci2e4xqt9eqjqtfrr\"] |
A list of ECS instances. |
ScalingRuleId | String | asr-bp19zruz0q7pru31**** |
The ID of the scaling rule. |
ScalingRuleName | String | Scale-out load -1 |
The name of the scaling rule. |
StartTime | Long | 1600691996000 |
The start time. |
Status | String | Successful |
The status of the activity. Valid values:
|
TotalCapacity | Integer | 10 |
The total capacity of the scaling group. |
Transition | String | SCALE_OUT |
The scaling type. Valid values:
|
NextToken | String | None |
Abandoned Field. |
PageNumber | Integer | 1 |
The number of the page to return. |
PageSize | Integer | 100 |
The number of records on each page. |
RequestId | String | 123DF0CD-C5F5-4A8D-984A-C5A4331EB84F |
The ID of the request. |
TotalCount | Integer | 100 |
The total number of scaling activity records. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ListScalingActivityV2
&ClusterBizId=C-12324352352****
&RegionId=cn-hangzhou
&<common request parameters>
Sample success responses
XML
format
<TotalCount>100</TotalCount>
<RequestId>123DF0CD-C5F5-4A8D-984A-C5A4331EB84F</RequestId>
<PageSize>100</PageSize>
<PageNumber>1</PageNumber>
<Items>
<Item>
<Status>Successful</Status>
<Description>\"1\" ECS instances are added</Description>
<EndTime>1600691996000</EndTime>
<StartTime>1600691996000</StartTime>
<ScalingRuleId>asr-bp19zruz0q7pru31****</ScalingRuleId>
<HostGroupName>Scaling Group 1</HostGroupName>
<ScalingRuleName>Scale-out load -1 </ScalingRuleName>
<HostGroupBizId>G-4A1833AA86EA****</HostGroupBizId>
<ExpectNum>1</ExpectNum>
<Cause>A user requests to execute scaling rule \"asr-bp1d8mebzisgwu34mcn3\", changing the Total Capacity from \"0\" to \"1\".</Cause>
<Transition>SCALE_OUT</Transition>
<TotalCapacity>10</TotalCapacity>
<InstanceIds>[\"i-bp1ci2e4xqt9eqjqtfrr\"]</InstanceIds>
<BizId>asa-bp18jfxw7gqnkhtz****</BizId>
</Item>
</Items>
JSON
Syntax
{
"TotalCount":"100",
"RequestId":"123DF0CD-C5F5-4A8D-984A-C5A4331EB84F",
"PageSize":"100",
"PageNumber":"1",
"Items":
{
"Item":[
{
"Status":"Successful",
"Description":"\\\"1\\\" ECS instances are added",
"EndTime":"1600691996000",
"StartTime":"1600691996000",
"ScalingRuleId":"asr-bp19zruz0q7pru31****",
"HostGroupName":"Scaling Group 1",
"ScalingRuleName":"Scale-out load -1",
"HostGroupBizId":"G-4A1833AA86EA****",
"ExpectNum":"1",
"Cause":"A user requests to execute scaling rule \\\"asr-bp1d8mebzisgwu34mcn3\\\", changing the Total Capacity from \\\"0\\\" to \\\"1\\\".",
"Transition":"SCALE_OUT",
"TotalCapacity":"10",
"InstanceIds":"[\\\"i-bp1ci2e4xqt9eqjqtfrr\\\"]",
"BizId":"asa-bp18jfxw7gqnkhtz****"
}
]
}
}