You need to enable JavaScript to run this app.
Auto Scaling

Auto Scaling

Copy page
Download PDF
ScalingActivities
DescribeScalingActivities - Queries scaling activities
Copy page
Download PDF
DescribeScalingActivities - Queries scaling activities
Query scaling logs.​
Debugging​
API Explorer
You can initiate calls online through API Explorer without paying attention to the signature generation process and quickly obtain the call results.
​
Request parameters​
Only the request parameters specific to this operation and some common parameters are listed below. For more information, refer to Common parameters.​
Action string required Sample value: DescribeScalingActivities​
The action that you want to perform. Value: DescribeScalingActivities.​
​
Version string required Sample value: 2020-01-01​
The version of the API. Value: 2020-01-01.​
​
ScalingGroupId string required Sample value: scg-yblhryq64wgh9zmp****​
The ID of the scaling group. You can call DescribeScalingGroups to query the scaling group ID.​
​
EndTime string Optional Sample value: 2021-09-06T07:40Z​
The end date of the scaling log.​
​
PageNumber integer Optional Sample value: 1​
The page number of the list. The default value is 1.​
​
PageSize integer Optional Sample value: 10​
The number of entries on each page in a pagination query. Valid values: 1–50. Default value: 10.​
​
ScalingActivityIds.N string[] Optional Sample value: sga-ybn0mwfy1yl8j1f6****​
The list of scaling log IDs.​
  • Parameter - N: Specifies the serial number of the scaling log. Valid value: 1-20.​
  • Separate multiple scaling logs with ampersands (&).​
​
StartTime string Optional Sample value: 2021-09-06T07:37Z​
The start date of the scaling log.​
​
StatusCode string Optional Sample value: Success​
The execution result in the scaling log. Valid values:​
  • Init: Initialization.​
  • Running: Running.​
  • Success: Success.​
  • PartialSuccess: Partial success.​
  • Error: All failed.​
  • Rejected: Denied execution.​
  • Exception: Exception.​
​
​
​
Response parameters​
Only the response parameters specific to this operation are listed below. For more information, refer to the response structure.​
PageNumber integer Sample value: 1​
The current page number.​
​
PageSize integer Sample value: 10​
The number of entries per page.​
​
ScalingActivities object[] Sample value: --​
Information on scaling logs that meet the conditions.​
ScalingActivityId string Sample value: sga-ybn0mwfy1yl8j1f6****​
The ID of the scaling log.​
​
CreatedAt string Sample value: 2022-05-11T03:15:26Z​
The start time in the scaling log.​
​
ExpectedRunTime string Sample value: 2022-05-11T03:15:24Z​
The scheduled execution time in the scaling log.​
​
ScalingGroupId string String example: scg-ybmssdnnhn5pkgyd****​
The ID of the scaling group.​
​
ResultMsg string Sample value: This is a scaling log.​
Description of the scaling log.​
​
MaxInstanceNumber integer Sample value: 100​
The maximum number of instances in the scaling group.​
​
MinInstanceNumber integer Sample value: 10​
The minimum number of instances in the scaling group.​
​
CurrentInstanceNumber integer Sample value: 20​
The number of instances currently running in the scaling group.​
​
ActualAdjustInstanceNumber integer Sample value: 3​
The actual adjusted instance count in the scaling log.​
​
Cooldown integer Sample value: 300​
The cooldown time in the scaling log after execution completion.​
​
StatusCode string Sample value: Init​
The execution result in the scaling log. Valid values:​
  • Init: Initialization.​
  • Running: Running.​
  • Success: Success.​
  • PartialSuccess: Partial success.​
  • Error: All failed.​
  • Rejected: Denied execution.​
  • Exception: Exception.​
​
RelatedInstances object[]​
Instance-related information in the scaling log.​
Message string Sample value: Error.​
Description or error information.​
​
InstanceId string Sample value: i-ybmike5l70l8j1ha****​
The instance ID.​
​
OperateType string Sample value: Add​
The instance-targeted adjustment type. Valid values:​
  • Add: Increases instances.​
  • Remove: Removes instances.​
​
Status string Sample value: Success​
The scaling status of the instance. Valid values:​
  • Success: Success.​
  • Error: An error occurred.​
​
​
ActivityType string Sample value: SCALE_OUT​
The scaling log type. Valid values:​
  • SCALE_OUT: Scale-out.​
  • SCALE_IN: Scale-in.​
  • SYNC_INSTANCES: Instance state synchronization.​
​
StoppedAt string Sample value: 2022-05-11T03:15:51Z​
The stop time in the scaling log.​
​
TaskCategory string Sample value: Manual​
The operation type in the scaling log. Valid values:​
  • Manual: Manual execution.​
  • Scheduled: Scheduled execution.​
  • Recurrence: Periodic execution.​
  • Alarm: Alert task.​
  • HealthCheck: Health check.​
​
​
TotalCount integer Sample value: 100​
The total number of scaling logs that meet the conditions.​
​
​
​
Sample request​
​
GET /?Action=DescribeScalingActivities&ScalingGroupId=scg-yblhryq64wgh9zmp****&Version=2020-01-01 HTTP/1.1​
Host: auto-scaling.cn-beijing.volcengineapi.com​
X-Date: 20240507T113028Z​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20240507/cn-beijing/auto_scaling/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
​
​
Sample response​
​
{​
"ResponseMetadata": {​
"RequestId": "20240507193036074006150039D52A15",​
"Version": "2020-01-01",​
"Service": "auto_scaling",​
"Region": "cn-beijing"​
},​
"Result": {​
"PageNumber": 1,​
"PageSize": 10,​
"ScalingActivities": [​
{​
"ScalingActivityId": "sga-ybn0mwfy1yl8j1f6****",​
"CreatedAt": "2022-05-11T03:15:26Z",​
"ExpectedRunTime": "2022-05-11T03:15:24Z",​
"ScalingGroupId": "scg-ybmssdnnhn5pkgyd****",​
"ResultMsg": "This is a scaling activity.",​
"MaxInstanceNumber": 100,​
"MinInstanceNumber": 10,​
"CurrentInstanceNumber": 20,​
"ActualAdjustInstanceNumber": 3,​
"Cooldown": 300,​
"StatusCode": "Init",​
"RelatedInstances": [​
{​
"Message": "Error.",​
"InstanceId": "i-ybmike5l70l8j1ha****",​
"OperateType": "Add",​
"Status": "Success"​
}​
],​
"ActivityType": "SCALE_OUT",​
"StoppedAt": "2022-05-11T03:15:51Z",​
"TaskCategory": "Manual"​
}​
],​
"TotalCount": 100​
}​
}​
​
Error codes​
The table below lists the business-related error codes of the operation. For more information, refer to Common error codes.​
​
Status code​
Error code​
Error message​
Description​
400​
MissingParameter.ScalingGroupId​
The required parameter ScalingGroupId is not supplied.​
The scaling group ID cannot be empty.​
400​
InvalidScalingActivityStartTime.Malformed​
The specified ScalingActivity StartTime is malformed.​
The specified start time of the scaling activity is invalid.​
400​
InvalidScalingActivityEndTime.Malformed​
The specified ScalingActivity EndTime is malformed.​
The specified end time of the scaling activity is invalid.​
400​
LimitExceeded.ScalingActivityIds​
You've reached the limit on the number of ScalingActivityIds that you can set.​
The number of scaling activity IDs reaches the upper limit.​
404​
InvalidScalingGroupId.NotFound​
The specified ScalingGroup [%s] does not exist.​
The specified scaling group does not exist.​
500​
InternalError​
An internal error has occurred.​
An internal error occurred. Try again. If multiple attempts fail, submit a ticket.​
​
​
Last updated: 2026.06.26 10:55:29