1--- 2version: 1 3interactions: 4- request: 5 body: '{"name":"instance_sdk_server_test","dynamic_ip_required":true,"commercial_type":"START1-S","image":"f974feac-abae-4365-b988-8ec7d1cec10d","enable_ipv6":true,"boot_type":"local","project":"14d2f7ae-9775-414c-9bed-6810e060d500","tags":["foo","bar"]}' 6 form: {} 7 headers: 8 Content-Type: 9 - application/json 10 User-Agent: 11 - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.13.6; darwin; amd64) 12 url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers 13 method: POST 14 response: 15 body: '{"server": {"id": "6a3d62f7-8852-4dd2-b16a-905b695cd199", "name": "instance_sdk_server_test", 16 "arch": "x86_64", "commercial_type": "START1-S", "boot_type": "local", "organization": 17 "14d2f7ae-9775-414c-9bed-6810e060d500", "project": "14d2f7ae-9775-414c-9bed-6810e060d500", 18 "hostname": "instance-sdk-server-test", "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", 19 "name": "Ubuntu Bionic Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", 20 "project": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", 21 "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": 22 "l_ssd", "size": 10000000000}, "extra_volumes": {}, "public": true, "arch": 23 "x86_64", "creation_date": "2019-03-05T10:13:15.974944+00:00", "modification_date": 24 "2019-03-05T13:32:29.274319+00:00", "default_bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", 25 "public": false, "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", 26 "organization": "11111111-1111-4111-8111-111111111111", "project": "11111111-1111-4111-8111-111111111111", 27 "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", 28 "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", 29 "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": 30 false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": 31 "fr-par-1"}, "volumes": {"0": {"id": "c6b29ca6-8895-42fb-a498-a89011c29ff7", 32 "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": 33 "l_ssd", "export_uri": null, "organization": "14d2f7ae-9775-414c-9bed-6810e060d500", 34 "project": "14d2f7ae-9775-414c-9bed-6810e060d500", "server": {"id": "6a3d62f7-8852-4dd2-b16a-905b695cd199", 35 "name": "instance_sdk_server_test"}, "size": 50000000000, "state": "available", 36 "creation_date": "2020-08-14T13:02:02.652219+00:00", "modification_date": "2020-08-14T13:02:02.990859+00:00", 37 "zone": "fr-par-1"}}, "tags": ["foo", "bar"], "state": "stopped", "protected": 38 false, "state_detail": "", "public_ip": null, "ipv6": null, "extra_networks": 39 [], "dynamic_ip_required": true, "enable_ipv6": true, "private_ip": null, "creation_date": 40 "2020-08-14T13:02:02.652219+00:00", "modification_date": "2020-08-14T13:02:03.095139+00:00", 41 "bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, 42 "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", "organization": 43 "11111111-1111-4111-8111-111111111111", "project": "11111111-1111-4111-8111-111111111111", 44 "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", 45 "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", 46 "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": 47 false, "zone": "fr-par-1"}, "security_group": {"id": "e5bf4522-94b4-4933-bebb-9b21f786b4af", 48 "name": "Default security group"}, "location": null, "maintenances": [], "allowed_actions": 49 ["poweron", "backup"], "placement_group": null, "private_nics": [], "zone": 50 "fr-par-1"}}' 51 headers: 52 Cache-Control: 53 - no-cache 54 Content-Length: 55 - "3112" 56 Content-Security-Policy: 57 - default-src 'none'; frame-ancestors 'none' 58 Content-Type: 59 - application/json 60 Date: 61 - Fri, 14 Aug 2020 13:02:02 GMT 62 Location: 63 - https://cp-par1.scaleway.com/servers/6a3d62f7-8852-4dd2-b16a-905b695cd199 64 Server: 65 - agw_listener_public_vip 66 Strict-Transport-Security: 67 - max-age=63072000 68 X-Content-Type-Options: 69 - nosniff 70 X-Frame-Options: 71 - DENY 72 X-Request-Id: 73 - ec8ac5f5-cbda-4d28-92b7-76365f6dcc97 74 status: 201 Created 75 code: 201 76 duration: "" 77- request: 78 body: '{"name":"instance_sdk_server_test","image":"f974feac-abae-4365-b988-8ec7d1cec10d","organization":"14d2f7ae-9775-414c-9bed-6810e060d500"}' 79 form: {} 80 headers: 81 Content-Type: 82 - application/json 83 User-Agent: 84 - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.13.6; darwin; amd64) 85 url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers 86 method: POST 87 response: 88 body: '{"server": {"id": "12be8295-263f-4f71-9c7d-a33ef31f3887", "name": "instance_sdk_server_test", 89 "arch": "x86_64", "commercial_type": "START1-S", "boot_type": "bootscript", 90 "organization": "14d2f7ae-9775-414c-9bed-6810e060d500", "project": "14d2f7ae-9775-414c-9bed-6810e060d500", 91 "hostname": "instance-sdk-server-test", "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", 92 "name": "Ubuntu Bionic Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", 93 "project": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", 94 "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": 95 "l_ssd", "size": 10000000000}, "extra_volumes": {}, "public": true, "arch": 96 "x86_64", "creation_date": "2019-03-05T10:13:15.974944+00:00", "modification_date": 97 "2019-03-05T13:32:29.274319+00:00", "default_bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", 98 "public": false, "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", 99 "organization": "11111111-1111-4111-8111-111111111111", "project": "11111111-1111-4111-8111-111111111111", 100 "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", 101 "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", 102 "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": 103 false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": 104 "fr-par-1"}, "volumes": {"0": {"id": "a7f56913-ba01-42b7-9d88-f12d42ea309b", 105 "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": 106 "l_ssd", "export_uri": null, "organization": "14d2f7ae-9775-414c-9bed-6810e060d500", 107 "project": "14d2f7ae-9775-414c-9bed-6810e060d500", "server": {"id": "12be8295-263f-4f71-9c7d-a33ef31f3887", 108 "name": "instance_sdk_server_test"}, "size": 50000000000, "state": "available", 109 "creation_date": "2020-08-14T13:02:03.527628+00:00", "modification_date": "2020-08-14T13:02:03.845180+00:00", 110 "zone": "fr-par-1"}}, "tags": [], "state": "stopped", "protected": false, "state_detail": 111 "", "public_ip": null, "ipv6": null, "extra_networks": [], "dynamic_ip_required": 112 true, "enable_ipv6": false, "private_ip": null, "creation_date": "2020-08-14T13:02:03.527628+00:00", 113 "modification_date": "2020-08-14T13:02:03.928001+00:00", "bootscript": {"id": 114 "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline 115 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", 116 "project": "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", 117 "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", 118 "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": 119 false, "zone": "fr-par-1"}, "security_group": {"id": "e5bf4522-94b4-4933-bebb-9b21f786b4af", 120 "name": "Default security group"}, "location": null, "maintenances": [], "allowed_actions": 121 ["poweron", "backup"], "placement_group": null, "private_nics": [], "zone": 122 "fr-par-1"}}' 123 headers: 124 Cache-Control: 125 - no-cache 126 Content-Length: 127 - "3106" 128 Content-Security-Policy: 129 - default-src 'none'; frame-ancestors 'none' 130 Content-Type: 131 - application/json 132 Date: 133 - Fri, 14 Aug 2020 13:02:03 GMT 134 Location: 135 - https://cp-par1.scaleway.com/servers/12be8295-263f-4f71-9c7d-a33ef31f3887 136 Server: 137 - agw_listener_public_vip 138 Strict-Transport-Security: 139 - max-age=63072000 140 X-Content-Type-Options: 141 - nosniff 142 X-Frame-Options: 143 - DENY 144 X-Request-Id: 145 - f12de65b-8e0e-402d-bdfe-8c76b7837d8d 146 status: 201 Created 147 code: 201 148 duration: "" 149- request: 150 body: "" 151 form: {} 152 headers: 153 User-Agent: 154 - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.13.6; darwin; amd64) 155 url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/12be8295-263f-4f71-9c7d-a33ef31f3887 156 method: DELETE 157 response: 158 body: "" 159 headers: 160 Cache-Control: 161 - no-cache 162 Content-Security-Policy: 163 - default-src 'none'; frame-ancestors 'none' 164 Content-Type: 165 - application/json 166 Date: 167 - Fri, 14 Aug 2020 13:02:04 GMT 168 Server: 169 - agw_listener_public_vip 170 Strict-Transport-Security: 171 - max-age=63072000 172 X-Content-Type-Options: 173 - nosniff 174 X-Frame-Options: 175 - DENY 176 X-Request-Id: 177 - f0a5c1f4-25a5-4273-8df5-2bf73062bea1 178 status: 204 No Content 179 code: 204 180 duration: "" 181- request: 182 body: '{"name":"some_new_name_for_server","tags":[]}' 183 form: {} 184 headers: 185 Content-Type: 186 - application/json 187 User-Agent: 188 - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.13.6; darwin; amd64) 189 url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/6a3d62f7-8852-4dd2-b16a-905b695cd199 190 method: PATCH 191 response: 192 body: '{"server": {"id": "6a3d62f7-8852-4dd2-b16a-905b695cd199", "name": "some_new_name_for_server", 193 "arch": "x86_64", "commercial_type": "START1-S", "boot_type": "local", "organization": 194 "14d2f7ae-9775-414c-9bed-6810e060d500", "project": "14d2f7ae-9775-414c-9bed-6810e060d500", 195 "hostname": "some-new-name-for-server", "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", 196 "name": "Ubuntu Bionic Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", 197 "project": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", 198 "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": 199 "l_ssd", "size": 10000000000}, "extra_volumes": {}, "public": true, "arch": 200 "x86_64", "creation_date": "2019-03-05T10:13:15.974944+00:00", "modification_date": 201 "2019-03-05T13:32:29.274319+00:00", "default_bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", 202 "public": false, "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", 203 "organization": "11111111-1111-4111-8111-111111111111", "project": "11111111-1111-4111-8111-111111111111", 204 "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", 205 "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", 206 "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": 207 false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": 208 "fr-par-1"}, "volumes": {"0": {"id": "c6b29ca6-8895-42fb-a498-a89011c29ff7", 209 "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": 210 "l_ssd", "export_uri": null, "organization": "14d2f7ae-9775-414c-9bed-6810e060d500", 211 "project": "14d2f7ae-9775-414c-9bed-6810e060d500", "server": {"id": "6a3d62f7-8852-4dd2-b16a-905b695cd199", 212 "name": "some_new_name_for_server"}, "size": 50000000000, "state": "available", 213 "creation_date": "2020-08-14T13:02:02.652219+00:00", "modification_date": "2020-08-14T13:02:02.990859+00:00", 214 "zone": "fr-par-1"}}, "tags": [], "state": "stopped", "protected": false, "state_detail": 215 "", "public_ip": null, "ipv6": null, "extra_networks": [], "dynamic_ip_required": 216 true, "enable_ipv6": true, "private_ip": null, "creation_date": "2020-08-14T13:02:02.652219+00:00", 217 "modification_date": "2020-08-14T13:02:04.847138+00:00", "bootscript": {"id": 218 "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline 219 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", 220 "project": "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", 221 "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", 222 "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": 223 false, "zone": "fr-par-1"}, "security_group": {"id": "e5bf4522-94b4-4933-bebb-9b21f786b4af", 224 "name": "Default security group"}, "location": null, "maintenances": [], "allowed_actions": 225 ["poweron", "backup"], "placement_group": null, "private_nics": [], "zone": 226 "fr-par-1"}}' 227 headers: 228 Cache-Control: 229 - no-cache 230 Content-Length: 231 - "3100" 232 Content-Security-Policy: 233 - default-src 'none'; frame-ancestors 'none' 234 Content-Type: 235 - application/json 236 Date: 237 - Fri, 14 Aug 2020 13:02:04 GMT 238 Server: 239 - agw_listener_public_vip 240 Strict-Transport-Security: 241 - max-age=63072000 242 X-Content-Type-Options: 243 - nosniff 244 X-Frame-Options: 245 - DENY 246 X-Request-Id: 247 - 10bdaf49-c624-42a6-8523-2fa6ecdf9409 248 status: 200 OK 249 code: 200 250 duration: "" 251- request: 252 body: '{"volumes":{}}' 253 form: {} 254 headers: 255 Content-Type: 256 - application/json 257 User-Agent: 258 - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.13.6; darwin; amd64) 259 url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/6a3d62f7-8852-4dd2-b16a-905b695cd199 260 method: PATCH 261 response: 262 body: '{"server": {"id": "6a3d62f7-8852-4dd2-b16a-905b695cd199", "name": "some_new_name_for_server", 263 "arch": "x86_64", "commercial_type": "START1-S", "boot_type": "local", "organization": 264 "14d2f7ae-9775-414c-9bed-6810e060d500", "project": "14d2f7ae-9775-414c-9bed-6810e060d500", 265 "hostname": "some-new-name-for-server", "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", 266 "name": "Ubuntu Bionic Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", 267 "project": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", 268 "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": 269 "l_ssd", "size": 10000000000}, "extra_volumes": {}, "public": true, "arch": 270 "x86_64", "creation_date": "2019-03-05T10:13:15.974944+00:00", "modification_date": 271 "2019-03-05T13:32:29.274319+00:00", "default_bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", 272 "public": false, "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", 273 "organization": "11111111-1111-4111-8111-111111111111", "project": "11111111-1111-4111-8111-111111111111", 274 "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", 275 "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", 276 "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": 277 false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": 278 "fr-par-1"}, "volumes": {}, "tags": [], "state": "stopped", "protected": false, 279 "state_detail": "", "public_ip": null, "ipv6": null, "extra_networks": [], "dynamic_ip_required": 280 true, "enable_ipv6": true, "private_ip": null, "creation_date": "2020-08-14T13:02:02.652219+00:00", 281 "modification_date": "2020-08-14T13:02:04.847138+00:00", "bootscript": {"id": 282 "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline 283 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", 284 "project": "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", 285 "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", 286 "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": 287 false, "zone": "fr-par-1"}, "security_group": {"id": "e5bf4522-94b4-4933-bebb-9b21f786b4af", 288 "name": "Default security group"}, "location": null, "maintenances": [], "allowed_actions": 289 ["poweron", "backup"], "placement_group": null, "private_nics": [], "zone": 290 "fr-par-1"}}' 291 headers: 292 Cache-Control: 293 - no-cache 294 Content-Length: 295 - "2557" 296 Content-Security-Policy: 297 - default-src 'none'; frame-ancestors 'none' 298 Content-Type: 299 - application/json 300 Date: 301 - Fri, 14 Aug 2020 13:02:04 GMT 302 Server: 303 - agw_listener_public_vip 304 Strict-Transport-Security: 305 - max-age=63072000 306 X-Content-Type-Options: 307 - nosniff 308 X-Frame-Options: 309 - DENY 310 X-Request-Id: 311 - b5c48b57-5bd7-419a-ace2-a5f4348a6691 312 status: 200 OK 313 code: 200 314 duration: "" 315- request: 316 body: "" 317 form: {} 318 headers: 319 User-Agent: 320 - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.13.6; darwin; amd64) 321 url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/6a3d62f7-8852-4dd2-b16a-905b695cd199 322 method: DELETE 323 response: 324 body: "" 325 headers: 326 Cache-Control: 327 - no-cache 328 Content-Security-Policy: 329 - default-src 'none'; frame-ancestors 'none' 330 Content-Type: 331 - application/json 332 Date: 333 - Fri, 14 Aug 2020 13:02:05 GMT 334 Server: 335 - agw_listener_public_vip 336 Strict-Transport-Security: 337 - max-age=63072000 338 X-Content-Type-Options: 339 - nosniff 340 X-Frame-Options: 341 - DENY 342 X-Request-Id: 343 - 45a4d549-f633-4d1c-a08c-d7a0039fdfe5 344 status: 204 No Content 345 code: 204 346 duration: "" 347- request: 348 body: "" 349 form: {} 350 headers: 351 User-Agent: 352 - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.13.6; darwin; amd64) 353 url: https://api.scaleway.com/instance/v1/zones/fr-par-1/volumes/c6b29ca6-8895-42fb-a498-a89011c29ff7 354 method: DELETE 355 response: 356 body: "" 357 headers: 358 Cache-Control: 359 - no-cache 360 Content-Security-Policy: 361 - default-src 'none'; frame-ancestors 'none' 362 Content-Type: 363 - application/json 364 Date: 365 - Fri, 14 Aug 2020 13:02:05 GMT 366 Server: 367 - agw_listener_public_vip 368 Strict-Transport-Security: 369 - max-age=63072000 370 X-Content-Type-Options: 371 - nosniff 372 X-Frame-Options: 373 - DENY 374 X-Request-Id: 375 - caf7c95e-21e8-4e6e-8679-e632096c6cac 376 status: 204 No Content 377 code: 204 378 duration: "" 379