DiskEncryptionSet 類別
磁片加密集資源。
變數只會由伺服器填入,而且會在傳送要求時予以忽略。
必須填入所有必要的參數,才能傳送至 Azure。
- 繼承
-
azure.mgmt.compute.v2021_08_01.models._models_py3.ResourceDiskEncryptionSet
建構函式
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, **kwargs: Any)
Keyword-Only Parameters
- location
- str
資源位置。 必要。
- identity
- EncryptionSetIdentity
磁片加密集的受控識別。 它應該授與金鑰保存庫的許可權,才能用來加密磁片。
- encryption_type
- str 或 DiskEncryptionSetType
用來加密磁片資料的金鑰類型。 已知值為:「EncryptionAtRestWithCustomerKey」、「EncryptionAtRestWithPlatformAndCustomerKeys」和「ConfidentialVmEncryptedWithCustomerKey」。
- active_key
- KeyForDiskEncryptionSet
此磁片加密集目前使用的金鑰保存庫金鑰。
- rotation_to_latest_key_version_enabled
- bool
將此旗標設定為 true,以啟用此磁片加密設定為最新金鑰版本的自動更新。
變數
- id
- str
資源識別碼。
- name
- str
資源名稱。
- type
- str
資源類型。
- location
- str
資源位置。 必要。
- identity
- EncryptionSetIdentity
磁片加密集的受控識別。 它應該授與金鑰保存庫的許可權,才能用來加密磁片。
- encryption_type
- str 或 DiskEncryptionSetType
用來加密磁片資料的金鑰類型。 已知值為:「EncryptionAtRestWithCustomerKey」、「EncryptionAtRestWithPlatformAndCustomerKeys」和「ConfidentialVmEncryptedWithCustomerKey」。
- active_key
- KeyForDiskEncryptionSet
此磁片加密集目前使用的金鑰保存庫金鑰。
- previous_keys
- list[KeyForDiskEncryptionSet]
金鑰輪替進行時,此磁片加密集先前使用的金鑰保存庫金鑰唯讀集合。 如果沒有進行中的金鑰輪替,則會是空的。
- provisioning_state
- str
磁片加密集布建狀態。
- rotation_to_latest_key_version_enabled
- bool
將此旗標設定為 true,以啟用此磁片加密設定為最新金鑰版本的自動更新。
- last_key_rotation_timestamp
- datetime
更新此磁片加密集作用中金鑰的時間。
- auto_key_rotation_error
- ApiError
自動金鑰輪替期間遇到的錯誤。 如果發生錯誤,則除非修正此磁片加密集上的錯誤,否則不會嘗試自動金鑰輪替。