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 Azure.
- Inheritance
-
azure.mgmt.compute.v2020_05_01.models._models_py3.ResourceSnapshot
Constructor
Snapshot(*, location: str, tags: Optional[Dict[str, str]] = None, sku: Optional[azure.mgmt.compute.v2020_05_01.models._models_py3.SnapshotSku] = None, os_type: Optional[Union[str, azure.mgmt.compute.v2020_05_01.models._compute_management_client_enums.OperatingSystemTypes]] = None, hyper_v_generation: Optional[Union[str, azure.mgmt.compute.v2020_05_01.models._compute_management_client_enums.HyperVGeneration]] = None, creation_data: Optional[azure.mgmt.compute.v2020_05_01.models._models_py3.CreationData] = None, disk_size_gb: Optional[int] = None, encryption_settings_collection: Optional[azure.mgmt.compute.v2020_05_01.models._models_py3.EncryptionSettingsCollection] = None, incremental: Optional[bool] = None, encryption: Optional[azure.mgmt.compute.v2020_05_01.models._models_py3.Encryption] = None, network_access_policy: Optional[Union[str, azure.mgmt.compute.v2020_05_01.models._compute_management_client_enums.NetworkAccessPolicy]] = None, disk_access_id: Optional[str] = None, **kwargs)
Parameters
- os_type
- str or OperatingSystemTypes
The Operating System type. Possible values include: "Windows", "Linux".
- hyper_v_generation
- str or HyperVGeneration
The hypervisor generation of the Virtual Machine. Applicable to OS disks only. Possible values include: "V1", "V2".
- creation_data
- CreationData
Disk source information. CreationData information cannot be changed after the disk has been created.
- disk_size_gb
- int
If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk 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_collection
- EncryptionSettingsCollection
Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.
- incremental
- bool
Whether a snapshot is incremental. Incremental snapshots on the same disk occupy less space than full snapshots and can be diffed.
- encryption
- Encryption
Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.
- network_access_policy
- str or NetworkAccessPolicy
Policy for accessing the disk via network. Possible values include: "AllowAll", "AllowPrivate", "DenyAll".
Variables
- id
- str
Resource Id.
- name
- str
Resource name.
- type
- str
Resource type.
- managed_by
- str
Unused. Always Null.
- time_created
- datetime
The time when the snapshot was created.
- disk_size_bytes
- <xref:long>
The size of the disk in bytes. This field is read only.
- unique_id
- str
Unique Guid identifying the resource.
- provisioning_state
- str
The disk provisioning state.
Feedback
Submit and view feedback for