VM Related Interfaces

Get VM Qga

GET/zstack/v1/vm-instances/{uuid}/qga

Headers

Authorization: OAuth the-session-uuid

Curl Example

curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth 34fc90e40acb4b59b0051485dc625b34" \
-X GET http://localhost:8080/zstack/v1/vm-instances/ab76c455f44b4b1b8a33ecdde1a98eb3/qga

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

{
  "uuid": "889251004c244ec6aafd2df09b8cfcbd",
  "enable": true
}
NameTypeDescriptionStarting Version
uuidStringResource UUID, uniquely identifies the resource0.6
enableboolean 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.10010.6
descriptionStringBrief description of the error0.6
detailsStringDetailed error information0.6
elaborationStringReserved field, defaults to null0.6
opaqueLinkedHashMapReserved field, defaults to null0.6
causeErrorCodeRoot cause. The error that triggered the current error. If there is no original error, this field is null0.6

SDK Examples

Java SDK

GetVmQgaAction action = new GetVmQgaAction();
action.uuid = "f2e1551d87d6495faa2bbf3059f060c6";
action.sessionId = "1759cb82bcb44dd9b06cac166513ea41";
GetVmQgaAction.Result res = action.call();

Python SDK

GetVmQgaAction action = GetVmQgaAction()
action.uuid = "d9772f9d072f4412954e52516111cc3c"
action.sessionId = "9f1efc92185649659a77f8de8ea5d886"
GetVmQgaAction.Result res = action.call()