Condividi tramite


UsagesOperationsExtensions.ListAsync Method

Definition

Get a list of current usage for all resources for the scope specified.

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Quota.Models.CurrentUsagesBase>> ListAsync (this Microsoft.Azure.Management.Quota.IUsagesOperations operations, string scope, System.Threading.CancellationToken cancellationToken = default);
static member ListAsync : Microsoft.Azure.Management.Quota.IUsagesOperations * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Quota.Models.CurrentUsagesBase>>
<Extension()>
Public Function ListAsync (operations As IUsagesOperations, scope As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPage(Of CurrentUsagesBase))

Parameters

operations
IUsagesOperations

The operations group for this extension method.

scope
String

The target Azure resource URI. For example, /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/. This is the target Azure resource URI for the List GET operation. If a {resourceName} is added after /quotas, then it's the target Azure resource URI in the GET operation for the specific resource.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to