ReadRAIDofVM() Parent topic

Description

Read from a RAID device of a virtual machine.

Interface

https://[SecureCloudService]/broker/API.svc/v3.5/vm/{imageGUID}/device/{deviceGUID}
Method: GET

Parameter

Parameter
Data Type
Description
Required?
imageGUID
GUID
The GUID of the virtual machine.
Yes
deviceGUID
String
The GUID of the device.
Yes

Response

Expected HTTP response code: 200 (OK)
Refer to the following data type: Device.

Example Request URL

[GET]
https://ms.sample.securecloud.com/broker/API.svc/v3.5/vm/
      639F2224-637D-49AA-876B-AFBAD59AFADA/device/
      08bf1f76-a145-4bde-998c-3c5d36b73243

Example Response

<?xml version="1.0" encoding="utf-8"?>
<device msUID="6068C4CA-A5A0-45AF-9266-6A2E9BC929EB"
id="hcsp-dev-01" name="/dev/sdb" EncryptedName="/dev/sdb_ed"
href="https://ms.sample.securecloud.com/Broker/API.svc/v3.5/device/
      6068C4CA-A5A0-45AF-9266-6A2E9BC929EB/"
DeviceIndex="1" cspDeviceType="RAID" raidLevel="RAID0"
partitionType="mbr" provisionState="complete" provisionProgress="15"
deviceStatus="Encrypted" parentGUID="581b574e-63b2-4508-8cff-31dc31f066d4"
lastModified="2012-11-20T06:05:30.967">
      <description/>
      <fileSystem>ext3</fileSystem>
      <partitionList>
            <partition PartitionNumber="1" size="1 bit">
                  <mountPoint>/mnt/hd1</mountPoint>
                  <fileSystem>ext3</fileSystem>
            </partition>
      </partitionList>
      <volume size="1 bit">
            <mountPoint>/mnt/hd1</mountPoint>
      </volume>
      <keyGen storageType="Secure Cloud Server"/>
      <subDevices>
            <device msUID="20429344-1a3b-4676-bbc9-7b8b6db66d67"
            name="/dev/sdb"
            href="https://ms.sample.securecloud.com/Broker/API.svc/v3.5/device/
                  20429344-1a3b-4676-bbc9-7b8b6db66d67/"
            provisionState="complete" deviceStatus="Encrypted">
                  <volume size="1 bit"/>
            </device>
            ...
      </subDevices>
</device