Compartilhar via


PolicyInsightsExtensions.GetPolicyMetadataAsync Método

Definição

Obter recurso de metadados de política.

  • Caminho da Solicitação/provedores/Microsoft.PolicyInsights/policyMetadata/{resourceName}
  • IdPolicyMetadata_GetResource de operação
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.PolicyInsights.PolicyMetadataResource>> GetPolicyMetadataAsync (this Azure.ResourceManager.Resources.TenantResource tenantResource, string resourceName, System.Threading.CancellationToken cancellationToken = default);
static member GetPolicyMetadataAsync : Azure.ResourceManager.Resources.TenantResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.PolicyInsights.PolicyMetadataResource>>
<Extension()>
Public Function GetPolicyMetadataAsync (tenantResource As TenantResource, resourceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of PolicyMetadataResource))

Parâmetros

tenantResource
TenantResource

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

resourceName
String

O nome do recurso de metadados de política.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

resourceName é nulo.

Aplica-se a