Refresh Host Raid Information

PUT/zstack/v1/storage-devices/local-raid/actions

Headers

Authorization: OAuth the-session-uuid

Body

{
  "refreshLocalRaid": {
    "hostUuid": "36e5bbc506d632a5ac8e474e6d3b0caf"
  },
  "systemTags": [],
  "userTags": []
}

In the example above, systemTags and userTags fields can be omitted. They are listed to indicate that the body can contain these two fields.

Curl Example

curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X PUT -d '{"refreshLocalRaid":{"hostUuid":"36e5bbc506d632a5ac8e474e6d3b0caf"}}' \
http://localhost:8080/zstack/v1/storage-devices/local-raid/actions

Parameter List

NameTypeLocationDescriptionAllowed ValuesStarting Version
hostUuidStringbody(contained in the refreshLocalRaid structure)Host UUID 3.6
systemTags (Optional)Listbody  3.6
userTags (Optional)Listbody  3.6

API Response

Response Example

{
  "inventories": [
    {
      "name": "LSI 2208 Raid Controller",
      "uuid": "821bab441f4530b5a741bbed9ca76eb8",
      "description": "this is a description",
      "productName": "LSI 2208 MegaRAID",
      "sasAddress": "500304801f948100",
      "createDate": "Nov 14, 2017 2:20:57 PM",
      "lastOpDate": "Nov 14, 2017 2:20:57 PM"
    }
  ]
}
NameTypeDescriptionStarting Version
successboolean 0.6
errorErrorCodeError code. If not null, the operation failed. If null, the operation succeeded. See error for details3.6
inventoriesListSee inventories for details3.6

error

NameTypeDescriptionStarting Version
codeStringError code number. Globally unique identifier of the error, for example SYS.1000, HOST.1001.0.6
descriptionStringBrief error description0.6
detailsStringDetailed error information0.6
elaborationStringReserved field, defaults to null0.6
opaqueLinkedHashMapReserved field, defaults to null0.6
causeErrorCodeRoot cause error. The error that caused the current error. If there is no original error, this field is null.0.6

inventories

NameTypeDescriptionStarting Version
nameStringResource name3.6
uuidStringUUID of the resource. Uniquely identifies the resource.3.6
descriptionStringResource description3.6
productNameStringProduct name3.6
sasAddressStringSAS address3.6
hostUuidStringHost UUID3.6
createDateTimestampCreate time3.6
lastOpDateTimestampLast update time3.6
adapterNumberIntegerRaid card number3.6
raidPhysicalDrivesListSee raidPhysicalDrives for details3.6

raidPhysicalDrives

NameTypeDescriptionStarting Version
uuidStringUUID of the resource. Uniquely identifies the resource.3.6
nameStringResource name3.6
raidLevelStringRaid level3.6
raidControllerUuidStringRaid Controller Uuid3.6
descriptionStringResource description3.6
enclosureDeviceIdIntegerEnclosure Id3.6
slotNumberIntegerSlot number3.6
deviceIdIntegerDevice Id3.6
diskGroupIntegerDisk Group Id3.6
wwnStringWWN3.6
serialNumberStringSerial number3.6
deviceModelStringDisk model3.6
sizeLongDisk size3.6
driveStateStringDisk status3.6
driveTypeStringInterface type3.6
mediaTypeStringMedia type3.6
rotationRateIntegerRotation speed3.6
createDateTimestampCreate time3.6
lastOpDateTimestampLast update time3.6
locateStatusLocateStatusSee locateStatus for details3.6

locateStatus

NameTypeDescriptionStarting Version
EnabledLocateStatusLocator LED blinking3.6
DisabledLocateStatusLocator LED off3.6

SDK Examples

Java SDK

RefreshLocalRaidAction action = new RefreshLocalRaidAction();
action.hostUuid = "36e5bbc506d632a5ac8e474e6d3b0caf";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
RefreshLocalRaidAction.Result res = action.call();

Python SDK

RefreshLocalRaidAction action = RefreshLocalRaidAction()
action.hostUuid = "36e5bbc506d632a5ac8e474e6d3b0caf"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
RefreshLocalRaidAction.Result res = action.call()