QuotaOperationsExtensions.GetAsync Method

Definition

Get the quota limit of a resource. The response can be used to determine the remaining quota to calculate a new quota limit that can be submitted with a PUT request.

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

Parameters

operations
IQuotaOperations

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