你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

DiskEncryptionSet Class

disk encryption set resource.

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

All required parameters must be populated in order to send to server.

Constructor

DiskEncryptionSet(*, ___location: str, tags: Dict[str, str] | None = None, identity: _models.EncryptionSetIdentity | None = None, encryption_type: str | _models.DiskEncryptionSetType | None = None, active_key: _models.KeyForDiskEncryptionSet | None = None, rotation_to_latest_key_version_enabled: bool | None = None, federated_client_id: str | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
___location
str

Resource ___location. Required.

tags

Resource tags.

Default value: None
identity

The managed identity for the disk encryption set. It should be given permission on the key vault before it can be used to encrypt disks.

Default value: None
encryption_type

The type of key used to encrypt the data of the disk. Known values are: "EncryptionAtRestWithCustomerKey", "EncryptionAtRestWithPlatformAndCustomerKeys", and "ConfidentialVmEncryptedWithCustomerKey".

Default value: None
active_key

The key vault key which is currently used by this disk encryption set.

Default value: None
rotation_to_latest_key_version_enabled

Set this flag to true to enable auto-updating of this disk encryption set to the latest key version.

Default value: None
federated_client_id
str

Multi-tenant application client id to access key vault in a different tenant. Setting the value to 'None' will clear the property.

Default value: None

Variables

Name Description
id
str

Resource Id.

name
str

Resource name.

type
str

Resource type.

___location
str

Resource ___location. Required.

tags

Resource tags.

identity

The managed identity for the disk encryption set. It should be given permission on the key vault before it can be used to encrypt disks.

encryption_type

The type of key used to encrypt the data of the disk. Known values are: "EncryptionAtRestWithCustomerKey", "EncryptionAtRestWithPlatformAndCustomerKeys", and "ConfidentialVmEncryptedWithCustomerKey".

active_key

The key vault key which is currently used by this disk encryption set.

previous_keys

A readonly collection of key vault keys previously used by this disk encryption set while a key rotation is in progress. It will be empty if there is no ongoing key rotation.

provisioning_state
str

The disk encryption set provisioning state.

rotation_to_latest_key_version_enabled

Set this flag to true to enable auto-updating of this disk encryption set to the latest key version.

last_key_rotation_timestamp

The time when the active key of this disk encryption set was updated.

auto_key_rotation_error

The error that was encountered during auto-key rotation. If an error is present, then auto-key rotation will not be attempted until the error on this disk encryption set is fixed.

federated_client_id
str

Multi-tenant application client id to access key vault in a different tenant. Setting the value to 'None' will clear the property.