概要
アクティビティログリスト照会
説明
過去6週間のすべてのscaling actionログを結果とされます。 最近のログからDescendingに表示されます。
また、ページングが可能であるため、ユーザーが各ページのサイズ(項目数)とページ番号を指定することができます。
リクエストパラメータ
| パラメータ名 | 必須可否 | タイプ | 制約事項 | 説明 |
|---|---|---|---|---|
| activityNoList | No | List |
- | スケーリングアクション(activity)識別番号です。 |
| autoScalingGroupName | No | String | Min:1、Max:255 | 照会しようとするオートスケーリンググループ名を入力します。 |
| pageNo | No | Integer | Min:0、Max:2147483647 | リストの照会時にPaginationのページ情報を入力します。 基本値0に入力した場合、すべてのリストを照会します。 |
| pageSize | No | Integer | Min:0、Max:2147483647 | リストの照会にPaginationの表示される情報の数を入力します。 基本値0に入力した場合、すべてのリストを照会します。 |
応答データタイプ
- ActivityLogListタイプ
| ActivityLogList extends CommonResponse |
|---|
| private Integer totalRows; |
| private List |
| ActivityLog extends BaseObject |
|---|
| private String activityNo; |
| private String autoScalingGroupName; |
| private CommonCode status; |
| private String statusMessage; |
| private String actionCause; |
| private String description; |
| private String details; |
| private Date startTime; |
| private Date endTime; |
例
呼び出し
ncloud autoscaling getAutoScalingActivityLogList --activityNoList 26019 26020 26021 --autoScalingGroupName soso02
応答
{
"getAutoScalingActivityLogListResponse": {
"requestId": "bc6e7dc6-be77-4dcc-b88d-b06ac92bcc0c",
"returnCode": "0",
"returnMessage": "success",
"totalRows": 2,
"activityLogList": [
{
"activityNo": "26019",
"autoScalingGroupName": "soso02",
"status": {
"code": "INPRG",
"codeName": "IN_PROGRESS"
},
"statusMessage": "",
"actionCause": "At 2017-12-19T11:33:03+0900 an instance was taken out of service in response to a difference between desired and actual capacity, shrinking the capacity from 4 to 0. At 2017-12-19T11:33:03+0900 instance #352653 was selected for termination. At 2017-12-19T11:33:03+0900 instance #352658 was selected for termination. At 2017-12-19T11:33:03+0900 instance #352663 was selected for termination. At 2017-12-19T11:33:03+0900 instance #352668 was selected for termination.",
"description": "Terminating server instance: #352663",
"details": "{\"zoneNo\":\"2\"}",
"startTime": "2017-12-19T11:33:03+0900"
},
{
"activityNo": "26020",
"autoScalingGroupName": "soso02",
"status": {
"code": "INPRG",
"codeName": "IN_PROGRESS"
},
"statusMessage": "",
"actionCause": "At 2017-12-19T11:33:03+0900 an instance was taken out of service in response to a difference between desired and actual capacity, shrinking the capacity from 4 to 0. At 2017-12-19T11:33:03+0900 instance #352653 was selected for termination. At 2017-12-19T11:33:03+0900 instance #352658 was selected for termination. At 2017-12-19T11:33:03+0900 instance #352663 was selected for termination. At 2017-12-19T11:33:03+0900 instance #352668 was selected for termination.",
"description": "Terminating server instance: #352668",
"details": "{\"zoneNo\":\"2\"}",
"startTime": "2017-12-19T11:33:03+0900"
}
]
}
}
<?xml version="1.0" encoding="UTF-8" ?>
<getAutoScalingActivityLogListResponse>
<requestId>bc6e7dc6-be77-4dcc-b88d-b06ac92bcc0c</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
<totalRows>2</totalRows>
<activityLogList>
<activityNo>26019</activityNo>
<autoScalingGroupName>soso02</autoScalingGroupName>
<status>
<code>INPRG</code>
<codeName>IN_PROGRESS</codeName>
</status>
<statusMessage></statusMessage>
<actionCause>At 2017-12-19T11:33:03+0900 an instance was taken out of service in response to a difference between desired and actual capacity, shrinking the capacity from 4 to 0. At 2017-12-19T11:33:03+0900 instance #352653 was selected for termination. At 2017-12-19T11:33:03+0900 instance #352658 was selected for termination. At 2017-12-19T11:33:03+0900 instance #352663 was selected for termination. At 2017-12-19T11:33:03+0900 instance #352668 was selected for termination.</actionCause>
<description>Terminating server instance: #352663</description>
<details>{"zoneNo":"2"}</details>
<startTime>2017-12-19T11:33:03+0900</startTime>
</activityLogList>
<activityLogList>
<activityNo>26020</activityNo>
<autoScalingGroupName>soso02</autoScalingGroupName>
<status>
<code>INPRG</code>
<codeName>IN_PROGRESS</codeName>
</status>
<statusMessage></statusMessage>
<actionCause>At 2017-12-19T11:33:03+0900 an instance was taken out of service in response to a difference between desired and actual capacity, shrinking the capacity from 4 to 0. At 2017-12-19T11:33:03+0900 instance #352653 was selected for termination. At 2017-12-19T11:33:03+0900 instance #352658 was selected for termination. At 2017-12-19T11:33:03+0900 instance #352663 was selected for termination. At 2017-12-19T11:33:03+0900 instance #352668 was selected for termination.</actionCause>
<description>Terminating server instance: #352668</description>
<details>{"zoneNo":"2"}</details>
<startTime>2017-12-19T11:33:03+0900</startTime>
</activityLogList>
</getAutoScalingActivityLogListResponse>