VM Related Interfaces

Get VM Emulator Pinning Host CPU

GET/zstack/v1/vm-instances/{uuid}/emulator-pinning

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/vm-instances/1dd7af3a42403a1d9b3734f5ed573103/emulator-pinning

Parameter List

NameTypeLocationDescriptionAllowed ValuesStarting Version
uuidStringurlResource UUID, uniquely identifies the resource 0.6
systemTags (Optional)Listquery  0.6
userTags (Optional)Listquery  0.6

API Response

Response Example

{
  "emulatorPinning": "1-4"
}
NameTypeDescriptionStarting Version
emulatorPinningStringHost CPU number for VM Emulator Pinning4.3.12
successboolean 0.6
errorErrorCodeError code. If not null, the operation failed. When the operation succeeds, this field is null. For details, see error0.6

error

NameTypeDescriptionStarting Version
codeStringError code number, a globally unique identifier of the error, for example SYS.1000, HOST.10014.3.12
descriptionStringBrief description of the error4.3.12
detailsStringDetailed error information4.3.12
elaborationStringReserved field, defaults to null4.3.12
opaqueLinkedHashMapReserved field, defaults to null4.3.12
causeErrorCodeRoot cause. The error that triggered the current error. If there is no original error, this field is null4.3.12

SDK Examples

Java SDK

GetVmEmulatorPinningAction action = new GetVmEmulatorPinningAction();
action.uuid = "ad79d9ba952336a39fdef094c8855799";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetVmEmulatorPinningAction.Result res = action.call();

Python SDK

GetVmEmulatorPinningAction action = GetVmEmulatorPinningAction()
action.uuid = "ad79d9ba952336a39fdef094c8855799"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
GetVmEmulatorPinningAction.Result res = action.call()