v7

latestSwagger 2.0raw.githubusercontent.com2022-12-067889207.3 KB
Keys

Creates a new key, stores it, then returns key parameters and attributes to the client.

The create key operation can be used to create any key type in Azure Key Vault. If the named key already exists, Azure Key Vault creates a new version of the key. It requires the keys/create permission.

post/keys/{key-name}/create

Path parameters

key-namestring required

The name for the new key. The system will generate the version name for the new key.

Query parameters

api-versionstring required

Client API version.

Request body

kty'EC' | 'EC-HSM' | 'RSA' | 'RSA-HSM' | 'oct' required

The type of key to create. For valid values, see JsonWebKeyType.

key_sizeinteger

The key size in bits. For example: 2048, 3072, or 4096 for RSA.

key_opsstring[]
tagsobject

Application specific metadata in the form of key-value pairs.

crv'P-256' | 'P-384' | 'P-521' | 'P-256K'

Elliptic curve name. For valid values, see JsonWebKeyCurveName.

Response

A key bundle containing the result of the create key request.

tagsobject

Application specific metadata in the form of key-value pairs.

managedboolean

True if the key's lifetime is managed by key vault. If this is a key backing a certificate, then managed will be true.

All 78 operations