Available in VPC
Get the list of scaling action logs for Auto Scaling Group. Logs for schedules that ran in the last six weeks can be viewed and are returned sorted in descending order by execution start time.
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
GET | POST | /vautoscaling/v2/getAutoScalingActivityLogList |
This guide is based on the GET method. POST method call tests can be performed through Swagger in the API Gateway service of the NAVER Cloud Platform console.
Request headers
For information about the headers common to all Auto Scaling APIs, see Auto Scaling request headers.
Request query parameters
You can use the following query parameters with your request:
Field | Type | Required | Description |
---|---|---|---|
regionCode |
String | Optional | Region code
|
autoScalingGroupNo |
String | Required | Auto Scaling Group number |
activityNoList.N |
Array | Optional | Log number list
|
pageNo |
Integer | Optional | Page number
|
pageSize |
Integer | Conditional | Number of items per page
|
responseFormatType |
String | Optional | Format of the response data
|
Request example
The request example is as follows:
curl --location --request GET 'https://ncloud.apigw.ntruss.com/vautoscaling/v2/getAutoScalingActivityLogList
?regionCode=KR
&autoScalingGroupNo=1***9
&responseFormatType=json' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
Response
This section describes the response format.
Response body
The response body includes the following data:
Field | Type | Required | Description |
---|---|---|---|
getAutoScalingActivityLogListResponse |
Object | - | Response result
|
getAutoScalingActivityLogListResponse.requestId |
String | - | ID for the request
|
getAutoScalingActivityLogListResponse.returnCode |
String | - | Response code |
getAutoScalingActivityLogListResponse.returnMessage |
String | - | Response message |
Response status codes
For response status codes common to all Auto Scaling APIs, see Auto Scaling response status codes.
Response example
The response example is as follows:
{
"getAutoScalingActivityLogListResponse": {
"totalRows": 2,
"activityLogList": [
{
"autoScalingGroupNo": "1***9",
"activityNo": "3202612",
"serverInstanceNo": "10****092",
"zoneCode": "KR-2",
"actionName": "Terminate",
"actionStatus": {
"code": "SUCCS",
"codeName": "SUCCESSFUL"
},
"actionCause": "At 2025-05-30T15:58:22+0900 an instance was taken out of service in response to a difference between desired and actual capacity, shrinking the capacity to 0. ",
"actionDescription": "Launching a new server instance: #10****092",
"startTime": "2025-05-30T15:58:22+0900",
"endTime": "2025-05-30T15:59:24+0900"
},
{
"autoScalingGroupNo": "1***9",
"activityNo": "3155596",
"serverInstanceNo": "10****092",
"zoneCode": "KR-2",
"actionName": "Launch",
"actionStatus": {
"code": "SUCCS",
"codeName": "SUCCESSFUL"
},
"actionCause": "At 2025-05-15T09:51:02+0900 an instance was started in response to a difference between desired and actual capacity, increasing the capacity to 1.",
"actionDescription": "Launching a new server instance: #10****092",
"startTime": "2025-05-15T09:51:03+0900",
"endTime": "2025-05-15T09:56:09+0900"
}
],
"requestId": "605902b8-****-****-****-a47d46441f59",
"returnCode": "0",
"returnMessage": "success"
}
}