diff --git a/internal/acctest/acctest.go b/internal/acctest/acctest.go index aa7a077889..63aa3b7c59 100644 --- a/internal/acctest/acctest.go +++ b/internal/acctest/acctest.go @@ -36,6 +36,7 @@ type TestTools struct { var foldersUsingVCRv4 = []string{ "instance", "k8s", + "marketplace", } func FolderUsesVCRv4(fullFolderPath string) bool { diff --git a/internal/services/marketplace/testdata/data-source-marketplace-image-basic.cassette.yaml b/internal/services/marketplace/testdata/data-source-marketplace-image-basic.cassette.yaml index 053d41a788..dc136e04e2 100644 --- a/internal/services/marketplace/testdata/data-source-marketplace-image-basic.cassette.yaml +++ b/internal/services/marketplace/testdata/data-source-marketplace-image-basic.cassette.yaml @@ -1,297 +1,158 @@ --- version: 2 interactions: - - id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 0 - transfer_encoding: [] - trailer: {} - host: api.scaleway.com - remote_addr: "" - request_uri: "" - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/marketplace/v2/local-images?image_label=ubuntu_focal&order_by=type_asc&type=instance_local&zone=fr-par-1 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 1300 - uncompressed: false - body: '{"local_images":[{"arch":"arm64","compatible_commercial_types":["AMP2-C1","AMP2-C2","AMP2-C4","AMP2-C8","AMP2-C12","AMP2-C24","AMP2-C48","AMP2-C60","COPARM1-2C-8G","COPARM1-4C-16G","COPARM1-8C-32G","COPARM1-16C-64G","COPARM1-32C-128G"],"id":"30430df7-c9ac-4f23-a915-e320e36e8713","label":"ubuntu_focal","type":"instance_local","zone":"fr-par-1"},{"arch":"x86_64","compatible_commercial_types":["DEV1-L","DEV1-M","DEV1-S","DEV1-XL","GP1-L","GP1-M","GP1-S","GP1-XL","GP1-XS","START1-L","START1-M","START1-S","START1-XS","VC1L","VC1M","VC1S","X64-120GB","X64-15GB","X64-30GB","X64-60GB","ENT1-XXS","ENT1-XS","ENT1-S","ENT1-M","ENT1-L","ENT1-XL","ENT1-2XL","PRO2-XXS","PRO2-XS","PRO2-S","PRO2-M","PRO2-L","STARDUST1-S","PLAY2-MICRO","PLAY2-NANO","PLAY2-PICO","POP2-2C-8G","POP2-4C-16G","POP2-8C-32G","POP2-16C-64G","POP2-32C-128G","POP2-64C-256G","POP2-HM-2C-16G","POP2-HM-4C-32G","POP2-HM-8C-64G","POP2-HM-16C-128G","POP2-HM-32C-256G","POP2-HM-64C-512G","POP2-HC-2C-4G","POP2-HC-4C-8G","POP2-HC-8C-16G","POP2-HC-16C-32G","POP2-HC-32C-64G","POP2-HC-64C-128G","POP2-HN-3","POP2-HN-5","POP2-HN-10"],"id":"c00ae53c-1e29-4087-a384-47f3c5c1cd84","label":"ubuntu_focal","type":"instance_local","zone":"fr-par-1"}],"total_count":2}' - headers: - Content-Length: - - "1300" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Wed, 26 Feb 2025 14:02:17 GMT - Server: - - Scaleway API Gateway (fr-par-2;edge01) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - bdb93371-f9fe-414c-aabd-5a91c5fdac7a - status: 200 OK - code: 200 - duration: 312.777667ms - - id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 0 - transfer_encoding: [] - trailer: {} - host: api.scaleway.com - remote_addr: "" - request_uri: "" - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/marketplace/v2/local-images?image_label=ubuntu_focal&order_by=type_asc&type=instance_local&zone=fr-par-1 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 1300 - uncompressed: false - body: '{"local_images":[{"arch":"arm64","compatible_commercial_types":["AMP2-C1","AMP2-C2","AMP2-C4","AMP2-C8","AMP2-C12","AMP2-C24","AMP2-C48","AMP2-C60","COPARM1-2C-8G","COPARM1-4C-16G","COPARM1-8C-32G","COPARM1-16C-64G","COPARM1-32C-128G"],"id":"30430df7-c9ac-4f23-a915-e320e36e8713","label":"ubuntu_focal","type":"instance_local","zone":"fr-par-1"},{"arch":"x86_64","compatible_commercial_types":["DEV1-L","DEV1-M","DEV1-S","DEV1-XL","GP1-L","GP1-M","GP1-S","GP1-XL","GP1-XS","START1-L","START1-M","START1-S","START1-XS","VC1L","VC1M","VC1S","X64-120GB","X64-15GB","X64-30GB","X64-60GB","ENT1-XXS","ENT1-XS","ENT1-S","ENT1-M","ENT1-L","ENT1-XL","ENT1-2XL","PRO2-XXS","PRO2-XS","PRO2-S","PRO2-M","PRO2-L","STARDUST1-S","PLAY2-MICRO","PLAY2-NANO","PLAY2-PICO","POP2-2C-8G","POP2-4C-16G","POP2-8C-32G","POP2-16C-64G","POP2-32C-128G","POP2-64C-256G","POP2-HM-2C-16G","POP2-HM-4C-32G","POP2-HM-8C-64G","POP2-HM-16C-128G","POP2-HM-32C-256G","POP2-HM-64C-512G","POP2-HC-2C-4G","POP2-HC-4C-8G","POP2-HC-8C-16G","POP2-HC-16C-32G","POP2-HC-32C-64G","POP2-HC-64C-128G","POP2-HN-3","POP2-HN-5","POP2-HN-10"],"id":"c00ae53c-1e29-4087-a384-47f3c5c1cd84","label":"ubuntu_focal","type":"instance_local","zone":"fr-par-1"}],"total_count":2}' - headers: - Content-Length: - - "1300" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Wed, 26 Feb 2025 14:02:17 GMT - Server: - - Scaleway API Gateway (fr-par-2;edge01) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 14d8888a-1d6d-48b2-9083-af89981fc380 - status: 200 OK - code: 200 - duration: 87.318791ms - - id: 2 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 0 - transfer_encoding: [] - trailer: {} - host: api.scaleway.com - remote_addr: "" - request_uri: "" - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/images/c00ae53c-1e29-4087-a384-47f3c5c1cd84 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 612 - uncompressed: false - body: '{"image":{"arch":"x86_64","creation_date":"2025-02-03T13:36:50.774356+00:00","default_bootscript":null,"extra_volumes":{},"from_server":"","id":"c00ae53c-1e29-4087-a384-47f3c5c1cd84","modification_date":"2025-02-03T13:36:50.774356+00:00","name":"Ubuntu 20.04 Focal Fossa","organization":"51b656e3-4865-41e8-adbc-0c45bdd780db","project":"51b656e3-4865-41e8-adbc-0c45bdd780db","public":true,"root_volume":{"id":"6644dfd6-0731-45cc-a581-62f561eff7bf","name":"Ubuntu 20.04 Focal Fossa","size":10000000000,"volume_type":"unified"},"state":"available","tags":[],"zone":"fr-par-1"}}' - headers: - Content-Length: - - "612" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Wed, 26 Feb 2025 14:02:17 GMT - Server: - - Scaleway API Gateway (fr-par-2;edge01) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - c0bb51b2-3f96-4080-924f-a460937a728d - status: 200 OK - code: 200 - duration: 52.284167ms - - id: 3 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 0 - transfer_encoding: [] - trailer: {} - host: api.scaleway.com - remote_addr: "" - request_uri: "" - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/marketplace/v2/local-images?image_label=ubuntu_focal&order_by=type_asc&type=instance_local&zone=fr-par-1 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 1300 - uncompressed: false - body: '{"local_images":[{"arch":"arm64","compatible_commercial_types":["AMP2-C1","AMP2-C2","AMP2-C4","AMP2-C8","AMP2-C12","AMP2-C24","AMP2-C48","AMP2-C60","COPARM1-2C-8G","COPARM1-4C-16G","COPARM1-8C-32G","COPARM1-16C-64G","COPARM1-32C-128G"],"id":"30430df7-c9ac-4f23-a915-e320e36e8713","label":"ubuntu_focal","type":"instance_local","zone":"fr-par-1"},{"arch":"x86_64","compatible_commercial_types":["DEV1-L","DEV1-M","DEV1-S","DEV1-XL","GP1-L","GP1-M","GP1-S","GP1-XL","GP1-XS","START1-L","START1-M","START1-S","START1-XS","VC1L","VC1M","VC1S","X64-120GB","X64-15GB","X64-30GB","X64-60GB","ENT1-XXS","ENT1-XS","ENT1-S","ENT1-M","ENT1-L","ENT1-XL","ENT1-2XL","PRO2-XXS","PRO2-XS","PRO2-S","PRO2-M","PRO2-L","STARDUST1-S","PLAY2-MICRO","PLAY2-NANO","PLAY2-PICO","POP2-2C-8G","POP2-4C-16G","POP2-8C-32G","POP2-16C-64G","POP2-32C-128G","POP2-64C-256G","POP2-HM-2C-16G","POP2-HM-4C-32G","POP2-HM-8C-64G","POP2-HM-16C-128G","POP2-HM-32C-256G","POP2-HM-64C-512G","POP2-HC-2C-4G","POP2-HC-4C-8G","POP2-HC-8C-16G","POP2-HC-16C-32G","POP2-HC-32C-64G","POP2-HC-64C-128G","POP2-HN-3","POP2-HN-5","POP2-HN-10"],"id":"c00ae53c-1e29-4087-a384-47f3c5c1cd84","label":"ubuntu_focal","type":"instance_local","zone":"fr-par-1"}],"total_count":2}' - headers: - Content-Length: - - "1300" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Wed, 26 Feb 2025 14:02:17 GMT - Server: - - Scaleway API Gateway (fr-par-2;edge01) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 7084eeae-845d-42cd-878d-9506697a0baa - status: 200 OK - code: 200 - duration: 77.959792ms - - id: 4 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 0 - transfer_encoding: [] - trailer: {} - host: api.scaleway.com - remote_addr: "" - request_uri: "" - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/marketplace/v2/local-images?image_label=ubuntu_focal&order_by=type_asc&type=instance_local&zone=fr-par-1 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 1300 - uncompressed: false - body: '{"local_images":[{"arch":"arm64","compatible_commercial_types":["AMP2-C1","AMP2-C2","AMP2-C4","AMP2-C8","AMP2-C12","AMP2-C24","AMP2-C48","AMP2-C60","COPARM1-2C-8G","COPARM1-4C-16G","COPARM1-8C-32G","COPARM1-16C-64G","COPARM1-32C-128G"],"id":"30430df7-c9ac-4f23-a915-e320e36e8713","label":"ubuntu_focal","type":"instance_local","zone":"fr-par-1"},{"arch":"x86_64","compatible_commercial_types":["DEV1-L","DEV1-M","DEV1-S","DEV1-XL","GP1-L","GP1-M","GP1-S","GP1-XL","GP1-XS","START1-L","START1-M","START1-S","START1-XS","VC1L","VC1M","VC1S","X64-120GB","X64-15GB","X64-30GB","X64-60GB","ENT1-XXS","ENT1-XS","ENT1-S","ENT1-M","ENT1-L","ENT1-XL","ENT1-2XL","PRO2-XXS","PRO2-XS","PRO2-S","PRO2-M","PRO2-L","STARDUST1-S","PLAY2-MICRO","PLAY2-NANO","PLAY2-PICO","POP2-2C-8G","POP2-4C-16G","POP2-8C-32G","POP2-16C-64G","POP2-32C-128G","POP2-64C-256G","POP2-HM-2C-16G","POP2-HM-4C-32G","POP2-HM-8C-64G","POP2-HM-16C-128G","POP2-HM-32C-256G","POP2-HM-64C-512G","POP2-HC-2C-4G","POP2-HC-4C-8G","POP2-HC-8C-16G","POP2-HC-16C-32G","POP2-HC-32C-64G","POP2-HC-64C-128G","POP2-HN-3","POP2-HN-5","POP2-HN-10"],"id":"c00ae53c-1e29-4087-a384-47f3c5c1cd84","label":"ubuntu_focal","type":"instance_local","zone":"fr-par-1"}],"total_count":2}' - headers: - Content-Length: - - "1300" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Wed, 26 Feb 2025 14:02:18 GMT - Server: - - Scaleway API Gateway (fr-par-2;edge01) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - fdef3d19-a996-442b-af46-a05385b4587c - status: 200 OK - code: 200 - duration: 87.23525ms - - id: 5 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 0 - transfer_encoding: [] - trailer: {} - host: api.scaleway.com - remote_addr: "" - request_uri: "" - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/marketplace/v2/local-images?image_label=ubuntu_focal&order_by=type_asc&type=instance_local&zone=fr-par-1 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 1300 - uncompressed: false - body: '{"local_images":[{"arch":"arm64","compatible_commercial_types":["AMP2-C1","AMP2-C2","AMP2-C4","AMP2-C8","AMP2-C12","AMP2-C24","AMP2-C48","AMP2-C60","COPARM1-2C-8G","COPARM1-4C-16G","COPARM1-8C-32G","COPARM1-16C-64G","COPARM1-32C-128G"],"id":"30430df7-c9ac-4f23-a915-e320e36e8713","label":"ubuntu_focal","type":"instance_local","zone":"fr-par-1"},{"arch":"x86_64","compatible_commercial_types":["DEV1-L","DEV1-M","DEV1-S","DEV1-XL","GP1-L","GP1-M","GP1-S","GP1-XL","GP1-XS","START1-L","START1-M","START1-S","START1-XS","VC1L","VC1M","VC1S","X64-120GB","X64-15GB","X64-30GB","X64-60GB","ENT1-XXS","ENT1-XS","ENT1-S","ENT1-M","ENT1-L","ENT1-XL","ENT1-2XL","PRO2-XXS","PRO2-XS","PRO2-S","PRO2-M","PRO2-L","STARDUST1-S","PLAY2-MICRO","PLAY2-NANO","PLAY2-PICO","POP2-2C-8G","POP2-4C-16G","POP2-8C-32G","POP2-16C-64G","POP2-32C-128G","POP2-64C-256G","POP2-HM-2C-16G","POP2-HM-4C-32G","POP2-HM-8C-64G","POP2-HM-16C-128G","POP2-HM-32C-256G","POP2-HM-64C-512G","POP2-HC-2C-4G","POP2-HC-4C-8G","POP2-HC-8C-16G","POP2-HC-16C-32G","POP2-HC-32C-64G","POP2-HC-64C-128G","POP2-HN-3","POP2-HN-5","POP2-HN-10"],"id":"c00ae53c-1e29-4087-a384-47f3c5c1cd84","label":"ubuntu_focal","type":"instance_local","zone":"fr-par-1"}],"total_count":2}' - headers: - Content-Length: - - "1300" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Wed, 26 Feb 2025 14:02:18 GMT - Server: - - Scaleway API Gateway (fr-par-2;edge01) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - ce9cf35c-25fa-4734-8c6e-b12b1185c89a - status: 200 OK - code: 200 - duration: 96.327792ms +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + host: api.scaleway.com + form: + image_label: + - ubuntu_focal + order_by: + - type_asc + type: + - instance_local + zone: + - fr-par-1 + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.1; linux; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/marketplace/v2/local-images?image_label=ubuntu_focal&order_by=type_asc&type=instance_local&zone=fr-par-1 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: 423 + body: "{\"local_images\":[{\"id\":\"a02f91b9-de8a-4bd5-8f95-d79cb7d39806\", \"arch\":\"x86_64\", \"zone\":\"fr-par-1\", \"compatible_commercial_types\":[\"DEV1-L\", \"DEV1-M\", \"DEV1-S\", \"DEV1-XL\", \"GP1-L\", \"GP1-M\", \"GP1-S\", \"GP1-XL\", \"GP1-XS\", \"STARDUST1-S\", \"START1-L\", \"START1-M\", \"START1-S\", \"START1-XS\", \"VC1L\", \"VC1M\", \"VC1S\", \"X64-120GB\", \"X64-15GB\", \"X64-30GB\", \"X64-60GB\"], \"label\":\"ubuntu_focal\", \"type\":\"instance_local\"}], \"total_count\":1}" + headers: + Content-Length: + - "423" + Content-Type: + - application/json + Date: + - Fri, 31 Oct 2025 15:53:48 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge01) + X-Request-Id: + - 85a91ad3-9b05-40e8-8a0e-0ee65a9dace6 + status: 200 OK + code: 200 + duration: 142.757311ms +- id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + host: api.scaleway.com + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.1; linux; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/images/a02f91b9-de8a-4bd5-8f95-d79cb7d39806 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: 610 + body: "{\"image\": {\"id\": \"a02f91b9-de8a-4bd5-8f95-d79cb7d39806\", \"name\": \"Ubuntu 20.04 Focal Fossa\", \"organization\": \"51b656e3-4865-41e8-adbc-0c45bdd780db\", \"project\": \"51b656e3-4865-41e8-adbc-0c45bdd780db\", \"root_volume\": {\"id\": \"e4e93065-045d-4e87-a627-068300e27a10\", \"name\": \"Ubuntu 20.04 Focal Fossa\", \"volume_type\": \"l_ssd\", \"size\": 10000000000}, \"extra_volumes\": {}, \"public\": true, \"arch\": \"x86_64\", \"creation_date\": \"2025-09-12T09:19:27.841572+00:00\", \"modification_date\": \"2025-09-12T09:19:27.841572+00:00\", \"default_bootscript\": null, \"from_server\": \"\", \"state\": \"available\", \"tags\": [], \"zone\": \"fr-par-1\"}}" + headers: + Content-Length: + - "610" + Content-Type: + - application/json + Date: + - Fri, 31 Oct 2025 15:53:48 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge01) + X-Request-Id: + - 763ba66c-5af9-472c-9faa-07dd2e9506a9 + status: 200 OK + code: 200 + duration: 40.224659ms +- id: 2 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + host: api.scaleway.com + form: + image_label: + - ubuntu_focal + order_by: + - type_asc + type: + - instance_local + zone: + - fr-par-1 + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.1; linux; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/marketplace/v2/local-images?image_label=ubuntu_focal&order_by=type_asc&type=instance_local&zone=fr-par-1 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: 423 + body: "{\"local_images\":[{\"id\":\"a02f91b9-de8a-4bd5-8f95-d79cb7d39806\", \"arch\":\"x86_64\", \"zone\":\"fr-par-1\", \"compatible_commercial_types\":[\"DEV1-L\", \"DEV1-M\", \"DEV1-S\", \"DEV1-XL\", \"GP1-L\", \"GP1-M\", \"GP1-S\", \"GP1-XL\", \"GP1-XS\", \"STARDUST1-S\", \"START1-L\", \"START1-M\", \"START1-S\", \"START1-XS\", \"VC1L\", \"VC1M\", \"VC1S\", \"X64-120GB\", \"X64-15GB\", \"X64-30GB\", \"X64-60GB\"], \"label\":\"ubuntu_focal\", \"type\":\"instance_local\"}], \"total_count\":1}" + headers: + Content-Length: + - "423" + Content-Type: + - application/json + Date: + - Fri, 31 Oct 2025 15:53:49 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge01) + X-Request-Id: + - 98c34025-5502-49d2-9c0a-f9d734e28e0d + status: 200 OK + code: 200 + duration: 58.139606ms +- id: 3 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + host: api.scaleway.com + form: + image_label: + - ubuntu_focal + order_by: + - type_asc + type: + - instance_local + zone: + - fr-par-1 + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.1; linux; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/marketplace/v2/local-images?image_label=ubuntu_focal&order_by=type_asc&type=instance_local&zone=fr-par-1 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: 423 + body: "{\"local_images\":[{\"id\":\"a02f91b9-de8a-4bd5-8f95-d79cb7d39806\", \"arch\":\"x86_64\", \"zone\":\"fr-par-1\", \"compatible_commercial_types\":[\"DEV1-L\", \"DEV1-M\", \"DEV1-S\", \"DEV1-XL\", \"GP1-L\", \"GP1-M\", \"GP1-S\", \"GP1-XL\", \"GP1-XS\", \"STARDUST1-S\", \"START1-L\", \"START1-M\", \"START1-S\", \"START1-XS\", \"VC1L\", \"VC1M\", \"VC1S\", \"X64-120GB\", \"X64-15GB\", \"X64-30GB\", \"X64-60GB\"], \"label\":\"ubuntu_focal\", \"type\":\"instance_local\"}], \"total_count\":1}" + headers: + Content-Length: + - "423" + Content-Type: + - application/json + Date: + - Fri, 31 Oct 2025 15:53:49 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge01) + X-Request-Id: + - d4154524-6164-46a8-8cee-c287facf3f4a + status: 200 OK + code: 200 + duration: 48.629622ms diff --git a/internal/services/marketplace/testdata/data-source-marketplace-image-sbs.cassette.yaml b/internal/services/marketplace/testdata/data-source-marketplace-image-sbs.cassette.yaml index b70cdf79c8..b3cd6c9f78 100644 --- a/internal/services/marketplace/testdata/data-source-marketplace-image-sbs.cassette.yaml +++ b/internal/services/marketplace/testdata/data-source-marketplace-image-sbs.cassette.yaml @@ -1,297 +1,158 @@ --- version: 2 interactions: - - id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 0 - transfer_encoding: [] - trailer: {} - host: api.scaleway.com - remote_addr: "" - request_uri: "" - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/marketplace/v2/local-images?image_label=ubuntu_focal&order_by=type_asc&type=instance_sbs&zone=fr-par-1 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 1296 - uncompressed: false - body: '{"local_images":[{"arch":"x86_64","compatible_commercial_types":["DEV1-L","DEV1-M","DEV1-S","DEV1-XL","GP1-L","GP1-M","GP1-S","GP1-XL","GP1-XS","START1-L","START1-M","START1-S","START1-XS","VC1L","VC1M","VC1S","X64-120GB","X64-15GB","X64-30GB","X64-60GB","ENT1-XXS","ENT1-XS","ENT1-S","ENT1-M","ENT1-L","ENT1-XL","ENT1-2XL","PRO2-XXS","PRO2-XS","PRO2-S","PRO2-M","PRO2-L","STARDUST1-S","PLAY2-MICRO","PLAY2-NANO","PLAY2-PICO","POP2-2C-8G","POP2-4C-16G","POP2-8C-32G","POP2-16C-64G","POP2-32C-128G","POP2-64C-256G","POP2-HM-2C-16G","POP2-HM-4C-32G","POP2-HM-8C-64G","POP2-HM-16C-128G","POP2-HM-32C-256G","POP2-HM-64C-512G","POP2-HC-2C-4G","POP2-HC-4C-8G","POP2-HC-8C-16G","POP2-HC-16C-32G","POP2-HC-32C-64G","POP2-HC-64C-128G","POP2-HN-3","POP2-HN-5","POP2-HN-10"],"id":"2dd98c87-6ea2-49d9-8420-feafa534e478","label":"ubuntu_focal","type":"instance_sbs","zone":"fr-par-1"},{"arch":"arm64","compatible_commercial_types":["AMP2-C1","AMP2-C2","AMP2-C4","AMP2-C8","AMP2-C12","AMP2-C24","AMP2-C48","AMP2-C60","COPARM1-2C-8G","COPARM1-4C-16G","COPARM1-8C-32G","COPARM1-16C-64G","COPARM1-32C-128G"],"id":"db71f917-bb74-4ccf-bf62-d5f1ce23a2a6","label":"ubuntu_focal","type":"instance_sbs","zone":"fr-par-1"}],"total_count":2}' - headers: - Content-Length: - - "1296" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Wed, 26 Feb 2025 14:02:17 GMT - Server: - - Scaleway API Gateway (fr-par-2;edge01) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 7acf6923-ef42-496f-aa7a-53a505639c25 - status: 200 OK - code: 200 - duration: 311.796416ms - - id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 0 - transfer_encoding: [] - trailer: {} - host: api.scaleway.com - remote_addr: "" - request_uri: "" - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/marketplace/v2/local-images?image_label=ubuntu_focal&order_by=type_asc&type=instance_sbs&zone=fr-par-1 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 1296 - uncompressed: false - body: '{"local_images":[{"arch":"x86_64","compatible_commercial_types":["DEV1-L","DEV1-M","DEV1-S","DEV1-XL","GP1-L","GP1-M","GP1-S","GP1-XL","GP1-XS","START1-L","START1-M","START1-S","START1-XS","VC1L","VC1M","VC1S","X64-120GB","X64-15GB","X64-30GB","X64-60GB","ENT1-XXS","ENT1-XS","ENT1-S","ENT1-M","ENT1-L","ENT1-XL","ENT1-2XL","PRO2-XXS","PRO2-XS","PRO2-S","PRO2-M","PRO2-L","STARDUST1-S","PLAY2-MICRO","PLAY2-NANO","PLAY2-PICO","POP2-2C-8G","POP2-4C-16G","POP2-8C-32G","POP2-16C-64G","POP2-32C-128G","POP2-64C-256G","POP2-HM-2C-16G","POP2-HM-4C-32G","POP2-HM-8C-64G","POP2-HM-16C-128G","POP2-HM-32C-256G","POP2-HM-64C-512G","POP2-HC-2C-4G","POP2-HC-4C-8G","POP2-HC-8C-16G","POP2-HC-16C-32G","POP2-HC-32C-64G","POP2-HC-64C-128G","POP2-HN-3","POP2-HN-5","POP2-HN-10"],"id":"2dd98c87-6ea2-49d9-8420-feafa534e478","label":"ubuntu_focal","type":"instance_sbs","zone":"fr-par-1"},{"arch":"arm64","compatible_commercial_types":["AMP2-C1","AMP2-C2","AMP2-C4","AMP2-C8","AMP2-C12","AMP2-C24","AMP2-C48","AMP2-C60","COPARM1-2C-8G","COPARM1-4C-16G","COPARM1-8C-32G","COPARM1-16C-64G","COPARM1-32C-128G"],"id":"db71f917-bb74-4ccf-bf62-d5f1ce23a2a6","label":"ubuntu_focal","type":"instance_sbs","zone":"fr-par-1"}],"total_count":2}' - headers: - Content-Length: - - "1296" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Wed, 26 Feb 2025 14:02:17 GMT - Server: - - Scaleway API Gateway (fr-par-2;edge01) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - cdb7c734-f86b-462a-884c-953db0e96d21 - status: 200 OK - code: 200 - duration: 102.920125ms - - id: 2 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 0 - transfer_encoding: [] - trailer: {} - host: api.scaleway.com - remote_addr: "" - request_uri: "" - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/images/2dd98c87-6ea2-49d9-8420-feafa534e478 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 583 - uncompressed: false - body: '{"image":{"arch":"x86_64","creation_date":"2025-02-03T13:36:07.796413+00:00","default_bootscript":null,"extra_volumes":{},"from_server":"","id":"2dd98c87-6ea2-49d9-8420-feafa534e478","modification_date":"2025-02-03T13:36:07.796413+00:00","name":"Ubuntu 20.04 Focal Fossa","organization":"51b656e3-4865-41e8-adbc-0c45bdd780db","project":"51b656e3-4865-41e8-adbc-0c45bdd780db","public":true,"root_volume":{"id":"b4d54bf7-1656-46c2-84b8-5dd238cfd444","name":"","size":0,"volume_type":"sbs_snapshot"},"state":"available","tags":[],"zone":"fr-par-1"}}' - headers: - Content-Length: - - "583" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Wed, 26 Feb 2025 14:02:17 GMT - Server: - - Scaleway API Gateway (fr-par-2;edge01) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - cb0ffdc8-d92f-4631-862d-57f7ee1e0a7a - status: 200 OK - code: 200 - duration: 55.170625ms - - id: 3 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 0 - transfer_encoding: [] - trailer: {} - host: api.scaleway.com - remote_addr: "" - request_uri: "" - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/marketplace/v2/local-images?image_label=ubuntu_focal&order_by=type_asc&type=instance_sbs&zone=fr-par-1 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 1296 - uncompressed: false - body: '{"local_images":[{"arch":"x86_64","compatible_commercial_types":["DEV1-L","DEV1-M","DEV1-S","DEV1-XL","GP1-L","GP1-M","GP1-S","GP1-XL","GP1-XS","START1-L","START1-M","START1-S","START1-XS","VC1L","VC1M","VC1S","X64-120GB","X64-15GB","X64-30GB","X64-60GB","ENT1-XXS","ENT1-XS","ENT1-S","ENT1-M","ENT1-L","ENT1-XL","ENT1-2XL","PRO2-XXS","PRO2-XS","PRO2-S","PRO2-M","PRO2-L","STARDUST1-S","PLAY2-MICRO","PLAY2-NANO","PLAY2-PICO","POP2-2C-8G","POP2-4C-16G","POP2-8C-32G","POP2-16C-64G","POP2-32C-128G","POP2-64C-256G","POP2-HM-2C-16G","POP2-HM-4C-32G","POP2-HM-8C-64G","POP2-HM-16C-128G","POP2-HM-32C-256G","POP2-HM-64C-512G","POP2-HC-2C-4G","POP2-HC-4C-8G","POP2-HC-8C-16G","POP2-HC-16C-32G","POP2-HC-32C-64G","POP2-HC-64C-128G","POP2-HN-3","POP2-HN-5","POP2-HN-10"],"id":"2dd98c87-6ea2-49d9-8420-feafa534e478","label":"ubuntu_focal","type":"instance_sbs","zone":"fr-par-1"},{"arch":"arm64","compatible_commercial_types":["AMP2-C1","AMP2-C2","AMP2-C4","AMP2-C8","AMP2-C12","AMP2-C24","AMP2-C48","AMP2-C60","COPARM1-2C-8G","COPARM1-4C-16G","COPARM1-8C-32G","COPARM1-16C-64G","COPARM1-32C-128G"],"id":"db71f917-bb74-4ccf-bf62-d5f1ce23a2a6","label":"ubuntu_focal","type":"instance_sbs","zone":"fr-par-1"}],"total_count":2}' - headers: - Content-Length: - - "1296" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Wed, 26 Feb 2025 14:02:17 GMT - Server: - - Scaleway API Gateway (fr-par-2;edge01) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 0a3a93e2-9d2a-4011-950e-629212205f2b - status: 200 OK - code: 200 - duration: 108.91575ms - - id: 4 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 0 - transfer_encoding: [] - trailer: {} - host: api.scaleway.com - remote_addr: "" - request_uri: "" - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/marketplace/v2/local-images?image_label=ubuntu_focal&order_by=type_asc&type=instance_sbs&zone=fr-par-1 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 1296 - uncompressed: false - body: '{"local_images":[{"arch":"x86_64","compatible_commercial_types":["DEV1-L","DEV1-M","DEV1-S","DEV1-XL","GP1-L","GP1-M","GP1-S","GP1-XL","GP1-XS","START1-L","START1-M","START1-S","START1-XS","VC1L","VC1M","VC1S","X64-120GB","X64-15GB","X64-30GB","X64-60GB","ENT1-XXS","ENT1-XS","ENT1-S","ENT1-M","ENT1-L","ENT1-XL","ENT1-2XL","PRO2-XXS","PRO2-XS","PRO2-S","PRO2-M","PRO2-L","STARDUST1-S","PLAY2-MICRO","PLAY2-NANO","PLAY2-PICO","POP2-2C-8G","POP2-4C-16G","POP2-8C-32G","POP2-16C-64G","POP2-32C-128G","POP2-64C-256G","POP2-HM-2C-16G","POP2-HM-4C-32G","POP2-HM-8C-64G","POP2-HM-16C-128G","POP2-HM-32C-256G","POP2-HM-64C-512G","POP2-HC-2C-4G","POP2-HC-4C-8G","POP2-HC-8C-16G","POP2-HC-16C-32G","POP2-HC-32C-64G","POP2-HC-64C-128G","POP2-HN-3","POP2-HN-5","POP2-HN-10"],"id":"2dd98c87-6ea2-49d9-8420-feafa534e478","label":"ubuntu_focal","type":"instance_sbs","zone":"fr-par-1"},{"arch":"arm64","compatible_commercial_types":["AMP2-C1","AMP2-C2","AMP2-C4","AMP2-C8","AMP2-C12","AMP2-C24","AMP2-C48","AMP2-C60","COPARM1-2C-8G","COPARM1-4C-16G","COPARM1-8C-32G","COPARM1-16C-64G","COPARM1-32C-128G"],"id":"db71f917-bb74-4ccf-bf62-d5f1ce23a2a6","label":"ubuntu_focal","type":"instance_sbs","zone":"fr-par-1"}],"total_count":2}' - headers: - Content-Length: - - "1296" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Wed, 26 Feb 2025 14:02:18 GMT - Server: - - Scaleway API Gateway (fr-par-2;edge01) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 6a64b546-3cb1-4c8f-9a97-7dc05a2b88a1 - status: 200 OK - code: 200 - duration: 94.238375ms - - id: 5 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 0 - transfer_encoding: [] - trailer: {} - host: api.scaleway.com - remote_addr: "" - request_uri: "" - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/marketplace/v2/local-images?image_label=ubuntu_focal&order_by=type_asc&type=instance_sbs&zone=fr-par-1 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 1296 - uncompressed: false - body: '{"local_images":[{"arch":"x86_64","compatible_commercial_types":["DEV1-L","DEV1-M","DEV1-S","DEV1-XL","GP1-L","GP1-M","GP1-S","GP1-XL","GP1-XS","START1-L","START1-M","START1-S","START1-XS","VC1L","VC1M","VC1S","X64-120GB","X64-15GB","X64-30GB","X64-60GB","ENT1-XXS","ENT1-XS","ENT1-S","ENT1-M","ENT1-L","ENT1-XL","ENT1-2XL","PRO2-XXS","PRO2-XS","PRO2-S","PRO2-M","PRO2-L","STARDUST1-S","PLAY2-MICRO","PLAY2-NANO","PLAY2-PICO","POP2-2C-8G","POP2-4C-16G","POP2-8C-32G","POP2-16C-64G","POP2-32C-128G","POP2-64C-256G","POP2-HM-2C-16G","POP2-HM-4C-32G","POP2-HM-8C-64G","POP2-HM-16C-128G","POP2-HM-32C-256G","POP2-HM-64C-512G","POP2-HC-2C-4G","POP2-HC-4C-8G","POP2-HC-8C-16G","POP2-HC-16C-32G","POP2-HC-32C-64G","POP2-HC-64C-128G","POP2-HN-3","POP2-HN-5","POP2-HN-10"],"id":"2dd98c87-6ea2-49d9-8420-feafa534e478","label":"ubuntu_focal","type":"instance_sbs","zone":"fr-par-1"},{"arch":"arm64","compatible_commercial_types":["AMP2-C1","AMP2-C2","AMP2-C4","AMP2-C8","AMP2-C12","AMP2-C24","AMP2-C48","AMP2-C60","COPARM1-2C-8G","COPARM1-4C-16G","COPARM1-8C-32G","COPARM1-16C-64G","COPARM1-32C-128G"],"id":"db71f917-bb74-4ccf-bf62-d5f1ce23a2a6","label":"ubuntu_focal","type":"instance_sbs","zone":"fr-par-1"}],"total_count":2}' - headers: - Content-Length: - - "1296" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Wed, 26 Feb 2025 14:02:18 GMT - Server: - - Scaleway API Gateway (fr-par-2;edge01) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - ec33f3b0-4879-481b-8ec7-ae56797236f3 - status: 200 OK - code: 200 - duration: 77.332083ms +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + host: api.scaleway.com + form: + image_label: + - ubuntu_focal + order_by: + - type_asc + type: + - instance_sbs + zone: + - fr-par-1 + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.1; linux; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/marketplace/v2/local-images?image_label=ubuntu_focal&order_by=type_asc&type=instance_sbs&zone=fr-par-1 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: 1403 + body: "{\"local_images\":[{\"id\":\"231ea125-6f18-45dd-8226-d7f190b5af80\", \"arch\":\"arm64\", \"zone\":\"fr-par-1\", \"compatible_commercial_types\":[\"COPARM1-2C-8G\", \"COPARM1-4C-16G\", \"COPARM1-8C-32G\", \"COPARM1-16C-64G\", \"COPARM1-32C-128G\", \"BASIC2-A2C-4G\", \"BASIC2-A2C-8G\", \"BASIC2-A4C-8G\", \"BASIC2-A4C-16G\", \"BASIC2-A8C-16G\", \"BASIC2-A8C-32G\", \"BASIC2-A16C-32G\", \"BASIC2-A16C-64G\"], \"label\":\"ubuntu_focal\", \"type\":\"instance_sbs\"}, {\"id\":\"8ac1fe52-01dc-4dc1-8578-73ec5d126648\", \"arch\":\"x86_64\", \"zone\":\"fr-par-1\", \"compatible_commercial_types\":[\"DEV1-L\", \"DEV1-M\", \"DEV1-S\", \"DEV1-XL\", \"GP1-L\", \"GP1-M\", \"GP1-S\", \"GP1-XL\", \"GP1-XS\", \"START1-L\", \"START1-M\", \"START1-S\", \"START1-XS\", \"VC1L\", \"VC1M\", \"VC1S\", \"X64-120GB\", \"X64-15GB\", \"X64-30GB\", \"X64-60GB\", \"ENT1-XXS\", \"ENT1-XS\", \"ENT1-S\", \"ENT1-M\", \"ENT1-L\", \"ENT1-XL\", \"ENT1-2XL\", \"PRO2-XXS\", \"PRO2-XS\", \"PRO2-S\", \"PRO2-M\", \"PRO2-L\", \"STARDUST1-S\", \"PLAY2-MICRO\", \"PLAY2-NANO\", \"PLAY2-PICO\", \"POP2-2C-8G\", \"POP2-4C-16G\", \"POP2-8C-32G\", \"POP2-16C-64G\", \"POP2-32C-128G\", \"POP2-48C-192G\", \"POP2-64C-256G\", \"POP2-HM-2C-16G\", \"POP2-HM-4C-32G\", \"POP2-HM-8C-64G\", \"POP2-HM-16C-128G\", \"POP2-HM-32C-256G\", \"POP2-HM-48C-384G\", \"POP2-HM-64C-512G\", \"POP2-HC-2C-4G\", \"POP2-HC-4C-8G\", \"POP2-HC-8C-16G\", \"POP2-HC-16C-32G\", \"POP2-HC-32C-64G\", \"POP2-HC-48C-96G\", \"POP2-HC-64C-128G\", \"POP2-HN-3\", \"POP2-HN-5\", \"POP2-HN-10\"], \"label\":\"ubuntu_focal\", \"type\":\"instance_sbs\"}], \"total_count\":2}" + headers: + Content-Length: + - "1403" + Content-Type: + - application/json + Date: + - Fri, 31 Oct 2025 15:53:48 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge01) + X-Request-Id: + - a5794b4a-24bf-4349-8f10-370cbfa1bcd1 + status: 200 OK + code: 200 + duration: 90.416199ms +- id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + host: api.scaleway.com + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.1; linux; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/images/8ac1fe52-01dc-4dc1-8578-73ec5d126648 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: 583 + body: "{\"image\": {\"id\": \"8ac1fe52-01dc-4dc1-8578-73ec5d126648\", \"name\": \"Ubuntu 20.04 Focal Fossa\", \"organization\": \"51b656e3-4865-41e8-adbc-0c45bdd780db\", \"project\": \"51b656e3-4865-41e8-adbc-0c45bdd780db\", \"root_volume\": {\"volume_type\": \"sbs_snapshot\", \"id\": \"df785211-983d-4dbe-b7b7-ddcc1dfcfc60\", \"size\": 0, \"name\": \"\"}, \"extra_volumes\": {}, \"public\": true, \"arch\": \"x86_64\", \"creation_date\": \"2025-09-12T09:19:32.472362+00:00\", \"modification_date\": \"2025-09-12T09:19:32.472362+00:00\", \"default_bootscript\": null, \"from_server\": \"\", \"state\": \"available\", \"tags\": [], \"zone\": \"fr-par-1\"}}" + headers: + Content-Length: + - "583" + Content-Type: + - application/json + Date: + - Fri, 31 Oct 2025 15:53:48 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge01) + X-Request-Id: + - 9adcef4c-50ad-4941-b8df-8278e74f1542 + status: 200 OK + code: 200 + duration: 45.927914ms +- id: 2 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + host: api.scaleway.com + form: + image_label: + - ubuntu_focal + order_by: + - type_asc + type: + - instance_sbs + zone: + - fr-par-1 + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.1; linux; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/marketplace/v2/local-images?image_label=ubuntu_focal&order_by=type_asc&type=instance_sbs&zone=fr-par-1 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: 1403 + body: "{\"local_images\":[{\"id\":\"231ea125-6f18-45dd-8226-d7f190b5af80\", \"arch\":\"arm64\", \"zone\":\"fr-par-1\", \"compatible_commercial_types\":[\"COPARM1-2C-8G\", \"COPARM1-4C-16G\", \"COPARM1-8C-32G\", \"COPARM1-16C-64G\", \"COPARM1-32C-128G\", \"BASIC2-A2C-4G\", \"BASIC2-A2C-8G\", \"BASIC2-A4C-8G\", \"BASIC2-A4C-16G\", \"BASIC2-A8C-16G\", \"BASIC2-A8C-32G\", \"BASIC2-A16C-32G\", \"BASIC2-A16C-64G\"], \"label\":\"ubuntu_focal\", \"type\":\"instance_sbs\"}, {\"id\":\"8ac1fe52-01dc-4dc1-8578-73ec5d126648\", \"arch\":\"x86_64\", \"zone\":\"fr-par-1\", \"compatible_commercial_types\":[\"DEV1-L\", \"DEV1-M\", \"DEV1-S\", \"DEV1-XL\", \"GP1-L\", \"GP1-M\", \"GP1-S\", \"GP1-XL\", \"GP1-XS\", \"START1-L\", \"START1-M\", \"START1-S\", \"START1-XS\", \"VC1L\", \"VC1M\", \"VC1S\", \"X64-120GB\", \"X64-15GB\", \"X64-30GB\", \"X64-60GB\", \"ENT1-XXS\", \"ENT1-XS\", \"ENT1-S\", \"ENT1-M\", \"ENT1-L\", \"ENT1-XL\", \"ENT1-2XL\", \"PRO2-XXS\", \"PRO2-XS\", \"PRO2-S\", \"PRO2-M\", \"PRO2-L\", \"STARDUST1-S\", \"PLAY2-MICRO\", \"PLAY2-NANO\", \"PLAY2-PICO\", \"POP2-2C-8G\", \"POP2-4C-16G\", \"POP2-8C-32G\", \"POP2-16C-64G\", \"POP2-32C-128G\", \"POP2-48C-192G\", \"POP2-64C-256G\", \"POP2-HM-2C-16G\", \"POP2-HM-4C-32G\", \"POP2-HM-8C-64G\", \"POP2-HM-16C-128G\", \"POP2-HM-32C-256G\", \"POP2-HM-48C-384G\", \"POP2-HM-64C-512G\", \"POP2-HC-2C-4G\", \"POP2-HC-4C-8G\", \"POP2-HC-8C-16G\", \"POP2-HC-16C-32G\", \"POP2-HC-32C-64G\", \"POP2-HC-48C-96G\", \"POP2-HC-64C-128G\", \"POP2-HN-3\", \"POP2-HN-5\", \"POP2-HN-10\"], \"label\":\"ubuntu_focal\", \"type\":\"instance_sbs\"}], \"total_count\":2}" + headers: + Content-Length: + - "1403" + Content-Type: + - application/json + Date: + - Fri, 31 Oct 2025 15:53:49 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge01) + X-Request-Id: + - 82d1bb79-9db7-4361-8707-a2ccfe3cb739 + status: 200 OK + code: 200 + duration: 90.68307ms +- id: 3 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + host: api.scaleway.com + form: + image_label: + - ubuntu_focal + order_by: + - type_asc + type: + - instance_sbs + zone: + - fr-par-1 + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.1; linux; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/marketplace/v2/local-images?image_label=ubuntu_focal&order_by=type_asc&type=instance_sbs&zone=fr-par-1 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: 1403 + body: "{\"local_images\":[{\"id\":\"231ea125-6f18-45dd-8226-d7f190b5af80\", \"arch\":\"arm64\", \"zone\":\"fr-par-1\", \"compatible_commercial_types\":[\"COPARM1-2C-8G\", \"COPARM1-4C-16G\", \"COPARM1-8C-32G\", \"COPARM1-16C-64G\", \"COPARM1-32C-128G\", \"BASIC2-A2C-4G\", \"BASIC2-A2C-8G\", \"BASIC2-A4C-8G\", \"BASIC2-A4C-16G\", \"BASIC2-A8C-16G\", \"BASIC2-A8C-32G\", \"BASIC2-A16C-32G\", \"BASIC2-A16C-64G\"], \"label\":\"ubuntu_focal\", \"type\":\"instance_sbs\"}, {\"id\":\"8ac1fe52-01dc-4dc1-8578-73ec5d126648\", \"arch\":\"x86_64\", \"zone\":\"fr-par-1\", \"compatible_commercial_types\":[\"DEV1-L\", \"DEV1-M\", \"DEV1-S\", \"DEV1-XL\", \"GP1-L\", \"GP1-M\", \"GP1-S\", \"GP1-XL\", \"GP1-XS\", \"START1-L\", \"START1-M\", \"START1-S\", \"START1-XS\", \"VC1L\", \"VC1M\", \"VC1S\", \"X64-120GB\", \"X64-15GB\", \"X64-30GB\", \"X64-60GB\", \"ENT1-XXS\", \"ENT1-XS\", \"ENT1-S\", \"ENT1-M\", \"ENT1-L\", \"ENT1-XL\", \"ENT1-2XL\", \"PRO2-XXS\", \"PRO2-XS\", \"PRO2-S\", \"PRO2-M\", \"PRO2-L\", \"STARDUST1-S\", \"PLAY2-MICRO\", \"PLAY2-NANO\", \"PLAY2-PICO\", \"POP2-2C-8G\", \"POP2-4C-16G\", \"POP2-8C-32G\", \"POP2-16C-64G\", \"POP2-32C-128G\", \"POP2-48C-192G\", \"POP2-64C-256G\", \"POP2-HM-2C-16G\", \"POP2-HM-4C-32G\", \"POP2-HM-8C-64G\", \"POP2-HM-16C-128G\", \"POP2-HM-32C-256G\", \"POP2-HM-48C-384G\", \"POP2-HM-64C-512G\", \"POP2-HC-2C-4G\", \"POP2-HC-4C-8G\", \"POP2-HC-8C-16G\", \"POP2-HC-16C-32G\", \"POP2-HC-32C-64G\", \"POP2-HC-48C-96G\", \"POP2-HC-64C-128G\", \"POP2-HN-3\", \"POP2-HN-5\", \"POP2-HN-10\"], \"label\":\"ubuntu_focal\", \"type\":\"instance_sbs\"}], \"total_count\":2}" + headers: + Content-Length: + - "1403" + Content-Type: + - application/json + Date: + - Fri, 31 Oct 2025 15:53:49 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge01) + X-Request-Id: + - baae9628-63b2-45de-b503-15d0fcba992a + status: 200 OK + code: 200 + duration: 61.40458ms