Get Host NUMA Topology Information

POST/zstack/v1/hosts/{uuid}/numa

Headers

Authorization: OAuth the-session-uuid

Curl Example

curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/hosts/21529457e42c30f0a9b2a137915a0b28/numa

Parameter List

NameTypeLocationDescriptionAllowed ValuesStarting Version
uuidStringurlHost UUID 4.3.12

API Response

Response Example

{
  "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"
}
NameTypeDescriptionStarting Version
errorErrorCodeError code. If not null, the operation failed. If null, the operation succeeded. See details error4.3.12
nameStringResource name4.3.12
uuidStringResource UUID, uniquely identifies the resource4.3.12
topologyStringNUMA topology information, see details topology4.3.12

error

NameTypeDescriptionStarting Version
codeStringError code number, globally unique identifier of the error, e.g. SYS.1000, HOST.10014.3.12
descriptionStringBrief description of the error4.3.12
detailsStringDetailed error information4.3.12
elaborationStringReserved field, default is null4.3.12
opaqueLinkedHashMapReserved field, default is null4.3.12
causeErrorCodeRoot cause, the error that caused the current error. If there is no original error, this field is null4.3.12

topology

NameTypeDescriptionStarting Version
cpusarray[string]CPU ID list contained in the NUMA node4.3.12
sizelongTotal memory size of NUMA node (in bytes)4.3.12
distancearray[string]Distance from this NUMA node to other nodes4.3.12
VMsUuidarray[string]UUID of VMs associated with this NUMA node4.3.12
freelongAvailable memory size of NUMA node (in bytes)4.3.12

SDK Examples

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();