Operations at VirtualDiskManagement

This page describes the backend methods at this endpoint.

Signature | Description
--- | ---
String BaseFileName(String id) | Gets VHD base file name.
Void BeginBatch(String id, String target) | Begins batch.
Void Close(String id) | Closes VHD.
Guid Create(String path, String bytesCapacity, String bytesPerSector, String containsBootSystemVolume, String preallocate) | Creates VHD.
Void Delete(String id, String target) | Deletes VHD snapshot or base file.
Void EndBatch(String id) | Ends batch.
Guid GetVirtualDiskFromTask(String taskId) | Retrieves a disk identifier based on the identifier of the task that created the disk. If disk is not yet created, returns empty identifier
Boolean HasSnapshot(String id) | Verifies VHD has snapshot.
Guid Open(String path) | Opens VHD.
Void Read(String id, String target, String sectorOffset, String sectorLength, Stream stream) | Reads raw data from VHD.
String ReadCustomMetadata(CustomMetadataDescriptor customMetadataDescriptor) | Reads a user-defined custom metadata string.
UInt64 SectorSize(String id) | Gets sector size of the VHD.
String SnapshotFileName(String id) | Gets VHD snapshot file name.
Guid StartCreateVirtualDiskTask(String path, String bytesCapacity, String bytesPerSector, String containsBootSystemVolume, String preallocate) | Starts a task which creates a VHD. Returns the task identifier, not the disk identifier. Use GetVirtualDiskFromTask() method to get the actual created disk
Void TakeSnapshot(String id) | Takes VHD snapshot.
UInt64 TotalSectorCapacity(String id) | Gets VHD capacity.
String TranslateSectorOffsetToChsTuple(String id, String sectorOffset) | Translates sector offset to chs tuple.
Void Write(String id, String target, String sectorOffset, String sectorLength, Stream stream) | Writes raw data to VHD.
Void WriteCustomMetadata(String value, CustomMetadataDescriptor customMetadataDescriptor) | Writes a user-defined custom metadata string.
Void WriteStream(String id, String target, Stream stream) | Writes blocks of raw data to VHD.