Partilhar via


CostManagementExtensions.UsageQueryAsync Método

Definição

Consulte os dados de uso para o escopo definido.

  • Caminho da solicitação/{scope}/providers/Microsoft.CostManagement/query
  • IdQuery_Usage de operação
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CostManagement.Models.QueryResult>> UsageQueryAsync (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, Azure.ResourceManager.CostManagement.Models.QueryDefinition queryDefinition, System.Threading.CancellationToken cancellationToken = default);
static member UsageQueryAsync : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * Azure.ResourceManager.CostManagement.Models.QueryDefinition * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CostManagement.Models.QueryResult>>
<Extension()>
Public Function UsageQueryAsync (client As ArmClient, scope As ResourceIdentifier, queryDefinition As QueryDefinition, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of QueryResult))

Parâmetros

client
ArmClient

A ArmClient instância na qual o método será executado.

scope
ResourceIdentifier

O escopo ao qual o recurso será aplicado.

queryDefinition
QueryDefinition

Parâmetros fornecidos para a operação CreateOrUpdate Query Config.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

queryDefinition é nulo.

Aplica-se a