ModifySecurityIPList - 变更白名单
调用ModifySecurityIPList接口变更集群白名单设置。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
clickhouse:ModifySecurityIPList |
update |
*EnterpriseDBCluster
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
是 |
地域 ID。 |
cn-beijing |
| DBInstanceId |
string |
是 |
集群 ID。 |
cc-xxxxx |
| GroupName |
string |
否 |
操作的分组名称。 |
test |
| SecurityIPList |
string |
否 |
白名单 IP 地址。 |
192.168.0.0/24,172.16.0.0/24 |
| ModifyMode |
string |
否 |
修改模式。
说明
建议固定指定 0 进行覆盖修改 |
0 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回参数详情。 |
||
| RequestId |
string |
请求 ID。 |
xxx-xxx-xxx |
| Data |
object |
返回数据。 |
|
| GroupName |
string |
分组名称。 |
test |
| SecurityIPType |
string |
IP 地址类型。 |
ipv4 |
| GroupTag |
string |
分组标签。 |
test |
| TaskId |
integer |
任务 ID。 |
1 |
| SecurityIPList |
string |
白名单分组下的 IP 列表。 |
192.168.0.0/24,172.16.0.0/24 |
| DBInstanceID |
integer |
集群 ID。 |
cc-xxxx |
| WhitelistNetType |
string |
白名单的网络类型。 |
mix |
| DBInstanceName |
string |
集群名称。 |
cc-xxxx |
示例
正常返回示例
JSON格式
{
"RequestId": "xxx-xxx-xxx",
"Data": {
"GroupName": "test",
"SecurityIPType": "ipv4",
"GroupTag": "test",
"TaskId": 1,
"SecurityIPList": "192.168.0.0/24,172.16.0.0/24",
"DBInstanceID": 0,
"WhitelistNetType": "mix",
"DBInstanceName": "cc-xxxx"
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 404 | InvalidDBInstanceId.NotFound | The DBInstanceId provided does not exist in our records. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。