IUsageOperations.ListWithHttpMessagesAsync Method

Definition

Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Compute.Fluent.Models.UsageInner>>> ListWithHttpMessagesAsync (string location, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);

Parameters

location
String

The location for which resource usage is queried.

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

Prodotto Versioni
Azure SDK for .NET Legacy