ResourceGroupsOperationsExtensions.ListResourcesAsync(IResourceGroupsOperations, String, ODataQuery<GenericResourceFilterInner>, CancellationToken) Method
Definition
Get all of the resources under a subscription.
public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.ResourceManager.Fluent.Models.GenericResourceInner>> ListResourcesAsync (this Microsoft.Azure.Management.ResourceManager.Fluent.IResourceGroupsOperations operations, string resourceGroupName, Microsoft.Rest.Azure.OData.ODataQuery<Microsoft.Azure.Management.ResourceManager.Fluent.Models.GenericResourceFilterInner> odataQuery = null, System.Threading.CancellationToken cancellationToken = null);
static member ListResourcesAsync : Microsoft.Azure.Management.ResourceManager.Fluent.IResourceGroupsOperations * string * Microsoft.Rest.Azure.OData.ODataQuery<Microsoft.Azure.Management.ResourceManager.Fluent.Models.GenericResourceFilterInner> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.ResourceManager.Fluent.Models.GenericResourceInner>>
Parameters
- operations
- IResourceGroupsOperations
The operations group for this extension method.
- resourceGroupName
- String
Query parameters. If null is passed returns all resource groups.
- odataQuery
- Microsoft.Rest.Azure.OData.ODataQuery<GenericResourceFilterInner>
OData parameters to apply to the operation.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
- Task<Microsoft.Rest.Azure.IPage<GenericResourceInner>>