KeyClient.CreateAkpKey(CreateAkpKeyOptions, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates and stores a new Algorithm Key Pair (AKP) key. If the named key already exists, a new version of the key is created. This operation requires the keys/create permission. Only available with service version V2026_07_01_Preview and newer.
public virtual Azure.Response<Azure.Security.KeyVault.Keys.KeyVaultKey> CreateAkpKey(Azure.Security.KeyVault.Keys.CreateAkpKeyOptions akpKeyOptions, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateAkpKey : Azure.Security.KeyVault.Keys.CreateAkpKeyOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Security.KeyVault.Keys.KeyVaultKey>
override this.CreateAkpKey : Azure.Security.KeyVault.Keys.CreateAkpKeyOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Security.KeyVault.Keys.KeyVaultKey>
Public Overridable Function CreateAkpKey (akpKeyOptions As CreateAkpKeyOptions, Optional cancellationToken As CancellationToken = Nothing) As Response(Of KeyVaultKey)
Parameters
- akpKeyOptions
- CreateAkpKeyOptions
The key options object containing information about the Algorithm Key Pair (AKP) key being created.
- cancellationToken
- CancellationToken
A CancellationToken controlling the request lifetime.
Returns
Exceptions
akpKeyOptions is null.
The server returned an error. See Message for details returned from the server.