ecs__NovaAssociateSecurityGroup
Adds a security group to a Huawei Cloud ECS server, applying it to the server's network interfaces. Use it to control inbound and outbound traffic for an existing cloud server.
Instructions
[ECS] 为弹性云服务器添加一个安全组。
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": {
"addSecurityGroup": "<addSecurityGroup>",
"project_id": "<project_id>",
"server_id": "<server_id>"
},
"name": "ecs__NovaAssociateSecurityGroup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server_id | Yes | 弹性云服务器ID。 | |
| project_id | Yes | 项目ID。 | |
| addSecurityGroup | Yes | 弹性云服务器添加安全组。 |