你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
CreationData Class
Data used when creating a disk.
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.
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, upload_size_bytes: int | 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", "Restore", "Upload", and "Import". |
storage_account_id
|
Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk. Default value: None
|
image_reference
|
Disk source information. Default value: None
|
source_uri
|
If createOption is Import, this is the URI of a blob to be imported into a managed disk. Default value: None
|
source_resource_id
|
If createOption is Copy, this is the ARM id of the source snapshot or disk. Default value: None
|
upload_size_bytes
|
If createOption is Upload, this is the size of the contents of the upload including the VHD footer. This value should be between 20972032 (20 MiB + 512 bytes for the VHD footer) and 35183298347520 bytes (32 TiB + 512 bytes for the VHD footer). Default value: None
|
Variables
Name | Description |
---|---|
create_option
|
This enumerates the possible sources of a disk's creation. Required. Known values are: "Empty", "Attach", "FromImage", "Import", "Copy", "Restore", "Upload", and "Import". |
storage_account_id
|
Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk. |
image_reference
|
Disk source information. |
source_uri
|
If createOption is Import, this is the URI of a blob to be imported into a managed disk. |
source_resource_id
|
If createOption is Copy, this is the ARM id of the source snapshot or disk. |
source_unique_id
|
If this field is set, this is the unique id identifying the source of this resource. |
upload_size_bytes
|
If createOption is Upload, this is the size of the contents of the upload including the VHD footer. This value should be between 20972032 (20 MiB + 512 bytes for the VHD footer) and 35183298347520 bytes (32 TiB + 512 bytes for the VHD footer). |