Key Class

The key resource.

Variables are only populated by the server, and will be ignored when sending a request.

Inheritance
azure.mgmt.keyvault.v2021_06_01_preview.models._models_py3.Resource
Key

Constructor

Key(*, attributes: Optional[azure.mgmt.keyvault.v2021_06_01_preview.models._models_py3.KeyAttributes] = None, kty: Optional[Union[str, azure.mgmt.keyvault.v2021_06_01_preview.models._key_vault_management_client_enums.JsonWebKeyType]] = None, key_ops: Optional[List[Union[str, azure.mgmt.keyvault.v2021_06_01_preview.models._key_vault_management_client_enums.JsonWebKeyOperation]]] = None, key_size: Optional[int] = None, curve_name: Optional[Union[str, azure.mgmt.keyvault.v2021_06_01_preview.models._key_vault_management_client_enums.JsonWebKeyCurveName]] = None, rotation_policy: Optional[azure.mgmt.keyvault.v2021_06_01_preview.models._models_py3.RotationPolicy] = None, release_policy: Optional[azure.mgmt.keyvault.v2021_06_01_preview.models._models_py3.KeyReleasePolicy] = None, **kwargs)

Variables

id
str

Fully qualified identifier of the key vault resource.

name
str

Name of the key vault resource.

type
str

Resource type of the key vault resource.

location
str

Azure location of the key vault resource.

tags
dict[str, str]

A set of tags. Tags assigned to the key vault resource.

attributes
KeyAttributes

The attributes of the key.

kty
str or JsonWebKeyType

The type of the key. For valid values, see JsonWebKeyType. Possible values include: "EC", "EC-HSM", "RSA", "RSA-HSM".

key_size
int

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

curve_name
str or JsonWebKeyCurveName

The elliptic curve name. For valid values, see JsonWebKeyCurveName. Possible values include: "P-256", "P-384", "P-521", "P-256K".

key_uri
str

The URI to retrieve the current version of the key.

key_uri_with_version
str

The URI to retrieve the specific version of the key.

rotation_policy
RotationPolicy

Key rotation policy in response. It will be used for both output and input. Omitted if empty.

release_policy
KeyReleasePolicy

Key release policy in response. It will be used for both output and input. Omitted if empty.