Snapshot Class
Snapshot 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.
- Inheritance
-
azure.mgmt.compute.v2016_04_30_preview.models._models_py3.ResourceSnapshot
Constructor
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
Name | Description |
---|---|
location
|
Resource location. Required. |
tags
|
Resource tags. |
account_type
|
the storage account type of the disk. Known values are: "Standard_LRS" and "Premium_LRS". |
os_type
|
The Operating System type. Known values are: "Windows" and "Linux". |
creation_data
|
Disk source information. CreationData information cannot be changed after the disk has been created. |
disk_size_gb
|
If creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. |
encryption_settings
|
Encryption settings for disk or snapshot. |
Variables
Name | Description |
---|---|
id
|
Resource Id. |
name
|
Resource name. |
type
|
Resource type. |
location
|
Resource location. Required. |
tags
|
Resource tags. |
account_type
|
the storage account type of the disk. Known values are: "Standard_LRS" and "Premium_LRS". |
time_created
|
The time when the disk was created. |
os_type
|
The Operating System type. Known values are: "Windows" and "Linux". |
creation_data
|
Disk source information. CreationData information cannot be changed after the disk has been created. |
disk_size_gb
|
If creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. |
encryption_settings
|
Encryption settings for disk or snapshot. |
owner_id
|
A relative URI containing the VM id that has the disk attached. |
provisioning_state
|
The disk provisioning state. |
Azure SDK for Python