gaussdbfornosql__SwitchIpGroup
Configures an IP allowlist or blocklist for load-balanced access to a GaussDB NoSQL instance, replacing prior settings; disable it to remove source IP restrictions.
Instructions
[GAUSSDBFORNOSQL] 设置实例负载均衡的IP访问黑白名单,黑名单、白名单只能选一种,每次调用此接口覆盖之前的设置。关闭后不限制连接的源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": {
"enabled": "<enabled>",
"instance_id": "<instance_id>",
"ip_groups": "<ip_groups>",
"project_id": "<project_id>",
"type": "<type>"
},
"name": "gaussdbfornosql__SwitchIpGroup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | 类型选项,取值: - whiteList:白名单,只允许指定ip或网段访问。 - blackList:黑名单,不允许指定ip或网段访问。 | |
| enabled | Yes | true 开启,false 关闭。 | |
| ip_groups | Yes | IP地址组中包含的IP或网段列表。 | |
| project_id | Yes | 租户在某一region下的project ID。 | |
| instance_id | Yes | 实例ID。 |