共用方式為


IQuotaOperations.BeginUpdateWithHttpMessagesAsync Method

Definition

Update the quota (service limits) of this resource to the requested value.

• To get the quota information for specific resource, send a GET request.

• To increase the quota, update the limit field from the GET response to a new value.

• To update the quota value, submit the JSON response to the quota request API to update the quota. • To update the quota. use the PATCH operation.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<object>> BeginUpdateWithHttpMessagesAsync (string subscriptionId, string providerId, string location, string resourceName, Microsoft.Azure.Management.Reservations.Models.CurrentQuotaLimitBase createQuotaRequest, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member BeginUpdateWithHttpMessagesAsync : string * string * string * string * Microsoft.Azure.Management.Reservations.Models.CurrentQuotaLimitBase * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<obj>>
Public Function BeginUpdateWithHttpMessagesAsync (subscriptionId As String, providerId As String, location As String, resourceName As String, createQuotaRequest As CurrentQuotaLimitBase, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of Object))

Parameters

subscriptionId
String

Azure subscription ID.

providerId
String

Azure resource provider ID.

location
String

Azure region.

resourceName
String

The resource name for a resource provider, such as SKU name for Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices

createQuotaRequest
CurrentQuotaLimitBase

Payload for the quota request.

customHeaders
Dictionary<String,List<String>>

The headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

Thrown when the operation returned an invalid status code

Thrown when unable to deserialize the response

Thrown when a required parameter is null

Applies to