1---
2version: 1
3interactions:
4- request:
5    body: '{"region":"us-west","type":"g6-nanode-1","label":"linodego-test-instance","root_pass":"R34lBAdP455","image":"linode/debian9","booted":false}'
6    form: {}
7    headers:
8      Accept:
9      - application/json
10      Authorization:
11      - Bearer awesometokenawesometokenawesometoken
12      Content-Type:
13      - application/json
14      User-Agent:
15      - linodego 0.4.0 https://github.com/linode/linodego
16    url: https://api.linode.com/v4/linode/instances
17    method: POST
18  response:
19    body: '{"group": "", "specs": {"transfer": 1000, "memory": 1024, "disk": 25600,
20      "vcpus": 1}, "created": "2018-01-02T03:04:05", "region": "us-west", "hypervisor":
21      "kvm", "label": "linodego-test-instance", "image": "linode/debian9", "alerts":
22      {"network_out": 10, "transfer_quota": 80, "io": 10000, "cpu": 90, "network_in":
23      10}, "status": "provisioning", "updated": "2018-01-02T03:04:05", "ipv6": "1234::5678/64",
24      "backups": {"enabled": false, "schedule": {"day": null, "window": null}}, "type":
25      "g6-nanode-1", "ipv4": ["010.020.030.040"], "watchdog_enabled": true, "id": 10158886}'
26    headers:
27      Access-Control-Allow-Credentials:
28      - "true"
29      Access-Control-Allow-Headers:
30      - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter
31      Access-Control-Allow-Methods:
32      - HEAD, GET, OPTIONS, POST, PUT, DELETE
33      Access-Control-Allow-Origin:
34      - '*'
35      Access-Control-Expose-Headers:
36      - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status
37      Cache-Control:
38      - private, max-age=60, s-maxage=60
39      Connection:
40      - keep-alive
41      Content-Length:
42      - "589"
43      Content-Security-Policy:
44      - default-src 'none'
45      Content-Type:
46      - application/json
47      Date:
48      - Sat, 08 Sep 2018 22:09:52 GMT
49      Retry-After:
50      - "119"
51      Server:
52      - nginx
53      Strict-Transport-Security:
54      - max-age=31536000
55      Vary:
56      - Authorization, X-Filter
57      X-Accepted-Oauth-Scopes:
58      - linodes:read_write
59      X-Content-Type-Options:
60      - nosniff
61      - nosniff
62      X-Frame-Options:
63      - DENY
64      - DENY
65      X-Oauth-Scopes:
66      - '*'
67      X-Ratelimit-Limit:
68      - "400"
69      X-Ratelimit-Remaining:
70      - "399"
71      X-Ratelimit-Reset:
72      - "1536444712"
73      X-Spec-Version:
74      - 4.0.4
75      X-Xss-Protection:
76      - 1; mode=block
77    status: 200 OK
78    code: 200
79    duration: ""
80- request:
81    body: ""
82    form: {}
83    headers:
84      Accept:
85      - application/json
86      Authorization:
87      - Bearer awesometokenawesometokenawesometoken
88      Content-Type:
89      - application/json
90      User-Agent:
91      - linodego 0.4.0 https://github.com/linode/linodego
92    url: https://api.linode.com/v4/linode/instances/10158886/disks
93    method: GET
94  response:
95    body: '{"pages": 1, "results": 2, "data": [{"id": 21758686, "status": "not ready",
96      "label": "Debian 9 Disk", "created": "2018-01-02T03:04:05", "size": 25088, "filesystem":
97      "ext4", "updated": "2018-01-02T03:04:05"}, {"id": 21758687, "status": "not ready",
98      "label": "512 MB Swap Image", "created": "2018-01-02T03:04:05", "size": 512,
99      "filesystem": "swap", "updated": "2018-01-02T03:04:05"}], "page": 1}'
100    headers:
101      Access-Control-Allow-Credentials:
102      - "true"
103      Access-Control-Allow-Headers:
104      - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter
105      Access-Control-Allow-Methods:
106      - HEAD, GET, OPTIONS, POST, PUT, DELETE
107      Access-Control-Allow-Origin:
108      - '*'
109      Access-Control-Expose-Headers:
110      - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status
111      Cache-Control:
112      - private, max-age=0, s-maxage=0, no-cache, no-store
113      - private, max-age=60, s-maxage=60
114      Connection:
115      - keep-alive
116      Content-Length:
117      - "393"
118      Content-Security-Policy:
119      - default-src 'none'
120      Content-Type:
121      - application/json
122      Date:
123      - Sat, 08 Sep 2018 22:09:53 GMT
124      Retry-After:
125      - "119"
126      Server:
127      - nginx
128      Strict-Transport-Security:
129      - max-age=31536000
130      Vary:
131      - Authorization, X-Filter
132      - Authorization, X-Filter
133      X-Accepted-Oauth-Scopes:
134      - linodes:read_only
135      X-Content-Type-Options:
136      - nosniff
137      - nosniff
138      X-Frame-Options:
139      - DENY
140      - DENY
141      X-Oauth-Scopes:
142      - '*'
143      X-Ratelimit-Limit:
144      - "400"
145      X-Ratelimit-Remaining:
146      - "399"
147      X-Ratelimit-Reset:
148      - "1536444713"
149      X-Spec-Version:
150      - 4.0.4
151      X-Xss-Protection:
152      - 1; mode=block
153    status: 200 OK
154    code: 200
155    duration: ""
156- request:
157    body: ""
158    form: {}
159    headers:
160      Accept:
161      - application/json
162      Authorization:
163      - Bearer awesometokenawesometokenawesometoken
164      Content-Type:
165      - application/json
166      User-Agent:
167      - linodego 0.4.0 https://github.com/linode/linodego
168    url: https://api.linode.com/v4/linode/instances/10158886
169    method: DELETE
170  response:
171    body: '{}'
172    headers:
173      Access-Control-Allow-Credentials:
174      - "true"
175      Access-Control-Allow-Headers:
176      - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter
177      Access-Control-Allow-Methods:
178      - HEAD, GET, OPTIONS, POST, PUT, DELETE
179      Access-Control-Allow-Origin:
180      - '*'
181      Access-Control-Expose-Headers:
182      - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status
183      Cache-Control:
184      - private, max-age=60, s-maxage=60
185      Connection:
186      - keep-alive
187      Content-Length:
188      - "2"
189      Content-Security-Policy:
190      - default-src 'none'
191      Content-Type:
192      - application/json
193      Date:
194      - Sat, 08 Sep 2018 22:09:53 GMT
195      Retry-After:
196      - "119"
197      Server:
198      - nginx
199      Strict-Transport-Security:
200      - max-age=31536000
201      Vary:
202      - Authorization, X-Filter
203      X-Accepted-Oauth-Scopes:
204      - linodes:read_write
205      X-Content-Type-Options:
206      - nosniff
207      - nosniff
208      X-Frame-Options:
209      - DENY
210      - DENY
211      X-Oauth-Scopes:
212      - '*'
213      X-Ratelimit-Limit:
214      - "400"
215      X-Ratelimit-Remaining:
216      - "399"
217      X-Ratelimit-Reset:
218      - "1536444713"
219      X-Spec-Version:
220      - 4.0.4
221      X-Xss-Protection:
222      - 1; mode=block
223    status: 200 OK
224    code: 200
225    duration: ""
226