共用方式為


Snapshot 類別

快照集資源。

變數只會由伺服器填入,而且會在傳送要求時予以忽略。

必須填入所有必要的參數,才能傳送至 Azure。

繼承
azure.mgmt.compute.v2016_04_30_preview.models._models_py3.Resource
Snapshot

建構函式

Snapshot(*, location: str, tags: Dict[str, str] | None = None, account_type: str | _models.StorageAccountTypes | None = None, os_type: str | _models.OperatingSystemTypes | None = None, creation_data: _models.CreationData | None = None, disk_size_gb: int | None = None, encryption_settings: _models.EncryptionSettings | None = None, **kwargs: Any)

Keyword-Only Parameters

location
str

資源位置。 必要。

tags
dict[str, str]

資源標籤。

account_type
strStorageAccountTypes

磁片的儲存體帳戶類型。 已知值為:「Standard_LRS」和「Premium_LRS」。

os_type
strOperatingSystemTypes

作業系統類型。 已知值為:「Windows」 和 「Linux」。

creation_data
CreationData

磁片來源資訊。 建立磁片之後,無法變更 CreationData 資訊。

disk_size_gb
int

如果 creationData.createOption 是空的,此欄位是必要欄位,而且會指出要建立的 VHD 大小。 如果此欄位存在以使用其他選項進行更新或建立,則表示調整大小。 只有在磁片未連結至執行中的 VM 時,才允許調整大小,而且只能增加磁片的大小。

encryption_settings
EncryptionSettings

磁片或快照集的加密設定。

變數

id
str

資源識別碼。

name
str

資源名稱。

type
str

資源類型。

location
str

資源位置。 必要。

tags
dict[str, str]

資源標籤。

account_type
strStorageAccountTypes

磁片的儲存體帳戶類型。 已知值為:「Standard_LRS」和「Premium_LRS」。

time_created
datetime

建立磁片的時間。

os_type
strOperatingSystemTypes

作業系統類型。 已知值為:「Windows」 和 「Linux」。

creation_data
CreationData

磁片來源資訊。 建立磁片之後,無法變更 CreationData 資訊。

disk_size_gb
int

如果 creationData.createOption 是空的,此欄位是必要欄位,而且會指出要建立的 VHD 大小。 如果此欄位存在以使用其他選項進行更新或建立,則表示調整大小。 只有在磁片未連結至執行中的 VM 時,才允許調整大小,而且只能增加磁片的大小。

encryption_settings
EncryptionSettings

磁片或快照集的加密設定。

owner_id
str

相對 URI,其中包含已連結磁片的 VM 識別碼。

provisioning_state
str

磁片布建狀態。