Disk Class
A Disk.
Variables are only populated by the server, and will be ignored when sending a request.
Constructor
Disk(*, location: str | None = None, tags: dict[str, str] | None = None, disk_type: str | _models.StorageType | None = None, disk_size_gi_b: int | None = None, leased_by_lab_vm_id: str | None = None, disk_blob_name: str | None = None, disk_uri: str | None = None, storage_account_id: str | None = None, host_caching: str | None = None, managed_disk_id: str | None = None, **kwargs: Any)
Keyword-Only Parameters
| Name | Description |
|---|---|
|
location
|
The location of the resource. Default value: None
|
|
tags
|
The tags of the resource. Default value: None
|
|
disk_type
|
str or
StorageType
The storage type for the disk (i.e. Standard, Premium). Known values are: "Standard", "Premium", and "StandardSSD". Default value: None
|
|
disk_size_gi_b
|
The size of the disk in Gibibytes. Default value: None
|
|
leased_by_lab_vm_id
|
The resource ID of the VM to which this disk is leased. Default value: None
|
|
disk_blob_name
|
When backed by a blob, the name of the VHD blob without extension. Default value: None
|
|
disk_uri
|
When backed by a blob, the URI of underlying blob. Default value: None
|
|
storage_account_id
|
When backed by a blob, the storage account where the blob is. Default value: None
|
|
host_caching
|
The host caching policy of the disk (i.e. None, ReadOnly, ReadWrite). Default value: None
|
|
managed_disk_id
|
When backed by managed disk, this is the ID of the compute disk resource. Default value: None
|
Variables
| Name | Description |
|---|---|
|
id
|
The identifier of the resource. |
|
name
|
The name of the resource. |
|
type
|
The type of the resource. |
|
location
|
The location of the resource. |
|
tags
|
The tags of the resource. |
|
disk_type
|
str or
StorageType
The storage type for the disk (i.e. Standard, Premium). Known values are: "Standard", "Premium", and "StandardSSD". |
|
disk_size_gi_b
|
The size of the disk in Gibibytes. |
|
leased_by_lab_vm_id
|
The resource ID of the VM to which this disk is leased. |
|
disk_blob_name
|
When backed by a blob, the name of the VHD blob without extension. |
|
disk_uri
|
When backed by a blob, the URI of underlying blob. |
|
storage_account_id
|
When backed by a blob, the storage account where the blob is. |
|
created_date
|
The creation date of the disk. |
|
host_caching
|
The host caching policy of the disk (i.e. None, ReadOnly, ReadWrite). |
|
managed_disk_id
|
When backed by managed disk, this is the ID of the compute disk resource. |
|
provisioning_state
|
The provisioning status of the resource. |
|
unique_identifier
|
The unique immutable identifier of a resource (Guid). |