VM Related Interfaces
Get VM NUMA Status
Headers
Authorization: OAuth the-session-uuidCurl Example
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/vm-instances/1dd7af3a42403a1d9b3734f5ed573103/vnumaParameter List
| Name | Type | Location | Description | Allowed Values | Starting Version |
|---|---|---|---|---|---|
| uuid | String | url | Resource UUID, uniquely identifies the resource | 0.6 | |
| systemTags (Optional) | List | query | 0.6 | ||
| userTags (Optional) | List | query | 0.6 |
API Response
Response Example
{
"enable": true
}| Name | Type | Description | Starting Version |
|---|---|---|---|
| success | boolean | 0.6 | |
| enable | boolean | Whether VM NUMA is enabled | 4.3.12 |
| error | ErrorCode | Error code. If not null, the operation failed. When the operation succeeds, this field is null. For details, see error | 2.1.2 |
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
GetVmNumaAction action = new GetVmNumaAction();
action.uuid = "12de3f05d13c3cbe929a4591bb36f196";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetVmNumaAction.Result res = action.call();Python SDK
GetVmNumaAction action = GetVmNumaAction()
action.uuid = "12de3f05d13c3cbe929a4591bb36f196"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
GetVmNumaAction.Result res = action.call()