css__UpdateRoute
Updates a cluster's routing configuration by adding or deleting an IP route with its subnet mask, so you can control which source IPs reach the cluster.
Instructions
[CSS] 该接口用于更新集群路由。
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>",
"configkey": "<configkey>",
"configtype": "<configtype>",
"configvalue": "<configvalue>",
"project_id": "<project_id>"
},
"name": "css__UpdateRoute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| configkey | Yes | 路由ip地址,公网源数据所在的服务器ip。不能以0开头。 | |
| cluster_id | Yes | 指定待操作的集群ID。 | |
| configtype | Yes | 操作类型。add_ip为增加集群路由,del_ip为删除集群路由。 | |
| project_id | Yes | 项目ID。获取方法请参见[获取项目ID和名称](css_03_0071.xml)。 | |
| configvalue | Yes | 路由子网掩码。如果上面ip取的是16位,子网掩码可以填255.255.0.0,24位的话子网掩码填255.255.255.0 |