IOT边缘 IOTEDGE-修改边缘节点:请求示例

时间:2024-09-04 14:51:19

请求示例

PUT https://{endpoint}/v2/{project_id}/edge-nodes/{edge_node_id}

{
  "name" : "test-node",
  "storage_period" : 0,
  "log_configs" : [ {
    "size" : 1000,
    "level" : "string",
    "rotate_num" : 10,
    "rotate_period" : "string",
    "type" : "LTS",
    "component" : "string"
  } ],
  "ha_config" : {
    "ha_type" : "ACTIVE_STANDBY",
    "active_standby_config" : null,
    "work_node" : "DEFAULT",
    "master_interface_name" : "eth0",
    "slave_interface_name" : "eth0",
    "virtual_ip_address" : "127.0.0.1",
    "virtual_ipv6_address" : "ABCD:EF01:2345:6789:ABCD:EF01:2345:6789"
  },
  "hardware_model" : "string",
  "npu_library_path" : "/usr/local/Ascend/driver/lib64/",
  "automatic_upgrade" : "OFF",
  "device_data_record" : {
    "disk_quota" : 512,
    "age" : 7,
    "state" : "off"
  },
  "metric_report" : "on",
  "offline_cache_configs" : {
    "publish_order" : "realtime_first",
    "period" : 7,
    "capacity" : 2048
  }
}
support.huaweicloud.com/api-iotedge/UpdateEdgeNode.html