智能边缘云 IEC-创建路由:请求示例

时间:2024-01-02 15:48:17

请求示例

创建下一跳类型为ecs的路由,下一跳地址为实例562203c6-e475-46de-81cb-ce8579459b18,路由目的网段为10.10.10.0/24

POST https://{{endpoint}}/v1/routetables/97d08984-d346-410e-bc0e-f466dfbd1f24/add-routes

{
  "routes" : [ {
    "type" : "ecs",
    "destination" : "10.10.10.0/24",
    "nexthop" : "562203c6-e475-46de-81cb-ce8579459b18",
    "description" : "abc"
  } ]
}
support.huaweicloud.com/api-iec/CreateRoutes.html