弹性云服务器 ECS-添加云服务器网卡(废弃):请求消息

时间:2025-02-12 15:02:27

请求消息

请求参数如表2所示。
表2 请求参数

参数

是否必选

参数类型

描述

interfaceAttachment

Object

需要添加的网卡参数列表,详情请参见表3

表3 interfaceAttachment字段数据结构说明

参数

是否必选

参数类型

描述

port_id

String

Port ID。

port_id和net_id不能同时传入。

net_id

String

Network ID。

port_id和net_id不能同时传入。

fixed_ips

Array of objects

私有IP。

使用port_id时,不能指定该参数。

该参数必须与net_id配合使用。

只有列表中第一个元素有效。传入两个及以上元素会报错。详情请参见表4

表4 fixed_ips字段数据结构说明

参数

是否必选

参数类型

描述

ip_address

String

IP地址。

support.huaweicloud.com/api-ecs/ecs_03_0803.html