Get Shared Block Device Candidate List

GET/zstack/v1/primary-storage/sharedblockgroup/sharedblock-candidates

Headers

Authorization: OAuth the-session-uuid

Curl Example

curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/primary-storage/sharedblockgroup/sharedblock-candidates?clusterUuid=a8efc4d72a2334dcad7f71bcb4821d6f

Parameter List

NameTypeLocationDescriptionAllowed ValuesStarting Version
clusterUuidStringqueryCluster UUID 2.6.0
systemTags (optional)Listquery  2.6.0
userTags (optional)Listquery  2.6.0

API Response

Response Example

{
  "results": [
    {
      "wwid": "ata-Samsung_SSD_850_EVO_M.2_250GB_S33CNX0H600299D",
      "vendor": "DELL",
      "model": "MD32xx",
      "wwn": "0x6b083fe000daf018",
      "serial": "6b083fe000daf018000015505abbe00a",
      "hctl": "",
      "type": "mpath",
      "size": 30003188203520.0
    },
    {}
  ]
}
NameTypeDescriptionStarting Version
errorErrorCodeError code. If not null, the operation failed. This field is null when the operation succeeds. For details, see error2.6.0
resultsListFor details, see results2.6.0

error

NameTypeDescriptionStarting Version
codeStringError code number, a globally unique identifier for the error, e.g. SYS.1000, HOST.10012.6.0
descriptionStringBrief description of the error2.6.0
detailsStringDetailed error information2.6.0
elaborationStringReserved field, defaults to null2.6.0
opaqueLinkedHashMapReserved field, defaults to null2.6.0
causeErrorCodeRoot cause: the source error that caused the current error. If there is no original error, this field is null2.6.0

results

NameTypeDescriptionStarting Version
wwidStringDevice WWID2.6.0
vendorStringDevice vendor2.6.0
modelStringDevice model2.6.0
wwnStringDevice WWN2.6.0
serialStringDevice serial number2.6.0
hctlStringSCSI device HCTL2.6.0
typeStringDevice type2.6.0
sizeLongDevice size2.6.0

SDK Examples

Java SDK

GetSharedBlockCandidateAction action = new GetSharedBlockCandidateAction();
action.clusterUuid = "a8efc4d72a2334dcad7f71bcb4821d6f";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetSharedBlockCandidateAction.Result res = action.call();

Python SDK

GetSharedBlockCandidateAction action = GetSharedBlockCandidateAction()
action.clusterUuid = "a8efc4d72a2334dcad7f71bcb4821d6f"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
GetSharedBlockCandidateAction.Result res = action.call()