ListActivityLogs
処理概要
DNSサービスのアクティビティログの一覧を取得します。
リクエストURL
GET https://dns.api.nifcloud.com/2012-12-12N2013-12-16/activitylog指定するパラメーター
リクエストボディ
| パラメーター | 型 | 説明 | 必須 |
|---|---|---|---|
| YearMonth | string |
取得対象年月(YYYYMM形式) |
○ |
| Start | integer |
取得開始インデックス(デフォルト: 1) |
|
| End | integer |
取得終了インデックス(デフォルト: 最大値) |
応答フィールド
レスポンスボディ
| フィールド (項目) | 型 | 説明 |
|---|---|---|
| ListActivityLogsResponse | structure |
ルート |
| ␣ActivityLogs | structure |
アクティビティログのリスト |
| ␣␣ActivityLog | structure |
アクティビティログ |
| ␣␣␣DateTime | string |
ユーザがAPIを実行した日時 (ISO8601形式) |
| ␣␣␣CategoryName | string |
ユーザが実行したAPI名のリソース名 |
| ␣␣␣Operator | string |
APIを実行したユーザ名 (親アカウント名 or 子アカウント名) |
| ␣␣␣Operation | string |
ユーザが実行したAPI名 |
| ␣␣␣Result | boolean |
実行結果 値:
|
| ␣␣␣Uuid | string |
UUID (空を返却) |
| ␣␣␣ServiceId | string |
実行したサービスを識別するID (空を返却) |
エラー
| コード | メッセージ | タイプ | HTTPステータスコード | 説明 |
|---|---|---|---|---|
| InvalidInput | The specified YearMonth is not valid |
Sender | 400 | yearMonthパラメータの指定が不正(yearMonthが6ヶ月以上前または未来、yearMonthの形式が不正等) |
| InvalidInput | YearMonth parameter is required |
Sender | 400 | yearMonthパラメータが未指定 |
| InvalidInput | Invalid start or end parameter |
Sender | 400 | startまたはendパラメータの指定が不正(startがendより大きい等) |
リクエストサンプル
GET /2012-12-12N2013-12-16/activitylog HTTP/1.1
Host: dns.api.nifcloud.com
Date: Thu, 17 Jun 2021 08:53:44 GMT
X-Nifty-Authorization: NIFTY3-HTTPS NiftyAccessKeyId=<Nifty Cloud Access Key>,Algorithm=<HmacSHA1|HmacSHA256>,Signature=<Signature>
<?xml version="1.0" encoding="UTF-8"?>
<ListActivityLogsRequest xmlns="https://route53.amazonaws.com/doc/2012-12-12/">
<YearMonth>202512</YearMonth>
<Start>1</Start>
<End>100</End>
</ListActivityLogsRequest>
応答サンプル
<?xml version="1.0" encoding="UTF-8"?>
<ListActivityLogsResponse xmlns="https://route53.amazonaws.com/doc/2012-12-12/">
<ActivityLogs>
<ActivityLog>
<DateTime>2025-12-18T14:30:45+09:00</DateTime>
<CategoryName>API(ゾーン)</CategoryName>
<Operator>XXX00001</Operator>
<Operation>CreateHostedZone</Operation>
<Result>true</Result>
<Uuid></Uuid>
<ServiceId></ServiceId>
</ActivityLog>
<ActivityLog>
<DateTime>2025-12-18T13:15:22+09:00</DateTime>
<CategoryName>API(レコード)</CategoryName>
<Operator>XXX00001</Operator>
<Operation>ChangeResourceRecordSets</Operation>
<Result>true</Result>
<Uuid></Uuid>
<ServiceId></ServiceId>
</ActivityLog>
</ActivityLogs>
</ListActivityLogsResponse>
