云数据库 GeminiDB-设置实例负载均衡的IP访问黑白名单:请求示例

时间:2025-01-26 10:50:02

请求示例

  • ip网段123.123.123.0/24被设置成黑名单
    PUT https://{Endpoint}/v3/054e292c9880d4992f02c0196d3ea468/instances/054e292c9880d4992f02c0196d3ein12/lb/access-control    {    "type" : "blackList",    "enabled" : true,    "ip_groups" : [ {      "ip" : "123.123.123.0/24",      "description" : "test"    } ]  }
  • 关闭负载均衡黑白名单
    PUT https://{Endpoint}/v3/054e292c9880d4992f02c0196d3ea468/instances/054e292c9880d4992f02c0196d3ein12/lb/access-control    {    "type" : "blackList",    "enabled" : false,    "ip_groups" : [ {      "ip" : "123.123.123.123",      "description" : "test"    } ]  }
support.huaweicloud.com/api-nosql/nosql_12_0002.html