Condividi tramite


KeyClient.GetKeyAttestationAsync(String, String, CancellationToken) Method

Definition

Gets the public part of a stored key along with its attestation blob.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Security.KeyVault.Keys.KeyVaultKey>> GetKeyAttestationAsync(string name, string version = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetKeyAttestationAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Security.KeyVault.Keys.KeyVaultKey>>
override this.GetKeyAttestationAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Security.KeyVault.Keys.KeyVaultKey>>
Public Overridable Function GetKeyAttestationAsync (name As String, Optional version As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of KeyVaultKey))

Parameters

name
String

The name of the key.

version
String

Optional version of the key. If not specified, gets the latest version of the key.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

The key attestation.

Exceptions

name is an empty string.

name is null.

The server returned an error. See Message for details returned from the server.

Remarks

This operation is applicable to any key stored in Azure Key Vault Managed HSM. This operation requires the keys/get permission.

Applies to