接口描述:传入设备模型名称和品牌名称,创建设备模型。
URL地址:http://ip:port /wapi/v1/node_types/devices
访问方法::Post
请求参数:
Body参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
model | String | test23020903 | 是 | 模型名称 |
vendor | String | 101 | 是 | 品牌 |
description | String | 测试 | 否 | 描述 |
nodeClassGroup | String | 计算 | 否 | 分类 |
defaultWidth | Double | 482.6 | 否 | 模型宽 |
defaultHeight | Double | 44.45 | 否 | 模型高 |
deep | Double | 260 | 否 | 模型深 |
favourite | Boolean | true | 否 | 是否收藏 |
{
"code": 200,
"data": {
"id": 26000000132420,
"name": "test23020901",
"image": null,
"image2": null,
"background": null,
"defaultWidth": 482.6,
"defaultHeight": 44.45,
"typeGroup": 7,
"hierarchyBrowserLabel": 28000000343364,
"width": 482.6,
"height": 44.45,
"templateId": null,
"vendorId": 933,
"description": "测试创建",
"keepAspectRatio": null,
"showContainerChildren": true,
"doubleClickBehavior": "0",
"categoryId": null,
"snmpOid": null,
"independentMounting": true,
"inStock": -1,
"nodeClassGroupId": 170000,
"nodeClassId": null,
"creator": "fe",
"createDate": "2023-02-09T07:13:01.000+0000",
"deep": 260,
"topLeftX": null,
"topLeftY": null,
"bottomRightX": null,
"bottomRightY": null,
"enabled": true,
"favourite": true,
"system": false
}
}
接口描述:传入节点模型名称和品牌名称,创建节点模型。
URL地址:http://ip:port /wapi/v1/node_types/node
访问方法::Post
请求参数:
Body参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
model | String | test23020903 | 是 | 模型名称 |
vendor | String | 101 | 是 | 品牌 |
description | String | 测试 | 否 | 描述 |
nodeClassGroup | String | 计算 | 否 | 分类 |
defaultWidth | Double | 482.6 | 否 | 模型宽 |
defaultHeight | Double | 44.45 | 否 | 模型高 |
favourite | Boolean | true | 否 | 是否收藏 |
{
"code": 200,
"data": {
"id": 26000000132421,
"name": "test23020902",
"image": null,
"image2": null,
"background": null,
"defaultWidth": 10,
"defaultHeight": 10,
"typeGroup": 1,
"hierarchyBrowserLabel": 28000000343374,
"width": null,
"height": null,
"templateId": null,
"vendorId": 962,
"description": "testcreatnode",
"keepAspectRatio": null,
"showContainerChildren": true,
"doubleClickBehavior": "0",
"categoryId": null,
"snmpOid": null,
"independentMounting": true,
"inStock": -1,
"nodeClassGroupId": 110000,
"nodeClassId": null,
"creator": "fe",
"createDate": "2023-02-09T07:14:15.000+0000",
"deep": 10,
"topLeftX": null,
"topLeftY": null,
"bottomRightX": null,
"bottomRightY": null,
"enabled": true,
"favourite": true,
"system": false
}
}
接口描述:传入板卡模型名称和品牌名称,创建板卡模型。
URL地址:http://ip:port /wapi/v1/node_types/card
访问方法::Post
请求参数:
Body参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
model | String | test23020904 | 是 | 模型名称 |
vendor | String | 3Com | 是 | 品牌 |
description | String | 测试 | 否 | 描述 |
nodeClassGroup | String | 计算 | 否 | 分类 |
{
"code": 200,
"data": {
"id": 26000000132423,
"name": "test23090204",
"image": null,
"image2": null,
"background": null,
"defaultWidth": 10,
"defaultHeight": 10,
"typeGroup": 11,
"hierarchyBrowserLabel": 28000000343388,
"width": null,
"height": null,
"templateId": null,
"vendorId": 307,
"description": null,
"keepAspectRatio": null,
"showContainerChildren": true,
"doubleClickBehavior": "0",
"categoryId": null,
"snmpOid": null,
"independentMounting": true,
"inStock": -1,
"nodeClassGroupId": 120000,
"nodeClassId": null,
"creator": "fe",
"createDate": "2023-02-09T07:27:57.000+0000",
"deep": 10,
"topLeftX": null,
"topLeftY": null,
"bottomRightX": null,
"bottomRightY": null,
"enabled": true,
"favourite": true,
"system": false
}
}
接口描述:传入机柜模型名称和品牌名称,创建机柜模型。
URL地址:http://ip:port /wapi/v1/node_types/rack
访问方法::Post
请求参数:
Body参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
model | String | test23020905 | 是 | 模型名称 |
vendor | String | 101 | 是 | 品牌 |
description | String | 测试 | 否 | 描述 |
nodeClassGroup | String | 计算 | 否 | 分类 |
defaultWidth | Double | 600 | 否 | 模型宽 |
defaultHeight | Double | 1200 | 否 | 模型高 |
deep | Double | 2280 | 否 | 模型深 |
favourite | Boolean | true | 否 | 是否收藏 |
{
"code": 200,
"data": {
"id": 26000000132424,
"name": "test23020905",
"image": "SquareBlueTransparent.png",
"image2": null,
"background": null,
"defaultWidth": 50,
"defaultHeight": 50,
"typeGroup": 8,
"hierarchyBrowserLabel": 28000000343395,
"width": null,
"height": null,
"templateId": null,
"vendorId": 933,
"description": null,
"keepAspectRatio": null,
"showContainerChildren": true,
"doubleClickBehavior": "0",
"categoryId": null,
"snmpOid": null,
"independentMounting": true,
"inStock": -1,
"nodeClassGroupId": 180000,
"nodeClassId": null,
"creator": "fe",
"createDate": "2023-02-09T07:30:02.000+0000",
"deep": 10,
"topLeftX": null,
"topLeftY": null,
"bottomRightX": null,
"bottomRightY": null,
"enabled": true,
"favourite": true,
"system": false
}
}
接口描述:传入机柜模型名称和品牌名称,创建机柜模型。
URL地址:http://ip:port /wapi/v1/node_types/{nodeTypesId}
访问方法::Put
请求参数:
Path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
nodeTypesId | Long | 26000000132424 | 是 | 模型id |
Body参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
model | String | test23020905 | 否 | 模型名称 |
vendor | String | 101 | 否 | 品牌 |
description | String | 测试 | 否 | 描述 |
nodeClassGroup | String | 计算 | 否 | 分类 |
defaultWidth | Double | 600 | 否 | 模型宽 |
defaultHeight | Double | 1200 | 否 | 模型高 |
deep | Double | 2280 | 否 | 模型深 |
favourite | Boolean | true | 否 | 是否收藏 |
{
"code": 200,
"data": {
"id": 26000000132424,
"name": "test23020905",
"image": "SquareBlueTransparent.png",
"image2": null,
"background": null,
"defaultWidth": 500,
"defaultHeight": 50,
"typeGroup": 8,
"hierarchyBrowserLabel": 28000000343395,
"width": 500,
"height": null,
"templateId": null,
"vendorId": 933,
"description": null,
"keepAspectRatio": null,
"showContainerChildren": true,
"doubleClickBehavior": "0",
"categoryId": null,
"snmpOid": null,
"independentMounting": true,
"inStock": -1,
"nodeClassGroupId": 180000,
"nodeClassId": null,
"creator": "fe",
"createDate": "2023-02-09T07:30:02.000+0000",
"deep": 10,
"topLeftX": null,
"topLeftY": null,
"bottomRightX": null,
"bottomRightY": null,
"enabled": true,
"favourite": true,
"system": false
}
}
接口描述:传入节点id,查询模型id。
URL地址:http://ip:port /wapi/v1/node_types/get_node_type_id/{nodeId}
访问方法::Get
请求参数:
Path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
nodeId | Long | 24000000054124 | 是 | 节点id |
26000000020723
接口描述:传入模型分类和分页信息,获取模型库列表数据。
URL地址:http://ip:port /wapi/v1 /devcatalog/nodes/{typeGroupId}
访问方法::Get
请求参数:
Path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
typeGroupId | Integer | 1 | 是 | 模型分类id |
Parame参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
take | Integer | 25 | 否 | 一页数量 |
skip | Integer | 25 | 否 | 页码 |
{
"totalCount": 2040,
"data": [
{
"num": 26,
"id": 26000000131071,
"description": "Floor14.svg",
"vendor": "DEFAULT",
"model": "Floor14",
"image": "iu0wwhnw.svg",
"image2": null,
"favourite": true,
"enabled": true,
"height": 10.0,
"width": 10.0,
"defaultHeight": 100.0,
"defaultWidth": 100.0,
"oid": null,
"stock": -1,
"propertyCount": 3,
"peakPower": null,
"weight": null,
"status": null,
"weightPropertyId": null,
"peakPowerPropertyId": null,
"overridesCount": 0,
"instances": 0,
"nodeClassGroup": "形状",
"nodeClass": null,
"deep": 0.0,
"creator": null,
"create_date": null,
"unit": null,
"unitPrice": 0.0,
"origin": null
},
{
"num": 27,
"id": 26000000131070,
"description": "Floor13.svg",
"vendor": "DEFAULT",
"model": "Floor13",
"image": "q81ioxfx.svg",
"image2": null,
"favourite": true,
"enabled": true,
"height": 10.0,
"width": 10.0,
"defaultHeight": 100.0,
"defaultWidth": 100.0,
"oid": null,
"stock": -1,
"propertyCount": 3,
"peakPower": null,
"weight": null,
"status": null,
"weightPropertyId": null,
"peakPowerPropertyId": null,
"overridesCount": 0,
"instances": 0,
"nodeClassGroup": "形状",
"nodeClass": null,
"deep": 0.0,
"creator": null,
"create_date": null,
"unit": null,
"unitPrice": 0.0,
"origin": null
}
]
}
接口描述:传入模型名称,查询模型数据。
URL地址:http://ip:port /wapi/v1/node_types/{name}/node_type_name
访问方法::Get
请求参数:
Path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
name | String | test23020901 | 是 | 模型名 |
{
"id": 26000000132420,
"name": "test23020901",
"image": null,
"image2": null,
"background": null,
"defaultWidth": 482.6,
"defaultHeight": 44.45,
"typeGroup": 7,
"hierarchyBrowserLabel": 28000000343364,
"width": 482.6,
"height": 44.45,
"templateId": null,
"vendorId": 933,
"description": "测试创建",
"keepAspectRatio": null,
"showContainerChildren": true,
"doubleClickBehavior": "0",
"categoryId": null,
"snmpOid": null,
"independentMounting": true,
"inStock": -1,
"nodeClassGroupId": 170000,
"nodeClassId": null,
"creator": "fe",
"createDate": "2023-02-09T07:13:01.000+0000",
"deep": 260.0,
"topLeftX": null,
"topLeftY": null,
"bottomRightX": null,
"bottomRightY": null,
"enabled": true,
"favourite": true,
"system": false
}
接口描述:传入模型id,查询模型数据。
URL地址:http://ip:port /wapi/v1/node_types/{nodeTypesId}
访问方法::Get
请求参数:
Path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
nodeTypesId | Long | 26000000132420 | 是 | 模型id |
{
"id": 26000000132420,
"name": "test23020901",
"image": null,
"image2": null,
"background": null,
"defaultWidth": 482.6,
"defaultHeight": 44.45,
"typeGroup": 7,
"hierarchyBrowserLabel": 28000000343364,
"width": 482.6,
"height": 44.45,
"templateId": null,
"vendorId": 933,
"description": "测试创建",
"keepAspectRatio": null,
"showContainerChildren": true,
"doubleClickBehavior": "0",
"categoryId": null,
"snmpOid": null,
"independentMounting": true,
"inStock": -1,
"nodeClassGroupId": 170000,
"nodeClassId": null,
"creator": "fe",
"createDate": "2023-02-09T07:13:01.000+0000",
"deep": 260.0,
"topLeftX": null,
"topLeftY": null,
"bottomRightX": null,
"bottomRightY": null,
"enabled": true,
"favourite": true,
"system": false
}
接口描述:传入模型id,拷贝节点模型。
URL地址:http://ip:port /wapi/v1 /node_types/{nodeTypeId}/clone
访问方法::Post
请求参数:
Path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
nodeTypesId | Long | 26000000132420 | 是 | 模型id |
{
"code": 200,
"data": {
"id": 26000000132425,
"name": "test23020901 clone",
"image": null,
"image2": null,
"background": null,
"defaultWidth": 482.6,
"defaultHeight": 44.45,
"typeGroup": 7,
"hierarchyBrowserLabel": 28000000343410,
"width": 482.6,
"height": 44.45,
"templateId": null,
"vendorId": 933,
"description": "测试创建",
"keepAspectRatio": null,
"showContainerChildren": true,
"doubleClickBehavior": "0",
"categoryId": null,
"snmpOid": null,
"independentMounting": true,
"inStock": -1,
"nodeClassGroupId": 170000,
"nodeClassId": null,
"creator": "fe",
"createDate": "2023-02-09T07:50:52.000+0000",
"deep": 260,
"topLeftX": null,
"topLeftY": null,
"bottomRightX": null,
"bottomRightY": null,
"enabled": true,
"favourite": true,
"system": false
}
}
接口描述:传入模型id,设置模型建模的背景图片。
URL地址:http://ip:port/wapi/v1/node_types/{nodeTypeId}/set_background_image
访问方法::Put
请求参数:
Path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
nodeTypesId | Long | 26000000132420 | 是 | 模型id |
Parame参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
File | file | 一个图片文件 | 是 | 模型背景图 |
{
"code": 200,
"data": {
"id": 26000000132425,
"name": "test23020901 clone",
"image": null,
"image2": null,
"background": "xnromvf0.svg",
"defaultWidth": 482.6,
"defaultHeight": 44.45,
"typeGroup": 7,
"hierarchyBrowserLabel": 28000000343410,
"width": 482.6,
"height": 44.45,
"templateId": null,
"vendorId": 933,
"description": "测试创建",
"keepAspectRatio": null,
"showContainerChildren": true,
"doubleClickBehavior": "0",
"categoryId": null,
"snmpOid": null,
"independentMounting": true,
"inStock": -1,
"nodeClassGroupId": 170000,
"nodeClassId": null,
"creator": "fe",
"createDate": "2023-02-09T07:50:52.000+0000",
"deep": 260,
"topLeftX": null,
"topLeftY": null,
"bottomRightX": null,
"bottomRightY": null,
"enabled": true,
"favourite": true,
"system": false
}
}
接口描述:传入模型id,设置模型前视图的图片。
URL地址:http://ip:port/wapi/v1 /node_types/{nodeTypeId}/set_image
访问方法::Put
请求参数:
Path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
nodeTypesId | Long | 26000000132420 | 是 | 模型id |
Parame参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
File | file | 一个图片文件 | 是 | 模型前视图 |
{
"code": 200,
"data": {
"id": 26000000132425,
"name": "test23020901 clone",
"image": "ecsunnua.svg",
"image2": null,
"background": "xnromvf0.svg",
"defaultWidth": 482.6,
"defaultHeight": 44.45,
"typeGroup": 7,
"hierarchyBrowserLabel": 28000000343410,
"width": 482.6,
"height": 44.45,
"templateId": null,
"vendorId": 933,
"description": "测试创建",
"keepAspectRatio": null,
"showContainerChildren": true,
"doubleClickBehavior": "0",
"categoryId": null,
"snmpOid": null,
"independentMounting": true,
"inStock": -1,
"nodeClassGroupId": 170000,
"nodeClassId": null,
"creator": "fe",
"createDate": "2023-02-09T07:50:52.000+0000",
"deep": 260,
"topLeftX": 0,
"topLeftY": 215,
"bottomRightX": 1000,
"bottomRightY": 535,
"enabled": true,
"favourite": true,
"system": false
}
}
接口描述:传入模型id,设置模型后视图的图片。
URL地址:http://ip:port/wapi/v1 /node_types/{nodeTypeId}/set_image2
访问方法::Put
请求参数:
Path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
nodeTypesId | Long | 26000000132420 | 是 | 模型id |
Parame参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
File | file | 一个图片文件 | 是 | 模型后视图 |
{
"code": 200,
"data": {
"id": 26000000132425,
"name": "test23020901 clone",
"image": "ecsunnua.svg",
"image2": "bxik9s49.svg",
"background": "xnromvf0.svg",
"defaultWidth": 482.6,
"defaultHeight": 44.45,
"typeGroup": 7,
"hierarchyBrowserLabel": 28000000343410,
"width": 482.6,
"height": 44.45,
"templateId": null,
"vendorId": 933,
"description": "测试创建",
"keepAspectRatio": null,
"showContainerChildren": true,
"doubleClickBehavior": "0",
"categoryId": null,
"snmpOid": null,
"independentMounting": true,
"inStock": -1,
"nodeClassGroupId": 170000,
"nodeClassId": null,
"creator": "fe",
"createDate": "2023-02-09T07:50:52.000+0000",
"deep": 260,
"topLeftX": 0,
"topLeftY": 215,
"bottomRightX": 1000,
"bottomRightY": 535,
"enabled": true,
"favourite": true,
"system": false
}
}
接口描述:传入模型id,删除模型和相关数据。
URL地址:http://ip:port/wapi/v1 /node_types/{nodeTypeId}
访问方法::Deletet
请求参数:
Path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
nodeTypesId | Long | 26000000132420 | 是 | 模型id |
{
"code": 200,
"data": {
"id": 26000000132420,
"name": "test23020901",
"image": null,
"image2": null,
"background": null,
"defaultWidth": 482.6,
"defaultHeight": 44.45,
"typeGroup": 7,
"hierarchyBrowserLabel": 28000000343364,
"width": 482.6,
"height": 44.45,
"templateId": null,
"vendorId": 933,
"description": "测试创建",
"keepAspectRatio": null,
"showContainerChildren": true,
"doubleClickBehavior": "0",
"categoryId": null,
"snmpOid": null,
"independentMounting": true,
"inStock": -1,
"nodeClassGroupId": 170000,
"nodeClassId": null,
"creator": "fe",
"createDate": "2023-02-09T07:13:01.000+0000",
"deep": 260,
"topLeftX": null,
"topLeftY": null,
"bottomRightX": null,
"bottomRightY": null,
"enabled": true,
"favourite": true,
"system": false
}
}
接口描述:传入模型id列表,删除模型和相关数据。
URL地址:http://ip:port/wapi/v1/node_types/nodeTypesIdList/{nodeTypesIdList}
访问方法::Deletet
请求参数:
Path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
nodeTypesIdList | String | 26000000132427,26000000132426 | 是 | 模型id列表 |
{
"code": 200
"data": {
"id": 26000000132426,
"name": "test23020901 clone clone",
"image": "ecsunnua.svg",
"image2": "bxik9s49.svg",
"background": "7jwnqnwu.svg",
"defaultWidth": 482.6,
"defaultHeight": 44.45,
"typeGroup": 7,
"hierarchyBrowserLabel": 28000000343420,
"width": 482.6,
"height": 44.45,
"templateId": null,
"vendorId": 933,
"description": "测试创建",
"keepAspectRatio": null,
"showContainerChildren": true,
"doubleClickBehavior": "0",
"categoryId": null,
"snmpOid": null,
"independentMounting": true,
"inStock": -1,
"nodeClassGroupId": 170000,
"nodeClassId": null,
"creator": "fe",
"createDate": "2023-02-09T08:09:54.000+0000",
"deep": 260,
"topLeftX": null,
"topLeftY": null,
"bottomRightX": null,
"bottomRightY": null,
"enabled": true,
"favourite": true,
"system": false
}
}
接口描述:传入模型id,导出模型。
URL地址:http://ip:port/wapi/v1/node_types/export_model/{nodeTypeId}
访问方法::Get
请求参数:
Path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
nodeTypesId | Long | 26000000132420 | 是 | 模型id |
接口描述:传入模型文件,导入模型。
URL地址:http://ip:port/wapi/v1/node_types/export_model/{nodeTypeId}
访问方法::Put
请求参数:
Parame参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
File | file | 模型文件 | 是 | 模型文件 |
{
"code": 200
}