Partilhar via


StorageExtensions.GetUsagesByLocationAsync Método

Definição

Obtém a contagem de uso atual e o limite para os recursos do local na assinatura.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.Storage/locations/{location}/usages
  • Operação IdUsages_ListByLocation
public static Azure.AsyncPageable<Azure.ResourceManager.Storage.Models.StorageUsage> GetUsagesByLocationAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default);
static member GetUsagesByLocationAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Storage.Models.StorageUsage>
<Extension()>
Public Function GetUsagesByLocationAsync (subscriptionResource As SubscriptionResource, location As AzureLocation, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of StorageUsage)

Parâmetros

subscriptionResource
SubscriptionResource

A SubscriptionResource instância em que o método será executado.

location
AzureLocation

O local do recurso de Armazenamento do Azure.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Uma coleção assíncrona de StorageUsage que pode levar várias solicitações de serviço para iterar.

Aplica-se a