ActivityLogsOperationsExtensions.ListAsync Method

Definition

Provides the list of records from the activity logs.

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

Parameters

operations
IActivityLogsOperations

The operations group for this extension method.

odataQuery
ODataQuery<EventData>

OData parameters to apply to the operation.

select
System.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
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<IPage<EventData>>

Applies to