Tenant Activity Logs - List

Kiracı için Etkinlik Günlüklerini alır.
Aboneliğin Etkinlik Günlüklerini almak için API için geçerli olan her şey bu API için geçerlidir (parametreler, $filter vb.).
Burada dikkate alınması gereken bir nokta, bu API'nin kiracının bireysel aboneliğindeki günlükleri almaması , yalnızca kiracı düzeyinde oluşturulan günlükleri ortaya çıkarmasıdır.

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 Parametreleri

Name İçinde Gerekli Tür Description
api-version
query True

string

Bu işlem için kullanılacak API sürümü.

$filter
query

string

Toplanan veri kümesini azaltır.
$filter çok kısıtlıdır ve yalnızca aşağıdaki desenlere izin verir.
- Bir kaynak grubu için olayları listeleyin: $filter=eventTimestamp ge '' ve eventTimestamp le '' ve eventChannels eq 'Yönetici, Operation' ve resourceGroupName eq ''.
- Kaynak için olayları listeleyin: $filter=eventTimestamp ge '' ve eventTimestamp le '' ve eventChannels eq 'Yönetici, Operation' ve resourceUri eq ''.
- Abonelik için olayları listeleme: $filter=eventTimestamp ge '' ve eventTimestamp le '' ve eventChannels eq 'Yönetici, Operation'.
- Kaynak sağlayıcısı için olayları listeleme: $filter=eventTimestamp ge '' ve eventTimestamp le '' ve eventChannels eq 'Yönetici, Operation' ve resourceProvider eq ''.
- Bağıntı kimliği için olayları listeleme: api-version=2014-04-01&$filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z ' ve eventTimestamp le '2014-07-20T04:36:37.6407898Z' ve eventChannels eq 'Yönetici, Operation' ve correlationId eq ''.
NOT: Başka söz dizimine izin verilmez.

$select
query

string

Yalnızca belirli özelliklere sahip olayları getirmek için kullanılır.
$select bağımsız değişkeni, döndürülecek özellik adlarının virgülle ayrılmış listesidir. Olası değerler şunlardır: authorization, claims, correlationId, description, eventDataId, eventName, eventTimestamp, httpRequest, level, operationId, operationName, properties, resourceGroupName, resourceProviderName, resourceId, status, submissionTimestamp, subStatus, subscriptionId

Yanıtlar

Name Tür Description
200 OK

EventDataCollection

Kiracı etkinlik günlüklerinde bir olay sayfası alma isteği başarılı oldu

Other Status Codes

ErrorResponse

İşlemin neden başarısız olduğunu açıklayan hata yanıtı.

Güvenlik

azure_auth

Azure Active Directory OAuth2 Flow

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

Scopes

Name Description
user_impersonation kullanıcı hesabınızın kimliğine bürünme

Örnekler

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=######"
}

Tanımlar

Name Description
ErrorResponse

Hata yanıtının biçimini açıklar.

EventData

Azure olay günlüğü girişleri EventData türündedir

EventDataCollection

Olay koleksiyonunu temsil eder.

EventLevel

olay düzeyi

HttpRequestInfo

Http isteği bilgileri.

LocalizableString

Yerelleştirilebilir dize sınıfı.

SenderAuthorization

bu olaya yol açan işlemi gerçekleştiren kullanıcı tarafından kullanılan yetkilendirme. Bu, olayın RBAC özelliklerini yakalar. Bunlar genellikle 'action', 'role' ve 'scope' içerir

ErrorResponse

Hata yanıtının biçimini açıklar.

Name Tür Description
code

string

Hata kodu

message

string

İşlemin neden başarısız olduğunu belirten hata iletisi.

EventData

Azure olay günlüğü girişleri EventData türündedir

Name Tür Description
authorization

SenderAuthorization

Gönderen yetkilendirme bilgileri.

caller

string

kullanılabilirliğe göre işlemi gerçekleştiren kullanıcının e-posta adresi, UPN talebi veya SPN talebi.

category

LocalizableString

olay kategorisi.

claims

object

ARM izinlerini tanımlamak için anahtar değer çiftleri.

correlationId

string

bağıntı kimliği, genellikle dize biçiminde bir GUID. Bağıntı kimliği aynı uber işlemine ait olaylar arasında paylaşılır.

description

string

olayın açıklaması.

eventDataId

string

olay veri kimliği. Bu, bir olayın benzersiz tanımlayıcısıdır.

eventName

LocalizableString

olay adı. Bu değer OperationName ile karıştırılmamalıdır. Pratik amaçlar doğrultusunda OperationName son kullanıcılar için daha çekici olabilir.

eventTimestamp

string

olaya karşılık gelen isteği işleyen Azure hizmeti tarafından olayın ne zaman oluşturulduğunun zaman damgası. ISO 8601 biçimindedir.

httpRequest

HttpRequestInfo

HTTP isteği bilgileri. Genellikle 'clientRequestId', 'clientIpAddress' (olayı başlatan kullanıcının IP adresi) ve 'yöntem' (PUT gibi HTTP yöntemi) içerir.

id

string

RBAC için ARM'nin gerektirdiği şekilde bu olayın kimliği. EventDataID ve zaman damgası bilgilerini içerir.

level

EventLevel

olay düzeyi

operationId

string

Genellikle tek işleme karşılık gelen olaylar arasında paylaşılan bir GUID'dir. Bu değer EventName ile karıştırılmamalıdır.

operationName

LocalizableString

işlem adı.

properties

object

<olayla ilgili ayrıntıları içeren Anahtar, Değer> çiftleri kümesi (genellikle Sözlük<Dizesi, Dize>).

resourceGroupName

string

etkilenen kaynağın kaynak grubu adı.

resourceId

string

bu olaya neden olan kaynağı benzersiz olarak tanımlayan kaynak uri'sini seçin.

resourceProviderName

LocalizableString

etkilenen kaynağın kaynak sağlayıcısı adı.

resourceType

LocalizableString

kaynak türü

status

LocalizableString

işlemin durumunu açıklayan bir dize. Bazı tipik değerler şunlardır: Başlatıldı, Devam Ediyor, Başarılı, Başarısız, Çözüldü.

subStatus

LocalizableString

olay alt durumu. Bu, çoğu zaman dahil edildiğinde REST çağrısının HTTP durum kodunu yakalar. Genel değerler şunlardır: Tamam (HTTP Durum Kodu: 200), Oluşturuldu (HTTP Durum Kodu: 201), Kabul Edildi (HTTP Durum Kodu: 202), İçerik Yok (HTTP Durum Kodu: 204), Hatalı İstek (HTTP Durum Kodu: 400), Bulunamadı (HTTP Durum Kodu: 404), Çakışma (HTTP Durum Kodu: 409), İç Sunucu Hatası (HTTP Durum Kodu: 500), Hizmet Kullanılamıyor (HTTP Durum Kodu:503), Ağ Geçidi Zaman Aşımı (HTTP Durum Kodu: 504)

submissionTimestamp

string

olayın bu API aracılığıyla sorgulanabilir duruma geldiğindeki zaman damgası. ISO 8601 biçimindedir. Bu değer karıştırılmamalıdır eventTimestamp. Olayın oluşum zamanı ile olayın Azure günlük altyapısına gönderilme süresi arasında bir gecikme olabileceğinden.

subscriptionId

string

Azure abonelik kimliği genellikle bir GUID'dir.

tenantId

string

Azure kiracı kimliği

EventDataCollection

Olay koleksiyonunu temsil eder.

Name Tür Description
nextLink

string

Sonraki olay kümesini almak için bağlantı sağlar.

value

EventData[]

Azure denetim günlüklerini içeren bu liste.

EventLevel

olay düzeyi

Name Tür Description
Critical

string

Error

string

Informational

string

Verbose

string

Warning

string

HttpRequestInfo

Http isteği bilgileri.

Name Tür Description
clientIpAddress

string

istemci IP Adresi

clientRequestId

string

istemci isteği kimliği.

method

string

Http isteği yöntemi.

uri

string

Uri.

LocalizableString

Yerelleştirilebilir dize sınıfı.

Name Tür Description
localizedValue

string

yerel ayara özgü değer.

value

string

sabit değerdir.

SenderAuthorization

bu olaya yol açan işlemi gerçekleştiren kullanıcı tarafından kullanılan yetkilendirme. Bu, olayın RBAC özelliklerini yakalar. Bunlar genellikle 'action', 'role' ve 'scope' içerir

Name Tür Description
action

string

izin verilen eylemler. Örneğin: microsoft.support/supporttickets/write

role

string

kullanıcının rolü. Örneğin: Abonelik Yönetici

scope

string

kapsamına bakın.