1---
2version: 1
3interactions:
4- request:
5    body: '{"label":"aSTefFgoEhTM-linodego-testing","rules":{"inbound":[{"action":"ACCEPT","label":"test-label","ports":"22","protocol":"TCP","addresses":{"ipv4":["0.0.0.0/0"],"ipv6":["::0/0"]}}],"inbound_policy":"ACCEPT","outbound":[{"action":"ACCEPT","label":"test-label","ports":"22","protocol":"TCP","addresses":{"ipv4":["0.0.0.0/0"],"ipv6":["::0/0"]}}],"outbound_policy":"ACCEPT"},"tags":["testing"],"devices":{}}'
6    form: {}
7    headers:
8      Accept:
9      - application/json
10      Content-Type:
11      - application/json
12      User-Agent:
13      - linodego https://github.com/linode/linodego
14    url: https://api.linode.com/v4beta/networking/firewalls
15    method: POST
16  response:
17    body: '{"id": 3415, "label": "aSTefFgoEhTM-linodego-testing", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "status": "enabled", "rules": {"inbound": [{"action": "ACCEPT", "label": "test-label", "ports": "22", "protocol": "TCP", "addresses": {"ipv4": ["0.0.0.0/0"], "ipv6": ["::/0"]}}], "inbound_policy": "ACCEPT", "outbound": [{"action": "ACCEPT", "label": "test-label", "ports": "22", "protocol": "TCP", "addresses": {"ipv4": ["0.0.0.0/0"], "ipv6": ["::/0"]}}], "outbound_policy": "ACCEPT"}, "tags": ["testing"]}'
18    headers:
19      Access-Control-Allow-Credentials:
20      - "true"
21      Access-Control-Allow-Headers:
22      - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter
23      Access-Control-Allow-Methods:
24      - HEAD, GET, OPTIONS, POST, PUT, DELETE
25      Access-Control-Allow-Origin:
26      - '*'
27      Access-Control-Expose-Headers:
28      - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status
29      Cache-Control:
30      - private, max-age=60, s-maxage=60
31      Content-Length:
32      - "529"
33      Content-Security-Policy:
34      - default-src 'none'
35      Content-Type:
36      - application/json
37      Server:
38      - nginx
39      Strict-Transport-Security:
40      - max-age=31536000
41      Vary:
42      - Authorization, X-Filter
43      X-Accepted-Oauth-Scopes:
44      - firewall:read_write
45      X-Content-Type-Options:
46      - nosniff
47      X-Frame-Options:
48      - DENY
49      - DENY
50      X-Oauth-Scopes:
51      - '*'
52      X-Ratelimit-Limit:
53      - "800"
54      X-Xss-Protection:
55      - 1; mode=block
56    status: 200 OK
57    code: 200
58    duration: ""
59- request:
60    body: ""
61    form: {}
62    headers:
63      Accept:
64      - application/json
65      Content-Type:
66      - application/json
67      User-Agent:
68      - linodego https://github.com/linode/linodego
69    url: https://api.linode.com/v4beta/networking/firewalls
70    method: GET
71  response:
72    body: '{"data": [{"id": 3196, "label": "asdfasdf", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "status": "enabled", "rules": {"inbound_policy": "DROP", "outbound_policy": "ACCEPT", "inbound": [{"label": "accept-inbound-SSH", "ports": "22", "protocol": "TCP", "addresses": {"ipv4": ["0.0.0.0/0"], "ipv6": ["::/0"]}, "action": "ACCEPT"}, {"label": "accept-inbound-DNS", "ports": "53", "protocol": "TCP", "addresses": {"ipv4": ["0.0.0.0/0"], "ipv6": ["::/0"]}, "action": "ACCEPT"}], "outbound": []}, "tags": []}, {"id": 3415, "label": "aSTefFgoEhTM-linodego-testing", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "status": "enabled", "rules": {"inbound": [{"action": "ACCEPT", "label": "test-label", "ports": "22", "protocol": "TCP", "addresses": {"ipv4": ["0.0.0.0/0"], "ipv6": ["::/0"]}}], "inbound_policy": "ACCEPT", "outbound": [{"action": "ACCEPT", "label": "test-label", "ports": "22", "protocol": "TCP", "addresses": {"ipv4": ["0.0.0.0/0"], "ipv6": ["::/0"]}}], "outbound_policy": "ACCEPT"}, "tags": ["testing"]}], "page": 1, "pages": 1, "results": 2}'
73    headers:
74      Access-Control-Allow-Credentials:
75      - "true"
76      Access-Control-Allow-Headers:
77      - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter
78      Access-Control-Allow-Methods:
79      - HEAD, GET, OPTIONS, POST, PUT, DELETE
80      Access-Control-Allow-Origin:
81      - '*'
82      Access-Control-Expose-Headers:
83      - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status
84      Cache-Control:
85      - private, max-age=0, s-maxage=0, no-cache, no-store
86      - private, max-age=60, s-maxage=60
87      Content-Security-Policy:
88      - default-src 'none'
89      Content-Type:
90      - application/json
91      Server:
92      - nginx
93      Strict-Transport-Security:
94      - max-age=31536000
95      Vary:
96      - Authorization, X-Filter
97      - Authorization, X-Filter
98      X-Accepted-Oauth-Scopes:
99      - firewall:read_only
100      X-Content-Type-Options:
101      - nosniff
102      X-Frame-Options:
103      - DENY
104      - DENY
105      X-Oauth-Scopes:
106      - '*'
107      X-Ratelimit-Limit:
108      - "800"
109      X-Xss-Protection:
110      - 1; mode=block
111    status: 200 OK
112    code: 200
113    duration: ""
114- request:
115    body: ""
116    form: {}
117    headers:
118      Accept:
119      - application/json
120      Content-Type:
121      - application/json
122      User-Agent:
123      - linodego https://github.com/linode/linodego
124    url: https://api.linode.com/v4beta/networking/firewalls/3415
125    method: DELETE
126  response:
127    body: '{}'
128    headers:
129      Access-Control-Allow-Credentials:
130      - "true"
131      Access-Control-Allow-Headers:
132      - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter
133      Access-Control-Allow-Methods:
134      - HEAD, GET, OPTIONS, POST, PUT, DELETE
135      Access-Control-Allow-Origin:
136      - '*'
137      Access-Control-Expose-Headers:
138      - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status
139      Cache-Control:
140      - private, max-age=60, s-maxage=60
141      Content-Length:
142      - "2"
143      Content-Security-Policy:
144      - default-src 'none'
145      Content-Type:
146      - application/json
147      Server:
148      - nginx
149      Strict-Transport-Security:
150      - max-age=31536000
151      Vary:
152      - Authorization, X-Filter
153      X-Accepted-Oauth-Scopes:
154      - firewall:read_write
155      X-Content-Type-Options:
156      - nosniff
157      X-Frame-Options:
158      - DENY
159      - DENY
160      X-Oauth-Scopes:
161      - '*'
162      X-Ratelimit-Limit:
163      - "800"
164      X-Xss-Protection:
165      - 1; mode=block
166    status: 200 OK
167    code: 200
168    duration: ""
169