设备模型接口

版本记录

版本号日期修改内容
v0.12.22024-08-30修复已知问题

设备模型

公共 Header 参数

参数名示例值参数描述
namespaceclkj4ozl30030qi0ih4enllmk

模型列表查询包含 nodeId

接口 URL

{{host}}{{port}}/v1/model/device/public/template/list?parentId=139

请求方式

GET

Content-Type

json

请求 Header 参数

参数名示例值参数类型是否必填参数描述
namespacescada_testString工程名

请求 Query 参数

参数名示例值参数类型是否必填参数描述
parentId139Integer父级对象主键 id,顶层为 0,不传查询所有

路径变量

参数名示例值参数描述
host
post

请求 Body 参数

预执行脚本

暂无预执行脚本

后执行脚本

暂无后执行脚本

success 响应示例

示例如下

{"message":"success","code":0,"timestamp":1690534100934,"data":[{"id":140,"parentId":139,"path":"137/139/140","originalType":2,"templateId":2,"nodeId":"AI_001","browseName":"AI_001","displayName":"AI_001","description":"AI_001","nodeClass":"AI","createTime":"2023-07-26 17:53:58","updateTime":"2023-07-26 17:53:58"},{"id":142,"parentId":139,"path":"137/139/142","originalType":4,"templateId":5,"nodeId":"AO_001","browseName":"AO_001","displayName":"AO_001","description":"AO_001","nodeClass":"AO","createTime":"2023-07-26 17:54:04","updateTime":"2023-07-26 17:54:04"},{"id":141,"parentId":139,"path":"137/139/141","originalType":5,"templateId":4,"nodeId":"DI_001","browseName":"DI_001","displayName":"DI_001","description":"DI_001","nodeClass":"DI","createTime":"2023-07-26 17:54:02","updateTime":"2023-07-26 17:54:02"},{"id":143,"parentId":139,"path":"137/139/143","originalType":7,"templateId":6,"nodeId":"DO_001","browseName":"DO_001","displayName":"DO_001","description":"DO_001","nodeClass":"DO","createTime":"2023-07-26 17:54:07","updateTime":"2023-07-26 17:54:07"}]}

参数名示例值参数类型参数描述
messagesuccessString
code0Integer
timestamp1683785032810Integer
dataObject
data.baseInfoObject
data.baseInfo.path5/6/7/8String
data.baseInfo.nodeClassAIString类型枚举字符串值
data.baseInfo.originalType2Integer
data.baseInfo.browseNameAI_001String浏览名
data.baseInfo.createTime2023-05-06T16:59:56.665String
data.baseInfo.displayNameAI_001String显示名
data.baseInfo.descriptionAI_001String描述
data.baseInfo.updateTime2023-05-06T16:59:56.665String
data.baseInfo.id8Integer主键 id
data.baseInfo.templateId2Integer
data.baseInfo.nodeIdEQ_001.AI_001StringnodeId
data.baseInfo.parentId7Integer
data.analogConfigObject模拟量配置
data.analogConfig.defaultVal15Integer默认值
data.analogConfig.highRange100Integer量程上限
data.analogConfig.accuracy4Integer显示精度
data.analogConfig.engineeringUnitString工程单位
data.analogConfig.lowRange5Integer量程下限

模板/根据 id 查找模型

接口 URL

{{host}}{{port}}/v1/model/device/public/template/attributes?id=140&attributeName=

请求方式

GET

Content-Type

json

请求 Query 参数

参数名示例值参数类型是否必填参数描述
id140Integer主键 id
attributeNameString属性名,只支持到 analogConfig,analogConfig.engineeringUnit

success 响应示例

示例如下

{"message":"success","code":0,"timestamp":1690421244901,"data":{"baseInfo":{"id":140,"parentId":139,"path":"137/139/140","originalType":2,"templateId":2,"nodeId":"EQ_001.AI_001","browseName":"AI_001","displayName":"AI_001","description":"AI_001","nodeClass":"AI","createTime":"2023-07-26 17:53:58","updateTime":"2023-07-26 17:53:58"},"analogConfig":{"defaultVal":0.0,"highRange":100.0,"lowRange":0.0,"engineeringUnit":"","accuracy":0},"historyConfig":{"recordType":0,"enable":false,"period":10},"udp":[],"pv":{"v":null,"q":null,"t":null}}}

参数名示例值参数类型参数描述
messagesuccessString
code0Integer
timestamp1683770052467Integer
dataObject
data.baseInfoObject
data.baseInfo.id8Integer主键 id
data.baseInfo.parentId7Integer父级对象主键 id,顶层为 0
data.baseInfo.path5/6/7/8String
data.baseInfo.originalType2Integer对象枚举类型值
data.baseInfo.templateId2Integer对象模板 id
data.baseInfo.nodeIdEQ_001.AI_001StringnodeId
data.baseInfo.browseNameAI_001String浏览名
data.baseInfo.displayNameAI_001String显示名
data.baseInfo.descriptionAI_001String描述
data.baseInfo.nodeClassAIString类型枚举字符串值
data.baseInfo.createTime2023-05-06 16:59:56String
data.baseInfo.updateTime2023-05-06 16:59:56String
data.analogConfigObject模拟量配置
data.analogConfig.engineeringUnitString工程单位
data.analogConfig.defaultVal15Integer默认值
data.analogConfig.highRange100Integer量程上限
data.analogConfig.lowRange5Integer量程下限
data.analogConfig.accuracy4Integer显示精度
data.historyConfigObject历史配置
data.historyConfig.recordType0Integer存储类型,变化存储 or 周期存储
data.historyConfig.enablefalseBoolean是否记录历史中
data.historyConfig.period10Integer存储周期
data.udpObject自定义变量
data.udp.originalType16Integer
data.udp.nodeIdEQ_001.AI_001.aaaaStringnodeId
data.udp.browseNameaaaaString变量名
data.udp.descriptionaaaString描述
data.udp.nodeClassUDPString
data.udp.dataTypeInt16String数据类型
data.udp.recordHistorytrueBoolean是否记录历史
data.udp.recordType0Integer记录历史类型,0 表示变化存储,1 表示周期存储
data.udp.period14Integer存储周期,单位为秒
data.udp.isArrayfalseBoolean是否是数组
data.udp.arraySize0Integer数组大小,最大 65535
data.udp.type1Integer类型值,严格区分大小写
data.udp.createTime2023-05-10 10:12:02String
data.udp.updateTime2023-05-10 10:53:45String
data.pvObject
data.pv.vnullNull
data.pv.qnullNull
data.pv.tnullNull

根据 nodeId 查找模型

接口 URL

{{host}}{{port}}/v1/model/device/public/template/attributes/nodeId?nodeId=EQ_001.DO_001&attributeName=

请求方式

GET

Content-Type

json

请求 Header 参数

参数名示例值参数类型是否必填参数描述
namespaceyangweiqiangString

请求 Query 参数

参数名示例值参数类型是否必填参数描述
nodeIdEQ_001.DO_001StringnodeId
attributeNameString属性名,只支持到 analogConfig,analogConfig.engineeringUnit

success 响应示例

示例如下

{"message":"success","code":0,"timestamp":1690421421893,"data":[{"baseInfo":{"id":143,"parentId":139,"path":"137/139/143","originalType":7,"templateId":6,"nodeId":"EQ_001.DO_001","browseName":"DO_001","displayName":"DO_001","description":"DO_001","nodeClass":"DO","createTime":"2023-07-26 17:54:07","updateTime":"2023-07-26 17:54:07"},"discreteConfig":{"defaultVal":0,"values":[],"valueDeses":[]},"udp":[],"pv":{"v":null,"q":null,"t":null}}]}

参数名示例值参数类型参数描述
messagesuccessString
code0Integer
timestamp1683785001158Integer
dataObject
data.baseInfoObject
data.baseInfo.id8Integer主键 id
data.baseInfo.parentId7Integer
data.baseInfo.path5/6/7/8String
data.baseInfo.originalType2Integer
data.baseInfo.templateId2Integer
data.baseInfo.nodeIdEQ_001.AI_001StringnodeId
data.baseInfo.browseNameAI_001String浏览名
data.baseInfo.displayNameAI_001String显示名
data.baseInfo.descriptionAI_001String描述
data.baseInfo.nodeClassAIString类型枚举字符串值
data.baseInfo.createTime2023-05-06 16:59:56String
data.baseInfo.updateTime2023-05-06 16:59:56String
data.analogConfigObject模拟量配置
data.analogConfig.engineeringUnitString工程单位
data.analogConfig.defaultVal15Integer默认值
data.analogConfig.highRange100Integer量程上限
data.analogConfig.lowRange5Integer量程下限
data.analogConfig.accuracy4Integer显示精度
data.historyConfigObject历史配置
data.historyConfig.recordType0Integer存储类型,变化存储 or 周期存储
data.historyConfig.enablefalseBoolean是否记录历史中
data.historyConfig.period10Integer存储周期
data.udpObject自定义变量
data.udp.originalType16Integer
data.udp.nodeIdEQ_001.AI_001.aaaaStringnodeId
data.udp.browseNameaaaaString变量名
data.udp.descriptionaaaString描述
data.udp.nodeClassUDPString
data.udp.dataTypeInt16String数据类型
data.udp.recordHistorytrueBoolean是否记录历史
data.udp.recordType0Integer记录历史类型,0 表示变化存储,1 表示周期存储
data.udp.period14Integer存储周期,单位为秒
data.udp.isArrayfalseBoolean是否是数组
data.udp.arraySize0Integer数组大小,最大 65535
data.udp.type1Integer类型值,严格区分大小写
data.udp.createTime2023-05-10 10:12:02String
data.udp.updateTime2023-05-10 10:53:45String
data.pvObject
data.pv.vnullNull
data.pv.qnullNull
data.pv.tnullNull

根据 nodeIds 查找模型

接口 URL

{{host}}{{port}}/v1/model/device/public/template/attributes/nodeIds

请求方式

POST

Content-Type

json

请求 Header 参数

参数名示例值参数类型是否必填参数描述
namespacetest520String

请求 Body 参数

{
 "attributeName":"analogConfig",
"nodeIds":["EQ_001.AI_001","AO_001","DO_001"]
}
参数名示例值参数类型是否必填参数描述
attributeNameanalogConfigString属性名,只支持到 analogConfig,analogConfig.engineeringUnit 名
nodeIdsEQ_001.AI_001StringnodeId

success 响应示例

示例如下

{"message":"success","code":0,"timestamp":1690421449516,"data":[{"baseInfo":{"path":"137/139/140","nodeClass":"AI","originalType":2,"browseName":"AI_001","createTime":"2023-07-26T17:53:58.970","displayName":"AI_001","description":"AI_001","updateTime":"2023-07-26T17:53:58.970","id":140,"templateId":2,"nodeId":"EQ_001.AI_001","parentId":139},"analogConfig":{"defaultVal":0.0,"highRange":100.0,"accuracy":0,"engineeringUnit":"","lowRange":0.0}},{"baseInfo":{"path":"137/163","nodeClass":"AO","originalType":4,"browseName":"AO_001","createTime":"2023-07-26T17:56:14.479","displayName":"AO_001","description":"AO_001","updateTime":"2023-07-26T17:56:14.479","id":163,"templateId":5,"nodeId":"AO_001","parentId":137},"analogConfig":{"defaultVal":0.0,"highRange":100.0,"lowRange":0.0}},{"baseInfo":{"path":"137/164","nodeClass":"DO","originalType":7,"browseName":"DO_001","createTime":"2023-07-26T17:56:16.414","displayName":"DO_001","description":"DO_001","updateTime":"2023-07-26T17:56:16.414","id":164,"templateId":6,"nodeId":"DO_001","parentId":137},"analogConfig":null}]}

参数名示例值参数类型参数描述
messagesuccessString
code0Integer
timestamp1683785032810Integer
dataObject
data.baseInfoObject
data.baseInfo.path5/6/7/8String
data.baseInfo.nodeClassAIString类型枚举字符串值
data.baseInfo.originalType2Integer
data.baseInfo.browseNameAI_001String浏览名
data.baseInfo.createTime2023-05-06T16:59:56.665String
data.baseInfo.displayNameAI_001String显示名
data.baseInfo.descriptionAI_001String描述
data.baseInfo.updateTime2023-05-06T16:59:56.665String
data.baseInfo.id8Integer主键 id
data.baseInfo.templateId2Integer
data.baseInfo.nodeIdEQ_001.AI_001StringnodeId
data.baseInfo.parentId7Integer
data.analogConfigObject模拟量配置
data.analogConfig.defaultVal15Integer默认值
data.analogConfig.highRange100Integer量程上限
data.analogConfig.accuracy4Integer显示精度
data.analogConfig.engineeringUnitString工程单位
data.analogConfig.lowRange5Integer量程下限

获取模型类型的属性描述

接口 URL

{{host}}{{port}}/v1/model/device/public/template/attributes/doc?type=FieldPoint

请求方式

GET

Content-Type

json

请求 Header 参数

参数名示例值参数类型是否必填参数描述
namespaceyangweiqiangString工程名

请求 Query 参数

参数名示例值参数类型是否必填参数描述
typeFieldPointString类型值,严格区分大小写

路径变量

参数名示例值参数描述
host
post

success 响应示例

示例如下

{"message":"不存在的type: FieldPoint","code":0,"timestamp":1693971209722,"data":null}

参数名示例值参数类型参数描述
messagesuccessString
code0Integer
timestamp1683700431541Integer
dataObjectfalse 不存在,true 存在
data.analogConfigObject模拟量配置
data.analogConfig.nameAiAnalogConfigString
data.analogConfig.description模拟量配置String
data.analogConfig.type0Integer类型值,严格区分大小写
data.analogConfig.dataTypeObjectString
data.analogConfig.engineeringUnitObject工程单位
data.analogConfig.engineeringUnit.nameengineeringUnitString
data.analogConfig.engineeringUnit.description工程单位String
data.analogConfig.engineeringUnit.type0Integer类型值,严格区分大小写
data.analogConfig.engineeringUnit.dataTypeStringString
data.analogConfig.defaultValObject默认值
data.analogConfig.defaultVal.namedefaultValString
data.analogConfig.defaultVal.description默认值String
data.analogConfig.defaultVal.type0Integer类型值,严格区分大小写
data.analogConfig.defaultVal.dataTypedoubleString
data.analogConfig.highRangeObject量程上限
data.analogConfig.highRange.namehighRangeString
data.analogConfig.highRange.description量程上限String
data.analogConfig.highRange.type0Integer类型值,严格区分大小写
data.analogConfig.highRange.dataTypedoubleString
data.analogConfig.lowRangeObject量程下限
data.analogConfig.lowRange.namelowRangeString
data.analogConfig.lowRange.description量程下限String
data.analogConfig.lowRange.type0Integer类型值,严格区分大小写
data.analogConfig.lowRange.dataTypedoubleString
data.analogConfig.accuracyObject显示精度
data.analogConfig.accuracy.nameaccuracyString
data.analogConfig.accuracy.description显示精度String
data.analogConfig.accuracy.type0Integer类型值,严格区分大小写
data.analogConfig.accuracy.dataTypeIntegerString
data.historyConfigObject历史配置
data.historyConfig.nameHistoryConfigString
data.historyConfig.description历史配置String
data.historyConfig.type0Integer类型值,严格区分大小写
data.historyConfig.dataTypeObjectString
data.historyConfig.recordTypeObject存储类型,变化存储 or 周期存储
data.historyConfig.recordType.namerecordTypeString
data.historyConfig.recordType.description存储类型,变化存储 or 周期存储String
data.historyConfig.recordType.type0Integer类型值,严格区分大小写
data.historyConfig.recordType.dataTypeIntegerString
data.historyConfig.enableObject是否记录历史中
data.historyConfig.enable.nameenableString
data.historyConfig.enable.description是否记录历史中String
data.historyConfig.enable.type0Integer类型值,严格区分大小写
data.historyConfig.enable.dataTypebooleanString
data.historyConfig.periodObject存储周期
data.historyConfig.period.nameperiodString
data.historyConfig.period.description存储周期String
data.historyConfig.period.type0Integer类型值,严格区分大小写
data.historyConfig.period.dataTypeIntegerString
data.pvObject
data.pv.namePVString
data.pv.descriptionPVString
data.pv.type1Integer类型值,严格区分大小写
data.pv.dataTypeObjectString
data.pv.vObject
data.pv.v.namevString
data.pv.v.descriptionString
data.pv.v.type1Integer类型值,严格区分大小写
data.pv.v.dataTypeDoubleString
data.pv.qObject
data.pv.q.nameqString
data.pv.q.description质量位String
data.pv.q.type1Integer类型值,严格区分大小写
data.pv.q.dataTypeInt32String
data.pv.tObject
data.pv.t.nametString
data.pv.t.description时间戳String
data.pv.t.type1Integer类型值,严格区分大小写
data.pv.t.dataTypeInt64String

实例/查询工程树过滤掉 group

接口 URL

{{host}}{{port}}/v1/model/device/public/engineering/list?parentId=0&originalType=&service=1

请求方式

GET

Content-Type

json

请求 Header 参数

参数名示例值参数类型是否必填参数描述
namespaceyangweiqiangString工程名

请求 Query 参数

参数名示例值参数类型是否必填参数描述
parentId0Integer父级对象主键 id,顶层为 0
originalTypeInteger下级对象枚举类型值,dbunit:10
service1Integer0:IO 服务类型 site;1:实时服务类型 Site

success 响应示例

示例如下

{
    "message": "success",
    "code": 0,
    "timestamp": 1683790480520,
    "data": [
        {
            "id": 2,
            "parentId": 0,
            "path": "2",
            "browseName": "RTDB-node1",
            "displayName": "RTDB-node1",
            "description": "",
            "originalType": 13,
            "createTime": "2023-05-06 16:57:44",
            "updateTime": "2023-05-06 16:57:44",
            "siteId": 0,
            "containerDeploy": 0,
            "containerId": null,
            "redundancy": 0,
            "syncPeriod": 500,
            "computerAName": "vdi-117754",
            "computerAIpA": "172.21.204.70",
            "computerAIpB": "0.0.0.0",
            "computerBName": null,
            "computerBIpA": null,
            "computerBIpB": null,
            "computerACode": null,
            "computerBCode": null,
            "service": "RTDB"
        }
    ]
}

参数名示例值参数类型参数描述
messagesuccessString
code0Integer
timestamp1683790480520Integer
dataObject
data.id2Integernetwork 主键 id
data.parentId0Integer父级对象主键 id,顶层为 0
data.path2String
data.browseNameRTDB-node1String
data.displayNameRTDB-node1String
data.descriptionString
data.originalType13Integer对象枚举类型值
data.createTime2023-05-06 16:57:44String
data.updateTime2023-05-06 16:57:44String
data.siteId0Integer
data.containerDeploy0Integer
data.containerIdnullNull
data.redundancy0Integer
data.syncPeriod500Integer
data.computerANamevdi-117754String
data.computerAIpA172.21.204.70String
data.computerAIpB0.0.0.0String
data.computerBNamenullNull
data.computerBIpAnullNull
data.computerBIpBnullNull
data.computerACodenullNull
data.computerBCodenullNull
data.serviceRTDBString数据源类型,0:IO 服务

实例/查询数据库单元列表

接口 URL

{{host}}{{port}}/v1/model/device/public/dbunit/list

请求方式

GET

Content-Type

json

success 响应示例

示例如下

{
    "message": "success",
    "code": 0,
    "timestamp": 1682056874796,
    "data": [
        {
            "id": 5,
            "parentId": 3,
            "path": "3/5",
            "browseName": "DbUnit_001",
            "displayName": "DbUnit_001",
            "description": "",
            "originalType": 10,
            "createTime": "2023-04-21 11:33:08",
            "updateTime": "2023-04-21 12:16:54",
            "dbunitId": 100,
            "dataSourceType": 0,
            "mainDataSource": 4,
            "backupDataSource": null,
            "recordHistory": 0,
            "loadHot": 0
        }
    ]
}

参数名示例值参数类型参数描述
messagesuccessString
code0Integer
timestamp1680256220425Integer
dataObject
data.id98Integernetwork 主键 id
data.parentId96Integer父级对象主键 id,顶层为 0
data.path96/98String
data.browseNameDbUnit_001String
data.displayNameDbUnit_001String
data.description1String
data.originalType10Integer对象枚举类型值
data.createTime2023-03-17 14:31:12String
data.updateTime2023-03-17 14:31:28String
data.dbunitId100Integer
data.dataSourceType0Integer
data.mainDataSource97Integer
data.backupDataSourcenullNull
data.recordHistory0Integer
data.loadHot0Integer

实例/实例列表查询包含 nodeId

接口 URL

{{host}}{{port}}/v1/model/device/public/instance/list?dbunitName=DbUnit_001&parentId=

请求方式

GET

Content-Type

json

请求 Header 参数

参数名示例值参数类型是否必填参数描述
namespacescada_testString工程名

请求 Query 参数

参数名示例值参数类型是否必填参数描述
dbunitNameDbUnit_001String数据库单元 dbUnit 浏览名(browse_name)
parentIdInteger父级对象主键 id,顶层为 0,不传查询所有

路径变量

参数名示例值参数描述
host
port

success 响应示例

{"message":"success",
"code":0,
"timestamp":1687907623048,
"data":true}

实例/根据 id 查找实例

接口 URL

{{host}}{{port}}/v1/model/device/public/instance/attributes?dbunitName=DbUnit_001&id=11&attributeName=

请求方式

GET

Content-Type

none

请求 Header 参数

参数名示例值参数类型是否必填参数描述
namespacescada_projectString工程名

请求 Query 参数

参数名示例值参数类型是否必填参数描述
dbunitNameDbUnit_001String数据库单元浏览名
id11Integer主键
attributeNameString属性名,只支持到 analogConfig,analogConfig.engineeringUnit

路径变量

参数名示例值参数描述
host
post

success 响应示例

示例如下

{
    "message":"success",
    "code":0,
    "timestamp":1685930024926,
    "data":{
        "baseInfo":{
            "id":11,
            "parentId":5,
            "path":"5/11",
            "originalType":2,
            "templateId":2,
            "nodeId":"100:
            EQ_001.AI_002",
            "browseName":"AI_002",
            "displayName":"AI_002",
            "description":"AI_002",
            "nodeClass":"AI",
            "createTime":"2023-06-01 15:50:54","updateTime":"2023-06-01 15:50:54"},
            "analogConfig":{
                "engineeringUnit":"",
                "defaultVal":0.0,
                "highRange":100.0,
                "lowRange":0.0,
                "accuracy":0
                },
                "historyConfig":{
                    "recordType":1,
                    "enable":true,
                    "period":1800
                    },
                    "udp":[],
                    "pv":{
                        "v":null,
                        "q":null,
                        "t":null
                        }
            }
 }

参数名示例值参数类型参数描述
messagesuccessString
code0Integer
timestamp1683790378122Integer
dataObject
data.id35Integer主键 id
data.parentId29Integer父级对象主键 id,顶层为 0
data.path20/23/29/35String
data.originalType2Integer对象枚举类型值
data.templateId2Integer对象模板 id
data.nodeIdEQ_002.EQ_001.AI_001StringnodeId
data.browseNameAI_001String浏览名
data.displayNameAI_001String显示名
data.descriptionAI_001String描述
data.nodeClassAIString节点的类别,
data.createTime2023-05-10 17:07:09String
data.updateTime2023-05-10 17:07:09String

实例/根据 NodeId 查找实例

接口 URL

{{host}}{{port}}/v1/model/device/public/instance/attributes/nodeId?nodeId=100:EQ_002.DI_003&attributeName=

请求方式

GET

Content-Type

json

请求 Header 参数

参数名示例值参数类型是否必填参数描述
namespaceswhString

请求 Query 参数

参数名示例值参数类型是否必填参数描述
nodeId100:EQ_002.DI_003StringnodeId
attributeNameString属性名,只支持到 analogConfig,analogConfig.engineeringUnit

路径变量

参数名示例值参数描述
host
post

success 响应示例

示例如下

{"message":"success","code":0,"timestamp":1687845211858,"data":[{"baseInfo":{"id":26,"parentId":20,"path":"15/20/26","originalType":5,"templateId":4,"nodeId":"100:EQ_002.DI_003","browseName":"DI_003","displayName":"DI_003","description":"DI_003","nodeClass":"DI","createTime":"2023-06-26 17:28:14","updateTime":"2023-06-26 17:28:14"},"discreteConfig":{"defaultVal":0,"values":[0,1],"valueDeses":["分位","合位"]},"historyConfig":{"recordType":0,"enable":false,"period":10},"udp":[],"pv":{"v":null,"q":null,"t":null}}]}

参数名示例值参数类型参数描述
messagesuccessString
code0Integer
timestamp1680769434203Integer
dataObject
data.baseInfoObject
data.baseInfo.id169Integer
data.baseInfo.parentId0Integer
data.baseInfo.path169String
data.baseInfo.originalType2Integer
data.baseInfo.templateId168Integer
data.baseInfo.nodeId104:AI_UDP_001StringnodeId
data.baseInfo.browseNameAI_UDP_001String
data.baseInfo.displayNameAI_UDP_001String
data.baseInfo.descriptionAI_UDP_001String
data.baseInfo.nodeClassAIString
data.baseInfo.createTime2023-04-06 14:14:22String
data.baseInfo.updateTime2023-04-06 14:14:22String
data.analogConfigObject
data.analogConfig.engineeringUnitObject
data.analogConfig.engineeringUnit.nameengineeringUnitString
data.analogConfig.engineeringUnit.description工程单位String
data.analogConfig.engineeringUnit.type0Integer
data.analogConfig.engineeringUnit.dataTypeStringString
data.analogConfig.engineeringUnit.valueString
data.analogConfig.defaultValObject
data.analogConfig.defaultVal.namedefaultValString
data.analogConfig.defaultVal.description默认值String
data.analogConfig.defaultVal.type0Integer
data.analogConfig.defaultVal.dataTypedoubleString
data.analogConfig.defaultVal.value150Integer
data.analogConfig.highRangeObject
data.analogConfig.highRange.namehighRangeString
data.analogConfig.highRange.description量程上限String
data.analogConfig.highRange.type0Integer
data.analogConfig.highRange.dataTypedoubleString
data.analogConfig.highRange.value800Integer
data.analogConfig.lowRangeObject
data.analogConfig.lowRange.namelowRangeString
data.analogConfig.lowRange.description量程下限String
data.analogConfig.lowRange.type0Integer
data.analogConfig.lowRange.dataTypedoubleString
data.analogConfig.lowRange.value100Integer
data.analogConfig.accuracyObject
data.analogConfig.accuracy.nameaccuracyString
data.analogConfig.accuracy.description显示精度String
data.analogConfig.accuracy.type0Integer
data.analogConfig.accuracy.dataTypeIntegerString
data.analogConfig.accuracy.value4Integer
data.analogConfig.description模拟量配置String
data.analogConfig.dataTypeObjectString
data.historyConfigObject
data.historyConfig.recordTypeObject
data.historyConfig.recordType.namerecordTypeString
data.historyConfig.recordType.description存储类型,变化存储 or 周期存储String
data.historyConfig.recordType.type0Integer
data.historyConfig.recordType.dataTypeIntegerString
data.historyConfig.recordType.value0Integer
data.historyConfig.enableObject
data.historyConfig.enable.nameenableString
data.historyConfig.enable.description是否记录历史中String
data.historyConfig.enable.type0Integer
data.historyConfig.enable.dataTypebooleanString
data.historyConfig.enable.valuetrueBoolean
data.historyConfig.periodObject
data.historyConfig.period.nameperiodString
data.historyConfig.period.description存储周期String
data.historyConfig.period.type0Integer
data.historyConfig.period.dataTypeIntegerString
data.historyConfig.period.value1000Integer
data.historyConfig.description历史配置String
data.historyConfig.dataTypeObjectString
data.udpObject
data.udp.originalType16Integer
data.udp.nodeId104:AI_UDP_001.aaaaaStringnodeId
data.udp.browseNameaaaaaString
data.udp.descriptionString
data.udp.nodeClassUDPString
data.udp.dataTypeBooleanString
data.udp.recordHistorytrueBoolean
data.udp.recordType0Integer
data.udp.period15Integer
data.udp.isArrayfalseBoolean
data.udp.arraySize0Integer
data.udp.type1Integer
data.udp.createTime2023-04-06 15:48:27String
data.udp.updateTime2023-04-06 15:48:27String
data.pvObject
data.pv.namePVString
data.pv.descriptionPVString
data.pv.type1Integer
data.pv.dataTypeObjectString
data.pv.valuenullNull

第三方接口/实例/根据 NodeIds 查询实例

接口 URL

{{host}}{{port}}/v1/model/device/public/instance/attributes/nodeIds

请求方式

POST

Content-Type

json

请求 Header 参数

参数名示例值参数类型是否必填参数描述
namespaceString

请求 Body 参数

{
"attributeName": "",
"nodeIds": [
"100:EQ_001.AI_001",
"100:EQ_003.AI_002",
"100:EQ_004.AI_004",
"100:EQ_003.AI_003",
"100:EQ_004.AI_005"

]
}
参数名示例值参数类型是否必填参数描述
attributeNameanalogConfigString属性名,如只支持到 analogConfig,analogConfig.engineeringUnit 名
nodeIds100:EQ_001StringnodeId

success 响应示例

示例如下

{"message":"success","code":0,"timestamp":1688108322378,"data":[{"baseInfo":{"id":8,"parentId":9,"path":"7/9/8","originalType":2,"templateId":2,"nodeId":"100:EQ_001.AI_001","browseName":"AI_001","displayName":"AI_001","description":"AI_001","nodeClass":"AI","createTime":"2023-06-20 10:44:51","updateTime":"2023-06-20 10:44:51"},"analogConfig":{"defaultVal":0.0,"highRange":100.0,"lowRange":0.0,"engineeringUnit":"","accuracy":0},"historyConfig":{"recordType":0,"enable":false,"period":10},"udp":[],"pv":{"v":null,"q":null,"t":null}},{"baseInfo":{"id":32,"parentId":30,"path":"7/30/32","originalType":2,"templateId":2,"nodeId":"100:EQ_003.AI_002","browseName":"AI_002","displayName":"AI_002","description":"AI_002","nodeClass":"AI","createTime":"2023-06-30 14:54:30","updateTime":"2023-06-30 14:54:30"},"analogConfig":{"defaultVal":0.0,"highRange":100.0,"lowRange":0.0,"engineeringUnit":"","accuracy":0},"historyConfig":{"recordType":0,"enable":false,"period":10},"udp":[],"pv":{"v":null,"q":null,"t":null}},{"baseInfo":{"id":34,"parentId":31,"path":"7/31/34","originalType":2,"templateId":2,"nodeId":"100:EQ_004.AI_004","browseName":"AI_004","displayName":"AI_004","description":"AI_004","nodeClass":"AI","createTime":"2023-06-30 14:54:35","updateTime":"2023-06-30 14:54:35"},"analogConfig":{"defaultVal":0.0,"highRange":100.0,"lowRange":0.0,"engineeringUnit":"","accuracy":0},"historyConfig":{"recordType":0,"enable":false,"period":10},"udp":[],"pv":{"v":null,"q":null,"t":null}},{"baseInfo":{"id":33,"parentId":30,"path":"7/30/33","originalType":2,"templateId":2,"nodeId":"100:EQ_003.AI_003","browseName":"AI_003","displayName":"AI_003","description":"AI_003","nodeClass":"AI","createTime":"2023-06-30 14:54:31","updateTime":"2023-06-30 14:54:31"},"analogConfig":{"defaultVal":0.0,"highRange":100.0,"lowRange":0.0,"engineeringUnit":"","accuracy":0},"historyConfig":{"recordType":0,"enable":false,"period":10},"udp":[],"pv":{"v":null,"q":null,"t":null}},{"baseInfo":{"id":35,"parentId":31,"path":"7/31/35","originalType":2,"templateId":2,"nodeId":"100:EQ_004.AI_005","browseName":"AI_005","displayName":"AI_005","description":"AI_005","nodeClass":"AI","createTime":"2023-06-30 14:54:36","updateTime":"2023-06-30 14:54:36"},"analogConfig":{"defaultVal":0.0,"highRange":100.0,"lowRange":0.0,"engineeringUnit":"","accuracy":0},"historyConfig":{"recordType":0,"enable":false,"period":10},"udp":[],"pv":{"v":null,"q":null,"t":null}}]}

参数名示例值参数类型参数描述
messagesuccessString
code0Integer
timestamp1680747281479Integer
dataObject
data.baseInfoObject
data.baseInfo.id121Integer
data.baseInfo.parentId0Integer
data.baseInfo.path121String
data.baseInfo.originalType2Integer
data.baseInfo.templateId77Integer
data.baseInfo.nodeIdAI_001String
data.baseInfo.browseNameAI_001String
data.baseInfo.displayNameAI_001String
data.baseInfo.descriptionAI_001String
data.baseInfo.nodeClassAIString
data.baseInfo.createTime2023-03-28 10:52:00String
data.baseInfo.updateTime2023-03-28 10:52:00String
data.analogConfigObject
data.analogConfig.engineeringUnitObject
data.analogConfig.engineeringUnit.nameengineeringUnitString
data.analogConfig.engineeringUnit.description工程单位String
data.analogConfig.engineeringUnit.type0Integer
data.analogConfig.engineeringUnit.dataTypeStringString
data.analogConfig.engineeringUnit.valueString
data.analogConfig.defaultValObject
data.analogConfig.defaultVal.namedefaultValString
data.analogConfig.defaultVal.description默认值String
data.analogConfig.defaultVal.type0Integer
data.analogConfig.defaultVal.dataTypedoubleString
data.analogConfig.defaultVal.value0Integer
data.analogConfig.highRangeObject
data.analogConfig.highRange.namehighRangeString
data.analogConfig.highRange.description量程上限String
data.analogConfig.highRange.type0Integer
data.analogConfig.highRange.dataTypedoubleString
data.analogConfig.highRange.value100Integer
data.analogConfig.lowRangeObject
data.analogConfig.lowRange.namelowRangeString
data.analogConfig.lowRange.description量程下限String
data.analogConfig.lowRange.type0Integer
data.analogConfig.lowRange.dataTypedoubleString
data.analogConfig.lowRange.value0Integer
data.analogConfig.accuracyObject
data.analogConfig.accuracy.nameaccuracyString
data.analogConfig.accuracy.description显示精度String
data.analogConfig.accuracy.type0Integer
data.analogConfig.accuracy.dataTypeIntegerString
data.analogConfig.accuracy.value0Integer
data.analogConfig.description模拟量配置String
data.analogConfig.dataTypeObjectString
data.historyConfigObject
data.historyConfig.recordTypeObject
data.historyConfig.recordType.namerecordTypeString
data.historyConfig.recordType.description存储类型,变化存储 or 周期存储String
data.historyConfig.recordType.type0Integer
data.historyConfig.recordType.dataTypeIntegerString
data.historyConfig.recordType.value0Integer
data.historyConfig.enableObject
data.historyConfig.enable.nameenableString
data.historyConfig.enable.description是否记录历史中String
data.historyConfig.enable.type0Integer
data.historyConfig.enable.dataTypebooleanString
data.historyConfig.enable.valuefalseBoolean
data.historyConfig.periodObject
data.historyConfig.period.nameperiodString
data.historyConfig.period.description存储周期String
data.historyConfig.period.type0Integer
data.historyConfig.period.dataTypeIntegerString
data.historyConfig.period.value10Integer
data.historyConfig.description历史配置String
data.historyConfig.dataTypeObjectString
data.pvObject
data.pv.namePVString
data.pv.descriptionPVString
data.pv.type1Integer
data.pv.dataTypeObjectString
data.pv.valuenullNull