CreationData Class

Data used when creating a disk.

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

Inheritance
azure.mgmt.compute._serialization.Model
CreationData

Constructor

CreationData(*, create_option: str | _models.DiskCreateOption, storage_account_id: str | None = None, image_reference: _models.ImageDiskReference | None = None, source_uri: str | None = None, source_resource_id: str | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
create_option

This enumerates the possible sources of a disk's creation. Required. Known values are: "Empty", "Attach", "FromImage", "Import", "Copy", and "Restore".

storage_account_id
str

If createOption is Import, the Azure Resource Manager identifier of the storage account containing the blob to import as a disk. Required only if the blob is in a different subscription.

image_reference

Disk source information.

source_uri
str

If createOption is Import, this is a SAS URI to a blob to be imported into a managed disk. If createOption is Copy, this is a relative Uri containing the id of the source snapshot to be copied into a managed disk.

source_resource_id
str

If createOption is Copy, this is the ARM id of the source snapshot or disk. If createOption is Restore, this is the ARM-like id of the source disk restore point.

Variables

Name Description
create_option

This enumerates the possible sources of a disk's creation. Required. Known values are: "Empty", "Attach", "FromImage", "Import", "Copy", and "Restore".

storage_account_id
str

If createOption is Import, the Azure Resource Manager identifier of the storage account containing the blob to import as a disk. Required only if the blob is in a different subscription.

image_reference

Disk source information.

source_uri
str

If createOption is Import, this is a SAS URI to a blob to be imported into a managed disk. If createOption is Copy, this is a relative Uri containing the id of the source snapshot to be copied into a managed disk.

source_resource_id
str

If createOption is Copy, this is the ARM id of the source snapshot or disk. If createOption is Restore, this is the ARM-like id of the source disk restore point.