Compartilhar via


PolicyInsightsExtensions.GetPolicyAttestationAsync 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 System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.PolicyInsights.PolicyAttestationResource>> GetPolicyAttestationAsync (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string attestationName, System.Threading.CancellationToken cancellationToken = default);
static member GetPolicyAttestationAsync : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.PolicyInsights.PolicyAttestationResource>>
<Extension()>
Public Function GetPolicyAttestationAsync (client As ArmClient, scope As ResourceIdentifier, attestationName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of PolicyAttestationResource))

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.

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 era esperado que não estivesse vazio.

attestationName é nulo.

Aplica-se a