Refresh NVMe Server

PUT/zstack/v1/storage-devices/nvme/servers/{uuid}/actions

Headers

Authorization: OAuth the-session-uuid

Body

{
  "refreshNvmeServer": {},
  "systemTags": [],
  "userTags": []
}

In the example above, systemTags and userTags fields can be omitted. They are listed to show 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 '{"refreshNvmeServer":{}}' \
http://localhost:8080/zstack/v1/storage-devices/nvme/servers/03a08e55bf3239c7a72a3fee84593ef1/actions

Parameter List

NameTypeLocationDescriptionAllowed ValuesStarting Version
uuidStringurlUUID of the resource. Uniquely identifies the resource. zsv 4.10.6
systemTags (Optional)Listbody  zsv 4.10.6
userTags (Optional)Listbody  zsv 4.10.6

API Response

Response Example

{
  "inventory": {
    "uuid": "a3ae41316951321e9170e43c71fa297a",
    "name": "nvme-server-10.0.0.201",
    "ip": "10.0.0.201",
    "port": 3260,
    "state": "Enabled",
    "createDate": "Nov 14, 2017 2:20:57 PM",
    "lastOpDate": "Nov 14, 2017 2:20:57 PM"
  }
}
NameTypeDescriptionStarting Version
successboolean zsv 4.10.6
errorErrorCodeError code. If not null, the operation failed. If null, the operation succeeded. See error for detailszsv 4.10.6
inventoryNvmeServerInventorySee inventory for detailszsv 4.10.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

inventory

NameTypeDescriptionStarting Version
uuidStringUUID of the resource. Uniquely identifies the resource.4.7.21
nameStringResource name4.7.21
ipString 4.7.21
portInteger 4.7.21
stateString 4.7.21
transportString 4.7.21
createDateTimestampCreate time4.7.21
lastOpDateTimestampLast update time4.7.21
nvmeTargetsListSee nvmeTargets for details4.7.21
nvmeClusterRefsListSee nvmeClusterRefs for details4.7.21

nvmeTargets

NameTypeDescriptionStarting Version
uuidStringUUID of the resource. Uniquely identifies the resource.4.6.21
nameStringResource name4.6.21
nqnStringNVMe qualified name4.6.21
nvmeServerUuidStringNVMe server UUID4.7.21
stateStringStatus4.6.21
createDateTimestampCreate time4.6.21
lastOpDateTimestampLast update time4.6.21
nvmeLunsListSee nvmeLuns for details4.6.21

nvmeLuns

NameTypeDescriptionStarting Version
nvmeTargetUuidStringNVMe device UUID4.6.21
nameStringResource name4.6.21
uuidStringUUID of the resource. Uniquely identifies the resource.4.6.21
wwidStringGlobally unique identifier4.6.21
vendorStringVendor4.6.21
modelStringModel4.6.21
wwnString 4.6.21
serialStringSerial number4.6.21
typeStringType4.6.21
hctlString 4.6.21
pathStringPath4.6.21
stateStringStatus4.6.21
sizeLongSize4.6.21
multipathDeviceUuidStringMultipath device UUID4.6.21
sourceStringDisk source, NVMe4.6.21
createDateTimestampCreate time4.6.21
lastOpDateTimestampLast update time4.6.21
nvmeLunHostRefsListSee nvmeLunHostRefs for details4.6.21

nvmeLunHostRefs

NameTypeDescriptionStarting Version
nvmeLunUuidStringNVMe disk UUID4.6.21
hostUuidStringHost UUID4.6.21
pathStringDisk path4.6.21
hctlStringDisk HCTL4.6.21
createDateTimestampCreate time4.6.21
lastOpDateTimestampLast update time4.6.21

nvmeClusterRefs

NameTypeDescriptionStarting Version
nvmeServerUuidString 4.7.21
clusterUuidStringCluster UUID4.7.21
createDateTimestampCreate time4.7.21
lastOpDateTimestampLast update time4.7.21

SDK Examples

Java SDK

RefreshNvmeServerAction action = new RefreshNvmeServerAction();
action.uuid = "03a08e55bf3239c7a72a3fee84593ef1";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
RefreshNvmeServerAction.Result res = action.call();

Python SDK

RefreshNvmeServerAction action = RefreshNvmeServerAction()
action.uuid = "03a08e55bf3239c7a72a3fee84593ef1"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
RefreshNvmeServerAction.Result res = action.call()