From 89df998c500309804d8d39ef672a84b6c81d1201 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jules=20Cast=C3=A9ran?= Date: Wed, 29 Jan 2025 16:05:01 +0100 Subject: [PATCH] feat(instance): support sbs volumes in server update (#4467) --- .../namespaces/instance/v1/custom_server.go | 24 +- .../instance/v1/custom_server_test.go | 27 +- ...es-valid-simple-block-volume.cassette.yaml | 710 ++++++++++++------ 3 files changed, 512 insertions(+), 249 deletions(-) diff --git a/internal/namespaces/instance/v1/custom_server.go b/internal/namespaces/instance/v1/custom_server.go index 1672bcaa4e..e0f49f2e12 100644 --- a/internal/namespaces/instance/v1/custom_server.go +++ b/internal/namespaces/instance/v1/custom_server.go @@ -15,6 +15,7 @@ import ( "github.com/fatih/color" "github.com/scaleway/scaleway-cli/v2/core" "github.com/scaleway/scaleway-cli/v2/core/human" + block "github.com/scaleway/scaleway-sdk-go/api/block/v1alpha1" "github.com/scaleway/scaleway-sdk-go/api/instance/v1" "github.com/scaleway/scaleway-sdk-go/api/vpc/v2" "github.com/scaleway/scaleway-sdk-go/logger" @@ -291,9 +292,17 @@ func serverUpdateBuilder(c *core.Command) *core.Command { volumes := make(map[string]*instance.VolumeServerTemplate) for i, volumeID := range *customRequest.VolumeIDs { index := strconv.Itoa(i) - volumes[index] = &instance.VolumeServerTemplate{ - ID: scw.StringPtr(volumeID), - Name: scw.StringPtr(getServerResponse.Server.Name + "-" + index), + + if volumeIsFromSBS(block.NewAPI(client), customRequest.Zone, volumeID) { + volumes[index] = &instance.VolumeServerTemplate{ + ID: scw.StringPtr(volumeID), + VolumeType: instance.VolumeVolumeTypeSbsVolume, + } + } else { + volumes[index] = &instance.VolumeServerTemplate{ + ID: scw.StringPtr(volumeID), + Name: scw.StringPtr(getServerResponse.Server.Name + "-" + index), + } } } customRequest.Volumes = &volumes @@ -323,6 +332,15 @@ func serverUpdateBuilder(c *core.Command) *core.Command { return c } +func volumeIsFromSBS(api *block.API, zone scw.Zone, volumeID string) bool { + _, err := api.GetVolume(&block.GetVolumeRequest{ + Zone: zone, + VolumeID: volumeID, + }) + + return err == nil +} + func serverGetBuilder(c *core.Command) *core.Command { // This method is here as a proof of concept before we find the correct way to implement it at larger scale c.ArgSpecs.GetPositionalArg().AutoCompleteFunc = func(ctx context.Context, prefix string, request any) core.AutocompleteSuggestions { diff --git a/internal/namespaces/instance/v1/custom_server_test.go b/internal/namespaces/instance/v1/custom_server_test.go index b543e63f1c..610aa79017 100644 --- a/internal/namespaces/instance/v1/custom_server_test.go +++ b/internal/namespaces/instance/v1/custom_server_test.go @@ -232,20 +232,27 @@ func Test_ServerUpdateCustom(t *testing.T) { // Volumes cases. t.Run("Volumes", func(t *testing.T) { t.Run("valid simple block volume", core.Test(&core.TestConfig{ - Commands: instance.GetCommands(), + Commands: core.NewCommandsMerge( + block.GetCommands(), + instance.GetCommands(), + ), BeforeFunc: core.BeforeFuncCombine( createServerBionic("Server"), createVolume("Volume", 10, instanceSDK.VolumeVolumeTypeBSSD), + createSbsVolume("VolumeSBS", 10), + ), + Cmd: `scw instance server update {{ .Server.ID }} volume-ids.0={{ (index .Server.Volumes "0").ID }} volume-ids.1={{ .Volume.ID }} volume-ids.2={{ .VolumeSBS.ID }}`, + Check: core.TestCheckCombine( + func(t *testing.T, ctx *core.CheckFuncCtx) { + t.Helper() + require.NoError(t, ctx.Err) + size0 := ctx.Result.(*instanceSDK.UpdateServerResponse).Server.Volumes["0"].Size + size1 := ctx.Result.(*instanceSDK.UpdateServerResponse).Server.Volumes["1"].Size + assert.Equal(t, 20*scw.GB, instance.SizeValue(size0), "Size of volume should be 20 GB") + assert.Equal(t, 10*scw.GB, instance.SizeValue(size1), "Size of volume should be 10 GB") + assert.Equal(t, instanceSDK.VolumeServerVolumeTypeSbsVolume, ctx.Result.(*instanceSDK.UpdateServerResponse).Server.Volumes["2"].VolumeType) + }, ), - Cmd: `scw instance server update {{ .Server.ID }} volume-ids.0={{ (index .Server.Volumes "0").ID }} volume-ids.1={{ .Volume.ID }}`, - Check: func(t *testing.T, ctx *core.CheckFuncCtx) { - t.Helper() - require.NoError(t, ctx.Err) - size0 := ctx.Result.(*instanceSDK.UpdateServerResponse).Server.Volumes["0"].Size - size1 := ctx.Result.(*instanceSDK.UpdateServerResponse).Server.Volumes["1"].Size - assert.Equal(t, 20*scw.GB, instance.SizeValue(size0), "Size of volume should be 20 GB") - assert.Equal(t, 10*scw.GB, instance.SizeValue(size1), "Size of volume should be 10 GB") - }, AfterFunc: deleteServer("Server"), })) diff --git a/internal/namespaces/instance/v1/testdata/test-server-update-custom-volumes-valid-simple-block-volume.cassette.yaml b/internal/namespaces/instance/v1/testdata/test-server-update-custom-volumes-valid-simple-block-volume.cassette.yaml index 1eb711a46a..0a5d7ef6b2 100644 --- a/internal/namespaces/instance/v1/testdata/test-server-update-custom-volumes-valid-simple-block-volume.cassette.yaml +++ b/internal/namespaces/instance/v1/testdata/test-server-update-custom-volumes-valid-simple-block-volume.cassette.yaml @@ -919,12 +919,12 @@ interactions: Content-Type: - application/json Date: - - Tue, 24 Dec 2024 08:52:23 GMT + - Wed, 29 Jan 2025 14:48:16 GMT Link: - ; rel="next",; rel="last" Server: - - Scaleway API Gateway (fr-par-2;edge03) + - Scaleway API Gateway (fr-par-1;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -932,7 +932,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - ae38abce-8577-4bfa-8b8a-f29353103061 + - 9d90d788-3082-40ed-b7b1-af515219134f X-Total-Count: - "68" status: 200 OK @@ -1282,12 +1282,12 @@ interactions: Content-Type: - application/json Date: - - Tue, 24 Dec 2024 08:52:23 GMT + - Wed, 29 Jan 2025 14:48:16 GMT Link: - ; rel="first",; rel="previous",; rel="last" Server: - - Scaleway API Gateway (fr-par-2;edge03) + - Scaleway API Gateway (fr-par-1;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1295,23 +1295,14 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - cf4bde43-f4ad-43ba-abff-e462d91de005 + - c4cea8a2-1152-4299-a1ab-7b3912ff1fd8 X-Total-Count: - "68" status: 200 OK code: 200 duration: "" - request: - body: '{"local_images":[{"id":"655aeea7-8a30-418a-bc2e-3c04e3fdc8aa", "arch":"x86_64", - "zone":"fr-par-1", "compatible_commercial_types":["DEV1-L", "DEV1-M", "DEV1-S", - "DEV1-XL", "ENT1-2XL", "ENT1-L", "ENT1-M", "ENT1-S", "ENT1-XL", "ENT1-XS", "ENT1-XXS", - "GP1-L", "GP1-M", "GP1-S", "GP1-XL", "GP1-XS", "GPU-3070-S", "PLAY2-MICRO", - "PLAY2-NANO", "PLAY2-PICO", "POP2-16C-64G", "POP2-2C-8G", "POP2-32C-128G", "POP2-4C-16G", - "POP2-64C-256G", "POP2-8C-32G", "POP2-HC-16C-32G", "POP2-HC-2C-4G", "POP2-HC-32C-64G", - "POP2-HC-4C-8G", "POP2-HC-64C-128G", "POP2-HC-8C-16G", "POP2-HM-16C-128G", "POP2-HM-2C-16G", - "POP2-HM-32C-256G", "POP2-HM-4C-32G", "POP2-HM-64C-512G", "POP2-HM-8C-64G", - "PRO2-L", "PRO2-M", "PRO2-S", "PRO2-XS"], "label":"ubuntu_bionic", "type":"instance_local"}], - "total_count":1}' + body: '{"local_images":[{"id":"655aeea7-8a30-418a-bc2e-3c04e3fdc8aa","arch":"x86_64","zone":"fr-par-1","compatible_commercial_types":["DEV1-L","DEV1-M","DEV1-S","DEV1-XL","ENT1-2XL","ENT1-L","ENT1-M","ENT1-S","ENT1-XL","ENT1-XS","ENT1-XXS","GP1-L","GP1-M","GP1-S","GP1-XL","GP1-XS","GPU-3070-S","PLAY2-MICRO","PLAY2-NANO","PLAY2-PICO","POP2-16C-64G","POP2-2C-8G","POP2-32C-128G","POP2-4C-16G","POP2-64C-256G","POP2-8C-32G","POP2-HC-16C-32G","POP2-HC-2C-4G","POP2-HC-32C-64G","POP2-HC-4C-8G","POP2-HC-64C-128G","POP2-HC-8C-16G","POP2-HM-16C-128G","POP2-HM-2C-16G","POP2-HM-32C-256G","POP2-HM-4C-32G","POP2-HM-64C-512G","POP2-HM-8C-64G","PRO2-L","PRO2-M","PRO2-S","PRO2-XS"],"label":"ubuntu_bionic","type":"instance_local"}],"total_count":1}' form: {} headers: User-Agent: @@ -1319,27 +1310,18 @@ interactions: url: https://api.scaleway.com/marketplace/v2/local-images?image_label=ubuntu_bionic&order_by=type_asc&type=instance_local&zone=fr-par-1 method: GET response: - body: '{"local_images":[{"id":"655aeea7-8a30-418a-bc2e-3c04e3fdc8aa", "arch":"x86_64", - "zone":"fr-par-1", "compatible_commercial_types":["DEV1-L", "DEV1-M", "DEV1-S", - "DEV1-XL", "ENT1-2XL", "ENT1-L", "ENT1-M", "ENT1-S", "ENT1-XL", "ENT1-XS", "ENT1-XXS", - "GP1-L", "GP1-M", "GP1-S", "GP1-XL", "GP1-XS", "GPU-3070-S", "PLAY2-MICRO", - "PLAY2-NANO", "PLAY2-PICO", "POP2-16C-64G", "POP2-2C-8G", "POP2-32C-128G", "POP2-4C-16G", - "POP2-64C-256G", "POP2-8C-32G", "POP2-HC-16C-32G", "POP2-HC-2C-4G", "POP2-HC-32C-64G", - "POP2-HC-4C-8G", "POP2-HC-64C-128G", "POP2-HC-8C-16G", "POP2-HM-16C-128G", "POP2-HM-2C-16G", - "POP2-HM-32C-256G", "POP2-HM-4C-32G", "POP2-HM-64C-512G", "POP2-HM-8C-64G", - "PRO2-L", "PRO2-M", "PRO2-S", "PRO2-XS"], "label":"ubuntu_bionic", "type":"instance_local"}], - "total_count":1}' + body: '{"local_images":[{"id":"655aeea7-8a30-418a-bc2e-3c04e3fdc8aa","arch":"x86_64","zone":"fr-par-1","compatible_commercial_types":["DEV1-L","DEV1-M","DEV1-S","DEV1-XL","ENT1-2XL","ENT1-L","ENT1-M","ENT1-S","ENT1-XL","ENT1-XS","ENT1-XXS","GP1-L","GP1-M","GP1-S","GP1-XL","GP1-XS","GPU-3070-S","PLAY2-MICRO","PLAY2-NANO","PLAY2-PICO","POP2-16C-64G","POP2-2C-8G","POP2-32C-128G","POP2-4C-16G","POP2-64C-256G","POP2-8C-32G","POP2-HC-16C-32G","POP2-HC-2C-4G","POP2-HC-32C-64G","POP2-HC-4C-8G","POP2-HC-64C-128G","POP2-HC-8C-16G","POP2-HM-16C-128G","POP2-HM-2C-16G","POP2-HM-32C-256G","POP2-HM-4C-32G","POP2-HM-64C-512G","POP2-HM-8C-64G","PRO2-L","PRO2-M","PRO2-S","PRO2-XS"],"label":"ubuntu_bionic","type":"instance_local"}],"total_count":1}' headers: Content-Length: - - "779" + - "732" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 24 Dec 2024 08:52:23 GMT + - Wed, 29 Jan 2025 14:48:16 GMT Server: - - Scaleway API Gateway (fr-par-2;edge03) + - Scaleway API Gateway (fr-par-1;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1347,7 +1329,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 149a0ecc-4b40-4f18-a452-b36818465156 + - a04f7f8e-3801-4d1b-a68f-a2ddcfcf7cf7 status: 200 OK code: 200 duration: "" @@ -1381,9 +1363,9 @@ interactions: Content-Type: - application/json Date: - - Tue, 24 Dec 2024 08:52:23 GMT + - Wed, 29 Jan 2025 14:48:16 GMT Server: - - Scaleway API Gateway (fr-par-2;edge03) + - Scaleway API Gateway (fr-par-1;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1391,37 +1373,35 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 90894948-6fb8-4e9d-ad47-cc4af1946ab4 + - 270264e0-ea6d-40dd-88b9-11ca7a9ce185 status: 200 OK code: 200 duration: "" - request: - body: '{"server": {"id": "48c01cdb-7a7e-4894-ba6f-a61845c64868", "name": "cli-srv-admiring-darwin", + body: '{"server": {"id": "29d93ae9-3437-4840-87e3-5c3ea9bf904f", "name": "cli-srv-focused-hellman", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "105bdce1-64c0-48ab-899d-868455867ecf", "project": "105bdce1-64c0-48ab-899d-868455867ecf", - "hostname": "cli-srv-admiring-darwin", "image": {"id": "655aeea7-8a30-418a-bc2e-3c04e3fdc8aa", + "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", + "hostname": "cli-srv-focused-hellman", "image": {"id": "655aeea7-8a30-418a-bc2e-3c04e3fdc8aa", "name": "Ubuntu 18.04 Bionic Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "project": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": "27a6459c-efe6-4327-a062-b21a17f3143d", "name": "Ubuntu 18.04 Bionic Beaver", "volume_type": "unified", "size": 10000000000}, "extra_volumes": {}, "public": true, "arch": "x86_64", "creation_date": "2023-08-08T13:36:04.744241+00:00", "modification_date": "2023-08-08T13:36:04.744241+00:00", "default_bootscript": null, "from_server": "", "state": "available", "tags": [], "zone": "fr-par-1"}, - "volumes": {"0": {"boot": false, "id": "00f51d19-8562-4180-964c-186fb2593305", + "volumes": {"0": {"boot": false, "id": "b95db574-2f26-479c-a33c-71d22f225588", "name": "Ubuntu 18.04 Bionic Beaver", "volume_type": "l_ssd", "export_uri": - null, "organization": "105bdce1-64c0-48ab-899d-868455867ecf", "project": "105bdce1-64c0-48ab-899d-868455867ecf", - "server": {"id": "48c01cdb-7a7e-4894-ba6f-a61845c64868", "name": "cli-srv-admiring-darwin"}, - "size": 20000000000, "state": "available", "creation_date": "2024-12-24T08:52:24.170883+00:00", - "modification_date": "2024-12-24T08:52:24.170883+00:00", "tags": [], "zone": + null, "organization": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", + "server": {"id": "29d93ae9-3437-4840-87e3-5c3ea9bf904f", "name": "cli-srv-focused-hellman"}, + "size": 20000000000, "state": "available", "creation_date": "2025-01-29T14:48:17.396455+00:00", + "modification_date": "2025-01-29T14:48:17.396455+00:00", "tags": [], "zone": "fr-par-1"}}, "tags": [], "state": "stopped", "protected": false, "state_detail": - "", "public_ip": null, "public_ips": [], "mac_address": "de:00:00:89:31:f1", + "", "public_ip": null, "public_ips": [], "mac_address": "de:00:00:90:99:ab", "routed_ip_enabled": true, "ipv6": null, "extra_networks": [], "dynamic_ip_required": - false, "enable_ipv6": false, "private_ip": null, "creation_date": "2024-12-24T08:52:24.170883+00:00", - "modification_date": "2024-12-24T08:52:24.170883+00:00", "bootscript": null, - "security_group": {"id": "5881315f-2400-43a0-ac75-08adf6cb8c12", "name": "Default + false, "enable_ipv6": false, "private_ip": null, "creation_date": "2025-01-29T14:48:17.396455+00:00", + "modification_date": "2025-01-29T14:48:17.396455+00:00", "bootscript": null, + "security_group": {"id": "0fe819c3-274d-472a-b3f5-ddb258d2d8bb", "name": "Default security group"}, "location": null, "maintenances": [], "allowed_actions": ["poweron", - "backup"], "placement_group": null, "private_nics": [], "zone": "fr-par-1", - "admin_password_encryption_ssh_key_id": null, "admin_password_encrypted_value": - null}}' + "backup"], "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' form: {} headers: Content-Type: @@ -1431,45 +1411,43 @@ interactions: url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers method: POST response: - body: '{"server": {"id": "48c01cdb-7a7e-4894-ba6f-a61845c64868", "name": "cli-srv-admiring-darwin", + body: '{"server": {"id": "29d93ae9-3437-4840-87e3-5c3ea9bf904f", "name": "cli-srv-focused-hellman", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "105bdce1-64c0-48ab-899d-868455867ecf", "project": "105bdce1-64c0-48ab-899d-868455867ecf", - "hostname": "cli-srv-admiring-darwin", "image": {"id": "655aeea7-8a30-418a-bc2e-3c04e3fdc8aa", + "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", + "hostname": "cli-srv-focused-hellman", "image": {"id": "655aeea7-8a30-418a-bc2e-3c04e3fdc8aa", "name": "Ubuntu 18.04 Bionic Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "project": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": "27a6459c-efe6-4327-a062-b21a17f3143d", "name": "Ubuntu 18.04 Bionic Beaver", "volume_type": "unified", "size": 10000000000}, "extra_volumes": {}, "public": true, "arch": "x86_64", "creation_date": "2023-08-08T13:36:04.744241+00:00", "modification_date": "2023-08-08T13:36:04.744241+00:00", "default_bootscript": null, "from_server": "", "state": "available", "tags": [], "zone": "fr-par-1"}, - "volumes": {"0": {"boot": false, "id": "00f51d19-8562-4180-964c-186fb2593305", + "volumes": {"0": {"boot": false, "id": "b95db574-2f26-479c-a33c-71d22f225588", "name": "Ubuntu 18.04 Bionic Beaver", "volume_type": "l_ssd", "export_uri": - null, "organization": "105bdce1-64c0-48ab-899d-868455867ecf", "project": "105bdce1-64c0-48ab-899d-868455867ecf", - "server": {"id": "48c01cdb-7a7e-4894-ba6f-a61845c64868", "name": "cli-srv-admiring-darwin"}, - "size": 20000000000, "state": "available", "creation_date": "2024-12-24T08:52:24.170883+00:00", - "modification_date": "2024-12-24T08:52:24.170883+00:00", "tags": [], "zone": + null, "organization": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", + "server": {"id": "29d93ae9-3437-4840-87e3-5c3ea9bf904f", "name": "cli-srv-focused-hellman"}, + "size": 20000000000, "state": "available", "creation_date": "2025-01-29T14:48:17.396455+00:00", + "modification_date": "2025-01-29T14:48:17.396455+00:00", "tags": [], "zone": "fr-par-1"}}, "tags": [], "state": "stopped", "protected": false, "state_detail": - "", "public_ip": null, "public_ips": [], "mac_address": "de:00:00:89:31:f1", + "", "public_ip": null, "public_ips": [], "mac_address": "de:00:00:90:99:ab", "routed_ip_enabled": true, "ipv6": null, "extra_networks": [], "dynamic_ip_required": - false, "enable_ipv6": false, "private_ip": null, "creation_date": "2024-12-24T08:52:24.170883+00:00", - "modification_date": "2024-12-24T08:52:24.170883+00:00", "bootscript": null, - "security_group": {"id": "5881315f-2400-43a0-ac75-08adf6cb8c12", "name": "Default + false, "enable_ipv6": false, "private_ip": null, "creation_date": "2025-01-29T14:48:17.396455+00:00", + "modification_date": "2025-01-29T14:48:17.396455+00:00", "bootscript": null, + "security_group": {"id": "0fe819c3-274d-472a-b3f5-ddb258d2d8bb", "name": "Default security group"}, "location": null, "maintenances": [], "allowed_actions": ["poweron", - "backup"], "placement_group": null, "private_nics": [], "zone": "fr-par-1", - "admin_password_encryption_ssh_key_id": null, "admin_password_encrypted_value": - null}}' + "backup"], "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' headers: Content-Length: - - "2213" + - "2127" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 24 Dec 2024 08:52:24 GMT + - Wed, 29 Jan 2025 14:48:17 GMT Location: - - https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/48c01cdb-7a7e-4894-ba6f-a61845c64868 + - https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/29d93ae9-3437-4840-87e3-5c3ea9bf904f Server: - - Scaleway API Gateway (fr-par-2;edge03) + - Scaleway API Gateway (fr-par-1;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1477,16 +1455,16 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 4621b038-22c8-409d-83c0-95e3a08becfc + - 2eaeb3e2-1e6a-40d9-a0d2-4c3397452b34 status: 201 Created code: 201 duration: "" - request: - body: '{"volume": {"id": "8cc847a0-100e-408f-a5cf-e49dac24cdcd", "name": "cli-test", - "volume_type": "b_ssd", "export_uri": null, "organization": "105bdce1-64c0-48ab-899d-868455867ecf", - "project": "105bdce1-64c0-48ab-899d-868455867ecf", "server": null, "size": 10000000000, - "state": "available", "creation_date": "2024-12-24T08:52:24.762684+00:00", "modification_date": - "2024-12-24T08:52:24.762684+00:00", "tags": [], "zone": "fr-par-1"}}' + body: '{"volume": {"id": "172816a0-81bf-4731-bf18-d882c284d4ee", "name": "cli-test", + "volume_type": "b_ssd", "export_uri": null, "organization": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", + "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "server": null, "size": 10000000000, + "state": "available", "creation_date": "2025-01-29T14:48:17.816075+00:00", "modification_date": + "2025-01-29T14:48:17.816075+00:00", "tags": [], "zone": "fr-par-1"}}' form: {} headers: Content-Type: @@ -1496,11 +1474,11 @@ interactions: url: https://api.scaleway.com/instance/v1/zones/fr-par-1/volumes method: POST response: - body: '{"volume": {"id": "8cc847a0-100e-408f-a5cf-e49dac24cdcd", "name": "cli-test", - "volume_type": "b_ssd", "export_uri": null, "organization": "105bdce1-64c0-48ab-899d-868455867ecf", - "project": "105bdce1-64c0-48ab-899d-868455867ecf", "server": null, "size": 10000000000, - "state": "available", "creation_date": "2024-12-24T08:52:24.762684+00:00", "modification_date": - "2024-12-24T08:52:24.762684+00:00", "tags": [], "zone": "fr-par-1"}}' + body: '{"volume": {"id": "172816a0-81bf-4731-bf18-d882c284d4ee", "name": "cli-test", + "volume_type": "b_ssd", "export_uri": null, "organization": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", + "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "server": null, "size": 10000000000, + "state": "available", "creation_date": "2025-01-29T14:48:17.816075+00:00", "modification_date": + "2025-01-29T14:48:17.816075+00:00", "tags": [], "zone": "fr-par-1"}}' headers: Content-Length: - "430" @@ -1509,11 +1487,11 @@ interactions: Content-Type: - application/json Date: - - Tue, 24 Dec 2024 08:52:24 GMT + - Wed, 29 Jan 2025 14:48:17 GMT Location: - - https://api.scaleway.com/instance/v1/zones/fr-par-1/volumes/8cc847a0-100e-408f-a5cf-e49dac24cdcd + - https://api.scaleway.com/instance/v1/zones/fr-par-1/volumes/172816a0-81bf-4731-bf18-d882c284d4ee Server: - - Scaleway API Gateway (fr-par-2;edge03) + - Scaleway API Gateway (fr-par-1;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1521,64 +1499,98 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - ef50fb2c-761f-40f8-ba54-e85b11c0c518 + - 6cbeb380-1c97-49d4-9a29-bc7809a674b1 status: 201 Created code: 201 duration: "" - request: - body: '{"server": {"id": "48c01cdb-7a7e-4894-ba6f-a61845c64868", "name": "cli-srv-admiring-darwin", + body: '{"id":"97702648-99c5-4356-9de8-f4342e29171b","name":"Test_ServerUpdateCustom/Volumes/valid_simple_block_volume","type":"sbs_5k","size":10000000000,"project_id":"ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b","created_at":"2025-01-29T14:48:17.983729Z","updated_at":"2025-01-29T14:48:17.983729Z","references":[],"parent_snapshot_id":null,"status":"creating","tags":[],"specs":{"perf_iops":5000,"class":"sbs"},"last_detached_at":null,"zone":"fr-par-1"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.4; darwin; arm64) cli-e2e-test + url: https://api.scaleway.com/block/v1alpha1/zones/fr-par-1/volumes + method: POST + response: + body: '{"id":"97702648-99c5-4356-9de8-f4342e29171b","name":"Test_ServerUpdateCustom/Volumes/valid_simple_block_volume","type":"sbs_5k","size":10000000000,"project_id":"ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b","created_at":"2025-01-29T14:48:17.983729Z","updated_at":"2025-01-29T14:48:17.983729Z","references":[],"parent_snapshot_id":null,"status":"creating","tags":[],"specs":{"perf_iops":5000,"class":"sbs"},"last_detached_at":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "440" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 29 Jan 2025 14:48:18 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - de0625c2-3b93-4c76-87b8-494fa3e7c764 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"server": {"id": "29d93ae9-3437-4840-87e3-5c3ea9bf904f", "name": "cli-srv-focused-hellman", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "105bdce1-64c0-48ab-899d-868455867ecf", "project": "105bdce1-64c0-48ab-899d-868455867ecf", - "hostname": "cli-srv-admiring-darwin", "image": {"id": "655aeea7-8a30-418a-bc2e-3c04e3fdc8aa", + "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", + "hostname": "cli-srv-focused-hellman", "image": {"id": "655aeea7-8a30-418a-bc2e-3c04e3fdc8aa", "name": "Ubuntu 18.04 Bionic Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "project": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": "27a6459c-efe6-4327-a062-b21a17f3143d", "name": "Ubuntu 18.04 Bionic Beaver", "volume_type": "unified", "size": 10000000000}, "extra_volumes": {}, "public": true, "arch": "x86_64", "creation_date": "2023-08-08T13:36:04.744241+00:00", "modification_date": "2023-08-08T13:36:04.744241+00:00", "default_bootscript": null, "from_server": "", "state": "available", "tags": [], "zone": "fr-par-1"}, - "volumes": {"0": {"boot": false, "id": "00f51d19-8562-4180-964c-186fb2593305", + "volumes": {"0": {"boot": false, "id": "b95db574-2f26-479c-a33c-71d22f225588", "name": "Ubuntu 18.04 Bionic Beaver", "volume_type": "l_ssd", "export_uri": - null, "organization": "105bdce1-64c0-48ab-899d-868455867ecf", "project": "105bdce1-64c0-48ab-899d-868455867ecf", - "server": {"id": "48c01cdb-7a7e-4894-ba6f-a61845c64868", "name": "cli-srv-admiring-darwin"}, - "size": 20000000000, "state": "available", "creation_date": "2024-12-24T08:52:24.170883+00:00", - "modification_date": "2024-12-24T08:52:24.170883+00:00", "tags": [], "zone": + null, "organization": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", + "server": {"id": "29d93ae9-3437-4840-87e3-5c3ea9bf904f", "name": "cli-srv-focused-hellman"}, + "size": 20000000000, "state": "available", "creation_date": "2025-01-29T14:48:17.396455+00:00", + "modification_date": "2025-01-29T14:48:17.396455+00:00", "tags": [], "zone": "fr-par-1"}}, "tags": [], "state": "stopped", "protected": false, "state_detail": - "", "public_ip": null, "public_ips": [], "mac_address": "de:00:00:89:31:f1", + "", "public_ip": null, "public_ips": [], "mac_address": "de:00:00:90:99:ab", "routed_ip_enabled": true, "ipv6": null, "extra_networks": [], "dynamic_ip_required": - false, "enable_ipv6": false, "private_ip": null, "creation_date": "2024-12-24T08:52:24.170883+00:00", - "modification_date": "2024-12-24T08:52:24.170883+00:00", "bootscript": null, - "security_group": {"id": "5881315f-2400-43a0-ac75-08adf6cb8c12", "name": "Default + false, "enable_ipv6": false, "private_ip": null, "creation_date": "2025-01-29T14:48:17.396455+00:00", + "modification_date": "2025-01-29T14:48:17.396455+00:00", "bootscript": null, + "security_group": {"id": "0fe819c3-274d-472a-b3f5-ddb258d2d8bb", "name": "Default security group"}, "location": null, "maintenances": [], "allowed_actions": ["poweron", "backup"], "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.4; darwin; arm64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/48c01cdb-7a7e-4894-ba6f-a61845c64868 + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/29d93ae9-3437-4840-87e3-5c3ea9bf904f method: GET response: - body: '{"server": {"id": "48c01cdb-7a7e-4894-ba6f-a61845c64868", "name": "cli-srv-admiring-darwin", + body: '{"server": {"id": "29d93ae9-3437-4840-87e3-5c3ea9bf904f", "name": "cli-srv-focused-hellman", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "105bdce1-64c0-48ab-899d-868455867ecf", "project": "105bdce1-64c0-48ab-899d-868455867ecf", - "hostname": "cli-srv-admiring-darwin", "image": {"id": "655aeea7-8a30-418a-bc2e-3c04e3fdc8aa", + "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", + "hostname": "cli-srv-focused-hellman", "image": {"id": "655aeea7-8a30-418a-bc2e-3c04e3fdc8aa", "name": "Ubuntu 18.04 Bionic Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "project": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": "27a6459c-efe6-4327-a062-b21a17f3143d", "name": "Ubuntu 18.04 Bionic Beaver", "volume_type": "unified", "size": 10000000000}, "extra_volumes": {}, "public": true, "arch": "x86_64", "creation_date": "2023-08-08T13:36:04.744241+00:00", "modification_date": "2023-08-08T13:36:04.744241+00:00", "default_bootscript": null, "from_server": "", "state": "available", "tags": [], "zone": "fr-par-1"}, - "volumes": {"0": {"boot": false, "id": "00f51d19-8562-4180-964c-186fb2593305", + "volumes": {"0": {"boot": false, "id": "b95db574-2f26-479c-a33c-71d22f225588", "name": "Ubuntu 18.04 Bionic Beaver", "volume_type": "l_ssd", "export_uri": - null, "organization": "105bdce1-64c0-48ab-899d-868455867ecf", "project": "105bdce1-64c0-48ab-899d-868455867ecf", - "server": {"id": "48c01cdb-7a7e-4894-ba6f-a61845c64868", "name": "cli-srv-admiring-darwin"}, - "size": 20000000000, "state": "available", "creation_date": "2024-12-24T08:52:24.170883+00:00", - "modification_date": "2024-12-24T08:52:24.170883+00:00", "tags": [], "zone": + null, "organization": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", + "server": {"id": "29d93ae9-3437-4840-87e3-5c3ea9bf904f", "name": "cli-srv-focused-hellman"}, + "size": 20000000000, "state": "available", "creation_date": "2025-01-29T14:48:17.396455+00:00", + "modification_date": "2025-01-29T14:48:17.396455+00:00", "tags": [], "zone": "fr-par-1"}}, "tags": [], "state": "stopped", "protected": false, "state_detail": - "", "public_ip": null, "public_ips": [], "mac_address": "de:00:00:89:31:f1", + "", "public_ip": null, "public_ips": [], "mac_address": "de:00:00:90:99:ab", "routed_ip_enabled": true, "ipv6": null, "extra_networks": [], "dynamic_ip_required": - false, "enable_ipv6": false, "private_ip": null, "creation_date": "2024-12-24T08:52:24.170883+00:00", - "modification_date": "2024-12-24T08:52:24.170883+00:00", "bootscript": null, - "security_group": {"id": "5881315f-2400-43a0-ac75-08adf6cb8c12", "name": "Default + false, "enable_ipv6": false, "private_ip": null, "creation_date": "2025-01-29T14:48:17.396455+00:00", + "modification_date": "2025-01-29T14:48:17.396455+00:00", "bootscript": null, + "security_group": {"id": "0fe819c3-274d-472a-b3f5-ddb258d2d8bb", "name": "Default security group"}, "location": null, "maintenances": [], "allowed_actions": ["poweron", "backup"], "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' headers: @@ -1589,9 +1601,9 @@ interactions: Content-Type: - application/json Date: - - Tue, 24 Dec 2024 08:52:24 GMT + - Wed, 29 Jan 2025 14:48:18 GMT Server: - - Scaleway API Gateway (fr-par-2;edge03) + - Scaleway API Gateway (fr-par-1;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1599,91 +1611,189 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 541bf881-ec54-4412-9425-1ae973c58282 + - 4ba360f3-12b7-4beb-8f93-7bfce1a4c05e status: 200 OK code: 200 duration: "" - request: - body: '{"server": {"id": "48c01cdb-7a7e-4894-ba6f-a61845c64868", "name": "cli-srv-admiring-darwin", + body: '{"message":"resource is not found","resource":"volume","resource_id":"b95db574-2f26-479c-a33c-71d22f225588","type":"not_found"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.4; darwin; arm64) cli-e2e-test + url: https://api.scaleway.com/block/v1alpha1/zones/fr-par-1/volumes/b95db574-2f26-479c-a33c-71d22f225588 + method: GET + response: + body: '{"message":"resource is not found","resource":"volume","resource_id":"b95db574-2f26-479c-a33c-71d22f225588","type":"not_found"}' + headers: + Content-Length: + - "127" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 29 Jan 2025 14:48:18 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7277c542-54d6-4f3a-84a4-af45cd855e10 + status: 404 Not Found + code: 404 + duration: "" +- request: + body: '{"message":"resource is not found","resource":"volume","resource_id":"172816a0-81bf-4731-bf18-d882c284d4ee","type":"not_found"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.4; darwin; arm64) cli-e2e-test + url: https://api.scaleway.com/block/v1alpha1/zones/fr-par-1/volumes/172816a0-81bf-4731-bf18-d882c284d4ee + method: GET + response: + body: '{"message":"resource is not found","resource":"volume","resource_id":"172816a0-81bf-4731-bf18-d882c284d4ee","type":"not_found"}' + headers: + Content-Length: + - "127" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 29 Jan 2025 14:48:18 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9062165c-ec61-4941-8c09-b534a798ef96 + status: 404 Not Found + code: 404 + duration: "" +- request: + body: '{"id":"97702648-99c5-4356-9de8-f4342e29171b","name":"Test_ServerUpdateCustom/Volumes/valid_simple_block_volume","type":"sbs_5k","size":10000000000,"project_id":"ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b","created_at":"2025-01-29T14:48:17.983729Z","updated_at":"2025-01-29T14:48:17.983729Z","references":[],"parent_snapshot_id":null,"status":"available","tags":[],"specs":{"perf_iops":5000,"class":"sbs"},"last_detached_at":null,"zone":"fr-par-1"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.4; darwin; arm64) cli-e2e-test + url: https://api.scaleway.com/block/v1alpha1/zones/fr-par-1/volumes/97702648-99c5-4356-9de8-f4342e29171b + method: GET + response: + body: '{"id":"97702648-99c5-4356-9de8-f4342e29171b","name":"Test_ServerUpdateCustom/Volumes/valid_simple_block_volume","type":"sbs_5k","size":10000000000,"project_id":"ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b","created_at":"2025-01-29T14:48:17.983729Z","updated_at":"2025-01-29T14:48:17.983729Z","references":[],"parent_snapshot_id":null,"status":"available","tags":[],"specs":{"perf_iops":5000,"class":"sbs"},"last_detached_at":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "441" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 29 Jan 2025 14:48:18 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b04c6056-4447-42a2-97b4-963ab8687174 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"server": {"id": "29d93ae9-3437-4840-87e3-5c3ea9bf904f", "name": "cli-srv-focused-hellman", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "105bdce1-64c0-48ab-899d-868455867ecf", "project": "105bdce1-64c0-48ab-899d-868455867ecf", - "hostname": "cli-srv-admiring-darwin", "image": {"id": "655aeea7-8a30-418a-bc2e-3c04e3fdc8aa", + "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", + "hostname": "cli-srv-focused-hellman", "image": {"id": "655aeea7-8a30-418a-bc2e-3c04e3fdc8aa", "name": "Ubuntu 18.04 Bionic Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "project": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": "27a6459c-efe6-4327-a062-b21a17f3143d", "name": "Ubuntu 18.04 Bionic Beaver", "volume_type": "unified", "size": 10000000000}, "extra_volumes": {}, "public": true, "arch": "x86_64", "creation_date": "2023-08-08T13:36:04.744241+00:00", "modification_date": "2023-08-08T13:36:04.744241+00:00", "default_bootscript": null, "from_server": "", "state": "available", "tags": [], "zone": "fr-par-1"}, - "volumes": {"0": {"boot": false, "id": "00f51d19-8562-4180-964c-186fb2593305", + "volumes": {"0": {"boot": false, "id": "b95db574-2f26-479c-a33c-71d22f225588", "name": "Ubuntu 18.04 Bionic Beaver", "volume_type": "l_ssd", "export_uri": - null, "organization": "105bdce1-64c0-48ab-899d-868455867ecf", "project": "105bdce1-64c0-48ab-899d-868455867ecf", - "server": {"id": "48c01cdb-7a7e-4894-ba6f-a61845c64868", "name": "cli-srv-admiring-darwin"}, - "size": 20000000000, "state": "available", "creation_date": "2024-12-24T08:52:24.170883+00:00", - "modification_date": "2024-12-24T08:52:24.170883+00:00", "tags": [], "zone": - "fr-par-1"}, "1": {"boot": false, "id": "8cc847a0-100e-408f-a5cf-e49dac24cdcd", + null, "organization": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", + "server": {"id": "29d93ae9-3437-4840-87e3-5c3ea9bf904f", "name": "cli-srv-focused-hellman"}, + "size": 20000000000, "state": "available", "creation_date": "2025-01-29T14:48:17.396455+00:00", + "modification_date": "2025-01-29T14:48:17.396455+00:00", "tags": [], "zone": + "fr-par-1"}, "1": {"boot": false, "id": "172816a0-81bf-4731-bf18-d882c284d4ee", "name": "cli-test", "volume_type": "b_ssd", "export_uri": null, "organization": - "105bdce1-64c0-48ab-899d-868455867ecf", "project": "105bdce1-64c0-48ab-899d-868455867ecf", - "server": {"id": "48c01cdb-7a7e-4894-ba6f-a61845c64868", "name": "cli-srv-admiring-darwin"}, - "size": 10000000000, "state": "available", "creation_date": "2024-12-24T08:52:24.762684+00:00", - "modification_date": "2024-12-24T08:52:25.128235+00:00", "tags": [], "zone": - "fr-par-1"}}, "tags": [], "state": "stopped", "protected": false, "state_detail": - "", "public_ip": null, "public_ips": [], "mac_address": "de:00:00:89:31:f1", + "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", + "server": {"id": "29d93ae9-3437-4840-87e3-5c3ea9bf904f", "name": "cli-srv-focused-hellman"}, + "size": 10000000000, "state": "available", "creation_date": "2025-01-29T14:48:17.816075+00:00", + "modification_date": "2025-01-29T14:48:18.805395+00:00", "tags": [], "zone": + "fr-par-1"}, "2": {"boot": false, "volume_type": "sbs_volume", "id": "97702648-99c5-4356-9de8-f4342e29171b", + "zone": "fr-par-1"}}, "tags": [], "state": "stopped", "protected": false, "state_detail": + "", "public_ip": null, "public_ips": [], "mac_address": "de:00:00:90:99:ab", "routed_ip_enabled": true, "ipv6": null, "extra_networks": [], "dynamic_ip_required": - false, "enable_ipv6": false, "private_ip": null, "creation_date": "2024-12-24T08:52:24.170883+00:00", - "modification_date": "2024-12-24T08:52:24.170883+00:00", "bootscript": null, - "security_group": {"id": "5881315f-2400-43a0-ac75-08adf6cb8c12", "name": "Default - security group"}, "location": null, "maintenances": [], "allowed_actions": ["poweron", - "backup"], "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' + false, "enable_ipv6": false, "private_ip": null, "creation_date": "2025-01-29T14:48:17.396455+00:00", + "modification_date": "2025-01-29T14:48:17.396455+00:00", "bootscript": null, + "security_group": {"id": "0fe819c3-274d-472a-b3f5-ddb258d2d8bb", "name": "Default + security group"}, "location": null, "maintenances": [], "allowed_actions": [], + "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' form: {} headers: Content-Type: - application/json User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.4; darwin; arm64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/48c01cdb-7a7e-4894-ba6f-a61845c64868 + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/29d93ae9-3437-4840-87e3-5c3ea9bf904f method: PATCH response: - body: '{"server": {"id": "48c01cdb-7a7e-4894-ba6f-a61845c64868", "name": "cli-srv-admiring-darwin", + body: '{"server": {"id": "29d93ae9-3437-4840-87e3-5c3ea9bf904f", "name": "cli-srv-focused-hellman", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "105bdce1-64c0-48ab-899d-868455867ecf", "project": "105bdce1-64c0-48ab-899d-868455867ecf", - "hostname": "cli-srv-admiring-darwin", "image": {"id": "655aeea7-8a30-418a-bc2e-3c04e3fdc8aa", + "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", + "hostname": "cli-srv-focused-hellman", "image": {"id": "655aeea7-8a30-418a-bc2e-3c04e3fdc8aa", "name": "Ubuntu 18.04 Bionic Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "project": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": "27a6459c-efe6-4327-a062-b21a17f3143d", "name": "Ubuntu 18.04 Bionic Beaver", "volume_type": "unified", "size": 10000000000}, "extra_volumes": {}, "public": true, "arch": "x86_64", "creation_date": "2023-08-08T13:36:04.744241+00:00", "modification_date": "2023-08-08T13:36:04.744241+00:00", "default_bootscript": null, "from_server": "", "state": "available", "tags": [], "zone": "fr-par-1"}, - "volumes": {"0": {"boot": false, "id": "00f51d19-8562-4180-964c-186fb2593305", + "volumes": {"0": {"boot": false, "id": "b95db574-2f26-479c-a33c-71d22f225588", "name": "Ubuntu 18.04 Bionic Beaver", "volume_type": "l_ssd", "export_uri": - null, "organization": "105bdce1-64c0-48ab-899d-868455867ecf", "project": "105bdce1-64c0-48ab-899d-868455867ecf", - "server": {"id": "48c01cdb-7a7e-4894-ba6f-a61845c64868", "name": "cli-srv-admiring-darwin"}, - "size": 20000000000, "state": "available", "creation_date": "2024-12-24T08:52:24.170883+00:00", - "modification_date": "2024-12-24T08:52:24.170883+00:00", "tags": [], "zone": - "fr-par-1"}, "1": {"boot": false, "id": "8cc847a0-100e-408f-a5cf-e49dac24cdcd", + null, "organization": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", + "server": {"id": "29d93ae9-3437-4840-87e3-5c3ea9bf904f", "name": "cli-srv-focused-hellman"}, + "size": 20000000000, "state": "available", "creation_date": "2025-01-29T14:48:17.396455+00:00", + "modification_date": "2025-01-29T14:48:17.396455+00:00", "tags": [], "zone": + "fr-par-1"}, "1": {"boot": false, "id": "172816a0-81bf-4731-bf18-d882c284d4ee", "name": "cli-test", "volume_type": "b_ssd", "export_uri": null, "organization": - "105bdce1-64c0-48ab-899d-868455867ecf", "project": "105bdce1-64c0-48ab-899d-868455867ecf", - "server": {"id": "48c01cdb-7a7e-4894-ba6f-a61845c64868", "name": "cli-srv-admiring-darwin"}, - "size": 10000000000, "state": "available", "creation_date": "2024-12-24T08:52:24.762684+00:00", - "modification_date": "2024-12-24T08:52:25.128235+00:00", "tags": [], "zone": - "fr-par-1"}}, "tags": [], "state": "stopped", "protected": false, "state_detail": - "", "public_ip": null, "public_ips": [], "mac_address": "de:00:00:89:31:f1", + "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", + "server": {"id": "29d93ae9-3437-4840-87e3-5c3ea9bf904f", "name": "cli-srv-focused-hellman"}, + "size": 10000000000, "state": "available", "creation_date": "2025-01-29T14:48:17.816075+00:00", + "modification_date": "2025-01-29T14:48:18.805395+00:00", "tags": [], "zone": + "fr-par-1"}, "2": {"boot": false, "volume_type": "sbs_volume", "id": "97702648-99c5-4356-9de8-f4342e29171b", + "zone": "fr-par-1"}}, "tags": [], "state": "stopped", "protected": false, "state_detail": + "", "public_ip": null, "public_ips": [], "mac_address": "de:00:00:90:99:ab", "routed_ip_enabled": true, "ipv6": null, "extra_networks": [], "dynamic_ip_required": - false, "enable_ipv6": false, "private_ip": null, "creation_date": "2024-12-24T08:52:24.170883+00:00", - "modification_date": "2024-12-24T08:52:24.170883+00:00", "bootscript": null, - "security_group": {"id": "5881315f-2400-43a0-ac75-08adf6cb8c12", "name": "Default - security group"}, "location": null, "maintenances": [], "allowed_actions": ["poweron", - "backup"], "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' + false, "enable_ipv6": false, "private_ip": null, "creation_date": "2025-01-29T14:48:17.396455+00:00", + "modification_date": "2025-01-29T14:48:17.396455+00:00", "bootscript": null, + "security_group": {"id": "0fe819c3-274d-472a-b3f5-ddb258d2d8bb", "name": "Default + security group"}, "location": null, "maintenances": [], "allowed_actions": [], + "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' headers: Content-Length: - - "2644" + - "2742" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 24 Dec 2024 08:52:25 GMT + - Wed, 29 Jan 2025 14:48:19 GMT Server: - - Scaleway API Gateway (fr-par-2;edge03) + - Scaleway API Gateway (fr-par-1;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1691,89 +1801,91 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - fe8d06ee-8ec3-4b50-a73c-f86baec3b8a6 + - 5a28cc88-8c8a-46f9-9673-8882a5534253 status: 200 OK code: 200 duration: "" - request: - body: '{"server": {"id": "48c01cdb-7a7e-4894-ba6f-a61845c64868", "name": "cli-srv-admiring-darwin", + body: '{"server": {"id": "29d93ae9-3437-4840-87e3-5c3ea9bf904f", "name": "cli-srv-focused-hellman", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "105bdce1-64c0-48ab-899d-868455867ecf", "project": "105bdce1-64c0-48ab-899d-868455867ecf", - "hostname": "cli-srv-admiring-darwin", "image": {"id": "655aeea7-8a30-418a-bc2e-3c04e3fdc8aa", + "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", + "hostname": "cli-srv-focused-hellman", "image": {"id": "655aeea7-8a30-418a-bc2e-3c04e3fdc8aa", "name": "Ubuntu 18.04 Bionic Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "project": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": "27a6459c-efe6-4327-a062-b21a17f3143d", "name": "Ubuntu 18.04 Bionic Beaver", "volume_type": "unified", "size": 10000000000}, "extra_volumes": {}, "public": true, "arch": "x86_64", "creation_date": "2023-08-08T13:36:04.744241+00:00", "modification_date": "2023-08-08T13:36:04.744241+00:00", "default_bootscript": null, "from_server": "", "state": "available", "tags": [], "zone": "fr-par-1"}, - "volumes": {"0": {"boot": false, "id": "00f51d19-8562-4180-964c-186fb2593305", + "volumes": {"0": {"boot": false, "id": "b95db574-2f26-479c-a33c-71d22f225588", "name": "Ubuntu 18.04 Bionic Beaver", "volume_type": "l_ssd", "export_uri": - null, "organization": "105bdce1-64c0-48ab-899d-868455867ecf", "project": "105bdce1-64c0-48ab-899d-868455867ecf", - "server": {"id": "48c01cdb-7a7e-4894-ba6f-a61845c64868", "name": "cli-srv-admiring-darwin"}, - "size": 20000000000, "state": "available", "creation_date": "2024-12-24T08:52:24.170883+00:00", - "modification_date": "2024-12-24T08:52:24.170883+00:00", "tags": [], "zone": - "fr-par-1"}, "1": {"boot": false, "id": "8cc847a0-100e-408f-a5cf-e49dac24cdcd", + null, "organization": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", + "server": {"id": "29d93ae9-3437-4840-87e3-5c3ea9bf904f", "name": "cli-srv-focused-hellman"}, + "size": 20000000000, "state": "available", "creation_date": "2025-01-29T14:48:17.396455+00:00", + "modification_date": "2025-01-29T14:48:17.396455+00:00", "tags": [], "zone": + "fr-par-1"}, "1": {"boot": false, "id": "172816a0-81bf-4731-bf18-d882c284d4ee", "name": "cli-test", "volume_type": "b_ssd", "export_uri": null, "organization": - "105bdce1-64c0-48ab-899d-868455867ecf", "project": "105bdce1-64c0-48ab-899d-868455867ecf", - "server": {"id": "48c01cdb-7a7e-4894-ba6f-a61845c64868", "name": "cli-srv-admiring-darwin"}, - "size": 10000000000, "state": "available", "creation_date": "2024-12-24T08:52:24.762684+00:00", - "modification_date": "2024-12-24T08:52:25.128235+00:00", "tags": [], "zone": - "fr-par-1"}}, "tags": [], "state": "stopped", "protected": false, "state_detail": - "", "public_ip": null, "public_ips": [], "mac_address": "de:00:00:89:31:f1", + "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", + "server": {"id": "29d93ae9-3437-4840-87e3-5c3ea9bf904f", "name": "cli-srv-focused-hellman"}, + "size": 10000000000, "state": "available", "creation_date": "2025-01-29T14:48:17.816075+00:00", + "modification_date": "2025-01-29T14:48:18.805395+00:00", "tags": [], "zone": + "fr-par-1"}, "2": {"boot": false, "volume_type": "sbs_volume", "id": "97702648-99c5-4356-9de8-f4342e29171b", + "zone": "fr-par-1"}}, "tags": [], "state": "stopped", "protected": false, "state_detail": + "", "public_ip": null, "public_ips": [], "mac_address": "de:00:00:90:99:ab", "routed_ip_enabled": true, "ipv6": null, "extra_networks": [], "dynamic_ip_required": - false, "enable_ipv6": false, "private_ip": null, "creation_date": "2024-12-24T08:52:24.170883+00:00", - "modification_date": "2024-12-24T08:52:24.170883+00:00", "bootscript": null, - "security_group": {"id": "5881315f-2400-43a0-ac75-08adf6cb8c12", "name": "Default - security group"}, "location": null, "maintenances": [], "allowed_actions": ["poweron", - "backup"], "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' + false, "enable_ipv6": false, "private_ip": null, "creation_date": "2025-01-29T14:48:17.396455+00:00", + "modification_date": "2025-01-29T14:48:17.396455+00:00", "bootscript": null, + "security_group": {"id": "0fe819c3-274d-472a-b3f5-ddb258d2d8bb", "name": "Default + security group"}, "location": null, "maintenances": [], "allowed_actions": [], + "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.4; darwin; arm64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/48c01cdb-7a7e-4894-ba6f-a61845c64868 + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/29d93ae9-3437-4840-87e3-5c3ea9bf904f method: GET response: - body: '{"server": {"id": "48c01cdb-7a7e-4894-ba6f-a61845c64868", "name": "cli-srv-admiring-darwin", + body: '{"server": {"id": "29d93ae9-3437-4840-87e3-5c3ea9bf904f", "name": "cli-srv-focused-hellman", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "105bdce1-64c0-48ab-899d-868455867ecf", "project": "105bdce1-64c0-48ab-899d-868455867ecf", - "hostname": "cli-srv-admiring-darwin", "image": {"id": "655aeea7-8a30-418a-bc2e-3c04e3fdc8aa", + "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", + "hostname": "cli-srv-focused-hellman", "image": {"id": "655aeea7-8a30-418a-bc2e-3c04e3fdc8aa", "name": "Ubuntu 18.04 Bionic Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "project": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": "27a6459c-efe6-4327-a062-b21a17f3143d", "name": "Ubuntu 18.04 Bionic Beaver", "volume_type": "unified", "size": 10000000000}, "extra_volumes": {}, "public": true, "arch": "x86_64", "creation_date": "2023-08-08T13:36:04.744241+00:00", "modification_date": "2023-08-08T13:36:04.744241+00:00", "default_bootscript": null, "from_server": "", "state": "available", "tags": [], "zone": "fr-par-1"}, - "volumes": {"0": {"boot": false, "id": "00f51d19-8562-4180-964c-186fb2593305", + "volumes": {"0": {"boot": false, "id": "b95db574-2f26-479c-a33c-71d22f225588", "name": "Ubuntu 18.04 Bionic Beaver", "volume_type": "l_ssd", "export_uri": - null, "organization": "105bdce1-64c0-48ab-899d-868455867ecf", "project": "105bdce1-64c0-48ab-899d-868455867ecf", - "server": {"id": "48c01cdb-7a7e-4894-ba6f-a61845c64868", "name": "cli-srv-admiring-darwin"}, - "size": 20000000000, "state": "available", "creation_date": "2024-12-24T08:52:24.170883+00:00", - "modification_date": "2024-12-24T08:52:24.170883+00:00", "tags": [], "zone": - "fr-par-1"}, "1": {"boot": false, "id": "8cc847a0-100e-408f-a5cf-e49dac24cdcd", + null, "organization": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", + "server": {"id": "29d93ae9-3437-4840-87e3-5c3ea9bf904f", "name": "cli-srv-focused-hellman"}, + "size": 20000000000, "state": "available", "creation_date": "2025-01-29T14:48:17.396455+00:00", + "modification_date": "2025-01-29T14:48:17.396455+00:00", "tags": [], "zone": + "fr-par-1"}, "1": {"boot": false, "id": "172816a0-81bf-4731-bf18-d882c284d4ee", "name": "cli-test", "volume_type": "b_ssd", "export_uri": null, "organization": - "105bdce1-64c0-48ab-899d-868455867ecf", "project": "105bdce1-64c0-48ab-899d-868455867ecf", - "server": {"id": "48c01cdb-7a7e-4894-ba6f-a61845c64868", "name": "cli-srv-admiring-darwin"}, - "size": 10000000000, "state": "available", "creation_date": "2024-12-24T08:52:24.762684+00:00", - "modification_date": "2024-12-24T08:52:25.128235+00:00", "tags": [], "zone": - "fr-par-1"}}, "tags": [], "state": "stopped", "protected": false, "state_detail": - "", "public_ip": null, "public_ips": [], "mac_address": "de:00:00:89:31:f1", + "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", + "server": {"id": "29d93ae9-3437-4840-87e3-5c3ea9bf904f", "name": "cli-srv-focused-hellman"}, + "size": 10000000000, "state": "available", "creation_date": "2025-01-29T14:48:17.816075+00:00", + "modification_date": "2025-01-29T14:48:18.805395+00:00", "tags": [], "zone": + "fr-par-1"}, "2": {"boot": false, "volume_type": "sbs_volume", "id": "97702648-99c5-4356-9de8-f4342e29171b", + "zone": "fr-par-1"}}, "tags": [], "state": "stopped", "protected": false, "state_detail": + "", "public_ip": null, "public_ips": [], "mac_address": "de:00:00:90:99:ab", "routed_ip_enabled": true, "ipv6": null, "extra_networks": [], "dynamic_ip_required": - false, "enable_ipv6": false, "private_ip": null, "creation_date": "2024-12-24T08:52:24.170883+00:00", - "modification_date": "2024-12-24T08:52:24.170883+00:00", "bootscript": null, - "security_group": {"id": "5881315f-2400-43a0-ac75-08adf6cb8c12", "name": "Default - security group"}, "location": null, "maintenances": [], "allowed_actions": ["poweron", - "backup"], "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' + false, "enable_ipv6": false, "private_ip": null, "creation_date": "2025-01-29T14:48:17.396455+00:00", + "modification_date": "2025-01-29T14:48:17.396455+00:00", "bootscript": null, + "security_group": {"id": "0fe819c3-274d-472a-b3f5-ddb258d2d8bb", "name": "Default + security group"}, "location": null, "maintenances": [], "allowed_actions": [], + "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' headers: Content-Length: - - "2644" + - "2742" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 24 Dec 2024 08:52:25 GMT + - Wed, 29 Jan 2025 14:48:19 GMT Server: - - Scaleway API Gateway (fr-par-2;edge03) + - Scaleway API Gateway (fr-par-1;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1781,7 +1893,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - cf4e45cc-33b2-4ceb-96b1-8d64a68e6a02 + - 4ebca759-fe1d-40c1-afb9-f39fcc332ba6 status: 200 OK code: 200 duration: "" @@ -1791,7 +1903,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.4; darwin; arm64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/48c01cdb-7a7e-4894-ba6f-a61845c64868 + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/29d93ae9-3437-4840-87e3-5c3ea9bf904f method: DELETE response: body: "" @@ -1801,9 +1913,9 @@ interactions: Content-Type: - application/json Date: - - Tue, 24 Dec 2024 08:52:25 GMT + - Wed, 29 Jan 2025 14:48:19 GMT Server: - - Scaleway API Gateway (fr-par-2;edge03) + - Scaleway API Gateway (fr-par-1;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1811,29 +1923,29 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - dd4a3b7c-a572-4090-a1a5-f9c8ece1b641 + - 369d1c28-d46c-433a-802e-e61f58ddacd4 status: 204 No Content code: 204 duration: "" - request: - body: '{"volume": {"id": "00f51d19-8562-4180-964c-186fb2593305", "name": "Ubuntu + body: '{"volume": {"id": "b95db574-2f26-479c-a33c-71d22f225588", "name": "Ubuntu 18.04 Bionic Beaver", "volume_type": "l_ssd", "export_uri": null, "organization": - "105bdce1-64c0-48ab-899d-868455867ecf", "project": "105bdce1-64c0-48ab-899d-868455867ecf", + "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "server": null, "size": 20000000000, "state": "available", "creation_date": - "2024-12-24T08:52:24.170883+00:00", "modification_date": "2024-12-24T08:52:25.646601+00:00", + "2025-01-29T14:48:17.396455+00:00", "modification_date": "2025-01-29T14:48:19.843485+00:00", "tags": [], "zone": "fr-par-1"}}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.4; darwin; arm64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/volumes/00f51d19-8562-4180-964c-186fb2593305 + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/volumes/b95db574-2f26-479c-a33c-71d22f225588 method: GET response: - body: '{"volume": {"id": "00f51d19-8562-4180-964c-186fb2593305", "name": "Ubuntu + body: '{"volume": {"id": "b95db574-2f26-479c-a33c-71d22f225588", "name": "Ubuntu 18.04 Bionic Beaver", "volume_type": "l_ssd", "export_uri": null, "organization": - "105bdce1-64c0-48ab-899d-868455867ecf", "project": "105bdce1-64c0-48ab-899d-868455867ecf", + "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "server": null, "size": 20000000000, "state": "available", "creation_date": - "2024-12-24T08:52:24.170883+00:00", "modification_date": "2024-12-24T08:52:25.646601+00:00", + "2025-01-29T14:48:17.396455+00:00", "modification_date": "2025-01-29T14:48:19.843485+00:00", "tags": [], "zone": "fr-par-1"}}' headers: Content-Length: @@ -1843,9 +1955,9 @@ interactions: Content-Type: - application/json Date: - - Tue, 24 Dec 2024 08:52:25 GMT + - Wed, 29 Jan 2025 14:48:19 GMT Server: - - Scaleway API Gateway (fr-par-2;edge03) + - Scaleway API Gateway (fr-par-1;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1853,7 +1965,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 9212599d-4750-433e-9d8f-d1653fd1face + - 36785f60-758f-41c3-9d5e-8ca2a6e5f0dd status: 200 OK code: 200 duration: "" @@ -1863,7 +1975,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.4; darwin; arm64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/volumes/00f51d19-8562-4180-964c-186fb2593305 + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/volumes/b95db574-2f26-479c-a33c-71d22f225588 method: DELETE response: body: "" @@ -1873,9 +1985,9 @@ interactions: Content-Type: - application/json Date: - - Tue, 24 Dec 2024 08:52:25 GMT + - Wed, 29 Jan 2025 14:48:20 GMT Server: - - Scaleway API Gateway (fr-par-2;edge03) + - Scaleway API Gateway (fr-par-1;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1883,28 +1995,28 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 97207986-ae86-4564-af47-172be178c3b9 + - 0c71806f-fc58-4b58-bf32-7dd4ccee2760 status: 204 No Content code: 204 duration: "" - request: - body: '{"volume": {"id": "8cc847a0-100e-408f-a5cf-e49dac24cdcd", "name": "cli-test", - "volume_type": "b_ssd", "export_uri": null, "organization": "105bdce1-64c0-48ab-899d-868455867ecf", - "project": "105bdce1-64c0-48ab-899d-868455867ecf", "server": null, "size": 10000000000, - "state": "available", "creation_date": "2024-12-24T08:52:24.762684+00:00", "modification_date": - "2024-12-24T08:52:25.646601+00:00", "tags": [], "zone": "fr-par-1"}}' + body: '{"volume": {"id": "172816a0-81bf-4731-bf18-d882c284d4ee", "name": "cli-test", + "volume_type": "b_ssd", "export_uri": null, "organization": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", + "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "server": null, "size": 10000000000, + "state": "available", "creation_date": "2025-01-29T14:48:17.816075+00:00", "modification_date": + "2025-01-29T14:48:19.843485+00:00", "tags": [], "zone": "fr-par-1"}}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.4; darwin; arm64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/volumes/8cc847a0-100e-408f-a5cf-e49dac24cdcd + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/volumes/172816a0-81bf-4731-bf18-d882c284d4ee method: GET response: - body: '{"volume": {"id": "8cc847a0-100e-408f-a5cf-e49dac24cdcd", "name": "cli-test", - "volume_type": "b_ssd", "export_uri": null, "organization": "105bdce1-64c0-48ab-899d-868455867ecf", - "project": "105bdce1-64c0-48ab-899d-868455867ecf", "server": null, "size": 10000000000, - "state": "available", "creation_date": "2024-12-24T08:52:24.762684+00:00", "modification_date": - "2024-12-24T08:52:25.646601+00:00", "tags": [], "zone": "fr-par-1"}}' + body: '{"volume": {"id": "172816a0-81bf-4731-bf18-d882c284d4ee", "name": "cli-test", + "volume_type": "b_ssd", "export_uri": null, "organization": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", + "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "server": null, "size": 10000000000, + "state": "available", "creation_date": "2025-01-29T14:48:17.816075+00:00", "modification_date": + "2025-01-29T14:48:19.843485+00:00", "tags": [], "zone": "fr-par-1"}}' headers: Content-Length: - "430" @@ -1913,9 +2025,135 @@ interactions: Content-Type: - application/json Date: - - Tue, 24 Dec 2024 08:52:25 GMT + - Wed, 29 Jan 2025 14:48:19 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e78e50d2-4ee5-45a0-966c-b7fcc337c4f3 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.4; darwin; arm64) cli-e2e-test + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/volumes/172816a0-81bf-4731-bf18-d882c284d4ee + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 29 Jan 2025 14:48:20 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 364ffc9f-3ed7-4308-ba4c-58390d28a7a5 + status: 204 No Content + code: 204 + duration: "" +- request: + body: '{"id":"97702648-99c5-4356-9de8-f4342e29171b","name":"Test_ServerUpdateCustom/Volumes/valid_simple_block_volume","type":"sbs_5k","size":10000000000,"project_id":"ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b","created_at":"2025-01-29T14:48:17.983729Z","updated_at":"2025-01-29T14:48:19.131613Z","references":[{"id":"8ee79217-8587-4127-b5cf-770721968f08","product_resource_type":"instance_server","product_resource_id":"29d93ae9-3437-4840-87e3-5c3ea9bf904f","created_at":"2025-01-29T14:48:19.131613Z","type":"exclusive","status":"error"}],"parent_snapshot_id":null,"status":"in_use","tags":[],"specs":{"perf_iops":5000,"class":"sbs"},"last_detached_at":null,"zone":"fr-par-1"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.4; darwin; arm64) cli-e2e-test + url: https://api.scaleway.com/block/v1alpha1/zones/fr-par-1/volumes/97702648-99c5-4356-9de8-f4342e29171b + method: GET + response: + body: '{"id":"97702648-99c5-4356-9de8-f4342e29171b","name":"Test_ServerUpdateCustom/Volumes/valid_simple_block_volume","type":"sbs_5k","size":10000000000,"project_id":"ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b","created_at":"2025-01-29T14:48:17.983729Z","updated_at":"2025-01-29T14:48:19.131613Z","references":[{"id":"8ee79217-8587-4127-b5cf-770721968f08","product_resource_type":"instance_server","product_resource_id":"29d93ae9-3437-4840-87e3-5c3ea9bf904f","created_at":"2025-01-29T14:48:19.131613Z","type":"exclusive","status":"error"}],"parent_snapshot_id":null,"status":"in_use","tags":[],"specs":{"perf_iops":5000,"class":"sbs"},"last_detached_at":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 29 Jan 2025 14:48:20 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ca00cbf2-c79c-4e8f-937e-ad19aeaa8bc2 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"97702648-99c5-4356-9de8-f4342e29171b","name":"Test_ServerUpdateCustom/Volumes/valid_simple_block_volume","type":"sbs_5k","size":10000000000,"project_id":"ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b","created_at":"2025-01-29T14:48:17.983729Z","updated_at":"2025-01-29T14:48:19.131613Z","references":[{"id":"8ee79217-8587-4127-b5cf-770721968f08","product_resource_type":"instance_server","product_resource_id":"29d93ae9-3437-4840-87e3-5c3ea9bf904f","created_at":"2025-01-29T14:48:19.131613Z","type":"exclusive","status":"error"}],"parent_snapshot_id":null,"status":"in_use","tags":[],"specs":{"perf_iops":5000,"class":"sbs"},"last_detached_at":null,"zone":"fr-par-1"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.4; darwin; arm64) cli-e2e-test + url: https://api.scaleway.com/block/v1alpha1/zones/fr-par-1/volumes/97702648-99c5-4356-9de8-f4342e29171b + method: GET + response: + body: '{"id":"97702648-99c5-4356-9de8-f4342e29171b","name":"Test_ServerUpdateCustom/Volumes/valid_simple_block_volume","type":"sbs_5k","size":10000000000,"project_id":"ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b","created_at":"2025-01-29T14:48:17.983729Z","updated_at":"2025-01-29T14:48:19.131613Z","references":[{"id":"8ee79217-8587-4127-b5cf-770721968f08","product_resource_type":"instance_server","product_resource_id":"29d93ae9-3437-4840-87e3-5c3ea9bf904f","created_at":"2025-01-29T14:48:19.131613Z","type":"exclusive","status":"error"}],"parent_snapshot_id":null,"status":"in_use","tags":[],"specs":{"perf_iops":5000,"class":"sbs"},"last_detached_at":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 29 Jan 2025 14:48:25 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1378c18c-4dd5-43eb-9eb5-0831d3b891a1 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"97702648-99c5-4356-9de8-f4342e29171b","name":"Test_ServerUpdateCustom/Volumes/valid_simple_block_volume","type":"sbs_5k","size":10000000000,"project_id":"ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b","created_at":"2025-01-29T14:48:17.983729Z","updated_at":"2025-01-29T14:48:26.258330Z","references":[],"parent_snapshot_id":null,"status":"available","tags":[],"specs":{"perf_iops":5000,"class":"sbs"},"last_detached_at":null,"zone":"fr-par-1"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.4; darwin; arm64) cli-e2e-test + url: https://api.scaleway.com/block/v1alpha1/zones/fr-par-1/volumes/97702648-99c5-4356-9de8-f4342e29171b + method: GET + response: + body: '{"id":"97702648-99c5-4356-9de8-f4342e29171b","name":"Test_ServerUpdateCustom/Volumes/valid_simple_block_volume","type":"sbs_5k","size":10000000000,"project_id":"ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b","created_at":"2025-01-29T14:48:17.983729Z","updated_at":"2025-01-29T14:48:26.258330Z","references":[],"parent_snapshot_id":null,"status":"available","tags":[],"specs":{"perf_iops":5000,"class":"sbs"},"last_detached_at":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "441" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 29 Jan 2025 14:48:30 GMT Server: - - Scaleway API Gateway (fr-par-2;edge03) + - Scaleway API Gateway (fr-par-1;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1923,7 +2161,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 2b873854-5b15-437e-94f2-a8f23b3c3f31 + - 9425500e-622f-4913-a39b-18466fecbc61 status: 200 OK code: 200 duration: "" @@ -1933,7 +2171,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.4; darwin; arm64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/volumes/8cc847a0-100e-408f-a5cf-e49dac24cdcd + url: https://api.scaleway.com/block/v1alpha1/zones/fr-par-1/volumes/97702648-99c5-4356-9de8-f4342e29171b method: DELETE response: body: "" @@ -1943,9 +2181,9 @@ interactions: Content-Type: - application/json Date: - - Tue, 24 Dec 2024 08:52:26 GMT + - Wed, 29 Jan 2025 14:48:30 GMT Server: - - Scaleway API Gateway (fr-par-2;edge03) + - Scaleway API Gateway (fr-par-1;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1953,7 +2191,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 3ae15e8e-47c2-4261-902d-c25c0bf63905 + - eb3a3cf9-cee2-4ea5-8978-3a076a766189 status: 204 No Content code: 204 duration: ""