ResourceGroupsOperationsExtensions.ListAsync(IResourceGroupsOperations, ODataQuery<ResourceGroupFilterInner>, CancellationToken) Method

Definition

Gets a collection of resource groups.

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.ResourceManager.Fluent.Models.ResourceGroupInner>> ListAsync (this Microsoft.Azure.Management.ResourceManager.Fluent.IResourceGroupsOperations operations, Microsoft.Rest.Azure.OData.ODataQuery<Microsoft.Azure.Management.ResourceManager.Fluent.Models.ResourceGroupFilterInner> odataQuery = null, System.Threading.CancellationToken cancellationToken = null);
static member ListAsync : Microsoft.Azure.Management.ResourceManager.Fluent.IResourceGroupsOperations * Microsoft.Rest.Azure.OData.ODataQuery<Microsoft.Azure.Management.ResourceManager.Fluent.Models.ResourceGroupFilterInner> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.ResourceManager.Fluent.Models.ResourceGroupInner>>

Parameters

operations
IResourceGroupsOperations

The operations group for this extension method.

odataQuery
Microsoft.Rest.Azure.OData.ODataQuery<ResourceGroupFilterInner>

OData parameters to apply to the operation.

cancellationToken
CancellationToken

The cancellation token.

Returns

Task<Microsoft.Rest.Azure.IPage<ResourceGroupInner>>

Applies to