Skip to main content

import_keys

Creates, updates, deletes, gets or lists an import_keys resource.

Overview

Nameimport_keys
TypeResource
Idazure.key_vault_keys.import_keys

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
import_keyexeckey_name, vault_name, keyImports an externally created key, stores it, and returns key parameters and attributes to the client. The import key operation may be used to import any key type into an Azure Key Vault. If the named key already exists, Azure Key Vault creates a new version of the key. This operation requires the keys/import permission.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
key_namestringName for the imported key. The value you provide may be copied globally for the purpose of running the service. The value provided should not include personally identifiable or sensitive information. Required.
vault_namestringKey vault name. (default: )

Lifecycle Methods

Imports an externally created key, stores it, and returns key parameters and attributes to the client. The import key operation may be used to import any key type into an Azure Key Vault. If the named key already exists, Azure Key Vault creates a new version of the key. This operation requires the keys/import permission.

EXEC azure.key_vault_keys.import_keys.import_key 
@key_name='{{ key_name }}' --required,
@vault_name='{{ vault_name }}' --required
@@json=
'{
"Hsm": {{ Hsm }},
"key": "{{ key }}",
"attributes": "{{ attributes }}",
"tags": "{{ tags }}",
"release_policy": "{{ release_policy }}"
}'
;