GetVmQga
API Request
URLs
GET zstack/v1/vm-instances/{uuid}/qgaHeaders
Authorization: OAuth the-session-uuidCurl
Sample
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth 34fc90e40acb4b59b0051485dc625b34" \
-X GET http://localhost:8080/zstack/v1/vm-instances/ab76c455f44b4b1b8a33ecdde1a98eb3/qgaRequest Parameters
| Name | Type | Location | Description | Optional Value | Starting Version |
|---|---|---|---|---|---|
| uuid | String | url | The resource UUID. | 0.6 | |
| systemTags | List | query | Optional. The system tags. | 0.6 | |
| userTags | List | query | Optional. The user tags. | 0.6 |
API Response
Sample
Response
{
"uuid": "889251004c244ec6aafd2df09b8cfcbd",
"enable": true
}| Name | Type | Description | Starting Version |
|---|---|---|---|
| uuid | String | The resource UUID. | 0.6 |
| enable | boolean | 0.6 | |
| error | ErrorCode | The error code. If not null, the operation fails, or vice versa. For more information, see error. | 0.6 |
#error
| Name | Type | Description | Starting Version |
|---|---|---|---|
| code | String | The error code, which is a numbered or alphanumeric code that specifies an error. For example, SYS.1000, HOST.1001. | 0.6 |
| description | String | The brief description of the error. | 0.6 |
| details | String | The details about the error. | 0.6 |
| elaboration | String | The reserved field. Default value: null. | 0.6 |
| opaque | LinkedHashMap | The reserved field. Default value: null. | 0.6 |
| cause | ErrorCode | The root error, which is the associated root cause of the current error. If no root error exists, this parameter is null. | 0.6 |
SDK Sample
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()