UsagesOperationsExtensions.GetAsync Method

Definition

Get the current usage of a resource.

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

Parameters

operations
IUsagesOperations

The operations group for this extension method.

resourceName
String

Resource name for a given resource provider. For example:

  • SKU name for Microsoft.Compute
  • SKU or TotalLowPriorityCores for Microsoft.MachineLearningServices For Microsoft.Network PublicIPAddresses.
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