Update NVMe Server Configuration

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

Headers

Authorization: OAuth the-session-uuid

Body

{
  "updateNvmeServer": {
    "name": "nvme-server-10.0.0.201"
  },
  "systemTags": [],
  "userTags": []
}

In the example above, the systemTags and userTags fields are optional. 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 '{"updateNvmeServer":{"name":"nvme-server-10.0.0.201"}}' \
http://localhost:8080/zstack/v1/storage-devices/nvme/servers/3adcddf1292f3665805d5345919ac617/actions

Parameter List

NameTypeLocationDescriptionAllowed ValuesStarting Version
uuidStringurlUUID of the resource. Uniquely identifies the resource. zsv 4.10.6
name (Optional)Stringbody(Contained in theupdateNvmeServerstructure)Resource name zsv 4.10.6
systemTags (Optional)Listbody  zsv 4.10.6
userTags (Optional)Listbody  zsv 4.10.6

API Response

Response Example

{
  "inventory": {
    "uuid": "1aeed04f5f1730028ab808617aee75ec",
    "name": "nvme-server-10.0.0.201",
    "ip": "10.0.0.201",
    "port": 3260,
    "state": "Enabled"
  }
}
NameTypeDescriptionStarting Version
successboolean zsv 4.10.6
errorErrorCodeError code. If not null, the operation failed. This field is null when the operation succeeds. For details, seeerrorzsv 4.10.6
inventoryNvmeServerInventoryFor details, seeinventoryzsv 4.10.6

error

NameTypeDescriptionStarting Version
codeStringError code number. A globally unique identifier for the error, e.g., SYS.1000, HOST.1001.0.6
descriptionStringBrief description of the error0.6
detailsStringDetailed information about the error0.6
elaborationStringReserved field. Defaults to null.0.6
opaqueLinkedHashMapReserved field. Defaults to null.0.6
causeErrorCodeRoot error. The source error that caused the current error. This field is null if there is no root cause.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
createDateTimestampCreation time4.7.21
lastOpDateTimestampLast modification time4.7.21
nvmeTargetsListFor details, seenvmeTargets4.7.21
nvmeClusterRefsListFor details, seenvmeClusterRefs4.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
stateStringState4.6.21
createDateTimestampCreation time4.6.21
lastOpDateTimestampLast modification time4.6.21
nvmeLunsListFor details, seenvmeLuns4.6.21

nvmeLuns

NameTypeDescriptionStarting Version
nvmeTargetUuidStringParent NVMe target 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
stateStringState4.6.21
sizeLongSize4.6.21
multipathDeviceUuidStringMultipath device UUID4.6.21
sourceStringDisk source, NVMe4.6.21
createDateTimestampCreation time4.6.21
lastOpDateTimestampLast modification time4.6.21
nvmeLunHostRefsListFor details, seenvmeLunHostRefs4.6.21

nvmeLunHostRefs

NameTypeDescriptionStarting Version
nvmeLunUuidStringNVMe disk UUID4.6.21
hostUuidStringHost UUID4.6.21
pathStringDisk path4.6.21
hctlStringDisk HCTL4.6.21
createDateTimestampCreation time4.6.21
lastOpDateTimestampLast modification time4.6.21

nvmeClusterRefs

NameTypeDescriptionStarting Version
nvmeServerUuidString 4.7.21
clusterUuidStringCluster UUID4.7.21
createDateTimestampCreation time4.7.21
lastOpDateTimestampLast modification time4.7.21

SDK Examples

Java SDK

UpdateNvmeServerAction action = new UpdateNvmeServerAction();
action.uuid = "3adcddf1292f3665805d5345919ac617";
action.name = "nvme-server-10.0.0.201";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
UpdateNvmeServerAction.Result res = action.call();

Python SDK

UpdateNvmeServerAction action = UpdateNvmeServerAction()
action.uuid = "3adcddf1292f3665805d5345919ac617"
action.name = "nvme-server-10.0.0.201"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
UpdateNvmeServerAction.Result res = action.call()