Get Host IOMMU State

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

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/dbd7601b48053ec9a753047fce55082a/state

Parameter List

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

API Response

Response Example

{
  "state": "Enabled"
}
NameTypeDescriptionStarting Version
successboolean 2.1
errorErrorCodeError code. If not null, the operation failed. This field is null when the operation succeeds. See error2.1
stateHostIommuStateTypeSee state2.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

state

NameTypeDescriptionStarting Version
nameStringResource name2.1
ordinalint 2.1

SDK Examples

Java SDK

GetHostIommuStateAction action = new GetHostIommuStateAction();
action.uuid = "dbd7601b48053ec9a753047fce55082a";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetHostIommuStateAction.Result res = action.call();

Python SDK

GetHostIommuStateAction action = GetHostIommuStateAction()
action.uuid = "dbd7601b48053ec9a753047fce55082a"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
GetHostIommuStateAction.Result res = action.call()