智能边缘云 IEC-创建端口:请求示例

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

请求示例

创建一个端口,所在network id为56071e5f-3e97-44d1-822d-bcb76906e9a7,指定子网id为3e361542-55aa-470c-a8a7-a438fa154f7d,指定IP地址为172.16.0.188。

POST https://{endpoint}/v1/ports

{
  "port" : {
    "fixed_ips" : [ {
      "ip_address" : "172.16.0.188",
      "subnet_id" : "3e361542-55aa-470c-a8a7-a438fa154f7d"
    } ],
    "network_id" : "56071e5f-3e97-44d1-822d-bcb76906e9a7",
    "device_owner" : "neutron:VIP_PORT"
  }
}
support.huaweicloud.com/api-iec/CreatePort.html