vpc__ListSecurityGroupRules
Lists VPC security group rules by project and optional filters such as security group, direction, protocol, and enabled status, so you can inspect or audit network access controls.
Instructions
[VPC] 查询安全组规则列表
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": {
"project_id": "<project_id>"
},
"name": "vpc__ListSecurityGroupRules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | 功能说明:安全组规则ID,支持多个ID过滤 | |
| limit | No | 功能说明:每页返回个数 | |
| action | No | 功能说明:安全组规则生效策略。 | |
| marker | No | 分页查询起始的资源ID,为空时查询第一页 | |
| enabled | No | 功能说明:是否启用安全组规则,不支持多值过滤。 | |
| priority | No | 功能说明:优先级,支持多条过滤。 | |
| protocol | No | 功能说明:安全组规则协议,支持多条过滤 | |
| direction | No | 功能说明:安全组规则方向 | |
| ethertype | No | 功能说明:IP协议类型,支持多条过滤。 | |
| project_id | Yes | 项目ID | |
| description | No | 功能说明:安全组规则的描述,支持多个描述同时过滤 | |
| remote_group_id | No | 功能说明:远端安全组ID,支持多ID过滤 | |
| remote_ip_prefix | No | 功能说明:远端IP地址 | |
| security_group_id | No | 功能说明:安全组规则所属安全组ID,支持多个ID过滤 | |
| remote_address_group_id | No | 功能说明:远端IP地址组ID,支持多ID过滤。 |