Operations at vhd/

This page describes the service operations at this endpoint.

URI Method Description
vhd/{id}/baseFileName GET Gets VHD base file name.
vhd/{id}/beginBatch/{target} POST Begins batch.
vhd/{id}/close GET Closes VHD.
vhd/{id}/delete/{target} POST Deletes VHD snapshot or base file.
vhd/{id}/endBatch POST Ends batch.
vhd/{id}/hasSnapshot GET Verifies VHD has snapshot.
vhd/{id}/read/{target}/{sectorOffset}/{sectorLength} POST Reads raw data from VHD.
vhd/{id}/sectorSize GET Gets sector size of the VHD.
vhd/{id}/snapshotFileName GET Gets VHD snapshot file name.
vhd/{id}/takeSnapshot GET Takes VHD snapshot.
vhd/{id}/totalSectorCapacity GET Gets VHD capacity.
vhd/{id}/translateSectorOffsetToChsTuple?sectorOffset={sectorOffset} GET Translates sector offset to chs tuple.
vhd/{id}/write/{target} POST Writes blocks of raw data to VHD.
vhd/{id}/write/{target}/{sectorOffset}/{sectorLength} POST Writes raw data to VHD.
vhd/createVhd?path={path}&bytesCapacity={bytesCapacity}&bytesPerSector={bytesPerSector}&containsBootSystemVolume={containsBootSystemVolume}&preallocate={preallocate} PUT Creates VHD.
vhd/getDiskFromTask/{taskId} GET Retrieves a disk identifier based on the identifier of the task that created the disk. If disk is not yet created, returns empty identifier
vhd/openVhd?path={path} PUT Opens VHD.
vhd/readCustomMetadata POST Reads a user-defined custom metadata string.
vhd/startCreateVhd?path={path}&bytesCapacity={bytesCapacity}&bytesPerSector={bytesPerSector}&containsBootSystemVolume={containsBootSystemVolume}&preallocate={preallocate} PUT Starts a task which creates a VHD. Returns the task identifier, not the disk identifier. Use GetVirtualDiskFromTask() method to get the actual created disk
vhd/writeCustomMetadata?value={value} POST Writes a user-defined custom metadata string.