IOT边缘 IOTEDGE-添加应用配置模板:响应示例

时间:2024-06-20 17:14:27

响应示例

状态码: 200

OK

{
  "tpl_id" : "general_app_tpl",
  "name" : "general_app_tpl",
  "description" : "通用应用模板",
  "config_tabs" : [ {
    "key" : "connection_info",
    "name" : "连接信息",
    "description" : "连接信息",
    "config_items" : [ {
      "key" : "endpoint",
      "name" : "服务端点",
      "description" : "服务完整URL",
      "example" : "opc.tcp://127.0.0.1:53530/OPCUA"
    }, {
      "key" : "username",
      "name" : "用户名",
      "description" : "OPCUA服务器认证用户名",
      "example" : "admin"
    }, {
      "key" : "password",
      "name" : "密码",
      "description" : "OPCUA服务器认证密码",
      "data_type" : "string"
    } ]
  }, {
    "key" : "collection_paras",
    "name" : "连接附加参数",
    "description" : "连接附加参数",
    "config_items" : [ {
      "key" : "default_cycle",
      "name" : "采集周期",
      "description" : "采集周期"
    } ]
  } ],
  "default_values" : {
    "appname" : "LINK"
  }
}
support.huaweicloud.com/api-iotedge/AddAppConfigsTemplates.html