Bagikan melalui


KeyClient.ReleaseKeyAsync Method

Definition

Overloads

ReleaseKeyAsync(ReleaseKeyOptions, CancellationToken)

Releases a key.

ReleaseKeyAsync(String, String, CancellationToken)

Releases the latest version of a key.

ReleaseKeyAsync(ReleaseKeyOptions, CancellationToken)

Source:
KeyClient.cs
Source:
KeyClient.cs

Releases a key.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Security.KeyVault.Keys.ReleaseKeyResult>> ReleaseKeyAsync (Azure.Security.KeyVault.Keys.ReleaseKeyOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member ReleaseKeyAsync : Azure.Security.KeyVault.Keys.ReleaseKeyOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Security.KeyVault.Keys.ReleaseKeyResult>>
override this.ReleaseKeyAsync : Azure.Security.KeyVault.Keys.ReleaseKeyOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Security.KeyVault.Keys.ReleaseKeyResult>>
Public Overridable Function ReleaseKeyAsync (options As ReleaseKeyOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ReleaseKeyResult))

Parameters

options
ReleaseKeyOptions

ReleaseKeyOptions containing the name, attestation assertion for the target, and additional options to release a key.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

The key release result containing the released key.

Exceptions

options is null.

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

Remarks

The key must be exportable. This operation requires the keys/release permission.

Applies to

ReleaseKeyAsync(String, String, CancellationToken)

Source:
KeyClient.cs
Source:
KeyClient.cs

Releases the latest version of a key.

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

Parameters

name
String

The name of the key to release.

targetAttestationToken
String

The attestation assertion for the target of the key release.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

The key release result containing the released key.

Exceptions

name or targetAttestationToken contains an empty string.

name or targetAttestationToken is null.

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

Remarks

The key must be exportable. This operation requires the keys/release permission.

Applies to