查询节点详情
命令功能
查询节点详细信息。该接口除数据库中节点信息外,还包含节点的CPU、NPU和内存资源数据。
命令格式
操作类型:GET
URL:https://{ip}:{port}/edgemanager/v1/node?id={id}或https://{ip}:{port}/edgemanager/v1/node?sn={sn}
URL参数
参数  | 
是否必选  | 
参数说明  | 
取值要求  | 
|---|---|---|---|
id  | 
必选,id或sn二选一  | 
节点ID  | 
32位无符号数。取值最小为1,最大值为2^32-1。  | 
sn  | 
节点设备序列号  | 
支持小写字母、大写字母,数字,下划线和中划线;不能以下划线或中划线开头和结尾;最大长度为64字节。  | 
使用样例
请求样例:
GET https://10.10.10.10:30035/edgemanager/v1/node?id=1
响应样例:
{
    "status": "00000000",
    "msg": "success",
    "data": {
                 "cpu": 24,
                 "createdAt": "2022-12-27 03:29:33",
                 "description": "node_1_description",
                 "id": 1,
                 "ip": "xx.xx.xx.xx",
                 "isManaged": true,
                 "memory": 33408877724,
                 "nodeGroup": "node_group_1",
                 "nodeName": "node-1",
                 "nodeType": "",
                 "npu": 0,
                 "serialNumber": "xxxxxxxxxxxxxx",
                 "softwareInfo": "[{\"Name\":\"MEFEdge\",\"Version\":\"6.0.RC2\",\"InactiveVersion\":\"\"}]",
                 "status": "ready",
                 "uniqueName": "edge-66.67",
                 "updatedAt": "2022-12-27 03:29:33"
    }
}
响应状态码:200
输出说明
参数  | 
类型  | 
参数说明  | 
|---|---|---|
status  | 
字符串  | 
错误码  | 
msg  | 
字符串  | 
描述信息  | 
data  | 
对象  | 
查询结果  | 
字段  | 
类型  | 
参数说明  | 
|---|---|---|
cpu  | 
数字  | 
CPU数量  | 
createdAt  | 
字符串  | 
创建时间  | 
description  | 
字符串  | 
节点描述  | 
id  | 
数字  | 
节点ID  | 
ip  | 
字符串  | 
节点IP  | 
isManaged  | 
布尔值  | 
节点是否被纳管  | 
memory  | 
数字  | 
节点内存,单位为Byte  | 
nodeGroup  | 
字符串  | 
节点加入的节点组名称,用英文逗号进行分割  | 
nodeName  | 
字符串  | 
节点名  | 
nodeType  | 
字符串  | 
节点类型  | 
npu  | 
数字  | 
节点NPU数量  | 
serialNumber  | 
字符串  | 
节点序列号  | 
softwareInfo  | 
字符串  | 
节点软件信息  | 
status  | 
字符串  | 
节点状态 
  | 
uniqueName  | 
字符串  | 
节点主机名  | 
updatedAt  | 
字符串  | 
修改时间  | 
父主题: 节点管理