Get Host IOMMU Status

GET/zstack/v1/pci-device/hosts/{uuid}/status

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/pci-device/hosts/0ec53c2f753331f1a2c62b378821e9b7/status

Parameter List

NameTypeLocationDescriptionAllowed ValuesStarting Version
uuidStringurlUUID of the resource, uniquely identifies the resource 2.1
systemTags (Optional)Listquery  2.1
userTags (Optional)Listquery  2.1

API Response

Response Example

{
  "status": "Active"
}
NameTypeDescriptionStarting Version
successboolean 2.1
errorErrorCodeError code. If not null, the operation failed. This field is null when the operation succeeds. See error2.1
statusHostIommuStatusTypeSee status2.1

error

NameTypeDescriptionStarting Version
codeStringError code, a globally unique identifier of the error, e.g. SYS.1000, HOST.10012.1
descriptionStringBrief description of the error2.1
detailsStringDetailed error information2.1
elaborationStringReserved field, defaults to null2.1
opaqueLinkedHashMapReserved field, defaults to null2.1
causeErrorCodeRoot cause, the source error that caused the current error, null if no original error2.1

status

NameTypeDescriptionStarting Version
typeStringHost IOMMU ready status, can be Active or Inactive2.1

SDK Examples

Java SDK

GetHostIommuStatusAction action = new GetHostIommuStatusAction();
action.uuid = "0ec53c2f753331f1a2c62b378821e9b7";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetHostIommuStatusAction.Result res = action.call();

Python SDK

GetHostIommuStatusAction action = GetHostIommuStatusAction()
action.uuid = "0ec53c2f753331f1a2c62b378821e9b7"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
GetHostIommuStatusAction.Result res = action.call()