Partilhar via


ResourceGraphExtensions.GetResourcesAsync Método

Definição

Consulta os recursos gerenciados pelo Azure Resource Manager para escopos especificados na solicitação.

  • Caminho/provedores de solicitação/Microsoft.ResourceGraph/resources
  • IdResources da operação
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ResourceGraph.Models.ResourceQueryResult>> GetResourcesAsync (this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.ResourceManager.ResourceGraph.Models.ResourceQueryContent content, System.Threading.CancellationToken cancellationToken = default);
static member GetResourcesAsync : Azure.ResourceManager.Resources.TenantResource * Azure.ResourceManager.ResourceGraph.Models.ResourceQueryContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ResourceGraph.Models.ResourceQueryResult>>
<Extension()>
Public Function GetResourcesAsync (tenantResource As TenantResource, content As ResourceQueryContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ResourceQueryResult))

Parâmetros

tenantResource
TenantResource

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

content
ResourceQueryContent

Solicitação especificando a consulta e suas opções.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

content é nulo.

Aplica-se a