菜单

5.板卡类

下载

板卡类

新增板卡

  • 接口描述:在对应插槽上插入板卡

  • URL地址:http://ip:port /wapi/v1/cards

  • 访问方法::POST

  • 请求参数:

    Params参数

参数名 类型 示例值 必填 说明
card_type_id Long 26000000131140 板卡型号id
node_id Long 24000000433037 插槽id
  • 响应示例:

    {

    "code": 200,

    "message": "success",

    "data": {

    "breadcrumbs": [],

    "vis_sublinks": [],

    "link_diagram": {

    "linkId": 25000000134278,

    "typeId": 27000000000197,

    "name": "From: 通信井hole - To: 通信井hole",

    "background": "",

    "route": "24000000000001/24000000176246"

    }

    }

    }

    {

    "node": {

    "id": 24000000433037,

    "typeId": 26000000131140,

    "parentId": 24000000433036,

    "name": "A",

    "background": "udaad7ct.png",

    "route": "24000000000001/24000000173155/24000000194088/24000000433036/24000000433037",

    "diagramWidth": 1000.0,

    "diagramHeight": 750.0,

    "diagramMarginSize": null,

    "hidden": null,

    "slotId": 49000000027367,

    "masterId": null,

    "insertUserId": 94000000000432,

    "templateId": null,

    "adaNodeId": null,

    "connectorCode": null,

    "rackOverrideType": null,

    "showContainerChildren": true,

    "doubleClickBehavior": "default",

    "mapCoordinateLeft": null,

    "mapCoordinateTop": null,

    "mapCoordinateRight": null,

    "mapCoordinateBottom": null,

    "mapUnitsType": null,

    "dinamicMapSupport": null,

    "autoLayoutState": null,

    "mapSource": null,

    "displayGrid": null,

    "snapToGrid": null,

    "gridSpacingY": null,

    "gridSpacingX": null,

    "pageColor": "#FFFFFF",

    "overrideTemplateGrid": null,

    "readOnlyForNonAdmins": null,

    "collectorId": null,

    "diagramScale": null,

    "mapZoom": -1.0,

    "enableMvtLevel": null,

    "blocked": false

    },

    "vis_node": {

    "id": 3220870,

    "nodeId": 24000000433037,

    "diagramId": 24000000433036,

    "x": 159.78509011461352,

    "y": 375.75018994724707,

    "z": null,

    "width": 222.26683044433594,

    "height": 86.01939392089844,

    "depth": 0.0,

    "imageOverride": null,

    "keepAspectRatio": false,

    "angle": 0,

    "canMove": false,

    "canResize": false,

    "canRotate": false,

    "canDelete": false,

    "zOrder": 0,

    "displayed": true,

    "new": true,

    "master": true

    },

    "properties": [

    {

    "id": 28000000240280,

    "nodeTypeId": 26000000131140,

    "name": "峰值功率KW",

    "defaultValue": null,

    "position": 1,

    "mandatory": true,

    "displayed": null,

    "fontSize": 100.0,

    "fontColor": "#000000",

    "notEditable": false,

    "offsetX": 0.0,

    "offsetY": -15.0,

    "angle": 0,

    "anchorPointX": 0,

    "anchorPointY": 0,

    "bold": null,

    "italic": null,

    "underline": null,

    "fontFamily": null,

    "fillColor": null,

    "align": 0,

    "lockList": false,

    "justification": 0,

    "snmpOid": null,

    "system": true,

    "inProperties": true,

    "typeField": false,

    "uniqueForThisType": null,

    "uniqueForAllTypes": null

    }

    ],

    "shape": null,

    "displayed_vis_node_fields": null,

    "ports": [

    {

    "id": 23000002565698,

    "typeId": 26000000000006,

    "parentId": 24000000433037,

    "route": "24000000000001/24000000173155/24000000194088/24000000433036/24000000433037",

    "name": "01",

    "portId": 48000000306683,

    "blockedForPatching": false,

    "inUse": false

    }

    ],

    "node_type": {

    "id": 26000000131140,

    "name": "1U4M-06CoP",

    "image": "7gquryoy.png",

    "image2": null,

    "background": "udaad7ct.png",

    "defaultWidth": 110.0,

    "defaultHeight": 44.0,

    "typeGroup": 11,

    "hierarchyBrowserLabel": 28000000222650,

    "width": 110.0,

    "height": 44.0,

    "templateId": null,

    "vendorId": 974,

    "description": null,

    "keepAspectRatio": null,

    "showContainerChildren": true,

    "doubleClickBehavior": "0",

    "categoryId": null,

    "snmpOid": null,

    "independentMounting": true,

    "inStock": -1,

    "nodeClassGroupId": 120000,

    "nodeClassId": null,

    "creator": null,

    "createDate": null,

    "deep": 0.0,

    "topLeftX": null,

    "topLeftY": null,

    "bottomRightX": null,

    "bottomRightY": null,

    "enabled": true,

    "system": false,

    "favourite": true

    }

    }

拆除板卡

  • 接口描述:将板卡拆除

  • URL地址:http://ip:port /wapi/v1/cards

  • 访问方法::Delete

  • 请求参数:

    Params参数

参数名 类型 示例值 必填 说明
node_id Long 24000000433037 插槽id
  • 响应示例:

    {

    "code": 200

    }

最近修改: 2025-02-27