Compartilhar via


ResourceGraphExtensions.GetResources 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 Azure.Response<Azure.ResourceManager.ResourceGraph.Models.ResourceQueryResult> GetResources (this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.ResourceManager.ResourceGraph.Models.ResourceQueryContent content, System.Threading.CancellationToken cancellationToken = default);
static member GetResources : Azure.ResourceManager.Resources.TenantResource * Azure.ResourceManager.ResourceGraph.Models.ResourceQueryContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ResourceGraph.Models.ResourceQueryResult>
<Extension()>
Public Function GetResources (tenantResource As TenantResource, content As ResourceQueryContent, Optional cancellationToken As CancellationToken = Nothing) As 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