forked from TykTechnologies/tyk-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhttpbin_blacklist.yaml
41 lines (41 loc) · 1.05 KB
/
httpbin_blacklist.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Blacklist example
#
# This example adds `/get` path of httpbin.org to the Blacklist. Therefore, any requests to
# this path will be blocked.
#
# For reference:
# https://tyk.io/docs/nightly/advanced-configuration/transform-traffic/endpoint-designer/#hahahugoshortcode-s3-hbhb
apiVersion: tyk.tyk.io/v1alpha1
kind: ApiDefinition
metadata:
name: httpbin-blacklist
spec:
name: httpbin-blacklist
use_keyless: true
protocol: http
active: true
proxy:
target_url: http://httpbin.org/
listen_path: /httpbin
strip_listen_path: true
version_data:
default_version: Default
not_versioned: true
versions:
Default:
name: Default
use_extended_paths: true
paths:
black_list: []
ignored: []
white_list: []
extended_paths:
black_list:
- ignore_case: true
method_actions:
GET:
action: "no_action"
code: 200
data: ""
headers: {}
path: "/get"