CreationData Class
Data used when creating a disk.
All required parameters must be populated in order to send to Azure.
- Inheritance
-
CreationData
Constructor
CreationData(*, create_option: Union[str, azure.mgmt.compute.v2018_09_30.models._compute_management_client_enums.DiskCreateOption], storage_account_id: Optional[str] = None, image_reference: Optional[azure.mgmt.compute.v2018_09_30.models._models_py3.ImageDiskReference] = None, source_uri: Optional[str] = None, source_resource_id: Optional[str] = None, **kwargs)
Parameters
- create_option
- str or DiskCreateOption
Required. This enumerates the possible sources of a disk's creation. Possible values include: "Empty", "Attach", "FromImage", "Import", "Copy", "Restore", "Upload".
- 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.
- source_uri
- str
If createOption is Import, this is the URI of a blob to be imported into a managed disk.
- source_resource_id
- str
If createOption is Copy, this is the ARM id of the source snapshot or disk.
Feedback
Submit and view feedback for