共用方式為


IQuotaOperations.ListWithHttpMessagesAsync Method

Definition

Gets a list of current quotas (service limits) and usage for all resources. The response from the list quota operation can be leveraged to request quota updates.

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

Parameters

subscriptionId
String

Azure subscription ID.

providerId
String

Azure resource provider ID.

location
String

Azure region.

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