Document navigation

GetHostNUMATopology

API Request

URLs
POST zstack/v1/hosts/{uuid}/numa
Headers
Authorization: OAuth the-session-uuid
Curl Sample
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/hosts/21529457e42c30f0a9b2a137915a0b28/numa
Request Parameters
Name Type Location Description Optional Value Starting Version
uuid String url The host UUID. 4.3.12

API Response

Sample Response
{
        "topology": {
            "0": {
                "distance": ["10", "10", "21", "21"],
                "cpus": ["0", "1", "2", "3", "4", "5", "6", "7"],
                "VMsUuid": ["f7bae73b9874344b8766dfcdda48ad6e", "f7bae73b9874344b8766dfcdda48ad6e"],
                "free": 5688.0,
                "size": 8191.0
            },
            "1": {
                "distance": ["10", "10", "21", "21"],
                "cpus": ["16", "17", "18", "19", "20", "21", "22", "23"],
                "VMsUuid": ["f7bae73b9874344b8766dfcdda48ad6e", "f7bae73b9874344b8766dfcdda48ad6e"],
                "free": 5688.0,
                "size": 8191.0
            },
            "2": {
                "distance": ["21", "21", "10", "10"],
                "cpus": ["8", "9", "10", "11", "12", "13", "14", "15"],
                "VMsUuid": ["f7bae73b9874344b8766dfcdda48ad6e", "f7bae73b9874344b8766dfcdda48ad6e"],
                "free": 5688.0,
                "size": 8191.0
            },
            "3": {
                "distance": ["21", "21", "10", "10"],
                "cpus": ["24", "25", "26", "27", "28", "29", "30", "31"],
                "VMsUuid": ["f7bae73b9874344b8766dfcdda48ad6e", "f7bae73b9874344b8766dfcdda48ad6e"],
                "free": 5688.0,
                "size": 8191.0
            }
        },
        "name": "172.20.14.243",
        "uuid": "7fd86bbe6ca94a8d810aa1d33e29932c"
    }
Name Type Description Starting Version
error ErrorCode The error code. If not null, the operation fails, or vice versa. For more information, see error. 4.3.12
name String The resource name. 4.3.12
uuid String The resource UUID. 4.3.12
topology String The pNUMA topology, For more information, see topology. 4.3.12
#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. 4.3.12
description String The brief description of the error. 4.3.12
details String The details about the error. 4.3.12
elaboration String The reserved field. Default value: null. 4.3.12
opaque LinkedHashMap The reserved field. Default value: null. 4.3.12
cause ErrorCode The root error, which is the associated root cause of the current error. If no root error exists, this parameter is null. 4.3.12
#topology
Name Type Description Starting Version
cpus array[string] The CPU IDs of the pNUMA node. 4.3.12
size long The total memory size of the NUMA node, in the unit of B. 4.3.12
distance array[string] The distance of the pNUMA node with another node. 4.3.12
VMsUuid array[string] The UUIDs of the VM instances associated with the pNUMA node. 4.3.12
free long The free memory size of the pNUMA node, in the unit of B. 4.3.12

SDK Sample

Java SDK
GetHostNUMATopologyAction action = new GetHostNUMATopologyAction();
action.uuid = "2b8e587e99093c46b27e774dfe93024f";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetHostNUMATopologyAction.Result res = action.call();
Python SDK
GetHostNUMATopologyAction action = new GetHostNUMATopologyAction();
action.uuid = "2b8e587e99093c46b27e774dfe93024f";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetHostNUMATopologyAction.Result res = action.call();
API Reference | 5.5.30 | ZStack Cloud · ZCF | ZStack Resource Center