diff --git a/internal/services/edgeservices/backend_stage.go b/internal/services/edgeservices/backend_stage.go index e671453c53..03c8411032 100644 --- a/internal/services/edgeservices/backend_stage.go +++ b/internal/services/edgeservices/backend_stage.go @@ -112,7 +112,10 @@ func ResourceBackendStage() *schema.Resource { } func ResourceBackendStageCreate(ctx context.Context, d *schema.ResourceData, m any) diag.Diagnostics { - api := NewEdgeServicesAPI(m) + api, zone, err := edgeServicesAPIWithZone(d, m) + if err != nil { + return diag.FromErr(err) + } req := &edgeservices.CreateBackendStageRequest{ PipelineID: d.Get("pipeline_id").(string), @@ -123,7 +126,7 @@ func ResourceBackendStageCreate(ctx context.Context, d *schema.ResourceData, m a } if lbConfig, ok := d.GetOk("lb_backend_config"); ok { - req.ScalewayLB = expandLBBackendConfig(lbConfig) + req.ScalewayLB = expandLBBackendConfig(zone, lbConfig) } backendStage, err := api.CreateBackendStage(req, scw.WithContext(ctx)) @@ -137,7 +140,10 @@ func ResourceBackendStageCreate(ctx context.Context, d *schema.ResourceData, m a } func ResourceBackendStageRead(ctx context.Context, d *schema.ResourceData, m any) diag.Diagnostics { - api := NewEdgeServicesAPI(m) + api, zone, err := edgeServicesAPIWithZone(d, m) + if err != nil { + return diag.FromErr(err) + } backendStage, err := api.GetBackendStage(&edgeservices.GetBackendStageRequest{ BackendStageID: d.Id(), @@ -161,14 +167,17 @@ func ResourceBackendStageRead(ctx context.Context, d *schema.ResourceData, m any } if backendStage.ScalewayLB != nil { - _ = d.Set("lb_backend_config", flattenLBBackendConfig(backendStage.ScalewayLB)) + _ = d.Set("lb_backend_config", flattenLBBackendConfig(zone, backendStage.ScalewayLB)) } return nil } func ResourceBackendStageUpdate(ctx context.Context, d *schema.ResourceData, m any) diag.Diagnostics { - api := NewEdgeServicesAPI(m) + api, zone, err := edgeServicesAPIWithZone(d, m) + if err != nil { + return diag.FromErr(err) + } hasChanged := false @@ -182,7 +191,7 @@ func ResourceBackendStageUpdate(ctx context.Context, d *schema.ResourceData, m a } if d.HasChange("lb_backend_config") { - updateRequest.ScalewayLB = expandLBBackendConfig(d.Get("lb_backend_config")) + updateRequest.ScalewayLB = expandLBBackendConfig(zone, d.Get("lb_backend_config")) hasChanged = true } diff --git a/internal/services/edgeservices/backend_stage_test.go b/internal/services/edgeservices/backend_stage_test.go index f1d2eba7ec..534eefd69f 100644 --- a/internal/services/edgeservices/backend_stage_test.go +++ b/internal/services/edgeservices/backend_stage_test.go @@ -53,3 +53,90 @@ func TestAccEdgeServicesBackend_Basic(t *testing.T) { }, }) } + +func TestAccEdgeServicesBackend_LB(t *testing.T) { + tt := acctest.NewTestTools(t) + defer tt.Cleanup() + resource.ParallelTest(t, resource.TestCase{ + PreCheck: func() { acctest.PreCheck(t) }, + ProviderFactories: tt.ProviderFactories, + CheckDestroy: edgeservicestestfuncs.CheckEdgeServicesBackendDestroy(tt), + Steps: []resource.TestStep{ + { + Config: ` + resource "scaleway_lb_ip" "lb_ip" {} + + resource "scaleway_lb" "lb01" { + name = "lb_name" + ip_id = scaleway_lb_ip.lb_ip.id + type = "LB-S" + } + + resource "scaleway_lb_backend" "bck01" { + lb_id = scaleway_lb.lb01.id + name = "backend" + forward_protocol = "http" + forward_port = 80 + ssl_bridging = true + + health_check_http { + uri = "/healthcheck" + method = "GET" + code = 200 + } + } + + resource "scaleway_lb_frontend" "frt01" { + lb_id = scaleway_lb.lb01.id + backend_id = scaleway_lb_backend.bck01.id + name = "frontend" + inbound_port = "443" + certificate_ids = [ + scaleway_lb_certificate.cert01.id, + ] + } + + resource "scaleway_lb_certificate" "cert01" { + lb_id = scaleway_lb.lb01.id + name = "test-cert" + letsencrypt { + common_name = "${replace(scaleway_lb_ip.lb_ip.ip_address, ".", "-")}.lb.${scaleway_lb.lb01.region}.scw.cloud" + } + } + + resource "scaleway_edge_services_pipeline" "main" { + name = "my-edge_services-pipeline" + description = "pipeline description" + } + + resource "scaleway_edge_services_backend_stage" "main" { + pipeline_id = scaleway_edge_services_pipeline.main.id + lb_backend_config { + lb_config { + id = scaleway_lb.lb01.id + frontend_id = scaleway_lb_frontend.frt01.id + is_ssl = true + } + } + } + `, + Check: resource.ComposeTestCheckFunc( + edgeservicestestfuncs.CheckEdgeServicesBackendExists(tt, "scaleway_edge_services_backend_stage.main"), + resource.TestCheckResourceAttrPair( + "scaleway_edge_services_backend_stage.main", "lb_backend_config.0.lb_config.0.id", + "scaleway_lb.lb01", "id"), + resource.TestCheckResourceAttrPair( + "scaleway_edge_services_backend_stage.main", "lb_backend_config.0.lb_config.0.frontend_id", + "scaleway_lb_frontend.frt01", "id"), + resource.TestCheckResourceAttrPair( + "scaleway_edge_services_pipeline.main", "id", + "scaleway_edge_services_backend_stage.main", "pipeline_id"), + resource.TestCheckResourceAttr("scaleway_edge_services_backend_stage.main", "lb_backend_config.0.lb_config.0.is_ssl", "true"), + resource.TestCheckResourceAttr("scaleway_edge_services_backend_stage.main", "lb_backend_config.0.lb_config.0.zone", "fr-par-1"), + resource.TestCheckResourceAttrSet("scaleway_edge_services_backend_stage.main", "created_at"), + resource.TestCheckResourceAttrSet("scaleway_edge_services_backend_stage.main", "updated_at"), + ), + }, + }, + }) +} diff --git a/internal/services/edgeservices/helpers.go b/internal/services/edgeservices/helpers.go index 0101174866..1273fb5b6a 100644 --- a/internal/services/edgeservices/helpers.go +++ b/internal/services/edgeservices/helpers.go @@ -23,3 +23,15 @@ func NewEdgeServicesAPIWithRegion(d *schema.ResourceData, m any) (*edgeservices. return api, region, err } + +// edgeServicesAPIWithZone returns a new edge_services API and the zone +func edgeServicesAPIWithZone(d *schema.ResourceData, m interface{}) (*edgeservices.API, scw.Zone, error) { + api := edgeservices.NewAPI(meta.ExtractScwClient(m)) + + zone, err := meta.ExtractZone(d, m) + if err != nil { + return nil, "", err + } + + return api, zone, nil +} diff --git a/internal/services/edgeservices/testdata/edge-services-backend-lb.cassette.yaml b/internal/services/edgeservices/testdata/edge-services-backend-lb.cassette.yaml new file mode 100644 index 0000000000..d0bcd0e6be --- /dev/null +++ b/internal/services/edgeservices/testdata/edge-services-backend-lb.cassette.yaml @@ -0,0 +1,2847 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 79 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","is_ipv6":false,"tags":[]}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 296 + uncompressed: false + body: '{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' + headers: + Content-Length: + - "296" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:31:06 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: + - d4c03791-aa4a-40b6-8478-a2b721699ef7 + status: 200 OK + code: 200 + duration: 323.259625ms + - 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/a4b0735d-7a3b-43d1-8038-e90f60f945b2 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 296 + uncompressed: false + body: '{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' + headers: + Content-Length: + - "296" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:31:07 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: + - 8f67b42e-40cc-4f9b-a117-3948f5939840 + status: 200 OK + code: 200 + duration: 68.238792ms + - id: 2 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 125 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","name":"my-edge_services-pipeline","description":"pipeline description"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/edge-services/v1beta1/pipelines + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 357 + uncompressed: false + body: '{"created_at":"2025-06-13T12:31:06.992440497Z","description":"pipeline description","errors":[],"id":"0c5a8daf-019d-4963-9037-3139b2f4ce6a","name":"my-edge_services-pipeline","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"pending","updated_at":"2025-06-13T12:31:06.992440497Z"}' + headers: + Content-Length: + - "357" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:31:07 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: + - c27c8194-31d8-4861-8851-9bb5cc9aa4ae + status: 200 OK + code: 200 + duration: 412.265792ms + - 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/edge-services/v1beta1/pipelines/0c5a8daf-019d-4963-9037-3139b2f4ce6a + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 351 + uncompressed: false + body: '{"created_at":"2025-06-13T12:31:06.992440Z","description":"pipeline description","errors":[],"id":"0c5a8daf-019d-4963-9037-3139b2f4ce6a","name":"my-edge_services-pipeline","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"pending","updated_at":"2025-06-13T12:31:06.992440Z"}' + headers: + Content-Length: + - "351" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:31:07 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: + - 5e0c0c8d-19ba-4195-9466-5804d6839a4b + status: 200 OK + code: 200 + duration: 83.765708ms + - id: 4 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 237 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","name":"lb_name","description":"","ip_id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_ids":[],"tags":null,"type":"LB-S","ssl_compatibility_level":"ssl_compatibility_level_intermediate"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 895 + uncompressed: false + body: '{"backend_count":0,"created_at":"2025-06-13T12:31:07.174578380Z","description":"","frontend_count":0,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"to_create","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:07.174578380Z","zone":"fr-par-1"}' + headers: + Content-Length: + - "895" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:31:07 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: + - 025a0b78-1c39-490a-99d7-8264cd918145 + status: 200 OK + code: 200 + duration: 308.732917ms + - 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/a885af3f-081c-451e-a003-79c351c08f9e + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 889 + uncompressed: false + body: '{"backend_count":0,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":0,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"to_create","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:07.174578Z","zone":"fr-par-1"}' + headers: + Content-Length: + - "889" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:31:07 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: + - 1d6e8346-5095-4d01-a893-1446f722a987 + status: 200 OK + code: 200 + duration: 79.468125ms + - id: 6 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/a885af3f-081c-451e-a003-79c351c08f9e + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1091 + uncompressed: false + body: '{"backend_count":0,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":0,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[{"created_at":"2025-06-13T12:18:36.295728Z","id":"f1d1f580-d83b-4737-a62e-c2368e5a611e","ip_address":"","region":"fr-par","status":"ready","updated_at":"2025-06-13T12:31:09.533211Z","zone":"fr-par-1"}],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:11.052751Z","zone":"fr-par-1"}' + headers: + Content-Length: + - "1091" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:31:37 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: + - c4b46306-b951-48de-9294-cf1150e91f24 + status: 200 OK + code: 200 + duration: 100.33075ms + - id: 7 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/a885af3f-081c-451e-a003-79c351c08f9e + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1091 + uncompressed: false + body: '{"backend_count":0,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":0,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[{"created_at":"2025-06-13T12:18:36.295728Z","id":"f1d1f580-d83b-4737-a62e-c2368e5a611e","ip_address":"","region":"fr-par","status":"ready","updated_at":"2025-06-13T12:31:09.533211Z","zone":"fr-par-1"}],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:11.052751Z","zone":"fr-par-1"}' + headers: + Content-Length: + - "1091" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:31:37 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - faa28a94-d59b-48c5-913e-2a0e2a353777 + status: 200 OK + code: 200 + duration: 91.941375ms + - id: 8 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/a885af3f-081c-451e-a003-79c351c08f9e/private-networks?order_by=created_at_asc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 39 + uncompressed: false + body: '{"private_network":[],"total_count":0}' + headers: + Content-Length: + - "39" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:31:37 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 89dff72c-337a-44b3-96c2-f3993c5eec39 + status: 200 OK + code: 200 + duration: 56.925334ms + - id: 9 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/a885af3f-081c-451e-a003-79c351c08f9e + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1091 + uncompressed: false + body: '{"backend_count":0,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":0,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[{"created_at":"2025-06-13T12:18:36.295728Z","id":"f1d1f580-d83b-4737-a62e-c2368e5a611e","ip_address":"","region":"fr-par","status":"ready","updated_at":"2025-06-13T12:31:09.533211Z","zone":"fr-par-1"}],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:11.052751Z","zone":"fr-par-1"}' + headers: + Content-Length: + - "1091" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:31:37 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6c3aae58-9d80-4e63-89f2-f4b8101b6582 + status: 200 OK + code: 200 + duration: 87.164959ms + - id: 10 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/a885af3f-081c-451e-a003-79c351c08f9e + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1091 + uncompressed: false + body: '{"backend_count":0,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":0,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[{"created_at":"2025-06-13T12:18:36.295728Z","id":"f1d1f580-d83b-4737-a62e-c2368e5a611e","ip_address":"","region":"fr-par","status":"ready","updated_at":"2025-06-13T12:31:09.533211Z","zone":"fr-par-1"}],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:11.052751Z","zone":"fr-par-1"}' + headers: + Content-Length: + - "1091" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:31:37 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c9e2c9f3-efda-43d4-a466-d35d88fcc44f + status: 200 OK + code: 200 + duration: 92.504625ms + - id: 11 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 671 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"name":"backend","forward_protocol":"http","forward_port":80,"forward_port_algorithm":"roundrobin","sticky_sessions":"none","sticky_sessions_cookie_name":"","health_check":{"port":80,"check_max_retries":2,"http_config":{"uri":"/healthcheck","method":"GET","code":200,"host_header":""},"check_send_proxy":false,"transient_check_delay":"0.500000000s","check_delay":60000,"check_timeout":30000},"server_ip":[],"on_marked_down_action":"on_marked_down_action_none","proxy_protocol":"proxy_protocol_none","ssl_bridging":true,"ignore_ssl_server_verify":false,"max_retries":3,"timeout_queue":"0.000000000s","timeout_server":300000,"timeout_connect":5000,"timeout_tunnel":900000}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/a885af3f-081c-451e-a003-79c351c08f9e/backends + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 2019 + uncompressed: false + body: '{"created_at":"2025-06-13T12:31:37.913668079Z","failover_host":null,"forward_port":80,"forward_port_algorithm":"roundrobin","forward_protocol":"http","health_check":{"check_delay":60000,"check_max_retries":2,"check_send_proxy":false,"check_timeout":30000,"http_config":{"code":200,"host_header":"","method":"GET","uri":"/healthcheck"},"port":80,"transient_check_delay":"0.500s"},"id":"7e73ce5c-8fc4-4413-8a3b-cc8a7b01a613","ignore_ssl_server_verify":false,"lb":{"backend_count":1,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":0,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[{"created_at":"2025-06-13T12:18:36.295728Z","id":"f1d1f580-d83b-4737-a62e-c2368e5a611e","ip_address":"","region":"fr-par","status":"pending","updated_at":"2025-06-13T12:31:37.958074077Z","zone":"fr-par-1"}],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:11.052751Z","zone":"fr-par-1"},"max_connections":null,"max_retries":3,"name":"backend","on_marked_down_action":"on_marked_down_action_none","pool":[],"proxy_protocol":"proxy_protocol_none","redispatch_attempt_count":null,"send_proxy_v2":false,"ssl_bridging":true,"sticky_sessions":"none","sticky_sessions_cookie_name":"","timeout_connect":5000,"timeout_queue":"0s","timeout_server":300000,"timeout_tunnel":900000,"updated_at":"2025-06-13T12:31:37.913668079Z"}' + headers: + Content-Length: + - "2019" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:31:38 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 428a14b3-e1d6-405c-8ad0-83cd2d78a3c7 + status: 200 OK + code: 200 + duration: 359.055792ms + - id: 12 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/a885af3f-081c-451e-a003-79c351c08f9e + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1093 + uncompressed: false + body: '{"backend_count":1,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":0,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[{"created_at":"2025-06-13T12:18:36.295728Z","id":"f1d1f580-d83b-4737-a62e-c2368e5a611e","ip_address":"","region":"fr-par","status":"pending","updated_at":"2025-06-13T12:31:37.958074Z","zone":"fr-par-1"}],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:38.104766Z","zone":"fr-par-1"}' + headers: + Content-Length: + - "1093" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:31:38 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6f452393-7261-4ee6-b276-dd1d3d93f192 + status: 200 OK + code: 200 + duration: 84.093625ms + - id: 13 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/backends/7e73ce5c-8fc4-4413-8a3b-cc8a7b01a613 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 2010 + uncompressed: false + body: '{"created_at":"2025-06-13T12:31:37.913668Z","failover_host":null,"forward_port":80,"forward_port_algorithm":"roundrobin","forward_protocol":"http","health_check":{"check_delay":60000,"check_max_retries":2,"check_send_proxy":false,"check_timeout":30000,"http_config":{"code":200,"host_header":"","method":"GET","uri":"/healthcheck"},"port":80,"transient_check_delay":"0.500s"},"id":"7e73ce5c-8fc4-4413-8a3b-cc8a7b01a613","ignore_ssl_server_verify":false,"lb":{"backend_count":1,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":0,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[{"created_at":"2025-06-13T12:18:36.295728Z","id":"f1d1f580-d83b-4737-a62e-c2368e5a611e","ip_address":"","region":"fr-par","status":"pending","updated_at":"2025-06-13T12:31:37.958074Z","zone":"fr-par-1"}],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:38.104766Z","zone":"fr-par-1"},"max_connections":null,"max_retries":3,"name":"backend","on_marked_down_action":"on_marked_down_action_none","pool":[],"proxy_protocol":"proxy_protocol_none","redispatch_attempt_count":null,"send_proxy_v2":false,"ssl_bridging":true,"sticky_sessions":"none","sticky_sessions_cookie_name":"","timeout_connect":5000,"timeout_queue":"0s","timeout_server":300000,"timeout_tunnel":900000,"updated_at":"2025-06-13T12:31:37.913668Z"}' + headers: + Content-Length: + - "2010" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:31:38 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f479b398-7d29-4590-9cd6-34804c2b09b6 + status: 200 OK + code: 200 + duration: 79.717875ms + - id: 14 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/a885af3f-081c-451e-a003-79c351c08f9e + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1091 + uncompressed: false + body: '{"backend_count":1,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":0,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[{"created_at":"2025-06-13T12:18:36.295728Z","id":"f1d1f580-d83b-4737-a62e-c2368e5a611e","ip_address":"","region":"fr-par","status":"ready","updated_at":"2025-06-13T12:31:38.356854Z","zone":"fr-par-1"}],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:38.104766Z","zone":"fr-par-1"}' + headers: + Content-Length: + - "1091" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:31:38 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - abea3e90-7aef-4856-9121-45f54043d601 + status: 200 OK + code: 200 + duration: 96.562208ms + - id: 15 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 118 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"name":"test-cert","letsencrypt":{"common_name":"51-159-25-180.lb.fr-par.scw.cloud","subject_alternative_name":null}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/a885af3f-081c-451e-a003-79c351c08f9e/certificates + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1511 + uncompressed: false + body: '{"common_name":"51-159-25-180.lb.fr-par.scw.cloud","created_at":"2025-06-13T12:31:38.093280615Z","fingerprint":"","id":"c1fc1913-57ce-4eb5-a311-5895a0211bab","lb":{"backend_count":1,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":0,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[{"created_at":"2025-06-13T12:18:36.295728Z","id":"f1d1f580-d83b-4737-a62e-c2368e5a611e","ip_address":"","region":"fr-par","status":"pending","updated_at":"2025-06-13T12:31:37.958074Z","zone":"fr-par-1"}],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:38.104766390Z","zone":"fr-par-1"},"name":"test-cert","not_valid_after":"0001-01-01T00:00:00Z","not_valid_before":"0001-01-01T00:00:00Z","status":"pending","status_details":null,"subject_alternative_name":[],"type":"letsencryt","updated_at":"2025-06-13T12:31:38.093280615Z"}' + headers: + Content-Length: + - "1511" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:31:38 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c38e22e4-ad6f-4153-9c64-3de52cd5f418 + status: 200 OK + code: 200 + duration: 632.821917ms + - id: 16 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/certificates/c1fc1913-57ce-4eb5-a311-5895a0211bab + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1294 + uncompressed: false + body: '{"common_name":"51-159-25-180.lb.fr-par.scw.cloud","created_at":"2025-06-13T12:31:38.093281Z","fingerprint":"","id":"c1fc1913-57ce-4eb5-a311-5895a0211bab","lb":{"backend_count":1,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":0,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:38.104766Z","zone":"fr-par-1"},"name":"test-cert","not_valid_after":"0001-01-01T00:00:00Z","not_valid_before":"0001-01-01T00:00:00Z","status":"pending","status_details":null,"subject_alternative_name":[],"type":"letsencryt","updated_at":"2025-06-13T12:31:38.093281Z"}' + headers: + Content-Length: + - "1294" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:31:38 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 21950f2b-3cd0-4c1d-b1ec-a84ed8c011f4 + status: 200 OK + code: 200 + duration: 74.412042ms + - id: 17 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/certificates/c1fc1913-57ce-4eb5-a311-5895a0211bab + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1332 + uncompressed: false + body: '{"common_name":"51-159-25-180.lb.fr-par.scw.cloud","created_at":"2025-06-13T12:31:38.093281Z","fingerprint":"a8e04aaae4f6e99aa2106be27f97820d34f6cecd","id":"c1fc1913-57ce-4eb5-a311-5895a0211bab","lb":{"backend_count":1,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":0,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:38.104766Z","zone":"fr-par-1"},"name":"test-cert","not_valid_after":"2025-09-11T11:33:11Z","not_valid_before":"2025-06-13T11:33:12Z","status":"ready","status_details":null,"subject_alternative_name":[],"type":"letsencryt","updated_at":"2025-06-13T12:31:45.074418Z"}' + headers: + Content-Length: + - "1332" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:08 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 51fe9d31-0c1d-47e1-bfe2-b538118f38d2 + status: 200 OK + code: 200 + duration: 74.701708ms + - id: 18 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/certificates/c1fc1913-57ce-4eb5-a311-5895a0211bab + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1332 + uncompressed: false + body: '{"common_name":"51-159-25-180.lb.fr-par.scw.cloud","created_at":"2025-06-13T12:31:38.093281Z","fingerprint":"a8e04aaae4f6e99aa2106be27f97820d34f6cecd","id":"c1fc1913-57ce-4eb5-a311-5895a0211bab","lb":{"backend_count":1,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":0,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:38.104766Z","zone":"fr-par-1"},"name":"test-cert","not_valid_after":"2025-09-11T11:33:11Z","not_valid_before":"2025-06-13T11:33:12Z","status":"ready","status_details":null,"subject_alternative_name":[],"type":"letsencryt","updated_at":"2025-06-13T12:31:45.074418Z"}' + headers: + Content-Length: + - "1332" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:08 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4f04e6cf-1822-476f-bb2f-499a2909fb75 + status: 200 OK + code: 200 + duration: 91.469667ms + - id: 19 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/a885af3f-081c-451e-a003-79c351c08f9e + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1091 + uncompressed: false + body: '{"backend_count":1,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":0,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[{"created_at":"2025-06-13T12:18:36.295728Z","id":"f1d1f580-d83b-4737-a62e-c2368e5a611e","ip_address":"","region":"fr-par","status":"ready","updated_at":"2025-06-13T12:31:38.555548Z","zone":"fr-par-1"}],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:38.104766Z","zone":"fr-par-1"}' + headers: + Content-Length: + - "1091" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:08 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 74808b77-b104-4ac8-8769-a1842f20446b + status: 200 OK + code: 200 + duration: 89.368ms + - id: 20 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 223 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"name":"frontend","inbound_port":443,"backend_id":"7e73ce5c-8fc4-4413-8a3b-cc8a7b01a613","certificate_ids":["c1fc1913-57ce-4eb5-a311-5895a0211bab"],"enable_http3":false,"connection_rate_limit":0,"enable_access_logs":false}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/a885af3f-081c-451e-a003-79c351c08f9e/frontends + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 4814 + uncompressed: false + body: '{"backend":{"created_at":"2025-06-13T12:31:37.913668Z","failover_host":null,"forward_port":80,"forward_port_algorithm":"roundrobin","forward_protocol":"http","health_check":{"check_delay":60000,"check_max_retries":2,"check_send_proxy":false,"check_timeout":30000,"http_config":{"code":200,"host_header":"","method":"GET","uri":"/healthcheck"},"port":80,"transient_check_delay":"0.500s"},"id":"7e73ce5c-8fc4-4413-8a3b-cc8a7b01a613","ignore_ssl_server_verify":false,"lb":{"backend_count":1,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":1,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:38.104766Z","zone":"fr-par-1"},"max_connections":null,"max_retries":3,"name":"backend","on_marked_down_action":"on_marked_down_action_none","pool":[],"proxy_protocol":"proxy_protocol_none","redispatch_attempt_count":null,"send_proxy_v2":false,"ssl_bridging":true,"sticky_sessions":"none","sticky_sessions_cookie_name":"","timeout_connect":5000,"timeout_queue":"0s","timeout_server":300000,"timeout_tunnel":900000,"updated_at":"2025-06-13T12:31:37.913668Z"},"certificate":{"common_name":"51-159-25-180.lb.fr-par.scw.cloud","created_at":"2025-06-13T12:31:38.093281Z","fingerprint":"a8e04aaae4f6e99aa2106be27f97820d34f6cecd","id":"c1fc1913-57ce-4eb5-a311-5895a0211bab","lb":{"backend_count":1,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":1,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[{"created_at":"2025-06-13T12:18:36.295728Z","id":"f1d1f580-d83b-4737-a62e-c2368e5a611e","ip_address":"","region":"fr-par","status":"pending","updated_at":"2025-06-13T12:32:09.130424743Z","zone":"fr-par-1"}],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:38.104766Z","zone":"fr-par-1"},"name":"test-cert","not_valid_after":"2025-09-11T11:33:11Z","not_valid_before":"2025-06-13T11:33:12Z","status":"ready","status_details":null,"subject_alternative_name":[],"type":"letsencryt","updated_at":"2025-06-13T12:32:09.053632785Z"},"certificate_ids":["c1fc1913-57ce-4eb5-a311-5895a0211bab"],"connection_rate_limit":null,"created_at":"2025-06-13T12:32:09.045052Z","enable_access_logs":false,"enable_http3":false,"id":"9c6a7007-efb8-47eb-8fbe-ec61304030a0","inbound_port":443,"lb":{"backend_count":1,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":1,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[{"created_at":"2025-06-13T12:18:36.295728Z","id":"f1d1f580-d83b-4737-a62e-c2368e5a611e","ip_address":"","region":"fr-par","status":"pending","updated_at":"2025-06-13T12:32:09.130424743Z","zone":"fr-par-1"}],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:38.104766Z","zone":"fr-par-1"},"name":"frontend","timeout_client":null,"updated_at":"2025-06-13T12:32:09.045052Z"}' + headers: + Content-Length: + - "4814" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:09 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ef86cba3-c8c7-4c19-ab39-ff5ecde6e188 + status: 200 OK + code: 200 + duration: 620.808458ms + - id: 21 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/a885af3f-081c-451e-a003-79c351c08f9e + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1093 + uncompressed: false + body: '{"backend_count":1,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":1,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[{"created_at":"2025-06-13T12:18:36.295728Z","id":"f1d1f580-d83b-4737-a62e-c2368e5a611e","ip_address":"","region":"fr-par","status":"pending","updated_at":"2025-06-13T12:32:09.130425Z","zone":"fr-par-1"}],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:38.104766Z","zone":"fr-par-1"}' + headers: + Content-Length: + - "1093" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:09 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1fa46fae-7373-4a35-8c4e-d3e9e3347121 + status: 200 OK + code: 200 + duration: 125.311ms + - id: 22 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 196 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"name":"frontend","inbound_port":443,"backend_id":"7e73ce5c-8fc4-4413-8a3b-cc8a7b01a613","certificate_ids":["c1fc1913-57ce-4eb5-a311-5895a0211bab"],"enable_http3":false,"connection_rate_limit":0}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/frontends/9c6a7007-efb8-47eb-8fbe-ec61304030a0 + method: PUT + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 4817 + uncompressed: false + body: '{"backend":{"created_at":"2025-06-13T12:31:37.913668Z","failover_host":null,"forward_port":80,"forward_port_algorithm":"roundrobin","forward_protocol":"http","health_check":{"check_delay":60000,"check_max_retries":2,"check_send_proxy":false,"check_timeout":30000,"http_config":{"code":200,"host_header":"","method":"GET","uri":"/healthcheck"},"port":80,"transient_check_delay":"0.500s"},"id":"7e73ce5c-8fc4-4413-8a3b-cc8a7b01a613","ignore_ssl_server_verify":false,"lb":{"backend_count":1,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":1,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:38.104766Z","zone":"fr-par-1"},"max_connections":null,"max_retries":3,"name":"backend","on_marked_down_action":"on_marked_down_action_none","pool":[],"proxy_protocol":"proxy_protocol_none","redispatch_attempt_count":null,"send_proxy_v2":false,"ssl_bridging":true,"sticky_sessions":"none","sticky_sessions_cookie_name":"","timeout_connect":5000,"timeout_queue":"0s","timeout_server":300000,"timeout_tunnel":900000,"updated_at":"2025-06-13T12:31:37.913668Z"},"certificate":{"common_name":"51-159-25-180.lb.fr-par.scw.cloud","created_at":"2025-06-13T12:31:38.093281Z","fingerprint":"a8e04aaae4f6e99aa2106be27f97820d34f6cecd","id":"c1fc1913-57ce-4eb5-a311-5895a0211bab","lb":{"backend_count":1,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":1,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[{"created_at":"2025-06-13T12:18:36.295728Z","id":"f1d1f580-d83b-4737-a62e-c2368e5a611e","ip_address":"","region":"fr-par","status":"pending","updated_at":"2025-06-13T12:32:09.775378554Z","zone":"fr-par-1"}],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:38.104766Z","zone":"fr-par-1"},"name":"test-cert","not_valid_after":"2025-09-11T11:33:11Z","not_valid_before":"2025-06-13T11:33:12Z","status":"ready","status_details":null,"subject_alternative_name":[],"type":"letsencryt","updated_at":"2025-06-13T12:32:09.751391675Z"},"certificate_ids":["c1fc1913-57ce-4eb5-a311-5895a0211bab"],"connection_rate_limit":null,"created_at":"2025-06-13T12:32:09.045052Z","enable_access_logs":false,"enable_http3":false,"id":"9c6a7007-efb8-47eb-8fbe-ec61304030a0","inbound_port":443,"lb":{"backend_count":1,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":1,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[{"created_at":"2025-06-13T12:18:36.295728Z","id":"f1d1f580-d83b-4737-a62e-c2368e5a611e","ip_address":"","region":"fr-par","status":"pending","updated_at":"2025-06-13T12:32:09.775378554Z","zone":"fr-par-1"}],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:38.104766Z","zone":"fr-par-1"},"name":"frontend","timeout_client":null,"updated_at":"2025-06-13T12:32:09.748466728Z"}' + headers: + Content-Length: + - "4817" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:09 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c8e57ad2-c753-4d6f-8e70-ea51c4f1d8aa + status: 200 OK + code: 200 + duration: 486.807583ms + - id: 23 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/frontends/9c6a7007-efb8-47eb-8fbe-ec61304030a0/acls?order_by=created_at_asc&page=1 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 28 + uncompressed: false + body: '{"acls":[],"total_count":0}' + headers: + Content-Length: + - "28" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:10 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b8de9fb2-54c5-4454-ad10-40b4966f04de + status: 200 OK + code: 200 + duration: 125.347875ms + - id: 24 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/frontends/9c6a7007-efb8-47eb-8fbe-ec61304030a0 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 4389 + uncompressed: false + body: '{"backend":{"created_at":"2025-06-13T12:31:37.913668Z","failover_host":null,"forward_port":80,"forward_port_algorithm":"roundrobin","forward_protocol":"http","health_check":{"check_delay":60000,"check_max_retries":2,"check_send_proxy":false,"check_timeout":30000,"http_config":{"code":200,"host_header":"","method":"GET","uri":"/healthcheck"},"port":80,"transient_check_delay":"0.500s"},"id":"7e73ce5c-8fc4-4413-8a3b-cc8a7b01a613","ignore_ssl_server_verify":false,"lb":{"backend_count":1,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":1,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:38.104766Z","zone":"fr-par-1"},"max_connections":null,"max_retries":3,"name":"backend","on_marked_down_action":"on_marked_down_action_none","pool":[],"proxy_protocol":"proxy_protocol_none","redispatch_attempt_count":null,"send_proxy_v2":false,"ssl_bridging":true,"sticky_sessions":"none","sticky_sessions_cookie_name":"","timeout_connect":5000,"timeout_queue":"0s","timeout_server":300000,"timeout_tunnel":900000,"updated_at":"2025-06-13T12:31:37.913668Z"},"certificate":{"common_name":"51-159-25-180.lb.fr-par.scw.cloud","created_at":"2025-06-13T12:31:38.093281Z","fingerprint":"a8e04aaae4f6e99aa2106be27f97820d34f6cecd","id":"c1fc1913-57ce-4eb5-a311-5895a0211bab","lb":{"backend_count":1,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":1,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:38.104766Z","zone":"fr-par-1"},"name":"test-cert","not_valid_after":"2025-09-11T11:33:11Z","not_valid_before":"2025-06-13T11:33:12Z","status":"ready","status_details":null,"subject_alternative_name":[],"type":"letsencryt","updated_at":"2025-06-13T12:32:09.751392Z"},"certificate_ids":["c1fc1913-57ce-4eb5-a311-5895a0211bab"],"connection_rate_limit":null,"created_at":"2025-06-13T12:32:09.045052Z","enable_access_logs":false,"enable_http3":false,"id":"9c6a7007-efb8-47eb-8fbe-ec61304030a0","inbound_port":443,"lb":{"backend_count":1,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":1,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:38.104766Z","zone":"fr-par-1"},"name":"frontend","timeout_client":null,"updated_at":"2025-06-13T12:32:09.748467Z"}' + headers: + Content-Length: + - "4389" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:10 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e7084b48-7871-4ff8-b89f-d954d2ab2025 + status: 200 OK + code: 200 + duration: 127.924125ms + - id: 25 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/frontends/9c6a7007-efb8-47eb-8fbe-ec61304030a0/acls?order_by=created_at_asc&page=1 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 28 + uncompressed: false + body: '{"acls":[],"total_count":0}' + headers: + Content-Length: + - "28" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:10 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f00a20c6-41b0-4a7c-99f2-4c5539fef329 + status: 200 OK + code: 200 + duration: 111.052917ms + - id: 26 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 175 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"scaleway_lb":{"lbs":[{"id":"a885af3f-081c-451e-a003-79c351c08f9e","zone":"fr-par-1","frontend_id":"9c6a7007-efb8-47eb-8fbe-ec61304030a0","is_ssl":true,"domain_name":null}]}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/edge-services/v1beta1/pipelines/0c5a8daf-019d-4963-9037-3139b2f4ce6a/backend-stages + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 370 + uncompressed: false + body: '{"created_at":"2025-06-13T12:32:11.266385109Z","id":"c431cbe5-0b97-40a7-b732-8a29369b2103","pipeline_id":"0c5a8daf-019d-4963-9037-3139b2f4ce6a","scaleway_lb":{"lbs":[{"domain_name":"","frontend_id":"9c6a7007-efb8-47eb-8fbe-ec61304030a0","id":"a885af3f-081c-451e-a003-79c351c08f9e","is_ssl":true,"zone":"fr-par-1"}]},"updated_at":"2025-06-13T12:32:11.266385109Z"}' + headers: + Content-Length: + - "370" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:11 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bc353d1c-0526-4614-8432-fc56a7a663db + status: 200 OK + code: 200 + duration: 912.332125ms + - id: 27 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/edge-services/v1beta1/backend-stages/c431cbe5-0b97-40a7-b732-8a29369b2103 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 364 + uncompressed: false + body: '{"created_at":"2025-06-13T12:32:11.266385Z","id":"c431cbe5-0b97-40a7-b732-8a29369b2103","pipeline_id":"0c5a8daf-019d-4963-9037-3139b2f4ce6a","scaleway_lb":{"lbs":[{"domain_name":"","frontend_id":"9c6a7007-efb8-47eb-8fbe-ec61304030a0","id":"a885af3f-081c-451e-a003-79c351c08f9e","is_ssl":true,"zone":"fr-par-1"}]},"updated_at":"2025-06-13T12:32:11.266385Z"}' + headers: + Content-Length: + - "364" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:11 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a08c35b2-1087-4712-9f38-fc0a7c1779ca + status: 200 OK + code: 200 + duration: 61.511333ms + - id: 28 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/edge-services/v1beta1/backend-stages/c431cbe5-0b97-40a7-b732-8a29369b2103 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 364 + uncompressed: false + body: '{"created_at":"2025-06-13T12:32:11.266385Z","id":"c431cbe5-0b97-40a7-b732-8a29369b2103","pipeline_id":"0c5a8daf-019d-4963-9037-3139b2f4ce6a","scaleway_lb":{"lbs":[{"domain_name":"","frontend_id":"9c6a7007-efb8-47eb-8fbe-ec61304030a0","id":"a885af3f-081c-451e-a003-79c351c08f9e","is_ssl":true,"zone":"fr-par-1"}]},"updated_at":"2025-06-13T12:32:11.266385Z"}' + headers: + Content-Length: + - "364" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:11 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 41cfe0ad-b0b2-4ef9-b4f9-46caa358f9dc + status: 200 OK + code: 200 + duration: 70.203792ms + - id: 29 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/a4b0735d-7a3b-43d1-8038-e90f60f945b2 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 330 + uncompressed: false + body: '{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' + headers: + Content-Length: + - "330" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:11 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 693a81b0-c26c-4301-b835-b9972189f167 + status: 200 OK + code: 200 + duration: 42.701375ms + - id: 30 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/edge-services/v1beta1/pipelines/0c5a8daf-019d-4963-9037-3139b2f4ce6a + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 351 + uncompressed: false + body: '{"created_at":"2025-06-13T12:31:06.992440Z","description":"pipeline description","errors":[],"id":"0c5a8daf-019d-4963-9037-3139b2f4ce6a","name":"my-edge_services-pipeline","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"pending","updated_at":"2025-06-13T12:31:06.992440Z"}' + headers: + Content-Length: + - "351" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:11 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9e988b8e-6f62-438d-b3da-0b5a9cb8c79d + status: 200 OK + code: 200 + duration: 49.866333ms + - id: 31 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/a885af3f-081c-451e-a003-79c351c08f9e + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1091 + uncompressed: false + body: '{"backend_count":1,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":1,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[{"created_at":"2025-06-13T12:18:36.295728Z","id":"f1d1f580-d83b-4737-a62e-c2368e5a611e","ip_address":"","region":"fr-par","status":"ready","updated_at":"2025-06-13T12:32:10.195934Z","zone":"fr-par-1"}],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:38.104766Z","zone":"fr-par-1"}' + headers: + Content-Length: + - "1091" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:11 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d995ee23-7fa3-44f7-a0c8-699335e00e50 + status: 200 OK + code: 200 + duration: 79.099208ms + - id: 32 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/a885af3f-081c-451e-a003-79c351c08f9e + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1091 + uncompressed: false + body: '{"backend_count":1,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":1,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[{"created_at":"2025-06-13T12:18:36.295728Z","id":"f1d1f580-d83b-4737-a62e-c2368e5a611e","ip_address":"","region":"fr-par","status":"ready","updated_at":"2025-06-13T12:32:10.195934Z","zone":"fr-par-1"}],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:38.104766Z","zone":"fr-par-1"}' + headers: + Content-Length: + - "1091" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:11 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4e42a692-d5bd-4870-ac14-bfe4b24d9a8a + status: 200 OK + code: 200 + duration: 74.122167ms + - id: 33 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/a885af3f-081c-451e-a003-79c351c08f9e/private-networks?order_by=created_at_asc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 39 + uncompressed: false + body: '{"private_network":[],"total_count":0}' + headers: + Content-Length: + - "39" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:11 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b5f18ea7-9852-4cf7-8da4-b621aa82a898 + status: 200 OK + code: 200 + duration: 54.301167ms + - id: 34 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/certificates/c1fc1913-57ce-4eb5-a311-5895a0211bab + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1332 + uncompressed: false + body: '{"common_name":"51-159-25-180.lb.fr-par.scw.cloud","created_at":"2025-06-13T12:31:38.093281Z","fingerprint":"a8e04aaae4f6e99aa2106be27f97820d34f6cecd","id":"c1fc1913-57ce-4eb5-a311-5895a0211bab","lb":{"backend_count":1,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":1,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:38.104766Z","zone":"fr-par-1"},"name":"test-cert","not_valid_after":"2025-09-11T11:33:11Z","not_valid_before":"2025-06-13T11:33:12Z","status":"ready","status_details":null,"subject_alternative_name":[],"type":"letsencryt","updated_at":"2025-06-13T12:32:09.751392Z"}' + headers: + Content-Length: + - "1332" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:11 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e737221d-a7dc-467d-9041-c36aee59f26f + status: 200 OK + code: 200 + duration: 64.991708ms + - id: 35 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/backends/7e73ce5c-8fc4-4413-8a3b-cc8a7b01a613 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 2008 + uncompressed: false + body: '{"created_at":"2025-06-13T12:31:37.913668Z","failover_host":null,"forward_port":80,"forward_port_algorithm":"roundrobin","forward_protocol":"http","health_check":{"check_delay":60000,"check_max_retries":2,"check_send_proxy":false,"check_timeout":30000,"http_config":{"code":200,"host_header":"","method":"GET","uri":"/healthcheck"},"port":80,"transient_check_delay":"0.500s"},"id":"7e73ce5c-8fc4-4413-8a3b-cc8a7b01a613","ignore_ssl_server_verify":false,"lb":{"backend_count":1,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":1,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[{"created_at":"2025-06-13T12:18:36.295728Z","id":"f1d1f580-d83b-4737-a62e-c2368e5a611e","ip_address":"","region":"fr-par","status":"ready","updated_at":"2025-06-13T12:32:10.195934Z","zone":"fr-par-1"}],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:38.104766Z","zone":"fr-par-1"},"max_connections":null,"max_retries":3,"name":"backend","on_marked_down_action":"on_marked_down_action_none","pool":[],"proxy_protocol":"proxy_protocol_none","redispatch_attempt_count":null,"send_proxy_v2":false,"ssl_bridging":true,"sticky_sessions":"none","sticky_sessions_cookie_name":"","timeout_connect":5000,"timeout_queue":"0s","timeout_server":300000,"timeout_tunnel":900000,"updated_at":"2025-06-13T12:31:37.913668Z"}' + headers: + Content-Length: + - "2008" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:12 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3dbb8b3f-b933-4b27-8f63-55c010630695 + status: 200 OK + code: 200 + duration: 95.529333ms + - id: 36 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/a885af3f-081c-451e-a003-79c351c08f9e + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1091 + uncompressed: false + body: '{"backend_count":1,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":1,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[{"created_at":"2025-06-13T12:18:36.295728Z","id":"f1d1f580-d83b-4737-a62e-c2368e5a611e","ip_address":"","region":"fr-par","status":"ready","updated_at":"2025-06-13T12:32:10.195934Z","zone":"fr-par-1"}],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:38.104766Z","zone":"fr-par-1"}' + headers: + Content-Length: + - "1091" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:12 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b17ef5f4-3442-4f08-b4e7-d04dd115feb0 + status: 200 OK + code: 200 + duration: 67.37075ms + - id: 37 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/frontends/9c6a7007-efb8-47eb-8fbe-ec61304030a0 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 4389 + uncompressed: false + body: '{"backend":{"created_at":"2025-06-13T12:31:37.913668Z","failover_host":null,"forward_port":80,"forward_port_algorithm":"roundrobin","forward_protocol":"http","health_check":{"check_delay":60000,"check_max_retries":2,"check_send_proxy":false,"check_timeout":30000,"http_config":{"code":200,"host_header":"","method":"GET","uri":"/healthcheck"},"port":80,"transient_check_delay":"0.500s"},"id":"7e73ce5c-8fc4-4413-8a3b-cc8a7b01a613","ignore_ssl_server_verify":false,"lb":{"backend_count":1,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":1,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:38.104766Z","zone":"fr-par-1"},"max_connections":null,"max_retries":3,"name":"backend","on_marked_down_action":"on_marked_down_action_none","pool":[],"proxy_protocol":"proxy_protocol_none","redispatch_attempt_count":null,"send_proxy_v2":false,"ssl_bridging":true,"sticky_sessions":"none","sticky_sessions_cookie_name":"","timeout_connect":5000,"timeout_queue":"0s","timeout_server":300000,"timeout_tunnel":900000,"updated_at":"2025-06-13T12:31:37.913668Z"},"certificate":{"common_name":"51-159-25-180.lb.fr-par.scw.cloud","created_at":"2025-06-13T12:31:38.093281Z","fingerprint":"a8e04aaae4f6e99aa2106be27f97820d34f6cecd","id":"c1fc1913-57ce-4eb5-a311-5895a0211bab","lb":{"backend_count":1,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":1,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:38.104766Z","zone":"fr-par-1"},"name":"test-cert","not_valid_after":"2025-09-11T11:33:11Z","not_valid_before":"2025-06-13T11:33:12Z","status":"ready","status_details":null,"subject_alternative_name":[],"type":"letsencryt","updated_at":"2025-06-13T12:32:09.751392Z"},"certificate_ids":["c1fc1913-57ce-4eb5-a311-5895a0211bab"],"connection_rate_limit":null,"created_at":"2025-06-13T12:32:09.045052Z","enable_access_logs":false,"enable_http3":false,"id":"9c6a7007-efb8-47eb-8fbe-ec61304030a0","inbound_port":443,"lb":{"backend_count":1,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":1,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:38.104766Z","zone":"fr-par-1"},"name":"frontend","timeout_client":null,"updated_at":"2025-06-13T12:32:09.748467Z"}' + headers: + Content-Length: + - "4389" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:12 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0e5dc77f-d69e-4499-bed0-4f978bd6ab47 + status: 200 OK + code: 200 + duration: 123.399375ms + - id: 38 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/frontends/9c6a7007-efb8-47eb-8fbe-ec61304030a0/acls?order_by=created_at_asc&page=1 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 28 + uncompressed: false + body: '{"acls":[],"total_count":0}' + headers: + Content-Length: + - "28" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:12 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6fe7d938-ab9e-4332-b97f-d72aa0a37cae + status: 200 OK + code: 200 + duration: 121.805958ms + - id: 39 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/edge-services/v1beta1/backend-stages/c431cbe5-0b97-40a7-b732-8a29369b2103 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 364 + uncompressed: false + body: '{"created_at":"2025-06-13T12:32:11.266385Z","id":"c431cbe5-0b97-40a7-b732-8a29369b2103","pipeline_id":"0c5a8daf-019d-4963-9037-3139b2f4ce6a","scaleway_lb":{"lbs":[{"domain_name":"","frontend_id":"9c6a7007-efb8-47eb-8fbe-ec61304030a0","id":"a885af3f-081c-451e-a003-79c351c08f9e","is_ssl":true,"zone":"fr-par-1"}]},"updated_at":"2025-06-13T12:32:11.266385Z"}' + headers: + Content-Length: + - "364" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:12 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 046020d1-d5cf-4389-9864-89516fbe5459 + status: 200 OK + code: 200 + duration: 57.960708ms + - id: 40 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/edge-services/v1beta1/backend-stages/c431cbe5-0b97-40a7-b732-8a29369b2103 + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:12 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 88d65f0c-3398-48c2-8ec6-f3737dd8a0d7 + status: 204 No Content + code: 204 + duration: 117.837375ms + - id: 41 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/frontends/9c6a7007-efb8-47eb-8fbe-ec61304030a0 + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:13 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 49cd1cd5-3664-4e5d-a64d-dd2c7a7172eb + status: 204 No Content + code: 204 + duration: 300.333958ms + - id: 42 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/edge-services/v1beta1/pipelines/0c5a8daf-019d-4963-9037-3139b2f4ce6a + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:12 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - fe134b6e-ccfc-4f4e-8a7f-99c6e0780872 + status: 204 No Content + code: 204 + duration: 300.602709ms + - id: 43 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/a885af3f-081c-451e-a003-79c351c08f9e + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1093 + uncompressed: false + body: '{"backend_count":1,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":0,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[{"created_at":"2025-06-13T12:18:36.295728Z","id":"f1d1f580-d83b-4737-a62e-c2368e5a611e","ip_address":"","region":"fr-par","status":"pending","updated_at":"2025-06-13T12:32:12.934545Z","zone":"fr-par-1"}],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:38.104766Z","zone":"fr-par-1"}' + headers: + Content-Length: + - "1093" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:13 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 86057a09-bf32-4334-bf21-a195c76cca07 + status: 200 OK + code: 200 + duration: 85.995583ms + - id: 44 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/a885af3f-081c-451e-a003-79c351c08f9e + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1093 + uncompressed: false + body: '{"backend_count":1,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":0,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[{"created_at":"2025-06-13T12:18:36.295728Z","id":"f1d1f580-d83b-4737-a62e-c2368e5a611e","ip_address":"","region":"fr-par","status":"pending","updated_at":"2025-06-13T12:32:12.934545Z","zone":"fr-par-1"}],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:38.104766Z","zone":"fr-par-1"}' + headers: + Content-Length: + - "1093" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:13 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 25c92696-7fa5-4ffc-be59-8a1df0ba911b + status: 200 OK + code: 200 + duration: 89.007541ms + - id: 45 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/certificates/c1fc1913-57ce-4eb5-a311-5895a0211bab + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1332 + uncompressed: false + body: '{"common_name":"51-159-25-180.lb.fr-par.scw.cloud","created_at":"2025-06-13T12:31:38.093281Z","fingerprint":"a8e04aaae4f6e99aa2106be27f97820d34f6cecd","id":"c1fc1913-57ce-4eb5-a311-5895a0211bab","lb":{"backend_count":1,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":0,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:31:38.104766Z","zone":"fr-par-1"},"name":"test-cert","not_valid_after":"2025-09-11T11:33:11Z","not_valid_before":"2025-06-13T11:33:12Z","status":"ready","status_details":null,"subject_alternative_name":[],"type":"letsencryt","updated_at":"2025-06-13T12:32:09.751392Z"}' + headers: + Content-Length: + - "1332" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:13 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ec1e2ec4-1157-45cb-9ba5-0c5617395d34 + status: 200 OK + code: 200 + duration: 92.856083ms + - id: 46 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/backends/7e73ce5c-8fc4-4413-8a3b-cc8a7b01a613 + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:13 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 618cc991-2711-4f8c-9386-a670666bceb2 + status: 204 No Content + code: 204 + duration: 324.598417ms + - id: 47 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/certificates/c1fc1913-57ce-4eb5-a311-5895a0211bab + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:13 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e475484d-3890-49f9-b481-1cbd2441c287 + status: 204 No Content + code: 204 + duration: 338.710583ms + - id: 48 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/certificates/c1fc1913-57ce-4eb5-a311-5895a0211bab + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 35 + uncompressed: false + body: '{"message":"certificate not Found"}' + headers: + Content-Length: + - "35" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:13 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4d2b49c4-88dc-4c7e-8990-2b9d7aa3bb2a + status: 404 Not Found + code: 404 + duration: 35.757666ms + - id: 49 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/a885af3f-081c-451e-a003-79c351c08f9e + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1093 + uncompressed: false + body: '{"backend_count":0,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":0,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[{"created_at":"2025-06-13T12:18:36.295728Z","id":"f1d1f580-d83b-4737-a62e-c2368e5a611e","ip_address":"","region":"fr-par","status":"pending","updated_at":"2025-06-13T12:32:13.430858Z","zone":"fr-par-1"}],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:32:13.414369Z","zone":"fr-par-1"}' + headers: + Content-Length: + - "1093" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:13 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 020aaec4-79bf-4283-8f7c-c6e8d6ef770b + status: 200 OK + code: 200 + duration: 76.81175ms + - id: 50 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/a885af3f-081c-451e-a003-79c351c08f9e + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1093 + uncompressed: false + body: '{"backend_count":0,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":0,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[{"created_at":"2025-06-13T12:18:36.295728Z","id":"f1d1f580-d83b-4737-a62e-c2368e5a611e","ip_address":"","region":"fr-par","status":"pending","updated_at":"2025-06-13T12:32:13.430858Z","zone":"fr-par-1"}],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:32:13.414369Z","zone":"fr-par-1"}' + headers: + Content-Length: + - "1093" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:13 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9b0d098b-c267-482a-937d-669a8773e855 + status: 200 OK + code: 200 + duration: 82.837667ms + - id: 51 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/a885af3f-081c-451e-a003-79c351c08f9e?release_ip=false + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:14 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a50c6a49-a731-4d73-b269-66e9b34970a7 + status: 204 No Content + code: 204 + duration: 350.16225ms + - id: 52 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/a885af3f-081c-451e-a003-79c351c08f9e + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1095 + uncompressed: false + body: '{"backend_count":0,"created_at":"2025-06-13T12:31:07.174578Z","description":"","frontend_count":0,"id":"a885af3f-081c-451e-a003-79c351c08f9e","instances":[{"created_at":"2025-06-13T12:18:36.295728Z","id":"f1d1f580-d83b-4737-a62e-c2368e5a611e","ip_address":"","region":"fr-par","status":"ready","updated_at":"2025-06-13T12:32:13.768848Z","zone":"fr-par-1"}],"ip":[{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":"a885af3f-081c-451e-a003-79c351c08f9e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"lb_name","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"to_delete","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2025-06-13T12:32:13.845192Z","zone":"fr-par-1"}' + headers: + Content-Length: + - "1095" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:14 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4f6cba32-d8fe-4299-9ea1-212226d90f53 + status: 200 OK + code: 200 + duration: 84.340375ms + - id: 53 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/a885af3f-081c-451e-a003-79c351c08f9e + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 27 + uncompressed: false + body: '{"message":"lbs not Found"}' + headers: + Content-Length: + - "27" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:44 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - af05c3bb-7af3-4c58-b885-8172b3fa1a60 + status: 404 Not Found + code: 404 + duration: 36.988041ms + - id: 54 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/a885af3f-081c-451e-a003-79c351c08f9e + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 27 + uncompressed: false + body: '{"message":"lbs not Found"}' + headers: + Content-Length: + - "27" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:44 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0997993c-35b3-4d1a-9e24-e8d3fef03f3d + status: 404 Not Found + code: 404 + duration: 53.006209ms + - id: 55 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/a4b0735d-7a3b-43d1-8038-e90f60f945b2 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 296 + uncompressed: false + body: '{"id":"a4b0735d-7a3b-43d1-8038-e90f60f945b2","ip_address":"51.159.25.180","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-25-180.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' + headers: + Content-Length: + - "296" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:44 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - fba2a089-bafb-4a86-9467-ac337e648a36 + status: 200 OK + code: 200 + duration: 47.784542ms + - id: 56 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/a4b0735d-7a3b-43d1-8038-e90f60f945b2 + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:44 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3774acf8-e5de-4aff-a833-cf8b29f8737d + status: 204 No Content + code: 204 + duration: 484.592708ms + - id: 57 + 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.2; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/edge-services/v1beta1/backend-stages/c431cbe5-0b97-40a7-b732-8a29369b2103 + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 31 + uncompressed: false + body: '{"message":"Permission denied"}' + headers: + Content-Length: + - "31" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 13 Jun 2025 12:32:44 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 778e5d7b-8eb1-42ca-aad4-4bb5002b1937 + status: 403 Forbidden + code: 403 + duration: 57.711625ms diff --git a/internal/services/edgeservices/types.go b/internal/services/edgeservices/types.go index d2bf19e4be..4d39ed36e1 100644 --- a/internal/services/edgeservices/types.go +++ b/internal/services/edgeservices/types.go @@ -5,6 +5,7 @@ import ( edge_services "github.com/scaleway/scaleway-sdk-go/api/edge_services/v1beta1" "github.com/scaleway/scaleway-sdk-go/scw" "github.com/scaleway/terraform-provider-scaleway/v2/internal/locality" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/locality/zonal" "github.com/scaleway/terraform-provider-scaleway/v2/internal/types" ) @@ -86,7 +87,7 @@ func flattenTLSSecrets(secrets []*edge_services.TLSSecret) any { return secretsI } -func expandLBBackendConfig(raw any) *edge_services.ScalewayLBBackendConfig { +func expandLBBackendConfig(zone scw.Zone, raw any) *edge_services.ScalewayLBBackendConfig { lbConfigs := []*edge_services.ScalewayLB(nil) rawLbConfigs := raw.([]any) @@ -101,7 +102,7 @@ func expandLBBackendConfig(raw any) *edge_services.ScalewayLBBackendConfig { innerMap := lbConfigList[0].(map[string]any) lbConfig := &edge_services.ScalewayLB{ ID: locality.ExpandID(innerMap["id"]), - Zone: scw.Zone(innerMap["zone"].(string)), + Zone: zone, FrontendID: locality.ExpandID(innerMap["frontend_id"]), IsSsl: types.ExpandBoolPtr(innerMap["is_ssl"]), DomainName: types.ExpandStringPtr(innerMap["domain_name"]), @@ -114,25 +115,28 @@ func expandLBBackendConfig(raw any) *edge_services.ScalewayLBBackendConfig { } } -func flattenLBBackendConfig(lbConfigs *edge_services.ScalewayLBBackendConfig) any { +func flattenLBBackendConfig(zone scw.Zone, lbConfigs *edge_services.ScalewayLBBackendConfig) any { if lbConfigs == nil { return nil } - lbConfigsI := []map[string]any(nil) + inner := make([]any, len(lbConfigs.LBs)) - for _, lbConfig := range lbConfigs.LBs { - secretMap := map[string]any{ - "id": lbConfig.ID, - "frontend_id": lbConfig.FrontendID, + for i, lbConfig := range lbConfigs.LBs { + inner[i] = map[string]interface{}{ + "id": zonal.NewIDString(zone, lbConfig.ID), + "frontend_id": zonal.NewIDString(zone, lbConfig.FrontendID), "is_ssl": types.FlattenBoolPtr(lbConfig.IsSsl), "domain_name": types.FlattenStringPtr(lbConfig.DomainName), "zone": lbConfig.Zone.String(), } - lbConfigsI = append(lbConfigsI, secretMap) } - return lbConfigsI + outer := []map[string]interface{}{{ + "lb_config": inner, + }} + + return outer } func wrapSecretsInConfig(secrets []*edge_services.TLSSecret) *edge_services.TLSSecretsConfig {