Share via


TenantActivityLogsOperationsExtensions.ListAsync Method

Definition

Gets the Activity Logs for the Tenant.<br>Everything that is applicable to the API to get the Activity Logs for the subscription is applicable to this API (the parameters, $filter, etc.).<br>One thing to point out here is that this API does not retrieve the logs at the individual subscription of the tenant but only surfaces the logs that were generated at the tenant level.

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Monitor.Models.EventData>> ListAsync (this Microsoft.Azure.Management.Monitor.ITenantActivityLogsOperations operations, Microsoft.Rest.Azure.OData.ODataQuery<Microsoft.Azure.Management.Monitor.Models.EventData> odataQuery = default, string select = default, System.Threading.CancellationToken cancellationToken = default);
static member ListAsync : Microsoft.Azure.Management.Monitor.ITenantActivityLogsOperations * Microsoft.Rest.Azure.OData.ODataQuery<Microsoft.Azure.Management.Monitor.Models.EventData> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Monitor.Models.EventData>>
<Extension()>
Public Function ListAsync (operations As ITenantActivityLogsOperations, Optional odataQuery As ODataQuery(Of EventData) = Nothing, Optional select As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPage(Of EventData))

Parameters

operations
ITenantActivityLogsOperations

The operations group for this extension method.

odataQuery
ODataQuery<EventData>

OData parameters to apply to the operation.

select
String

Used to fetch events with only the given properties.<br>The $select argument is a comma separated list of property names to be returned. Possible values are: authorization, claims, correlationId, description, eventDataId, eventName, eventTimestamp, httpRequest, level, operationId, operationName, properties, resourceGroupName, resourceProviderName, resourceId, status, submissionTimestamp, subStatus, subscriptionId

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to