Compartilhar via


StorageSubscriptionMockingExtension.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 virtual Azure.AsyncPageable<Azure.ResourceManager.Storage.Models.StorageUsage> GetUsagesByLocationAsync (Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default);
abstract member GetUsagesByLocationAsync : Azure.Core.AzureLocation * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Storage.Models.StorageUsage>
override this.GetUsagesByLocationAsync : Azure.Core.AzureLocation * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Storage.Models.StorageUsage>
Public Overridable Function GetUsagesByLocationAsync (location As AzureLocation, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of StorageUsage)

Parâmetros

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