1---
2version: 1
3interactions:
4- request:
5    body: '{"name":"instance_utils_test","image":"f974feac-abae-4365-b988-8ec7d1cec10d","organization":"d429f6a1-c0a6-48cf-8b5a-1f9dfe76ffd3"}'
6    form: {}
7    headers:
8      Content-Type:
9      - application/json
10      User-Agent:
11      - scaleway-sdk-go/0.0.0
12    url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers
13    method: POST
14  response:
15    body: '{"server": {"allowed_actions": ["poweron", "backup"], "maintenances": [],
16      "state_detail": "", "image": {"creation_date": "2019-03-05T10:13:15.974944+00:00",
17      "default_bootscript": {"kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93",
18      "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "default":
19      false, "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "architecture":
20      "x86_64", "title": "x86_64 mainline 4.9.93 rev1", "dtb": "", "organization":
21      "11111111-1111-4111-8111-111111111111", "id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8",
22      "public": false}, "from_server": null, "arch": "x86_64", "id": "f974feac-abae-4365-b988-8ec7d1cec10d",
23      "root_volume": {"size": 10000000000, "id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84",
24      "volume_type": "l_ssd", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13"},
25      "name": "Ubuntu Bionic Beaver", "modification_date": "2019-03-05T13:32:29.274319+00:00",
26      "state": "available", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db",
27      "extra_volumes": {}, "public": true}, "creation_date": "2019-05-24T12:21:50.192333+00:00",
28      "public_ip": null, "private_ip": null, "id": "3ae0a3b4-e8e4-4cdd-943a-1050afbb3438",
29      "dynamic_ip_required": true, "modification_date": "2019-05-24T12:21:50.553854+00:00",
30      "enable_ipv6": false, "hostname": "instance-utils-test", "state": "stopped",
31      "bootscript": {"kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93",
32      "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "default":
33      false, "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "architecture":
34      "x86_64", "title": "x86_64 mainline 4.9.93 rev1", "dtb": "", "organization":
35      "11111111-1111-4111-8111-111111111111", "id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8",
36      "public": false}, "location": null, "boot_type": "bootscript", "ipv6": null,
37      "commercial_type": "START1-S", "tags": [], "arch": "x86_64", "extra_networks":
38      [], "compute_cluster": null, "name": "instance_utils_test", "protected": false,
39      "volumes": {"0": {"size": 50000000000, "state": "available", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13",
40      "modification_date": "2019-05-24T12:21:50.474020+00:00", "organization": "d429f6a1-c0a6-48cf-8b5a-1f9dfe76ffd3",
41      "export_uri": null, "creation_date": "2019-05-24T12:21:50.192333+00:00", "id":
42      "074ca412-16b8-4488-8dcd-803ee1a64621", "volume_type": "l_ssd", "server": {"id":
43      "3ae0a3b4-e8e4-4cdd-943a-1050afbb3438", "name": "instance_utils_test"}}}, "security_group":
44      {"id": "9f073e03-5511-4863-ae23-9cb0deb82426", "name": "Default security group"},
45      "organization": "d429f6a1-c0a6-48cf-8b5a-1f9dfe76ffd3"}}'
46    headers:
47      Cache-Control:
48      - no-cache
49      Content-Length:
50      - "2716"
51      Content-Security-Policy:
52      - default-src 'none'; frame-ancestors 'none'
53      Content-Type:
54      - application/json
55      Date:
56      - Fri, 24 May 2019 12:21:50 GMT
57      Location:
58      - https://cp-par1.scaleway.com/servers/3ae0a3b4-e8e4-4cdd-943a-1050afbb3438
59      Server:
60      - scaleway_api
61      Strict-Transport-Security:
62      - max-age=63072000
63      X-Content-Type-Options:
64      - nosniff
65      X-Frame-Options:
66      - DENY
67    status: 201 Created
68    code: 201
69    duration: ""
70- request:
71    body: '{"organization":"d429f6a1-c0a6-48cf-8b5a-1f9dfe76ffd3"}'
72    form: {}
73    headers:
74      Content-Type:
75      - application/json
76      User-Agent:
77      - scaleway-sdk-go/0.0.0
78    url: https://api.scaleway.com/instance/v1/zones/fr-par-1/ips
79    method: POST
80  response:
81    body: '{"ip": {"organization": "d429f6a1-c0a6-48cf-8b5a-1f9dfe76ffd3", "reverse":
82      null, "id": "0e6cb5a9-7fc2-4083-9125-7fc8e2c92f41", "server": null, "address":
83      "163.172.182.86"}}'
84    headers:
85      Cache-Control:
86      - no-cache
87      Content-Length:
88      - "172"
89      Content-Security-Policy:
90      - default-src 'none'; frame-ancestors 'none'
91      Content-Type:
92      - application/json
93      Date:
94      - Fri, 24 May 2019 12:21:51 GMT
95      Location:
96      - https://cp-par1.scaleway.com/ips/0e6cb5a9-7fc2-4083-9125-7fc8e2c92f41
97      Server:
98      - scaleway_api
99      Strict-Transport-Security:
100      - max-age=63072000
101      X-Content-Type-Options:
102      - nosniff
103      X-Frame-Options:
104      - DENY
105    status: 201 Created
106    code: 201
107    duration: ""
108- request:
109    body: '{"server":"3ae0a3b4-e8e4-4cdd-943a-1050afbb3438"}'
110    form: {}
111    headers:
112      Content-Type:
113      - application/json
114      User-Agent:
115      - scaleway-sdk-go/0.0.0
116    url: https://api.scaleway.com/instance/v1/zones/fr-par-1/ips/0e6cb5a9-7fc2-4083-9125-7fc8e2c92f41
117    method: PATCH
118  response:
119    body: '{"ip": {"organization": "d429f6a1-c0a6-48cf-8b5a-1f9dfe76ffd3", "reverse":
120      null, "id": "0e6cb5a9-7fc2-4083-9125-7fc8e2c92f41", "server": {"id": "3ae0a3b4-e8e4-4cdd-943a-1050afbb3438",
121      "name": "instance_utils_test"}, "address": "163.172.182.86"}}'
122    headers:
123      Cache-Control:
124      - no-cache
125      Content-Length:
126      - "245"
127      Content-Security-Policy:
128      - default-src 'none'; frame-ancestors 'none'
129      Content-Type:
130      - application/json
131      Date:
132      - Fri, 24 May 2019 12:21:51 GMT
133      Server:
134      - scaleway_api
135      Strict-Transport-Security:
136      - max-age=63072000
137      X-Content-Type-Options:
138      - nosniff
139      X-Frame-Options:
140      - DENY
141    status: 200 OK
142    code: 200
143    duration: ""
144- request:
145    body: '{"server":null}'
146    form: {}
147    headers:
148      Content-Type:
149      - application/json
150      User-Agent:
151      - scaleway-sdk-go/0.0.0
152    url: https://api.scaleway.com/instance/v1/zones/fr-par-1/ips/0e6cb5a9-7fc2-4083-9125-7fc8e2c92f41
153    method: PATCH
154  response:
155    body: '{"ip": {"organization": "d429f6a1-c0a6-48cf-8b5a-1f9dfe76ffd3", "reverse":
156      null, "id": "0e6cb5a9-7fc2-4083-9125-7fc8e2c92f41", "server": null, "address":
157      "163.172.182.86"}}'
158    headers:
159      Cache-Control:
160      - no-cache
161      Content-Length:
162      - "172"
163      Content-Security-Policy:
164      - default-src 'none'; frame-ancestors 'none'
165      Content-Type:
166      - application/json
167      Date:
168      - Fri, 24 May 2019 12:21:59 GMT
169      Server:
170      - scaleway_api
171      Strict-Transport-Security:
172      - max-age=63072000
173      X-Content-Type-Options:
174      - nosniff
175      X-Frame-Options:
176      - DENY
177    status: 200 OK
178    code: 200
179    duration: ""
180- request:
181    body: '{"reverse":"1.1.1.1"}'
182    form: {}
183    headers:
184      Content-Type:
185      - application/json
186      User-Agent:
187      - scaleway-sdk-go/0.0.0
188    url: https://api.scaleway.com/instance/v1/zones/fr-par-1/ips/0e6cb5a9-7fc2-4083-9125-7fc8e2c92f41
189    method: PATCH
190  response:
191    body: '{"ip": {"organization": "d429f6a1-c0a6-48cf-8b5a-1f9dfe76ffd3", "reverse":
192      "1.1.1.1", "id": "0e6cb5a9-7fc2-4083-9125-7fc8e2c92f41", "server": null, "address":
193      "163.172.182.86"}}'
194    headers:
195      Cache-Control:
196      - no-cache
197      Content-Length:
198      - "177"
199      Content-Security-Policy:
200      - default-src 'none'; frame-ancestors 'none'
201      Content-Type:
202      - application/json
203      Date:
204      - Fri, 24 May 2019 12:22:09 GMT
205      Server:
206      - scaleway_api
207      Strict-Transport-Security:
208      - max-age=63072000
209      X-Content-Type-Options:
210      - nosniff
211      X-Frame-Options:
212      - DENY
213    status: 200 OK
214    code: 200
215    duration: ""
216- request:
217    body: '{}'
218    form: {}
219    headers:
220      Content-Type:
221      - application/json
222      User-Agent:
223      - scaleway-sdk-go/0.0.0
224    url: https://api.scaleway.com/instance/v1/zones/fr-par-1/ips/0e6cb5a9-7fc2-4083-9125-7fc8e2c92f41
225    method: PATCH
226  response:
227    body: '{"ip": {"organization": "d429f6a1-c0a6-48cf-8b5a-1f9dfe76ffd3", "reverse":
228      "1.1.1.1", "id": "0e6cb5a9-7fc2-4083-9125-7fc8e2c92f41", "server": null, "address":
229      "163.172.182.86"}}'
230    headers:
231      Cache-Control:
232      - no-cache
233      Content-Length:
234      - "177"
235      Content-Security-Policy:
236      - default-src 'none'; frame-ancestors 'none'
237      Content-Type:
238      - application/json
239      Date:
240      - Fri, 24 May 2019 12:22:09 GMT
241      Server:
242      - scaleway_api
243      Strict-Transport-Security:
244      - max-age=63072000
245      X-Content-Type-Options:
246      - nosniff
247      X-Frame-Options:
248      - DENY
249    status: 200 OK
250    code: 200
251    duration: ""
252- request:
253    body: '{"reverse":null}'
254    form: {}
255    headers:
256      Content-Type:
257      - application/json
258      User-Agent:
259      - scaleway-sdk-go/0.0.0
260    url: https://api.scaleway.com/instance/v1/zones/fr-par-1/ips/0e6cb5a9-7fc2-4083-9125-7fc8e2c92f41
261    method: PATCH
262  response:
263    body: '{"ip": {"organization": "d429f6a1-c0a6-48cf-8b5a-1f9dfe76ffd3", "reverse":
264      null, "id": "0e6cb5a9-7fc2-4083-9125-7fc8e2c92f41", "server": null, "address":
265      "163.172.182.86"}}'
266    headers:
267      Cache-Control:
268      - no-cache
269      Content-Length:
270      - "172"
271      Content-Security-Policy:
272      - default-src 'none'; frame-ancestors 'none'
273      Content-Type:
274      - application/json
275      Date:
276      - Fri, 24 May 2019 12:22:10 GMT
277      Server:
278      - scaleway_api
279      Strict-Transport-Security:
280      - max-age=63072000
281      X-Content-Type-Options:
282      - nosniff
283      X-Frame-Options:
284      - DENY
285    status: 200 OK
286    code: 200
287    duration: ""
288- request:
289    body: ""
290    form: {}
291    headers:
292      User-Agent:
293      - scaleway-sdk-go/0.0.0
294    url: https://api.scaleway.com/instance/v1/zones/fr-par-1/ips/0e6cb5a9-7fc2-4083-9125-7fc8e2c92f41
295    method: DELETE
296  response:
297    body: ""
298    headers:
299      Cache-Control:
300      - no-cache
301      Content-Security-Policy:
302      - default-src 'none'; frame-ancestors 'none'
303      Content-Type:
304      - application/json
305      Date:
306      - Fri, 24 May 2019 12:22:18 GMT
307      Server:
308      - scaleway_api
309      Strict-Transport-Security:
310      - max-age=63072000
311      X-Content-Type-Options:
312      - nosniff
313      X-Frame-Options:
314      - DENY
315    status: 204 No Content
316    code: 204
317    duration: ""
318- request:
319    body: ""
320    form: {}
321    headers:
322      User-Agent:
323      - scaleway-sdk-go/0.0.0
324    url: https://api.scaleway.com/instance/v1/zones/fr-par-1/volumes/074ca412-16b8-4488-8dcd-803ee1a64621
325    method: GET
326  response:
327    body: '{"volume": {"size": 50000000000, "state": "available", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13",
328      "modification_date": "2019-05-24T12:21:50.474020+00:00", "organization": "d429f6a1-c0a6-48cf-8b5a-1f9dfe76ffd3",
329      "export_uri": null, "creation_date": "2019-05-24T12:21:50.192333+00:00", "id":
330      "074ca412-16b8-4488-8dcd-803ee1a64621", "volume_type": "l_ssd", "server": {"id":
331      "3ae0a3b4-e8e4-4cdd-943a-1050afbb3438", "name": "instance_utils_test"}}}'
332    headers:
333      Cache-Control:
334      - no-cache
335      Content-Length:
336      - "474"
337      Content-Security-Policy:
338      - default-src 'none'; frame-ancestors 'none'
339      Content-Type:
340      - application/json
341      Date:
342      - Fri, 24 May 2019 12:22:18 GMT
343      Server:
344      - scaleway_api
345      Strict-Transport-Security:
346      - max-age=63072000
347      X-Content-Type-Options:
348      - nosniff
349      X-Frame-Options:
350      - DENY
351    status: 200 OK
352    code: 200
353    duration: ""
354- request:
355    body: ""
356    form: {}
357    headers:
358      User-Agent:
359      - scaleway-sdk-go/0.0.0
360    url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/3ae0a3b4-e8e4-4cdd-943a-1050afbb3438
361    method: GET
362  response:
363    body: '{"server": {"allowed_actions": ["poweron", "backup"], "maintenances": [],
364      "state_detail": "", "image": {"creation_date": "2019-03-05T10:13:15.974944+00:00",
365      "default_bootscript": {"kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93",
366      "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "default":
367      false, "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "architecture":
368      "x86_64", "title": "x86_64 mainline 4.9.93 rev1", "dtb": "", "organization":
369      "11111111-1111-4111-8111-111111111111", "id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8",
370      "public": false}, "from_server": null, "arch": "x86_64", "id": "f974feac-abae-4365-b988-8ec7d1cec10d",
371      "root_volume": {"size": 10000000000, "id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84",
372      "volume_type": "l_ssd", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13"},
373      "name": "Ubuntu Bionic Beaver", "modification_date": "2019-03-05T13:32:29.274319+00:00",
374      "state": "available", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db",
375      "extra_volumes": {}, "public": true}, "creation_date": "2019-05-24T12:21:50.192333+00:00",
376      "public_ip": null, "private_ip": null, "id": "3ae0a3b4-e8e4-4cdd-943a-1050afbb3438",
377      "dynamic_ip_required": true, "modification_date": "2019-05-24T12:21:50.553854+00:00",
378      "enable_ipv6": false, "hostname": "instance-utils-test", "state": "stopped",
379      "bootscript": {"kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93",
380      "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "default":
381      false, "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "architecture":
382      "x86_64", "title": "x86_64 mainline 4.9.93 rev1", "dtb": "", "organization":
383      "11111111-1111-4111-8111-111111111111", "id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8",
384      "public": false}, "location": null, "boot_type": "bootscript", "ipv6": null,
385      "commercial_type": "START1-S", "tags": [], "arch": "x86_64", "extra_networks":
386      [], "compute_cluster": null, "name": "instance_utils_test", "protected": false,
387      "volumes": {"0": {"size": 50000000000, "state": "available", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13",
388      "modification_date": "2019-05-24T12:21:50.474020+00:00", "organization": "d429f6a1-c0a6-48cf-8b5a-1f9dfe76ffd3",
389      "export_uri": null, "creation_date": "2019-05-24T12:21:50.192333+00:00", "id":
390      "074ca412-16b8-4488-8dcd-803ee1a64621", "volume_type": "l_ssd", "server": {"id":
391      "3ae0a3b4-e8e4-4cdd-943a-1050afbb3438", "name": "instance_utils_test"}}}, "security_group":
392      {"id": "9f073e03-5511-4863-ae23-9cb0deb82426", "name": "Default security group"},
393      "organization": "d429f6a1-c0a6-48cf-8b5a-1f9dfe76ffd3"}}'
394    headers:
395      Cache-Control:
396      - no-cache
397      Content-Length:
398      - "2716"
399      Content-Security-Policy:
400      - default-src 'none'; frame-ancestors 'none'
401      Content-Type:
402      - application/json
403      Date:
404      - Fri, 24 May 2019 12:22:18 GMT
405      Server:
406      - scaleway_api
407      Strict-Transport-Security:
408      - max-age=63072000
409      X-Content-Type-Options:
410      - nosniff
411      X-Frame-Options:
412      - DENY
413    status: 200 OK
414    code: 200
415    duration: ""
416- request:
417    body: '{"volumes":{}}'
418    form: {}
419    headers:
420      Content-Type:
421      - application/json
422      User-Agent:
423      - scaleway-sdk-go/0.0.0
424    url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/3ae0a3b4-e8e4-4cdd-943a-1050afbb3438
425    method: PATCH
426  response:
427    body: '{"server": {"allowed_actions": ["poweron", "backup"], "maintenances": [],
428      "state_detail": "", "image": {"creation_date": "2019-03-05T10:13:15.974944+00:00",
429      "default_bootscript": {"kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93",
430      "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "default":
431      false, "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "architecture":
432      "x86_64", "title": "x86_64 mainline 4.9.93 rev1", "dtb": "", "organization":
433      "11111111-1111-4111-8111-111111111111", "id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8",
434      "public": false}, "from_server": null, "arch": "x86_64", "id": "f974feac-abae-4365-b988-8ec7d1cec10d",
435      "root_volume": {"size": 10000000000, "id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84",
436      "volume_type": "l_ssd", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13"},
437      "name": "Ubuntu Bionic Beaver", "modification_date": "2019-03-05T13:32:29.274319+00:00",
438      "state": "available", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db",
439      "extra_volumes": {}, "public": true}, "creation_date": "2019-05-24T12:21:50.192333+00:00",
440      "public_ip": null, "private_ip": null, "id": "3ae0a3b4-e8e4-4cdd-943a-1050afbb3438",
441      "dynamic_ip_required": true, "modification_date": "2019-05-24T12:21:50.553854+00:00",
442      "enable_ipv6": false, "hostname": "instance-utils-test", "state": "stopped",
443      "bootscript": {"kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93",
444      "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "default":
445      false, "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "architecture":
446      "x86_64", "title": "x86_64 mainline 4.9.93 rev1", "dtb": "", "organization":
447      "11111111-1111-4111-8111-111111111111", "id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8",
448      "public": false}, "location": null, "boot_type": "bootscript", "ipv6": null,
449      "commercial_type": "START1-S", "tags": [], "arch": "x86_64", "extra_networks":
450      [], "compute_cluster": null, "name": "instance_utils_test", "protected": false,
451      "volumes": {}, "security_group": {"id": "9f073e03-5511-4863-ae23-9cb0deb82426",
452      "name": "Default security group"}, "organization": "d429f6a1-c0a6-48cf-8b5a-1f9dfe76ffd3"}}'
453    headers:
454      Cache-Control:
455      - no-cache
456      Content-Length:
457      - "2249"
458      Content-Security-Policy:
459      - default-src 'none'; frame-ancestors 'none'
460      Content-Type:
461      - application/json
462      Date:
463      - Fri, 24 May 2019 12:22:18 GMT
464      Server:
465      - scaleway_api
466      Strict-Transport-Security:
467      - max-age=63072000
468      X-Content-Type-Options:
469      - nosniff
470      X-Frame-Options:
471      - DENY
472    status: 200 OK
473    code: 200
474    duration: ""
475- request:
476    body: ""
477    form: {}
478    headers:
479      User-Agent:
480      - scaleway-sdk-go/0.0.0
481    url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/3ae0a3b4-e8e4-4cdd-943a-1050afbb3438
482    method: GET
483  response:
484    body: '{"server": {"allowed_actions": ["poweron", "backup"], "maintenances": [],
485      "state_detail": "", "image": {"creation_date": "2019-03-05T10:13:15.974944+00:00",
486      "default_bootscript": {"kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93",
487      "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "default":
488      false, "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "architecture":
489      "x86_64", "title": "x86_64 mainline 4.9.93 rev1", "dtb": "", "organization":
490      "11111111-1111-4111-8111-111111111111", "id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8",
491      "public": false}, "from_server": null, "arch": "x86_64", "id": "f974feac-abae-4365-b988-8ec7d1cec10d",
492      "root_volume": {"size": 10000000000, "id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84",
493      "volume_type": "l_ssd", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13"},
494      "name": "Ubuntu Bionic Beaver", "modification_date": "2019-03-05T13:32:29.274319+00:00",
495      "state": "available", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db",
496      "extra_volumes": {}, "public": true}, "creation_date": "2019-05-24T12:21:50.192333+00:00",
497      "public_ip": null, "private_ip": null, "id": "3ae0a3b4-e8e4-4cdd-943a-1050afbb3438",
498      "dynamic_ip_required": true, "modification_date": "2019-05-24T12:21:50.553854+00:00",
499      "enable_ipv6": false, "hostname": "instance-utils-test", "state": "stopped",
500      "bootscript": {"kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93",
501      "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "default":
502      false, "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "architecture":
503      "x86_64", "title": "x86_64 mainline 4.9.93 rev1", "dtb": "", "organization":
504      "11111111-1111-4111-8111-111111111111", "id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8",
505      "public": false}, "location": null, "boot_type": "bootscript", "ipv6": null,
506      "commercial_type": "START1-S", "tags": [], "arch": "x86_64", "extra_networks":
507      [], "compute_cluster": null, "name": "instance_utils_test", "protected": false,
508      "volumes": {}, "security_group": {"id": "9f073e03-5511-4863-ae23-9cb0deb82426",
509      "name": "Default security group"}, "organization": "d429f6a1-c0a6-48cf-8b5a-1f9dfe76ffd3"}}'
510    headers:
511      Cache-Control:
512      - no-cache
513      Content-Length:
514      - "2249"
515      Content-Security-Policy:
516      - default-src 'none'; frame-ancestors 'none'
517      Content-Type:
518      - application/json
519      Date:
520      - Fri, 24 May 2019 12:22:18 GMT
521      Server:
522      - scaleway_api
523      Strict-Transport-Security:
524      - max-age=63072000
525      X-Content-Type-Options:
526      - nosniff
527      X-Frame-Options:
528      - DENY
529    status: 200 OK
530    code: 200
531    duration: ""
532- request:
533    body: '{"volumes":{"0":{"id":"074ca412-16b8-4488-8dcd-803ee1a64621","name":"074ca412-16b8-4488-8dcd-803ee1a64621"}}}'
534    form: {}
535    headers:
536      Content-Type:
537      - application/json
538      User-Agent:
539      - scaleway-sdk-go/0.0.0
540    url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/3ae0a3b4-e8e4-4cdd-943a-1050afbb3438
541    method: PATCH
542  response:
543    body: '{"server": {"allowed_actions": ["poweron", "backup"], "maintenances": [],
544      "state_detail": "", "image": {"creation_date": "2019-03-05T10:13:15.974944+00:00",
545      "default_bootscript": {"kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93",
546      "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "default":
547      false, "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "architecture":
548      "x86_64", "title": "x86_64 mainline 4.9.93 rev1", "dtb": "", "organization":
549      "11111111-1111-4111-8111-111111111111", "id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8",
550      "public": false}, "from_server": null, "arch": "x86_64", "id": "f974feac-abae-4365-b988-8ec7d1cec10d",
551      "root_volume": {"size": 10000000000, "id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84",
552      "volume_type": "l_ssd", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13"},
553      "name": "Ubuntu Bionic Beaver", "modification_date": "2019-03-05T13:32:29.274319+00:00",
554      "state": "available", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db",
555      "extra_volumes": {}, "public": true}, "creation_date": "2019-05-24T12:21:50.192333+00:00",
556      "public_ip": null, "private_ip": null, "id": "3ae0a3b4-e8e4-4cdd-943a-1050afbb3438",
557      "dynamic_ip_required": true, "modification_date": "2019-05-24T12:21:50.553854+00:00",
558      "enable_ipv6": false, "hostname": "instance-utils-test", "state": "stopped",
559      "bootscript": {"kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93",
560      "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "default":
561      false, "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "architecture":
562      "x86_64", "title": "x86_64 mainline 4.9.93 rev1", "dtb": "", "organization":
563      "11111111-1111-4111-8111-111111111111", "id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8",
564      "public": false}, "location": null, "boot_type": "bootscript", "ipv6": null,
565      "commercial_type": "START1-S", "tags": [], "arch": "x86_64", "extra_networks":
566      [], "compute_cluster": null, "name": "instance_utils_test", "protected": false,
567      "volumes": {"0": {"size": 50000000000, "state": "available", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13",
568      "modification_date": "2019-05-24T12:22:19.459669+00:00", "organization": "d429f6a1-c0a6-48cf-8b5a-1f9dfe76ffd3",
569      "export_uri": null, "creation_date": "2019-05-24T12:21:50.192333+00:00", "id":
570      "074ca412-16b8-4488-8dcd-803ee1a64621", "volume_type": "l_ssd", "server": {"id":
571      "3ae0a3b4-e8e4-4cdd-943a-1050afbb3438", "name": "instance_utils_test"}}}, "security_group":
572      {"id": "9f073e03-5511-4863-ae23-9cb0deb82426", "name": "Default security group"},
573      "organization": "d429f6a1-c0a6-48cf-8b5a-1f9dfe76ffd3"}}'
574    headers:
575      Cache-Control:
576      - no-cache
577      Content-Length:
578      - "2716"
579      Content-Security-Policy:
580      - default-src 'none'; frame-ancestors 'none'
581      Content-Type:
582      - application/json
583      Date:
584      - Fri, 24 May 2019 12:22:19 GMT
585      Server:
586      - scaleway_api
587      Strict-Transport-Security:
588      - max-age=63072000
589      X-Content-Type-Options:
590      - nosniff
591      X-Frame-Options:
592      - DENY
593    status: 200 OK
594    code: 200
595    duration: ""
596- request:
597    body: ""
598    form: {}
599    headers:
600      User-Agent:
601      - scaleway-sdk-go/0.0.0
602    url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/3ae0a3b4-e8e4-4cdd-943a-1050afbb3438
603    method: DELETE
604  response:
605    body: ""
606    headers:
607      Cache-Control:
608      - no-cache
609      Content-Security-Policy:
610      - default-src 'none'; frame-ancestors 'none'
611      Content-Type:
612      - application/json
613      Date:
614      - Fri, 24 May 2019 12:22:19 GMT
615      Server:
616      - scaleway_api
617      Strict-Transport-Security:
618      - max-age=63072000
619      X-Content-Type-Options:
620      - nosniff
621      X-Frame-Options:
622      - DENY
623    status: 204 No Content
624    code: 204
625    duration: ""
626- request:
627    body: ""
628    form: {}
629    headers:
630      User-Agent:
631      - scaleway-sdk-go/0.0.0
632    url: https://api.scaleway.com/instance/v1/zones/fr-par-1/volumes/074ca412-16b8-4488-8dcd-803ee1a64621
633    method: DELETE
634  response:
635    body: ""
636    headers:
637      Cache-Control:
638      - no-cache
639      Content-Security-Policy:
640      - default-src 'none'; frame-ancestors 'none'
641      Content-Type:
642      - application/json
643      Date:
644      - Fri, 24 May 2019 12:22:19 GMT
645      Server:
646      - scaleway_api
647      Strict-Transport-Security:
648      - max-age=63072000
649      X-Content-Type-Options:
650      - nosniff
651      X-Frame-Options:
652      - DENY
653    status: 204 No Content
654    code: 204
655    duration: ""
656