ecs__ChangeServerNetworkInterface
Updates the IPv4 or IPv6 address of a specified cloud server network interface, enabling IP configuration changes for an ECS port identified by port ID.
Instructions
[ECS] 更新云服务器指定网卡属性,当前仅支持更新网卡IP。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"port_id": "<port_id>",
"project_id": "<project_id>",
"server_id": "<server_id>"
},
"name": "ecs__ChangeServerNetworkInterface"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port_id | Yes | 网卡port id | |
| server_id | Yes | 云服务器ID。 | |
| subnet_id | No | 子网ID ,UUID格式。更新IP地址时,必须指定该参数;更新IPv6地址时,该参数可以不填。 | |
| ip_address | No | IPv4地址,为空字符串时表示随机更新网卡IPv4地址。 | |
| project_id | Yes | 项目ID。 | |
| ipv6_address | No | IPv6地址,为空字符串时表示随机更新网卡IPv6地址。 |