Share via


IAnalyticsItemsOperations.ListWithHttpMessagesAsync Method

Definition

Gets a list of Analytics Items defined within an Application Insights component.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<System.Collections.Generic.IList<Microsoft.Azure.Management.ApplicationInsights.Management.Models.ApplicationInsightsComponentAnalyticsItem>>> ListWithHttpMessagesAsync (string resourceGroupName, string resourceName, string scopePath, string scope = default, string type = default, bool? includeContent = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ListWithHttpMessagesAsync : string * string * string * string * string * Nullable<bool> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<System.Collections.Generic.IList<Microsoft.Azure.Management.ApplicationInsights.Management.Models.ApplicationInsightsComponentAnalyticsItem>>>
Public Function ListWithHttpMessagesAsync (resourceGroupName As String, resourceName As String, scopePath As String, Optional scope As String = Nothing, Optional type As String = Nothing, Optional includeContent As Nullable(Of Boolean) = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of IList(Of ApplicationInsightsComponentAnalyticsItem)))

Parameters

resourceGroupName
String

The name of the resource group. The name is case insensitive.

resourceName
String

The name of the Application Insights component resource.

scopePath
String

Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component. Possible values include: 'analyticsItems', 'myanalyticsItems'

scope
String

Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component. Possible values include: 'shared', 'user'

type
String

Enum indicating the type of the Analytics item. Possible values include: 'none', 'query', 'function', 'folder', 'recent'

includeContent
Nullable<Boolean>

Flag indicating whether or not to return the content of each applicable item. If false, only return the item information.

customHeaders
Dictionary<String,List<String>>

The headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

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