Share via


VirtualHardDisksOperations interface

Interface representing a VirtualHardDisks operations.

Properties

createOrUpdate

The operation to create or update a virtual hard disk. Please note some properties can be set only during virtual hard disk creation.

delete
get

Gets a virtual hard disk

listAll

Lists all of the virtual hard disks in the specified subscription. Use the nextLink property in the response to get the next page of virtual hard disks.

listByResourceGroup

Lists all of the virtual hard disks in the specified resource group. Use the nextLink property in the response to get the next page of virtual hard disks.

update

The operation to update a virtual hard disk.

upload

The operation to upload a virtual hard disk.

Property Details

createOrUpdate

The operation to create or update a virtual hard disk. Please note some properties can be set only during virtual hard disk creation.

createOrUpdate: (resourceGroupName: string, virtualHardDiskName: string, resource: VirtualHardDisk, options?: VirtualHardDisksCreateOrUpdateOptionalParams) => PollerLike<OperationState<VirtualHardDisk>, VirtualHardDisk>

Property Value

(resourceGroupName: string, virtualHardDiskName: string, resource: VirtualHardDisk, options?: VirtualHardDisksCreateOrUpdateOptionalParams) => PollerLike<OperationState<VirtualHardDisk>, VirtualHardDisk>

delete

delete: (resourceGroupName: string, virtualHardDiskName: string, options?: VirtualHardDisksDeleteOptionalParams) => PollerLike<OperationState<void>, void>

Property Value

(resourceGroupName: string, virtualHardDiskName: string, options?: VirtualHardDisksDeleteOptionalParams) => PollerLike<OperationState<void>, void>

get

Gets a virtual hard disk

get: (resourceGroupName: string, virtualHardDiskName: string, options?: VirtualHardDisksGetOptionalParams) => Promise<VirtualHardDisk>

Property Value

(resourceGroupName: string, virtualHardDiskName: string, options?: VirtualHardDisksGetOptionalParams) => Promise<VirtualHardDisk>

listAll

Lists all of the virtual hard disks in the specified subscription. Use the nextLink property in the response to get the next page of virtual hard disks.

listAll: (options?: VirtualHardDisksListAllOptionalParams) => PagedAsyncIterableIterator<VirtualHardDisk, VirtualHardDisk[], PageSettings>

Property Value

(options?: VirtualHardDisksListAllOptionalParams) => PagedAsyncIterableIterator<VirtualHardDisk, VirtualHardDisk[], PageSettings>

listByResourceGroup

Lists all of the virtual hard disks in the specified resource group. Use the nextLink property in the response to get the next page of virtual hard disks.

listByResourceGroup: (resourceGroupName: string, options?: VirtualHardDisksListByResourceGroupOptionalParams) => PagedAsyncIterableIterator<VirtualHardDisk, VirtualHardDisk[], PageSettings>

Property Value

(resourceGroupName: string, options?: VirtualHardDisksListByResourceGroupOptionalParams) => PagedAsyncIterableIterator<VirtualHardDisk, VirtualHardDisk[], PageSettings>

update

The operation to update a virtual hard disk.

update: (resourceGroupName: string, virtualHardDiskName: string, properties: VirtualHardDisksUpdateRequest, options?: VirtualHardDisksUpdateOptionalParams) => PollerLike<OperationState<VirtualHardDisk>, VirtualHardDisk>

Property Value

(resourceGroupName: string, virtualHardDiskName: string, properties: VirtualHardDisksUpdateRequest, options?: VirtualHardDisksUpdateOptionalParams) => PollerLike<OperationState<VirtualHardDisk>, VirtualHardDisk>

upload

The operation to upload a virtual hard disk.

upload: (resourceGroupName: string, virtualHardDiskName: string, body: VirtualHardDiskUploadRequest, options?: VirtualHardDisksUploadOptionalParams) => PollerLike<OperationState<VirtualHardDiskUploadResponse>, VirtualHardDiskUploadResponse>

Property Value

(resourceGroupName: string, virtualHardDiskName: string, body: VirtualHardDiskUploadRequest, options?: VirtualHardDisksUploadOptionalParams) => PollerLike<OperationState<VirtualHardDiskUploadResponse>, VirtualHardDiskUploadResponse>