IActivityLogsOperations.ListWithHttpMessagesAsync(ODataQuery<EventData>, String, Dictionary<String,List<String>>, CancellationToken) Method

Definition

Provides the list of records from the activity logs.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Monitor.Models.EventData>>> ListWithHttpMessagesAsync (Microsoft.Rest.Azure.OData.ODataQuery<Microsoft.Azure.Management.Monitor.Models.EventData> odataQuery, string select = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ListWithHttpMessagesAsync : Microsoft.Rest.Azure.OData.ODataQuery<Microsoft.Azure.Management.Monitor.Models.EventData> * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Monitor.Models.EventData>>>
Public Function ListWithHttpMessagesAsync (odataQuery As ODataQuery(Of EventData), Optional select As String = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of IPage(Of EventData)))

Parameters

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

customHeaders
System.Collections.Generic.Dictionary<System.String,System.Collections.Generic.List<System.String>>

The headers that will be added to request.

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

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

Exceptions

Thrown when the operation returned an invalid status code

Thrown when unable to deserialize the response

Thrown when a required parameter is null

Applies to