# # Copyright 2016-present the original author or authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ### 新增 BlackIp POST http://{{dc3-auth}}/auth/black_ip/add Accept: */* Content-Type: application/json Cache-Control: no-cache X-Auth-Tenant-Id: -1 { "ip": "127.0.0.1", "description": "测试黑名单Ip" } ### 修改 BlackIp POST http://{{dc3-auth}}/auth/black_ip/update Accept: */* Content-Type: application/json Cache-Control: no-cache X-Auth-Tenant-Id: -1 { "id": 1, "ip": "192.168.0.1", "enable": true, "description": "测试黑名单Ip" } ### 根据 ID 查询 BlackIp GET http://{{dc3-auth}}/auth/black_ip/id/1 Accept: */* Cache-Control: no-cache ### 根据 Ip 查询 BlackIp GET http://{{dc3-auth}}/auth/black_ip/ip/127.0.0.1 Accept: */* Cache-Control: no-cache X-Auth-Tenant-Id:-1 ### 分页查询 BlackIp POST http://{{dc3-auth}}/auth/black_ip/list Accept: */* Content-Type: application/json Cache-Control: no-cache X-Auth-Tenant-Id:-1 { "ip": "", "page": { "current": 1, "size": 500, "orders": [ { "column": "id", "asc": false } ] } } ### 查询 BlackIp 是否存在并有效 GET http://{{dc3-auth}}/auth/black_ip/check/192.168.0.1 Accept: */* Cache-Control: no-cache X-Auth-Tenant-Id:-1 ### 根据 ID 删除 BlackIp POST http://{{dc3-auth}}/auth/black_ip/delete/1383257757074976769 Accept: */* Content-Type: application/json Cache-Control: no-cache