From c26e20c415152d31b781a9faf33d718bae287abf Mon Sep 17 00:00:00 2001 From: Jonathan Remy Date: Wed, 16 Jul 2025 14:36:32 +0200 Subject: [PATCH] fix(domaim): remove keep empty zone --- docs/resources/domain_record.md | 2 - internal/services/domain/record.go | 9 +- internal/services/domain/record_test.go | 1 - .../domain-record-srv-zone.cassette.yaml | 249 +++++++++++------- 4 files changed, 150 insertions(+), 111 deletions(-) diff --git a/docs/resources/domain_record.md b/docs/resources/domain_record.md index 62cfb6b0a1..cd757aace3 100644 --- a/docs/resources/domain_record.md +++ b/docs/resources/domain_record.md @@ -207,8 +207,6 @@ The following arguments are supported: - `dns_zone` - (Required) The DNS zone of the domain. If the domain has no DNS zone, one will be automatically created. -- `keep_empty_zone` - (Optional, defaults to `false`) When destroying a resource, if only NS records remain and this is set to `false`, the zone will be deleted. Note that each zone not deleted will [be billed](https://www.scaleway.com/en/dns/). - - `name` - (Optional) The name of the record (can be an empty string for a root record). - `type` - (Required) The type of the record (`A`, `AAAA`, `MX`, `CNAME`, `DNAME`, `ALIAS`, `NS`, `PTR`, `SRV`, `TXT`, `TLSA`, or `CAA`). diff --git a/internal/services/domain/record.go b/internal/services/domain/record.go index 63f0eb2e50..d60225aa12 100644 --- a/internal/services/domain/record.go +++ b/internal/services/domain/record.go @@ -29,7 +29,6 @@ var changeKeys = []string{ "weighted", "view", "dns_zone", - "keep_empty_zone", } func ResourceRecord() *schema.Resource { @@ -56,12 +55,6 @@ func ResourceRecord() *schema.Resource { Required: true, ForceNew: true, }, - "keep_empty_zone": { - Type: schema.TypeBool, - Description: "When destroy a resource record, if a zone have only NS, delete the zone", - Optional: true, - Default: false, - }, "root_zone": { Type: schema.TypeBool, Description: "Does the DNS zone is the root zone or not", @@ -503,7 +496,7 @@ func resourceDomainRecordDelete(ctx context.Context, d *schema.ResourceData, m a d.SetId("") // for non-root zone, if the zone have only NS records, then delete the zone - if d.Get("keep_empty_zone").(bool) || d.Get("root_zone").(bool) { + if d.Get("root_zone").(bool) { return nil } diff --git a/internal/services/domain/record_test.go b/internal/services/domain/record_test.go index 4cc44d056a..6b3a9204b7 100644 --- a/internal/services/domain/record_test.go +++ b/internal/services/domain/record_test.go @@ -675,7 +675,6 @@ func TestAccDomainRecord_SRVZone(t *testing.T) { name = "%[2]s" type = "%[3]s" data = "%[4]s" - keep_empty_zone = false } `, testDNSZone, name, recordType, data), Check: resource.ComposeTestCheckFunc( diff --git a/internal/services/domain/testdata/domain-record-srv-zone.cassette.yaml b/internal/services/domain/testdata/domain-record-srv-zone.cassette.yaml index 35705f901e..103a8bf61d 100644 --- a/internal/services/domain/testdata/domain-record-srv-zone.cassette.yaml +++ b/internal/services/domain/testdata/domain-record-srv-zone.cassette.yaml @@ -27,20 +27,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 188 + content_length: 194 uncompressed: false - body: '{"records":[{"comment":null,"data":"100 1 3128 bigbox.example.com.","id":"e485ea00-0d31-440e-9140-f2944caff199","name":"_proxy-preproduction._tcp","priority":100,"ttl":3600,"type":"SRV"}]}' + body: '{"records":[{"comment":null,"data":"100 1 3128 bigbox.example.com.","id":"fbdb94d0-fe8c-40b4-abb2-d612325e305d","name":"_proxy-preproduction._tcp","priority":100,"ttl":3600,"type":"SRV"}]}' headers: Content-Length: - - "188" + - "194" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Mar 2025 10:07:33 GMT + - Wed, 16 Jul 2025 12:20:10 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -48,10 +48,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 1f6f309a-e015-4f48-b55b-fef8b4c20380 + - afbc7792-7747-4ba0-810f-287232f291e4 status: 200 OK code: 200 - duration: 606.68025ms + duration: 1.027307292s - id: 1 request: proto: HTTP/1.1 @@ -76,20 +76,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 204 + content_length: 211 uncompressed: false - body: '{"records":[{"comment":null,"data":"100 1 3128 bigbox.example.com.","id":"e485ea00-0d31-440e-9140-f2944caff199","name":"_proxy-preproduction._tcp","priority":100,"ttl":3600,"type":"SRV"}],"total_count":1}' + body: '{"records":[{"comment":null,"data":"100 1 3128 bigbox.example.com.","id":"fbdb94d0-fe8c-40b4-abb2-d612325e305d","name":"_proxy-preproduction._tcp","priority":100,"ttl":3600,"type":"SRV"}],"total_count":1}' headers: Content-Length: - - "204" + - "211" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Mar 2025 10:07:33 GMT + - Wed, 16 Jul 2025 12:20:10 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -97,10 +97,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 9b666ad0-cc36-4faf-a139-a3b2539975db + - f2f7860f-08a5-4830-bd0b-670f500da5ee status: 200 OK code: 200 - duration: 117.473916ms + duration: 139.298625ms - id: 2 request: proto: HTTP/1.1 @@ -125,20 +125,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 204 + content_length: 211 uncompressed: false - body: '{"records":[{"comment":null,"data":"100 1 3128 bigbox.example.com.","id":"e485ea00-0d31-440e-9140-f2944caff199","name":"_proxy-preproduction._tcp","priority":100,"ttl":3600,"type":"SRV"}],"total_count":1}' + body: '{"records":[{"comment":null,"data":"100 1 3128 bigbox.example.com.","id":"fbdb94d0-fe8c-40b4-abb2-d612325e305d","name":"_proxy-preproduction._tcp","priority":100,"ttl":3600,"type":"SRV"}],"total_count":1}' headers: Content-Length: - - "204" + - "211" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Mar 2025 10:07:33 GMT + - Wed, 16 Jul 2025 12:20:10 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -146,10 +146,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 5f53bc1f-fec9-49ad-83a4-17be2c7c388a + - 71b5d4b6-e179-4f35-81b9-316c460703c3 status: 200 OK code: 200 - duration: 70.277625ms + duration: 88.373542ms - id: 3 request: proto: HTTP/1.1 @@ -166,7 +166,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/domain/v2beta1/dns-zones/test-srv.scaleway-terraform.com/records?id=e485ea00-0d31-440e-9140-f2944caff199&name=&order_by=name_asc&page=1&type=unknown + url: https://api.scaleway.com/domain/v2beta1/dns-zones/test-srv.scaleway-terraform.com/records?id=fbdb94d0-fe8c-40b4-abb2-d612325e305d&name=&order_by=name_asc&page=1&type=unknown method: GET response: proto: HTTP/2.0 @@ -174,20 +174,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 204 + content_length: 211 uncompressed: false - body: '{"records":[{"comment":null,"data":"100 1 3128 bigbox.example.com.","id":"e485ea00-0d31-440e-9140-f2944caff199","name":"_proxy-preproduction._tcp","priority":100,"ttl":3600,"type":"SRV"}],"total_count":1}' + body: '{"records":[{"comment":null,"data":"100 1 3128 bigbox.example.com.","id":"fbdb94d0-fe8c-40b4-abb2-d612325e305d","name":"_proxy-preproduction._tcp","priority":100,"ttl":3600,"type":"SRV"}],"total_count":1}' headers: Content-Length: - - "204" + - "211" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Mar 2025 10:07:34 GMT + - Wed, 16 Jul 2025 12:20:10 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -195,10 +195,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - f4abdc61-4eac-4104-a500-6bc7f6b0d7b3 + - 444930b5-6bce-40f8-a2cb-c9ae1b7a450e status: 200 OK code: 200 - duration: 71.808041ms + duration: 177.191125ms - id: 4 request: proto: HTTP/1.1 @@ -223,20 +223,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 350 + content_length: 362 uncompressed: false - body: '{"dns_zones":[{"domain":"scaleway-terraform.com","linked_products":[],"message":null,"ns":["ns0.dom.scw.cloud","ns1.dom.scw.cloud"],"ns_default":["ns0.dom.scw.cloud","ns1.dom.scw.cloud"],"ns_master":[],"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"pending","subdomain":"test-srv","updated_at":"2025-03-12T10:07:33Z"}],"total_count":1}' + body: '{"dns_zones":[{"domain":"scaleway-terraform.com","linked_products":[],"message":null,"ns":["ns0.dom.scw.cloud","ns1.dom.scw.cloud"],"ns_default":["ns0.dom.scw.cloud","ns1.dom.scw.cloud"],"ns_master":[],"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"pending","subdomain":"test-srv","updated_at":"2025-07-16T12:20:10Z"}],"total_count":1}' headers: Content-Length: - - "350" + - "362" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Mar 2025 10:07:34 GMT + - Wed, 16 Jul 2025 12:20:10 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -244,10 +244,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 0da36d4b-9eac-451d-a8ec-d442e59fa543 + - 3b3069ba-bc25-48de-ad6a-8116951923ba status: 200 OK code: 200 - duration: 70.718666ms + duration: 80.29375ms - id: 5 request: proto: HTTP/1.1 @@ -272,20 +272,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 474 + content_length: 495 uncompressed: false - body: '{"records":[{"comment":null,"data":"ns0.dom.scw.cloud.","id":"300f91dc-4aeb-4af2-bdd5-799e45de3fdc","name":"","priority":0,"ttl":1800,"type":"NS"},{"comment":null,"data":"ns1.dom.scw.cloud.","id":"2b40200b-fcab-49f0-a00c-157e876a682a","name":"","priority":0,"ttl":1800,"type":"NS"},{"comment":null,"data":"100 1 3128 bigbox.example.com.","id":"e485ea00-0d31-440e-9140-f2944caff199","name":"_proxy-preproduction._tcp","priority":100,"ttl":3600,"type":"SRV"}],"total_count":3}' + body: '{"records":[{"comment":null,"data":"ns0.dom.scw.cloud.","id":"38489364-f311-4f9a-806c-78600931d819","name":"","priority":0,"ttl":1800,"type":"NS"},{"comment":null,"data":"ns1.dom.scw.cloud.","id":"00f0570e-98aa-4e02-ad58-6f5548a7664a","name":"","priority":0,"ttl":1800,"type":"NS"},{"comment":null,"data":"100 1 3128 bigbox.example.com.","id":"fbdb94d0-fe8c-40b4-abb2-d612325e305d","name":"_proxy-preproduction._tcp","priority":100,"ttl":3600,"type":"SRV"}],"total_count":3}' headers: Content-Length: - - "474" + - "495" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Mar 2025 10:07:34 GMT + - Wed, 16 Jul 2025 12:20:11 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -293,10 +293,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 1da62d82-6fa1-4090-87c7-371e034cd3ed + - faf33f97-d5ab-48eb-9268-c9afe6e73998 status: 200 OK code: 200 - duration: 66.719167ms + duration: 237.542625ms - id: 6 request: proto: HTTP/1.1 @@ -313,7 +313,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/domain/v2beta1/dns-zones/test-srv.scaleway-terraform.com/records?id=e485ea00-0d31-440e-9140-f2944caff199&name=_proxy-preproduction._tcp&order_by=name_asc&page=1&type=SRV + url: https://api.scaleway.com/domain/v2beta1/dns-zones/test-srv.scaleway-terraform.com/records?id=fbdb94d0-fe8c-40b4-abb2-d612325e305d&name=_proxy-preproduction._tcp&order_by=name_asc&page=1&type=SRV method: GET response: proto: HTTP/2.0 @@ -321,20 +321,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 204 + content_length: 211 uncompressed: false - body: '{"records":[{"comment":null,"data":"100 1 3128 bigbox.example.com.","id":"e485ea00-0d31-440e-9140-f2944caff199","name":"_proxy-preproduction._tcp","priority":100,"ttl":3600,"type":"SRV"}],"total_count":1}' + body: '{"records":[{"comment":null,"data":"100 1 3128 bigbox.example.com.","id":"fbdb94d0-fe8c-40b4-abb2-d612325e305d","name":"_proxy-preproduction._tcp","priority":100,"ttl":3600,"type":"SRV"}],"total_count":1}' headers: Content-Length: - - "204" + - "211" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Mar 2025 10:07:35 GMT + - Wed, 16 Jul 2025 12:20:12 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -342,10 +342,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - bf329efa-88ec-4c40-8ae9-330ef42abcb9 + - 181129c2-ba2d-40f1-90ae-333f35b55a92 status: 200 OK code: 200 - duration: 86.038709ms + duration: 93.073667ms - id: 7 request: proto: HTTP/1.1 @@ -370,20 +370,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 350 + content_length: 362 uncompressed: false - body: '{"dns_zones":[{"domain":"scaleway-terraform.com","linked_products":[],"message":null,"ns":["ns0.dom.scw.cloud","ns1.dom.scw.cloud"],"ns_default":["ns0.dom.scw.cloud","ns1.dom.scw.cloud"],"ns_master":[],"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"pending","subdomain":"test-srv","updated_at":"2025-03-12T10:07:33Z"}],"total_count":1}' + body: '{"dns_zones":[{"domain":"scaleway-terraform.com","linked_products":[],"message":null,"ns":["ns0.dom.scw.cloud","ns1.dom.scw.cloud"],"ns_default":["ns0.dom.scw.cloud","ns1.dom.scw.cloud"],"ns_master":[],"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"pending","subdomain":"test-srv","updated_at":"2025-07-16T12:20:10Z"}],"total_count":1}' headers: Content-Length: - - "350" + - "362" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Mar 2025 10:07:35 GMT + - Wed, 16 Jul 2025 12:20:12 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -391,10 +391,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - cfdd0075-6a9f-47ed-a16d-7c67db7e233c + - f1310440-3699-4cd2-9b5f-b5257af33195 status: 200 OK code: 200 - duration: 68.758583ms + duration: 98.608333ms - id: 8 request: proto: HTTP/1.1 @@ -406,7 +406,7 @@ interactions: host: api.scaleway.com remote_addr: "" request_uri: "" - body: '{"changes":[{"delete":{"id":"e485ea00-0d31-440e-9140-f2944caff199"}}],"return_all_records":false,"disallow_new_zone_creation":false}' + body: '{"changes":[{"delete":{"id":"fbdb94d0-fe8c-40b4-abb2-d612325e305d"}}],"return_all_records":false,"disallow_new_zone_creation":false}' form: {} headers: Content-Type: @@ -432,9 +432,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 12 Mar 2025 10:07:37 GMT + - Wed, 16 Jul 2025 12:20:13 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -442,10 +442,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 1108d426-e981-4f4b-b040-347f8c482a51 + - 61d95ef1-c7ba-4402-be0c-3b96042967b5 status: 200 OK code: 200 - duration: 123.168917ms + duration: 128.473042ms - id: 9 request: proto: HTTP/1.1 @@ -470,20 +470,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 299 + content_length: 313 uncompressed: false - body: '{"records":[{"comment":null,"data":"ns0.dom.scw.cloud.","id":"300f91dc-4aeb-4af2-bdd5-799e45de3fdc","name":"","priority":0,"ttl":1800,"type":"NS"},{"comment":null,"data":"ns1.dom.scw.cloud.","id":"2b40200b-fcab-49f0-a00c-157e876a682a","name":"","priority":0,"ttl":1800,"type":"NS"}],"total_count":2}' + body: '{"records":[{"comment":null,"data":"ns0.dom.scw.cloud.","id":"38489364-f311-4f9a-806c-78600931d819","name":"","priority":0,"ttl":1800,"type":"NS"},{"comment":null,"data":"ns1.dom.scw.cloud.","id":"00f0570e-98aa-4e02-ad58-6f5548a7664a","name":"","priority":0,"ttl":1800,"type":"NS"}],"total_count":2}' headers: Content-Length: - - "299" + - "313" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Mar 2025 10:07:37 GMT + - Wed, 16 Jul 2025 12:20:13 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -491,10 +491,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 46aac28e-30eb-4640-9311-8f31224b6afd + - d31e402d-4062-40ae-b606-e3c1e3b16dcd status: 200 OK code: 200 - duration: 84.697417ms + duration: 160.813416ms - id: 10 request: proto: HTTP/1.1 @@ -519,20 +519,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 350 + content_length: 362 uncompressed: false - body: '{"dns_zones":[{"domain":"scaleway-terraform.com","linked_products":[],"message":null,"ns":["ns0.dom.scw.cloud","ns1.dom.scw.cloud"],"ns_default":["ns0.dom.scw.cloud","ns1.dom.scw.cloud"],"ns_master":[],"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"pending","subdomain":"test-srv","updated_at":"2025-03-12T10:07:37Z"}],"total_count":1}' + body: '{"dns_zones":[{"domain":"scaleway-terraform.com","linked_products":[],"message":null,"ns":["ns0.dom.scw.cloud","ns1.dom.scw.cloud"],"ns_default":["ns0.dom.scw.cloud","ns1.dom.scw.cloud"],"ns_master":[],"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"pending","subdomain":"test-srv","updated_at":"2025-07-16T12:20:13Z"}],"total_count":1}' headers: Content-Length: - - "350" + - "362" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Mar 2025 10:07:37 GMT + - Wed, 16 Jul 2025 12:20:13 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -540,10 +540,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 387db947-f12b-467b-b6a8-358f9d6f02db + - e6d5e6f8-0dcd-4079-88eb-b7964ccce78f status: 200 OK code: 200 - duration: 92.808042ms + duration: 84.655916ms - id: 11 request: proto: HTTP/1.1 @@ -568,20 +568,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 350 + content_length: 362 uncompressed: false - body: '{"dns_zones":[{"domain":"scaleway-terraform.com","linked_products":[],"message":null,"ns":["ns0.dom.scw.cloud","ns1.dom.scw.cloud"],"ns_default":["ns0.dom.scw.cloud","ns1.dom.scw.cloud"],"ns_master":[],"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"pending","subdomain":"test-srv","updated_at":"2025-03-12T10:07:37Z"}],"total_count":1}' + body: '{"dns_zones":[{"domain":"scaleway-terraform.com","linked_products":[],"message":null,"ns":["ns0.dom.scw.cloud","ns1.dom.scw.cloud"],"ns_default":["ns0.dom.scw.cloud","ns1.dom.scw.cloud"],"ns_master":[],"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"pending","subdomain":"test-srv","updated_at":"2025-07-16T12:20:13Z"}],"total_count":1}' headers: Content-Length: - - "350" + - "362" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Mar 2025 10:07:42 GMT + - Wed, 16 Jul 2025 12:20:18 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -589,10 +589,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - d3ba3405-dddc-4fe0-a4ed-da4478be464a + - e8933318-ef48-4d53-9ad8-b5fd498f6ca8 status: 200 OK code: 200 - duration: 89.269ms + duration: 119.971709ms - id: 12 request: proto: HTTP/1.1 @@ -617,20 +617,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 349 + content_length: 362 uncompressed: false - body: '{"dns_zones":[{"domain":"scaleway-terraform.com","linked_products":[],"message":null,"ns":["ns0.dom.scw.cloud","ns1.dom.scw.cloud"],"ns_default":["ns0.dom.scw.cloud","ns1.dom.scw.cloud"],"ns_master":[],"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"active","subdomain":"test-srv","updated_at":"2025-03-12T10:07:44Z"}],"total_count":1}' + body: '{"dns_zones":[{"domain":"scaleway-terraform.com","linked_products":[],"message":null,"ns":["ns0.dom.scw.cloud","ns1.dom.scw.cloud"],"ns_default":["ns0.dom.scw.cloud","ns1.dom.scw.cloud"],"ns_master":[],"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"pending","subdomain":"test-srv","updated_at":"2025-07-16T12:20:13Z"}],"total_count":1}' headers: Content-Length: - - "349" + - "362" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Mar 2025 10:07:47 GMT + - Wed, 16 Jul 2025 12:20:23 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -638,11 +638,60 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 040f8f61-bb76-4a02-b246-9c00b4c22438 + - 4c7b7ca2-ed3e-42f1-bbe8-ee625550c98b status: 200 OK code: 200 - duration: 85.200583ms + duration: 100.698625ms - 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.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/domain/v2beta1/dns-zones?dns_zone=test-srv.scaleway-terraform.com&domain=&order_by=domain_asc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 361 + uncompressed: false + body: '{"dns_zones":[{"domain":"scaleway-terraform.com","linked_products":[],"message":null,"ns":["ns0.dom.scw.cloud","ns1.dom.scw.cloud"],"ns_default":["ns0.dom.scw.cloud","ns1.dom.scw.cloud"],"ns_master":[],"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"active","subdomain":"test-srv","updated_at":"2025-07-16T12:20:24Z"}],"total_count":1}' + headers: + Content-Length: + - "361" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 16 Jul 2025 12:20:28 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: + - c6808582-b31a-4e65-80bc-c47df6c03d41 + status: 200 OK + code: 200 + duration: 97.452709ms + - id: 14 request: proto: HTTP/1.1 proto_major: 1 @@ -677,9 +726,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 12 Mar 2025 10:07:47 GMT + - Wed, 16 Jul 2025 12:20:28 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -687,11 +736,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - abce6202-715f-462a-93d8-06f898661288 + - 895fc51b-9e12-4c0d-890b-f36df13da01d status: 200 OK code: 200 - duration: 137.38725ms - - id: 14 + duration: 165.272041ms + - id: 15 request: proto: HTTP/1.1 proto_major: 1 @@ -726,9 +775,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 12 Mar 2025 10:07:47 GMT + - Wed, 16 Jul 2025 12:20:28 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -736,7 +785,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - b6c6b8a6-8700-47e8-b129-d79d92a8bb48 + - 9b4ac104-c632-4c22-91c7-ef8cd9036eb3 status: 403 Forbidden code: 403 - duration: 67.631792ms + duration: 129.817833ms