云数据库 TAURUSDB-删除SQL限流规则:请求示例

时间:2024-12-11 17:00:05

请求示例

删除SQL限流规则,限流类型为SELECT、UPDATE、DELETE。

DELETE https://{endpoint}/v3/054e292c9880d4992f02c0196d3ea468/instances/af315b8e6aaa41799bd9a31f2de15abcin07/sql-filter/rules

{
  "sql_filter_rules" : [ {
    "node_id" : "c01a5645eb2c4fb6a9373542f5366e50no07",
    "rules" : [ {
      "sql_type" : "SELECT",
      "patterns" : [ "select~from~t1", "select~from~t2" ]
    }, {
      "sql_type" : "UPDATE",
      "patterns" : [ "udpate~t3~where~id" ]
    } ]
  }, {
    "node_id" : "b234a5645eb2c4ji3b9372342f5362397no07",
    "rules" : [ {
      "sql_type" : "SELECT",
      "patterns" : [ "select~from~t1", "select~from~t2" ]
    }, {
      "sql_type" : "DELETE",
      "patterns" : [ "delete~t3~where~id" ]
    } ]
  } ]
}
support.huaweicloud.com/api-gaussdbformysql/DeleteSqlFilterRule.html