hss__CreateContainerNetworkPolicy
Creates a container cluster network policy in HSS with specified ingress and egress rules to control pod traffic and restrict access by namespace, labels, or IP blocks.
Instructions
[HSS] 容器集群网络添加配置策略
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": {
"cluster_id": "<cluster_id>",
"policy_content": "<policy_content>",
"project_id": "<project_id>"
},
"name": "hss__CreateContainerNetworkPolicy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | 策略名称 | |
| namespace | No | 命名空间 | |
| cluster_id | Yes | 集群ID | |
| project_id | Yes | **参数解释**: | |
| policy_content | Yes | 网络策略内容 | |
| enterprise_project_id | No | **参数解释**: | 0 |