Partilhar via


PolicyInsightsExtensions.GetPolicyAttestation Método

Definição

Obtém um atestado existente no escopo do recurso.

  • Caminho da Solicitação/{resourceId}/providers/Microsoft.PolicyInsights/attestations/{attestationName}
  • Operação IdAttestations_GetAtResource
public static Azure.Response<Azure.ResourceManager.PolicyInsights.PolicyAttestationResource> GetPolicyAttestation (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string attestationName, System.Threading.CancellationToken cancellationToken = default);
static member GetPolicyAttestation : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.PolicyInsights.PolicyAttestationResource>
<Extension()>
Public Function GetPolicyAttestation (client As ArmClient, scope As ResourceIdentifier, attestationName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of PolicyAttestationResource)

Parâmetros

client
ArmClient

A ArmClient instância em que o método será executado.

scope
ResourceIdentifier

O escopo no qual o recurso será aplicado.

attestationName
String

O nome do atestado.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

attestationName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

attestationName é nulo.

Aplica-se a