Tenant Activity Logs - List

テナントのアクティビティ ログを取得します。
サブスクリプションのアクティビティ ログを取得するために API に適用できるすべてのものは、この API (パラメーター、$filterなど) に適用できます。
ここで指摘する 1 つの点は、この API はテナントの個々のサブスクリプションでログを取得 するのではなく 、テナント レベルで生成されたログのみを表示することです。

GET https://management.azure.com/providers/Microsoft.Insights/eventtypes/management/values?api-version=2015-04-01
GET https://management.azure.com/providers/Microsoft.Insights/eventtypes/management/values?api-version=2015-04-01&$filter={$filter}&$select={$select}

URI パラメーター

名前 / 必須 説明
api-version
query True

string

この操作に使用する API バージョン。

$filter
query

string

収集されるデータのセットを減らします。
$filterは非常に制限されており、次のパターンのみを許可します。
- リソース グループのイベントを一覧表示します。$filter=eventTimestamp ge '' と eventTimestamp le '' と eventChannels eq '管理、 Operation' と resourceGroupName eq '' です。
- リソースのイベントを一覧表示する: $filter=eventTimestamp ge '' と eventTimestamp le '' と eventChannels eq '管理, Operation' and resourceUri eq ''
- サブスクリプションのイベントを一覧表示します。$filter=eventTimestamp ge '' と eventTimestamp le '' と eventChannels eq '管理, Operation' です。
- リソース プロバイダーのイベントを一覧表示します:$filter=eventTimestamp ge '' と eventTimestamp le '' と eventChannels eq '管理,Operation' and resourceProvider eq ''
- 関連付け ID のイベントを一覧表示する: api-version=2014-04-01&$filter=eventTimestamp ge '2014-07-16T04:36:37.64078 eventTimestamp le '2014-07-20T04:36:37.6407898Z' と eventChannels eq '管理, Operation' and correlationId eq ''
: 他の構文は使用できません。

$select
query

string

指定されたプロパティのみを使用してイベントをフェッチするために使用されます。
$select引数は、返されるプロパティ名のコンマ区切りのリストです。 使用できる値は、authorizationclaimscorrelationIddescriptioneventDataIdeventNameeventTimestamphttpRequestleveloperationIdoperationNamepropertiesresourceGroupName、resourceProviderNameresourceIdstatussubmissionTimestampsubStatussubscriptionId です。

応答

名前 説明
200 OK

EventDataCollection

テナント アクティビティ ログ内のイベントのページを取得する要求が成功しました

Other Status Codes

ErrorResponse

操作に失敗した理由を説明するエラー応答。

セキュリティ

azure_auth

Azure Active Directory OAuth2 フロー

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

名前 説明
user_impersonation ユーザー アカウントの借用

Get Tenant Activity Logs with filter
Get Tenant Activity Logs with filter and select
Get Tenant Activity Logs with select
Get Tenant Activity Logs without filter or select

Get Tenant Activity Logs with filter

Sample Request

GET https://management.azure.com/providers/Microsoft.Insights/eventtypes/management/values?api-version=2015-04-01&$filter=eventTimestamp ge '2015-01-21T20:00:00Z' and eventTimestamp le '2015-01-23T20:00:00Z' and resourceGroupName eq 'MSSupportGroup'

Sample Response

{
  "value": [
    {
      "authorization": {
        "action": "microsoft.support/supporttickets/write",
        "role": "Subscription Admin",
        "scope": "/subscriptions/089bd33f-d4ec-47fe-8ba5-0753aa5c5b33/resourceGroups/MSSupportGroup/providers/microsoft.support/supporttickets/115012112305841"
      },
      "caller": "admin@contoso.com",
      "claims": {
        "aud": "https://management.core.windows.net/",
        "iss": "https://sts.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47/",
        "iat": "1421876371",
        "nbf": "1421876371",
        "exp": "1421880271",
        "ver": "1.0",
        "http://schemas.microsoft.com/identity/claims/tenantid": "1e8d8218-c5e7-4578-9acc-9abbd5d23315",
        "http://schemas.microsoft.com/claims/authnmethodsreferences": "pwd",
        "http://schemas.microsoft.com/identity/claims/objectidentifier": "2468adf0-8211-44e3-95xq-85137af64708",
        "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn": "admin@contoso.com",
        "puid": "20030000801A118C",
        "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier": "9vckmEGF7zDKk1YzIY8k0t1_EAPaXoeHyPRn6f413zM",
        "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname": "John",
        "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname": "Smith",
        "name": "John Smith",
        "groups": "cacfe77c-e058-4712-83qw-f9b08849fd60,7f71d11d-4c41-4b23-99d2-d32ce7aa621c,31522864-0578-4ea0-9gdc-e66cc564d18c",
        "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name": "admin@contoso.com",
        "appid": "c44b4083-3bq0-49c1-b47d-974e53cbdf3c",
        "appidacr": "2",
        "http://schemas.microsoft.com/identity/claims/scope": "user_impersonation",
        "http://schemas.microsoft.com/claims/authnclassreference": "1"
      },
      "correlationId": "1e121103-0ba6-4300-ac9d-952bb5d0c80f",
      "description": "",
      "eventDataId": "44ade6b4-3813-45e6-ae27-7420a95fa2f8",
      "eventName": {
        "value": "EndRequest",
        "localizedValue": "End request"
      },
      "httpRequest": {
        "clientRequestId": "27003b25-91d3-418f-8eb1-29e537dcb249",
        "clientIpAddress": "192.168.35.115",
        "method": "PUT"
      },
      "id": "/subscriptions/089bd33f-d4ec-47fe-8ba5-0753aa5c5b33/resourceGroups/MSSupportGroup/providers/microsoft.support/supporttickets/115012112305841/events/44ade6b4-3813-45e6-ae27-7420a95fa2f8/ticks/635574752669792776",
      "level": "Informational",
      "resourceGroupName": "MSSupportGroup",
      "resourceProviderName": {
        "value": "microsoft.support",
        "localizedValue": "microsoft.support"
      },
      "operationId": "1e121103-0ba6-4300-ac9d-952bb5d0c80f",
      "operationName": {
        "value": "microsoft.support/supporttickets/write",
        "localizedValue": "microsoft.support/supporttickets/write"
      },
      "properties": {
        "statusCode": "Created"
      },
      "status": {
        "value": "Succeeded",
        "localizedValue": "Succeeded"
      },
      "subStatus": {
        "value": "Created",
        "localizedValue": "Created (HTTP Status Code: 201)"
      },
      "eventTimestamp": "2015-01-21T22:14:26.9792776Z",
      "submissionTimestamp": "2015-01-21T22:14:39.9936304Z",
      "subscriptionId": "089bd33f-d4ec-47fe-8ba5-0753aa5c5b33"
    }
  ],
  "nextLink": "https://management.azure.com/########-####-####-####-############$skiptoken=######"
}

Get Tenant Activity Logs with filter and select

Sample Request

GET https://management.azure.com/providers/Microsoft.Insights/eventtypes/management/values?api-version=2015-04-01&$filter=eventTimestamp ge '2015-01-21T20:00:00Z' and eventTimestamp le '2015-01-23T20:00:00Z' and resourceGroupName eq 'MSSupportGroup'&$select=eventName,id,resourceGroupName,resourceProviderName,operationName,status,eventTimestamp,correlationId,submissionTimestamp,level

Sample Response

{
  "value": [
    {
      "correlationId": "1e121103-0ba6-4300-ac9d-952bb5d0c80f",
      "eventName": {
        "value": "EndRequest",
        "localizedValue": "End request"
      },
      "id": "/subscriptions/089bd33f-d4ec-47fe-8ba5-0753aa5c5b33/resourceGroups/MSSupportGroup/providers/microsoft.support/supporttickets/115012112305841/events/44ade6b4-3813-45e6-ae27-7420a95fa2f8/ticks/635574752669792776",
      "resourceGroupName": "MSSupportGroup",
      "resourceProviderName": {
        "value": "microsoft.support",
        "localizedValue": "microsoft.support"
      },
      "operationName": {
        "value": "microsoft.support/supporttickets/write",
        "localizedValue": "microsoft.support/supporttickets/write"
      },
      "status": {
        "value": "Succeeded",
        "localizedValue": "Succeeded"
      },
      "eventTimestamp": "2015-01-21T22:14:26.9792776Z",
      "submissionTimestamp": "2015-01-21T22:14:39.9936304Z",
      "level": "Informational"
    }
  ],
  "nextLink": "https://management.azure.com/########-####-####-####-############$skiptoken=######"
}

Get Tenant Activity Logs with select

Sample Request

GET https://management.azure.com/providers/Microsoft.Insights/eventtypes/management/values?api-version=2015-04-01&$select=eventName,id,resourceGroupName,resourceProviderName,operationName,status,eventTimestamp,correlationId,submissionTimestamp,level

Sample Response

{
  "value": [
    {
      "correlationId": "1e121103-0ba6-4300-ac9d-952bb5d0c80f",
      "eventName": {
        "value": "EndRequest",
        "localizedValue": "End request"
      },
      "id": "/subscriptions/089bd33f-d4ec-47fe-8ba5-0753aa5c5b33/resourceGroups/MSSupportGroup/providers/microsoft.support/supporttickets/115012112305841/events/44ade6b4-3813-45e6-ae27-7420a95fa2f8/ticks/635574752669792776",
      "resourceGroupName": "MSSupportGroup",
      "resourceProviderName": {
        "value": "microsoft.support",
        "localizedValue": "microsoft.support"
      },
      "operationName": {
        "value": "microsoft.support/supporttickets/write",
        "localizedValue": "microsoft.support/supporttickets/write"
      },
      "status": {
        "value": "Succeeded",
        "localizedValue": "Succeeded"
      },
      "eventTimestamp": "2015-01-21T22:14:26.9792776Z",
      "submissionTimestamp": "2015-01-21T22:14:39.9936304Z",
      "level": "Informational"
    }
  ],
  "nextLink": "https://management.azure.com/########-####-####-####-############$skiptoken=######"
}

Get Tenant Activity Logs without filter or select

Sample Request

GET https://management.azure.com/providers/Microsoft.Insights/eventtypes/management/values?api-version=2015-04-01

Sample Response

{
  "value": [
    {
      "authorization": {
        "action": "microsoft.support/supporttickets/write",
        "role": "Subscription Admin",
        "scope": "/subscriptions/089bd33f-d4ec-47fe-8ba5-0753aa5c5b33/resourceGroups/MSSupportGroup/providers/microsoft.support/supporttickets/115012112305841"
      },
      "caller": "admin@contoso.com",
      "claims": {
        "aud": "https://management.core.windows.net/",
        "iss": "https://sts.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47/",
        "iat": "1421876371",
        "nbf": "1421876371",
        "exp": "1421880271",
        "ver": "1.0",
        "http://schemas.microsoft.com/identity/claims/tenantid": "1e8d8218-c5e7-4578-9acc-9abbd5d23315",
        "http://schemas.microsoft.com/claims/authnmethodsreferences": "pwd",
        "http://schemas.microsoft.com/identity/claims/objectidentifier": "2468adf0-8211-44e3-95xq-85137af64708",
        "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn": "admin@contoso.com",
        "puid": "20030000801A118C",
        "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier": "9vckmEGF7zDKk1YzIY8k0t1_EAPaXoeHyPRn6f413zM",
        "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname": "John",
        "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname": "Smith",
        "name": "John Smith",
        "groups": "cacfe77c-e058-4712-83qw-f9b08849fd60,7f71d11d-4c41-4b23-99d2-d32ce7aa621c,31522864-0578-4ea0-9gdc-e66cc564d18c",
        "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name": "admin@contoso.com",
        "appid": "c44b4083-3bq0-49c1-b47d-974e53cbdf3c",
        "appidacr": "2",
        "http://schemas.microsoft.com/identity/claims/scope": "user_impersonation",
        "http://schemas.microsoft.com/claims/authnclassreference": "1"
      },
      "correlationId": "1e121103-0ba6-4300-ac9d-952bb5d0c80f",
      "description": "",
      "eventDataId": "44ade6b4-3813-45e6-ae27-7420a95fa2f8",
      "eventName": {
        "value": "EndRequest",
        "localizedValue": "End request"
      },
      "httpRequest": {
        "clientRequestId": "27003b25-91d3-418f-8eb1-29e537dcb249",
        "clientIpAddress": "192.168.35.115",
        "method": "PUT"
      },
      "id": "/subscriptions/089bd33f-d4ec-47fe-8ba5-0753aa5c5b33/resourceGroups/MSSupportGroup/providers/microsoft.support/supporttickets/115012112305841/events/44ade6b4-3813-45e6-ae27-7420a95fa2f8/ticks/635574752669792776",
      "level": "Informational",
      "resourceGroupName": "MSSupportGroup",
      "resourceProviderName": {
        "value": "microsoft.support",
        "localizedValue": "microsoft.support"
      },
      "operationId": "1e121103-0ba6-4300-ac9d-952bb5d0c80f",
      "operationName": {
        "value": "microsoft.support/supporttickets/write",
        "localizedValue": "microsoft.support/supporttickets/write"
      },
      "properties": {
        "statusCode": "Created"
      },
      "status": {
        "value": "Succeeded",
        "localizedValue": "Succeeded"
      },
      "subStatus": {
        "value": "Created",
        "localizedValue": "Created (HTTP Status Code: 201)"
      },
      "eventTimestamp": "2015-01-21T22:14:26.9792776Z",
      "submissionTimestamp": "2015-01-21T22:14:39.9936304Z",
      "subscriptionId": "089bd33f-d4ec-47fe-8ba5-0753aa5c5b33"
    }
  ],
  "nextLink": "https://management.azure.com/########-####-####-####-############$skiptoken=######"
}

定義

名前 説明
ErrorResponse

エラー応答の形式について説明します。

EventData

Azure イベント ログ エントリの種類は EventData です

EventDataCollection

イベントのコレクションを表します。

EventLevel

イベント レベル

HttpRequestInfo

Http 要求情報。

LocalizableString

ローカライズ可能な文字列クラス。

SenderAuthorization

このイベントの原因となった操作を実行したユーザーが使用する承認。 これにより、イベントの RBAC プロパティがキャプチャされます。 これには通常、'action'、'role'、および 'scope' が含まれます

ErrorResponse

エラー応答の形式について説明します。

名前 説明
code

string

エラー コード

message

string

操作が失敗した理由を示すエラー メッセージ。

EventData

Azure イベント ログ エントリの種類は EventData です

名前 説明
authorization

SenderAuthorization

送信者の承認情報。

caller

string

操作を実行したユーザーの電子メール アドレス、可用性に基づく UPN 要求または SPN 要求。

category

LocalizableString

イベント カテゴリ。

claims

object

ARM のアクセス許可を識別するためのキー値ペア。

correlationId

string

関連付け ID(通常は文字列形式の GUID)。 関連付け ID は、同じ uber 操作に属するイベント間で共有されます。

description

string

イベントの説明。

eventDataId

string

イベント データ ID。これはイベントの一意識別子です。

eventName

LocalizableString

イベント名。 この値は OperationName と混同しないでください。 実用的な目的で、OperationName はエンド ユーザーにとってより魅力的な場合があります。

eventTimestamp

string

イベントに対応する要求を処理する Azure サービスによってイベントが生成されたときのタイムスタンプ。 ISO 8601 形式です。

httpRequest

HttpRequestInfo

HTTP 要求情報。 通常、'clientRequestId'、'clientIpAddress' (イベントを開始したユーザーの IP アドレス) と 'method' (HTTP メソッド (PUT など) が含まれます。

id

string

RBAC の ARM で必要とされるこのイベントの ID。 これには、EventDataID とタイムスタンプ情報が含まれています。

level

EventLevel

イベント レベル

operationId

string

通常は、1 つの操作に対応するイベント間で共有される GUID です。 この値は EventName と混同しないでください。

operationName

LocalizableString

操作名。

properties

object

イベントの <詳細を含む Key、Value> のペア (通常は Dictionary<String、String>) のセット。

resourceGroupName

string

影響を受けたリソースのリソース グループ名。

resourceId

string

このイベントの原因となったリソースを一意に識別するリソース URI。

resourceProviderName

LocalizableString

影響を受けたリソースのリソース プロバイダー名。

resourceType

LocalizableString

リソースの種類

status

LocalizableString

操作の状態を説明する文字列。 一般的な値には、Started、In progress、Succeeded、Failed、Resolved があります。

subStatus

LocalizableString

イベント サブの状態。 ほとんどの場合、このコードを含めると、REST 呼び出しの HTTP 状態コードがキャプチャされます。 一般的な値は、OK (HTTP 状態コード: 200)、作成済み (HTTP 状態コード: 201)、受け入れ済み (HTTP 状態コード: 202)、コンテンツなし (HTTP 状態コード: 204)、不適切な要求 (HTTP 状態コード: 40) です。 0)、見つからない (HTTP 状態コード: 404)、競合 (HTTP 状態コード: 409)、内部サーバー エラー (HTTP 状態コード: 500)、サービスを使用できない (HTTP 状態コード:503)、ゲートウェイ タイムアウト (HTTP 状態コード: 504)

submissionTimestamp

string

この API を使用したクエリでイベントが使用可能になったときの タイムスタンプ。 ISO 8601 形式です。 この値は eventTimestamp と混同しないでください。 イベントの発生時間と、イベントが Azure ログ インフラストラクチャに送信されるまでに遅延が発生する可能性があるためです。

subscriptionId

string

通常、Azure サブスクリプション ID は GUID です。

tenantId

string

Azure テナント ID

EventDataCollection

イベントのコレクションを表します。

名前 説明
nextLink

string

次のイベント セットを取得するためのリンクを提供します。

value

EventData[]

この一覧には、Azure 監査ログが含まれています。

EventLevel

イベント レベル

名前 説明
Critical

string

Error

string

Informational

string

Verbose

string

Warning

string

HttpRequestInfo

Http 要求情報。

名前 説明
clientIpAddress

string

クライアント IP アドレス

clientRequestId

string

クライアント要求 ID。

method

string

Http 要求メソッド。

uri

string

Uri。

LocalizableString

ローカライズ可能な文字列クラス。

名前 説明
localizedValue

string

ロケール固有の値。

value

string

不変値。

SenderAuthorization

このイベントの原因となった操作を実行したユーザーが使用する承認。 これにより、イベントの RBAC プロパティがキャプチャされます。 これには通常、'action'、'role'、および 'scope' が含まれます

名前 説明
action

string

許容されるアクション。 例: microsoft.support/supporttickets/write

role

string

ユーザーのロール。 例: サブスクリプション 管理

scope

string

スコープ。