Partilhar via


CostManagementExtensions.UsageQuery 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 Azure.Response<Azure.ResourceManager.CostManagement.Models.QueryResult> UsageQuery (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, Azure.ResourceManager.CostManagement.Models.QueryDefinition queryDefinition, System.Threading.CancellationToken cancellationToken = default);
static member UsageQuery : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * Azure.ResourceManager.CostManagement.Models.QueryDefinition * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.CostManagement.Models.QueryResult>
<Extension()>
Public Function UsageQuery (client As ArmClient, scope As ResourceIdentifier, queryDefinition As QueryDefinition, Optional cancellationToken As CancellationToken = Nothing) As 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