GetVmQga

API Request

URLs
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
Name Type Location Description Allowed Values Starting Version
uuid String url Resource UUID, uniquely identifies the resource 0.6
systemTags (Optional) List query Optional. The system tags. 0.6
userTags (Optional) List query Optional. The user tags. 0.6

API Response

Response Example
{
  "uuid": "889251004c244ec6aafd2df09b8cfcbd",
  "enable": true
}
Name Type Description Starting Version
uuid String Resource UUID, uniquely identifies the resource 0.6
enable boolean Whether the feature is enabled. 0.6
error ErrorCode Error code. If not null, the operation failed. When the operation succeeds, this field is null. For details, see error 0.6
#error
Name Type Description Starting Version
code String Error code number, a globally unique identifier of the error, for example SYS.1000, HOST.1001 0.6
description String Brief description of the error 0.6
details String Detailed error information 0.6
elaboration String Reserved field, defaults to null 0.6
opaque LinkedHashMap Reserved field, defaults to null 0.6
cause ErrorCode Root cause. The error that triggered the current error. If there is no original error, this field is null 0.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()
API Reference | ZStack ZSphere · ZVF | ZStack Resource Center