From 62dc20a4e287ad5088b66237c6a9aa8da5a18165 Mon Sep 17 00:00:00 2001 From: devtools-ci-cd Date: Tue, 10 Dec 2024 16:21:05 +0100 Subject: [PATCH 1/5] feat(cockpit): add retention days in resource source --- docs/resources/cockpit_source.md | 2 + internal/services/cockpit/source.go | 20 +- internal/services/cockpit/source_test.go | 43 ++ ...cockpit-source-basic-metrics.cassette.yaml | 164 +++--- ...ockpit-source-retention-days.cassette.yaml | 493 ++++++++++++++++++ 5 files changed, 636 insertions(+), 86 deletions(-) create mode 100644 internal/services/cockpit/testdata/cockpit-source-retention-days.cassette.yaml diff --git a/docs/resources/cockpit_source.md b/docs/resources/cockpit_source.md index d124f9927b..c297bf52ba 100644 --- a/docs/resources/cockpit_source.md +++ b/docs/resources/cockpit_source.md @@ -24,6 +24,7 @@ resource "scaleway_cockpit_source" "main" { project_id = scaleway_account_project.project.id name = "my-data-source" type = "metrics" + retention_days = 6 } ``` @@ -35,6 +36,7 @@ This section lists the arguments that are supported: - `type` - (Required) The [type](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#data-types) of data source. Possible values are: `metrics`, `logs`, or `traces`. - `region` - (Defaults to the region specified in the [provider configuration](../index.md#region)) The [region](../guides/regions_and_zones.md#regions) where the data source is located. - `project_id` - (Defaults to the Project ID specified in the [provider configuration](../index.md#project_id)) The ID of the Project the data source is associated with. +- `retention_days` - (Optional, Defaults to 6) The number of days to retain data in the data source. Must be a value between 1 and 365. Changes to this field will force the creation of a new resource. ## Attributes Reference diff --git a/internal/services/cockpit/source.go b/internal/services/cockpit/source.go index 4107d20e8d..7af6ef7f58 100644 --- a/internal/services/cockpit/source.go +++ b/internal/services/cockpit/source.go @@ -42,6 +42,13 @@ func ResourceCockpitSource() *schema.Resource { Description: "The type of the datasource", ValidateDiagFunc: verify.ValidateEnum[cockpit.DataSourceType](), }, + "retention_days": { + Type: schema.TypeInt, + Optional: true, + Default: 6, + ForceNew: true, + Description: "The number of days to retain data, must be between 1 and 365.", + }, // computed "url": { Type: schema.TypeString, @@ -85,12 +92,16 @@ func ResourceCockpitSourceCreate(ctx context.Context, d *schema.ResourceData, me return diag.FromErr(err) } + retentionDays := uint32(d.Get("retention_days").(int)) + res, err := api.CreateDataSource(&cockpit.RegionalAPICreateDataSourceRequest{ - Region: region, - ProjectID: d.Get("project_id").(string), - Name: d.Get("name").(string), - Type: cockpit.DataSourceType(d.Get("type").(string)), + Region: region, + ProjectID: d.Get("project_id").(string), + Name: d.Get("name").(string), + Type: cockpit.DataSourceType(d.Get("type").(string)), + RetentionDays: &retentionDays, }, scw.WithContext(ctx)) + if err != nil { return diag.FromErr(err) } @@ -132,6 +143,7 @@ func ResourceCockpitSourceRead(ctx context.Context, d *schema.ResourceData, meta _ = d.Set("updated_at", types.FlattenTime(res.UpdatedAt)) _ = d.Set("project_id", res.ProjectID) _ = d.Set("push_url", pushURL) + _ = d.Set("retention_days", res.RetentionDays) return nil } diff --git a/internal/services/cockpit/source_test.go b/internal/services/cockpit/source_test.go index 8b942d9df3..48b5d0cbbf 100644 --- a/internal/services/cockpit/source_test.go +++ b/internal/services/cockpit/source_test.go @@ -38,6 +38,7 @@ func TestAccCockpitSource_Basic_metrics(t *testing.T) { resource.TestCheckResourceAttr("scaleway_cockpit_source.main", "name", "my-source"), resource.TestCheckResourceAttr("scaleway_cockpit_source.main", "type", "metrics"), resource.TestCheckResourceAttr("scaleway_cockpit_source.main", "region", "fr-par"), + resource.TestCheckResourceAttr("scaleway_cockpit_source.main", "retention_days", "6"), resource.TestCheckResourceAttrSet("scaleway_cockpit_source.main", "url"), resource.TestCheckResourceAttrSet("scaleway_cockpit_source.main", "push_url"), resource.TestCheckResourceAttrSet("scaleway_cockpit_source.main", "origin"), @@ -90,6 +91,48 @@ func TestAccCockpitSource_Basic_logs(t *testing.T) { }) } +func TestAccCockpitSource_retention_days(t *testing.T) { + tt := acctest.NewTestTools(t) + defer tt.Cleanup() + + resource.ParallelTest(t, resource.TestCase{ + PreCheck: func() { acctest.PreCheck(t) }, + ProviderFactories: tt.ProviderFactories, + CheckDestroy: isSourceDestroyed(tt), + Steps: []resource.TestStep{ + { + Config: ` + resource "scaleway_account_project" "project" { + name = "tf_tests_cockpit_datasource_basic" + } + + resource "scaleway_cockpit_source" "main" { + project_id = scaleway_account_project.project.id + name = "my-source" + type = "logs" + retention_days = 13 + + } + `, + Check: resource.ComposeTestCheckFunc( + isSourcePresent(tt, "scaleway_cockpit_source.main"), + resource.TestCheckResourceAttr("scaleway_cockpit_source.main", "name", "my-source"), + resource.TestCheckResourceAttr("scaleway_cockpit_source.main", "type", "logs"), + resource.TestCheckResourceAttr("scaleway_cockpit_source.main", "region", "fr-par"), + resource.TestCheckResourceAttr("scaleway_cockpit_source.main", "retention_days", "13"), + resource.TestCheckResourceAttrSet("scaleway_cockpit_source.main", "url"), + resource.TestCheckResourceAttrSet("scaleway_cockpit_source.main", "push_url"), + resource.TestCheckResourceAttrSet("scaleway_cockpit_source.main", "origin"), + resource.TestCheckResourceAttrSet("scaleway_cockpit_source.main", "created_at"), + resource.TestCheckResourceAttrSet("scaleway_cockpit_source.main", "updated_at"), + resource.TestCheckResourceAttrSet("scaleway_cockpit_source.main", "synchronized_with_grafana"), + resource.TestCheckResourceAttrPair("scaleway_cockpit_source.main", "project_id", "scaleway_account_project.project", "id"), + ), + }, + }, + }) +} + func isSourcePresent(tt *acctest.TestTools, n string) resource.TestCheckFunc { return func(state *terraform.State) error { rs, ok := state.RootModule().Resources[n] diff --git a/internal/services/cockpit/testdata/cockpit-source-basic-metrics.cassette.yaml b/internal/services/cockpit/testdata/cockpit-source-basic-metrics.cassette.yaml index 98d7df1509..bf804c460b 100644 --- a/internal/services/cockpit/testdata/cockpit-source-basic-metrics.cassette.yaml +++ b/internal/services/cockpit/testdata/cockpit-source-basic-metrics.cassette.yaml @@ -18,7 +18,7 @@ interactions: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests url: https://api.scaleway.com/account/v3/projects method: POST response: @@ -27,20 +27,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 253 + content_length: 248 uncompressed: false - body: '{"created_at":"2024-09-19T09:04:37.858195Z","description":"","id":"faed509e-4da5-4198-9dd7-67947765ce36","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-09-19T09:04:37.858195Z"}' + body: '{"created_at":"2024-12-10T15:17:34.936787Z","description":"","id":"4d16717e-4970-454c-ad8f-1c40c0131e76","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-10T15:17:34.936787Z"}' headers: Content-Length: - - "253" + - "248" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 19 Sep 2024 09:04:38 GMT + - Tue, 10 Dec 2024 15:17:35 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-1;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -48,10 +48,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 07aa69e1-eae7-4a59-9bb9-24c8c69d04bb + - fab0ddb1-ddcf-4957-9c91-686320ae4714 status: 200 OK code: 200 - duration: 273.063975ms + duration: 381.652042ms - id: 1 request: proto: HTTP/1.1 @@ -67,8 +67,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/faed509e-4da5-4198-9dd7-67947765ce36 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/4d16717e-4970-454c-ad8f-1c40c0131e76 method: GET response: proto: HTTP/2.0 @@ -76,20 +76,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 253 + content_length: 248 uncompressed: false - body: '{"created_at":"2024-09-19T09:04:37.858195Z","description":"","id":"faed509e-4da5-4198-9dd7-67947765ce36","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-09-19T09:04:37.858195Z"}' + body: '{"created_at":"2024-12-10T15:17:34.936787Z","description":"","id":"4d16717e-4970-454c-ad8f-1c40c0131e76","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-10T15:17:34.936787Z"}' headers: Content-Length: - - "253" + - "248" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 19 Sep 2024 09:04:38 GMT + - Tue, 10 Dec 2024 15:17:35 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-1;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -97,28 +97,28 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 4178d406-0849-4bb9-94e5-53b5c29869b8 + - b4987392-1c47-4134-b8a8-634cd24b0fce status: 200 OK code: 200 - duration: 91.366804ms + duration: 154.503833ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 89 + content_length: 108 transfer_encoding: [] trailer: {} host: api.scaleway.com remote_addr: "" request_uri: "" - body: '{"project_id":"faed509e-4da5-4198-9dd7-67947765ce36","name":"my-source","type":"metrics"}' + body: '{"project_id":"4d16717e-4970-454c-ad8f-1c40c0131e76","name":"my-source","type":"metrics","retention_days":6}' form: {} headers: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources method: POST response: @@ -127,20 +127,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 386 + content_length: 394 uncompressed: false - body: '{"created_at":"2024-09-19T09:04:38.311618Z","id":"b0901127-6489-4a6a-b282-8253c15d2fd0","name":"my-source","origin":"external","project_id":"faed509e-4da5-4198-9dd7-67947765ce36","region":"fr-par","synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-09-19T09:04:38.311618Z","url":"https://b0901127-6489-4a6a-b282-8253c15d2fd0.metrics.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-10T15:17:35.588322Z","id":"ec32de22-110c-4730-8634-5491c3220310","name":"my-source","origin":"custom","project_id":"4d16717e-4970-454c-ad8f-1c40c0131e76","region":"fr-par","retention_days":6,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-10T15:17:35.588322Z","url":"https://ec32de22-110c-4730-8634-5491c3220310.metrics.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - - "386" + - "394" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 19 Sep 2024 09:04:38 GMT + - Tue, 10 Dec 2024 15:17:35 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-1;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -148,10 +148,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - de69c5e9-cf71-4ba6-b19f-e902afe3b14f + - afa27f77-2671-4632-8028-50b36792daae status: 200 OK code: 200 - duration: 226.416862ms + duration: 297.43ms - id: 3 request: proto: HTTP/1.1 @@ -167,8 +167,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/b0901127-6489-4a6a-b282-8253c15d2fd0 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/ec32de22-110c-4730-8634-5491c3220310 method: GET response: proto: HTTP/2.0 @@ -176,20 +176,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 386 + content_length: 394 uncompressed: false - body: '{"created_at":"2024-09-19T09:04:38.311618Z","id":"b0901127-6489-4a6a-b282-8253c15d2fd0","name":"my-source","origin":"external","project_id":"faed509e-4da5-4198-9dd7-67947765ce36","region":"fr-par","synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-09-19T09:04:38.311618Z","url":"https://b0901127-6489-4a6a-b282-8253c15d2fd0.metrics.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-10T15:17:35.588322Z","id":"ec32de22-110c-4730-8634-5491c3220310","name":"my-source","origin":"custom","project_id":"4d16717e-4970-454c-ad8f-1c40c0131e76","region":"fr-par","retention_days":6,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-10T15:17:35.588322Z","url":"https://ec32de22-110c-4730-8634-5491c3220310.metrics.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - - "386" + - "394" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 19 Sep 2024 09:04:38 GMT + - Tue, 10 Dec 2024 15:17:35 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-1;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -197,10 +197,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 98bccd4d-d04f-40f6-88ae-9294b4053b9f + - 66f9621e-8df2-4347-9223-af58049405a1 status: 200 OK code: 200 - duration: 57.524136ms + duration: 78.804708ms - id: 4 request: proto: HTTP/1.1 @@ -216,8 +216,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/b0901127-6489-4a6a-b282-8253c15d2fd0 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/ec32de22-110c-4730-8634-5491c3220310 method: GET response: proto: HTTP/2.0 @@ -225,20 +225,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 386 + content_length: 394 uncompressed: false - body: '{"created_at":"2024-09-19T09:04:38.311618Z","id":"b0901127-6489-4a6a-b282-8253c15d2fd0","name":"my-source","origin":"external","project_id":"faed509e-4da5-4198-9dd7-67947765ce36","region":"fr-par","synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-09-19T09:04:38.311618Z","url":"https://b0901127-6489-4a6a-b282-8253c15d2fd0.metrics.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-10T15:17:35.588322Z","id":"ec32de22-110c-4730-8634-5491c3220310","name":"my-source","origin":"custom","project_id":"4d16717e-4970-454c-ad8f-1c40c0131e76","region":"fr-par","retention_days":6,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-10T15:17:35.588322Z","url":"https://ec32de22-110c-4730-8634-5491c3220310.metrics.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - - "386" + - "394" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 19 Sep 2024 09:04:38 GMT + - Tue, 10 Dec 2024 15:17:35 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-1;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -246,10 +246,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 96e95733-2698-4cff-9a4a-ca04677d5529 + - ad18a70e-14bd-493f-aeb9-126e3846952a status: 200 OK code: 200 - duration: 57.886587ms + duration: 64.076625ms - id: 5 request: proto: HTTP/1.1 @@ -265,8 +265,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/faed509e-4da5-4198-9dd7-67947765ce36 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/4d16717e-4970-454c-ad8f-1c40c0131e76 method: GET response: proto: HTTP/2.0 @@ -274,20 +274,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 253 + content_length: 248 uncompressed: false - body: '{"created_at":"2024-09-19T09:04:37.858195Z","description":"","id":"faed509e-4da5-4198-9dd7-67947765ce36","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-09-19T09:04:37.858195Z"}' + body: '{"created_at":"2024-12-10T15:17:34.936787Z","description":"","id":"4d16717e-4970-454c-ad8f-1c40c0131e76","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-10T15:17:34.936787Z"}' headers: Content-Length: - - "253" + - "248" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 19 Sep 2024 09:04:39 GMT + - Tue, 10 Dec 2024 15:17:36 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-1;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -295,10 +295,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 09460014-dc0f-445b-842f-e05cad04b3ea + - 84b9c61d-55b7-40bd-b94b-dfae4b67d2b4 status: 200 OK code: 200 - duration: 101.876151ms + duration: 116.318959ms - id: 6 request: proto: HTTP/1.1 @@ -314,8 +314,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/b0901127-6489-4a6a-b282-8253c15d2fd0 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/ec32de22-110c-4730-8634-5491c3220310 method: GET response: proto: HTTP/2.0 @@ -323,20 +323,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 386 + content_length: 394 uncompressed: false - body: '{"created_at":"2024-09-19T09:04:38.311618Z","id":"b0901127-6489-4a6a-b282-8253c15d2fd0","name":"my-source","origin":"external","project_id":"faed509e-4da5-4198-9dd7-67947765ce36","region":"fr-par","synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-09-19T09:04:38.311618Z","url":"https://b0901127-6489-4a6a-b282-8253c15d2fd0.metrics.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-10T15:17:35.588322Z","id":"ec32de22-110c-4730-8634-5491c3220310","name":"my-source","origin":"custom","project_id":"4d16717e-4970-454c-ad8f-1c40c0131e76","region":"fr-par","retention_days":6,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-10T15:17:35.588322Z","url":"https://ec32de22-110c-4730-8634-5491c3220310.metrics.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - - "386" + - "394" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 19 Sep 2024 09:04:39 GMT + - Tue, 10 Dec 2024 15:17:36 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-1;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -344,10 +344,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 389f1b02-d645-46c8-8c00-a130005b370a + - e3d78b2f-4377-48bc-bba1-2c2bfdb86a47 status: 200 OK code: 200 - duration: 56.682861ms + duration: 75.319792ms - id: 7 request: proto: HTTP/1.1 @@ -363,8 +363,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/b0901127-6489-4a6a-b282-8253c15d2fd0 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/ec32de22-110c-4730-8634-5491c3220310 method: DELETE response: proto: HTTP/2.0 @@ -381,9 +381,9 @@ interactions: Content-Type: - application/json Date: - - Thu, 19 Sep 2024 09:04:45 GMT + - Tue, 10 Dec 2024 15:17:37 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-1;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -391,10 +391,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 367a05af-ba9f-4d88-81a7-f56c99a2060e + - 09bf1359-a044-4b2a-b2c2-b44dabdc0040 status: 204 No Content code: 204 - duration: 5.582140886s + duration: 500.001333ms - id: 8 request: proto: HTTP/1.1 @@ -410,8 +410,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/faed509e-4da5-4198-9dd7-67947765ce36 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/4d16717e-4970-454c-ad8f-1c40c0131e76 method: DELETE response: proto: HTTP/2.0 @@ -428,9 +428,9 @@ interactions: Content-Type: - application/json Date: - - Thu, 19 Sep 2024 09:04:46 GMT + - Tue, 10 Dec 2024 15:17:39 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-1;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -438,10 +438,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 5c9da858-d4ff-4843-980b-22a6468e05d9 + - 0d07a765-adf4-4cca-a4a4-c75fcb0783a3 status: 204 No Content code: 204 - duration: 1.331958582s + duration: 1.834266833s - id: 9 request: proto: HTTP/1.1 @@ -457,8 +457,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/b0901127-6489-4a6a-b282-8253c15d2fd0 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/ec32de22-110c-4730-8634-5491c3220310 method: GET response: proto: HTTP/2.0 @@ -468,7 +468,7 @@ interactions: trailer: {} content_length: 132 uncompressed: false - body: '{"message":"resource is not found","resource":"data source","resource_id":"b0901127-6489-4a6a-b282-8253c15d2fd0","type":"not_found"}' + body: '{"message":"resource is not found","resource":"data source","resource_id":"ec32de22-110c-4730-8634-5491c3220310","type":"not_found"}' headers: Content-Length: - "132" @@ -477,9 +477,9 @@ interactions: Content-Type: - application/json Date: - - Thu, 19 Sep 2024 09:04:46 GMT + - Tue, 10 Dec 2024 15:17:39 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-1;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -487,7 +487,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 7569973b-4e7a-4533-98e7-a55c8c7225f0 + - ba7bb7c2-5489-4f0d-83c1-67e93bae4ae7 status: 404 Not Found code: 404 - duration: 32.910222ms + duration: 25.91775ms diff --git a/internal/services/cockpit/testdata/cockpit-source-retention-days.cassette.yaml b/internal/services/cockpit/testdata/cockpit-source-retention-days.cassette.yaml new file mode 100644 index 0000000000..7ab80abe83 --- /dev/null +++ b/internal/services/cockpit/testdata/cockpit-source-retention-days.cassette.yaml @@ -0,0 +1,493 @@ +--- +version: 2 +interactions: + - id: 0 + 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":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","description":""}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 248 + uncompressed: false + body: '{"created_at":"2024-12-10T15:17:51.716983Z","description":"","id":"3aa3aa81-d0d9-42d6-94c1-4543603a4cfe","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-10T15:17:51.716983Z"}' + headers: + Content-Length: + - "248" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Dec 2024 15:17:51 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e2079db9-b922-4d19-81ed-832b8229741f + status: 200 OK + code: 200 + duration: 482.903042ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/3aa3aa81-d0d9-42d6-94c1-4543603a4cfe + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 248 + uncompressed: false + body: '{"created_at":"2024-12-10T15:17:51.716983Z","description":"","id":"3aa3aa81-d0d9-42d6-94c1-4543603a4cfe","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-10T15:17:51.716983Z"}' + headers: + Content-Length: + - "248" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Dec 2024 15:17:52 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 62efb451-6ba4-4a24-8388-8f78e78da217 + status: 200 OK + code: 200 + duration: 127.861958ms + - id: 2 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 106 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"3aa3aa81-d0d9-42d6-94c1-4543603a4cfe","name":"my-source","type":"logs","retention_days":13}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 389 + uncompressed: false + body: '{"created_at":"2024-12-10T15:17:52.363909Z","id":"3030a5a8-f090-41a6-ad4c-09754a5a654b","name":"my-source","origin":"custom","project_id":"3aa3aa81-d0d9-42d6-94c1-4543603a4cfe","region":"fr-par","retention_days":13,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-10T15:17:52.363909Z","url":"https://3030a5a8-f090-41a6-ad4c-09754a5a654b.logs.cockpit.fr-par.scw.cloud"}' + headers: + Content-Length: + - "389" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Dec 2024 15:17:52 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 312f6fb4-b4b4-4538-a0fe-14915fcc51d5 + status: 200 OK + code: 200 + duration: 255.113084ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/3030a5a8-f090-41a6-ad4c-09754a5a654b + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 389 + uncompressed: false + body: '{"created_at":"2024-12-10T15:17:52.363909Z","id":"3030a5a8-f090-41a6-ad4c-09754a5a654b","name":"my-source","origin":"custom","project_id":"3aa3aa81-d0d9-42d6-94c1-4543603a4cfe","region":"fr-par","retention_days":13,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-10T15:17:52.363909Z","url":"https://3030a5a8-f090-41a6-ad4c-09754a5a654b.logs.cockpit.fr-par.scw.cloud"}' + headers: + Content-Length: + - "389" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Dec 2024 15:17:52 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c5f843e9-5c6f-46a3-a0d9-15619d0662bc + status: 200 OK + code: 200 + duration: 53.284375ms + - id: 4 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/3030a5a8-f090-41a6-ad4c-09754a5a654b + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 389 + uncompressed: false + body: '{"created_at":"2024-12-10T15:17:52.363909Z","id":"3030a5a8-f090-41a6-ad4c-09754a5a654b","name":"my-source","origin":"custom","project_id":"3aa3aa81-d0d9-42d6-94c1-4543603a4cfe","region":"fr-par","retention_days":13,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-10T15:17:52.363909Z","url":"https://3030a5a8-f090-41a6-ad4c-09754a5a654b.logs.cockpit.fr-par.scw.cloud"}' + headers: + Content-Length: + - "389" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Dec 2024 15:17:52 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b697c53b-beba-40c9-847c-353d1a736725 + status: 200 OK + code: 200 + duration: 68.035208ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/3aa3aa81-d0d9-42d6-94c1-4543603a4cfe + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 248 + uncompressed: false + body: '{"created_at":"2024-12-10T15:17:51.716983Z","description":"","id":"3aa3aa81-d0d9-42d6-94c1-4543603a4cfe","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-10T15:17:51.716983Z"}' + headers: + Content-Length: + - "248" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Dec 2024 15:17:53 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d37313d9-f5f4-4aca-9fcc-4a2ac872f8b5 + status: 200 OK + code: 200 + duration: 126.558333ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/3030a5a8-f090-41a6-ad4c-09754a5a654b + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 389 + uncompressed: false + body: '{"created_at":"2024-12-10T15:17:52.363909Z","id":"3030a5a8-f090-41a6-ad4c-09754a5a654b","name":"my-source","origin":"custom","project_id":"3aa3aa81-d0d9-42d6-94c1-4543603a4cfe","region":"fr-par","retention_days":13,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-10T15:17:52.363909Z","url":"https://3030a5a8-f090-41a6-ad4c-09754a5a654b.logs.cockpit.fr-par.scw.cloud"}' + headers: + Content-Length: + - "389" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Dec 2024 15:17:53 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d7a485f6-c3dd-4d99-a45c-c922d2c70bae + status: 200 OK + code: 200 + duration: 142.355667ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/3030a5a8-f090-41a6-ad4c-09754a5a654b + 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: + - Tue, 10 Dec 2024 15:17:54 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 236d9b8b-a028-4009-a304-d904291523e3 + status: 204 No Content + code: 204 + duration: 191.0315ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/3aa3aa81-d0d9-42d6-94c1-4543603a4cfe + 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: + - Tue, 10 Dec 2024 15:17:55 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0b8689cd-416c-4305-be6c-c733b3475aa6 + status: 204 No Content + code: 204 + duration: 1.379577208s + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/3030a5a8-f090-41a6-ad4c-09754a5a654b + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 132 + uncompressed: false + body: '{"message":"resource is not found","resource":"data source","resource_id":"3030a5a8-f090-41a6-ad4c-09754a5a654b","type":"not_found"}' + headers: + Content-Length: + - "132" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Dec 2024 15:17:56 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c5ff5ec5-c59a-4a18-97e7-6508c86f0de4 + status: 404 Not Found + code: 404 + duration: 21.831042ms From 8ba600e3f5e655d9c686277f64f896581b1e881b Mon Sep 17 00:00:00 2001 From: devtools-ci-cd Date: Wed, 11 Dec 2024 10:42:54 +0100 Subject: [PATCH 2/5] feat(cockpit): add update in source --- internal/services/cockpit/source.go | 39 +- internal/services/cockpit/source_test.go | 69 + .../cockpit-source-basic-logs.cassette.yaml | 164 +- ...cockpit-source-basic-metrics.cassette.yaml | 114 +- ...ockpit-source-retention-days.cassette.yaml | 114 +- .../cockpit-source-update.cassette.yaml | 1181 +++++++++ .../data-source-cockpit-basic.cassette.yaml | 2124 ++--------------- 7 files changed, 1615 insertions(+), 2190 deletions(-) create mode 100644 internal/services/cockpit/testdata/cockpit-source-update.cassette.yaml diff --git a/internal/services/cockpit/source.go b/internal/services/cockpit/source.go index 7af6ef7f58..99878c98da 100644 --- a/internal/services/cockpit/source.go +++ b/internal/services/cockpit/source.go @@ -18,6 +18,7 @@ func ResourceCockpitSource() *schema.Resource { return &schema.Resource{ CreateContext: ResourceCockpitSourceCreate, ReadContext: ResourceCockpitSourceRead, + UpdateContext: ResourceCockpitSourceUpdate, DeleteContext: ResourceCockpitSourceDelete, Timeouts: &schema.ResourceTimeout{ Create: schema.DefaultTimeout(DefaultCockpitTimeout), @@ -46,7 +47,6 @@ func ResourceCockpitSource() *schema.Resource { Type: schema.TypeInt, Optional: true, Default: 6, - ForceNew: true, Description: "The number of days to retain data, must be between 1 and 365.", }, // computed @@ -93,6 +93,9 @@ func ResourceCockpitSourceCreate(ctx context.Context, d *schema.ResourceData, me } retentionDays := uint32(d.Get("retention_days").(int)) + if retentionDays == 0 { + retentionDays = 6 + } res, err := api.CreateDataSource(&cockpit.RegionalAPICreateDataSourceRequest{ Region: region, @@ -101,7 +104,6 @@ func ResourceCockpitSourceCreate(ctx context.Context, d *schema.ResourceData, me Type: cockpit.DataSourceType(d.Get("type").(string)), RetentionDays: &retentionDays, }, scw.WithContext(ctx)) - if err != nil { return diag.FromErr(err) } @@ -143,7 +145,38 @@ func ResourceCockpitSourceRead(ctx context.Context, d *schema.ResourceData, meta _ = d.Set("updated_at", types.FlattenTime(res.UpdatedAt)) _ = d.Set("project_id", res.ProjectID) _ = d.Set("push_url", pushURL) - _ = d.Set("retention_days", res.RetentionDays) + _ = d.Set("retention_days", int(res.RetentionDays)) + + return nil +} + +func ResourceCockpitSourceUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + api, region, id, err := NewAPIWithRegionAndID(meta, d.Id()) + if err != nil { + return diag.FromErr(err) + } + + updateRequest := &cockpit.RegionalAPIUpdateDataSourceRequest{ + DataSourceID: id, + Region: region, + } + + if d.HasChange("name") { + name := d.Get("name").(string) + updateRequest.Name = &name + } + + if d.HasChange("retention_days") { + retentionDays := uint32(d.Get("retention_days").(int)) + updateRequest.RetentionDays = &retentionDays + } + + if updateRequest.Name != nil || updateRequest.RetentionDays != nil { + _, err = api.UpdateDataSource(updateRequest, scw.WithContext(ctx)) + if err != nil { + return diag.FromErr(err) + } + } return nil } diff --git a/internal/services/cockpit/source_test.go b/internal/services/cockpit/source_test.go index 48b5d0cbbf..9f72ebbcff 100644 --- a/internal/services/cockpit/source_test.go +++ b/internal/services/cockpit/source_test.go @@ -133,6 +133,75 @@ func TestAccCockpitSource_retention_days(t *testing.T) { }) } +func TestAccCockpitSource_Update(t *testing.T) { + tt := acctest.NewTestTools(t) + defer tt.Cleanup() + + resource.ParallelTest(t, resource.TestCase{ + PreCheck: func() { acctest.PreCheck(t) }, + ProviderFactories: tt.ProviderFactories, + CheckDestroy: isSourceDestroyed(tt), + Steps: []resource.TestStep{ + // Initial creation + { + Config: ` + resource "scaleway_account_project" "project" { + name = "tf_tests_cockpit_source_update" + } + + resource "scaleway_cockpit_source" "main" { + project_id = scaleway_account_project.project.id + name = "initial-name" + type = "logs" + retention_days = 10 + } + `, + Check: resource.ComposeTestCheckFunc( + isSourcePresent(tt, "scaleway_cockpit_source.main"), + resource.TestCheckResourceAttr("scaleway_cockpit_source.main", "name", "initial-name"), + resource.TestCheckResourceAttr("scaleway_cockpit_source.main", "retention_days", "10"), + ), + }, + { + Config: ` + resource "scaleway_account_project" "project" { + name = "tf_tests_cockpit_source_update" + } + + resource "scaleway_cockpit_source" "main" { + project_id = scaleway_account_project.project.id + name = "initial-name" + type = "logs" + retention_days = 20 + } + `, + Check: resource.ComposeTestCheckFunc( + isSourcePresent(tt, "scaleway_cockpit_source.main"), + resource.TestCheckResourceAttr("scaleway_cockpit_source.main", "retention_days", "20"), + ), + }, + { + Config: ` + resource "scaleway_account_project" "project" { + name = "tf_tests_cockpit_source_update" + } + + resource "scaleway_cockpit_source" "main" { + project_id = scaleway_account_project.project.id + name = "updated-name" + type = "logs" + retention_days = 20 + } + `, + Check: resource.ComposeTestCheckFunc( + isSourcePresent(tt, "scaleway_cockpit_source.main"), + resource.TestCheckResourceAttr("scaleway_cockpit_source.main", "name", "updated-name"), + ), + }, + }, + }) +} + func isSourcePresent(tt *acctest.TestTools, n string) resource.TestCheckFunc { return func(state *terraform.State) error { rs, ok := state.RootModule().Resources[n] diff --git a/internal/services/cockpit/testdata/cockpit-source-basic-logs.cassette.yaml b/internal/services/cockpit/testdata/cockpit-source-basic-logs.cassette.yaml index 772df4a022..f5d684be16 100644 --- a/internal/services/cockpit/testdata/cockpit-source-basic-logs.cassette.yaml +++ b/internal/services/cockpit/testdata/cockpit-source-basic-logs.cassette.yaml @@ -18,7 +18,7 @@ interactions: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests url: https://api.scaleway.com/account/v3/projects method: POST response: @@ -27,20 +27,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 253 + content_length: 248 uncompressed: false - body: '{"created_at":"2024-09-19T09:04:28.543800Z","description":"","id":"643f5a2d-bf67-4b95-83e8-4721cdee5eb1","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-09-19T09:04:28.543800Z"}' + body: '{"created_at":"2024-12-11T11:03:20.648097Z","description":"","id":"62ffcfb5-34a1-40e7-9f60-69ad5940346e","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:03:20.648097Z"}' headers: Content-Length: - - "253" + - "248" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 19 Sep 2024 09:04:28 GMT + - Wed, 11 Dec 2024 11:03:20 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -48,10 +48,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 0cc70d65-ae88-4dce-803c-64633f090099 + - f5a6ae1a-6ae1-4174-a179-9cc49b4af487 status: 200 OK code: 200 - duration: 539.001513ms + duration: 733.205458ms - id: 1 request: proto: HTTP/1.1 @@ -67,8 +67,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/643f5a2d-bf67-4b95-83e8-4721cdee5eb1 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/62ffcfb5-34a1-40e7-9f60-69ad5940346e method: GET response: proto: HTTP/2.0 @@ -76,20 +76,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 253 + content_length: 248 uncompressed: false - body: '{"created_at":"2024-09-19T09:04:28.543800Z","description":"","id":"643f5a2d-bf67-4b95-83e8-4721cdee5eb1","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-09-19T09:04:28.543800Z"}' + body: '{"created_at":"2024-12-11T11:03:20.648097Z","description":"","id":"62ffcfb5-34a1-40e7-9f60-69ad5940346e","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:03:20.648097Z"}' headers: Content-Length: - - "253" + - "248" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 19 Sep 2024 09:04:29 GMT + - Wed, 11 Dec 2024 11:03:20 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -97,28 +97,28 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - f5256bc8-6621-4399-8e86-ccb1e5d32403 + - d156d9b2-fd14-4d3a-8107-41d503182dc3 status: 200 OK code: 200 - duration: 93.569685ms + duration: 151.67ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 86 + content_length: 105 transfer_encoding: [] trailer: {} host: api.scaleway.com remote_addr: "" request_uri: "" - body: '{"project_id":"643f5a2d-bf67-4b95-83e8-4721cdee5eb1","name":"my-source","type":"logs"}' + body: '{"project_id":"62ffcfb5-34a1-40e7-9f60-69ad5940346e","name":"my-source","type":"logs","retention_days":6}' form: {} headers: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources method: POST response: @@ -127,20 +127,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 380 + content_length: 388 uncompressed: false - body: '{"created_at":"2024-09-19T09:04:29.274351Z","id":"374f6666-ea1a-4a4f-b637-766185b0e86c","name":"my-source","origin":"external","project_id":"643f5a2d-bf67-4b95-83e8-4721cdee5eb1","region":"fr-par","synchronized_with_grafana":false,"type":"logs","updated_at":"2024-09-19T09:04:29.274351Z","url":"https://374f6666-ea1a-4a4f-b637-766185b0e86c.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:03:21.218307Z","id":"a23a7ca6-8dc7-4a77-8f1f-2e851ae4a845","name":"my-source","origin":"custom","project_id":"62ffcfb5-34a1-40e7-9f60-69ad5940346e","region":"fr-par","retention_days":6,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:21.218307Z","url":"https://a23a7ca6-8dc7-4a77-8f1f-2e851ae4a845.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - - "380" + - "388" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 19 Sep 2024 09:04:29 GMT + - Wed, 11 Dec 2024 11:03:21 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -148,10 +148,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 09df74e3-db22-417c-8ee5-c1d87fb2aa6b + - 306348ee-6eb2-48c4-b86d-df7752074460 status: 200 OK code: 200 - duration: 193.267351ms + duration: 333.280042ms - id: 3 request: proto: HTTP/1.1 @@ -167,8 +167,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/374f6666-ea1a-4a4f-b637-766185b0e86c + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/a23a7ca6-8dc7-4a77-8f1f-2e851ae4a845 method: GET response: proto: HTTP/2.0 @@ -176,20 +176,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 380 + content_length: 388 uncompressed: false - body: '{"created_at":"2024-09-19T09:04:29.274351Z","id":"374f6666-ea1a-4a4f-b637-766185b0e86c","name":"my-source","origin":"external","project_id":"643f5a2d-bf67-4b95-83e8-4721cdee5eb1","region":"fr-par","synchronized_with_grafana":false,"type":"logs","updated_at":"2024-09-19T09:04:29.274351Z","url":"https://374f6666-ea1a-4a4f-b637-766185b0e86c.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:03:21.218307Z","id":"a23a7ca6-8dc7-4a77-8f1f-2e851ae4a845","name":"my-source","origin":"custom","project_id":"62ffcfb5-34a1-40e7-9f60-69ad5940346e","region":"fr-par","retention_days":6,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:21.218307Z","url":"https://a23a7ca6-8dc7-4a77-8f1f-2e851ae4a845.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - - "380" + - "388" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 19 Sep 2024 09:04:29 GMT + - Wed, 11 Dec 2024 11:03:21 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -197,10 +197,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 75c445f9-c109-4b0e-a0e9-b9f9fb766477 + - 8ab214fc-ba3b-4b0f-b0bc-abd7471ea82d status: 200 OK code: 200 - duration: 69.391815ms + duration: 62.256792ms - id: 4 request: proto: HTTP/1.1 @@ -216,8 +216,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/374f6666-ea1a-4a4f-b637-766185b0e86c + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/a23a7ca6-8dc7-4a77-8f1f-2e851ae4a845 method: GET response: proto: HTTP/2.0 @@ -225,20 +225,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 380 + content_length: 388 uncompressed: false - body: '{"created_at":"2024-09-19T09:04:29.274351Z","id":"374f6666-ea1a-4a4f-b637-766185b0e86c","name":"my-source","origin":"external","project_id":"643f5a2d-bf67-4b95-83e8-4721cdee5eb1","region":"fr-par","synchronized_with_grafana":false,"type":"logs","updated_at":"2024-09-19T09:04:29.274351Z","url":"https://374f6666-ea1a-4a4f-b637-766185b0e86c.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:03:21.218307Z","id":"a23a7ca6-8dc7-4a77-8f1f-2e851ae4a845","name":"my-source","origin":"custom","project_id":"62ffcfb5-34a1-40e7-9f60-69ad5940346e","region":"fr-par","retention_days":6,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:21.218307Z","url":"https://a23a7ca6-8dc7-4a77-8f1f-2e851ae4a845.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - - "380" + - "388" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 19 Sep 2024 09:04:29 GMT + - Wed, 11 Dec 2024 11:03:21 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -246,10 +246,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 58e75efa-5965-414e-804d-4502a30167d8 + - 63bc0d83-ecd1-48d3-8ca2-8eb5e3b2438c status: 200 OK code: 200 - duration: 75.202148ms + duration: 68.299291ms - id: 5 request: proto: HTTP/1.1 @@ -265,8 +265,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/643f5a2d-bf67-4b95-83e8-4721cdee5eb1 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/62ffcfb5-34a1-40e7-9f60-69ad5940346e method: GET response: proto: HTTP/2.0 @@ -274,20 +274,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 253 + content_length: 248 uncompressed: false - body: '{"created_at":"2024-09-19T09:04:28.543800Z","description":"","id":"643f5a2d-bf67-4b95-83e8-4721cdee5eb1","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-09-19T09:04:28.543800Z"}' + body: '{"created_at":"2024-12-11T11:03:20.648097Z","description":"","id":"62ffcfb5-34a1-40e7-9f60-69ad5940346e","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:03:20.648097Z"}' headers: Content-Length: - - "253" + - "248" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 19 Sep 2024 09:04:29 GMT + - Wed, 11 Dec 2024 11:03:22 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -295,10 +295,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 29a82004-1224-4e48-96b8-fa87b8f0e6e0 + - 3cc97fd5-e1a6-44e2-a1b8-f514dc4f9fca status: 200 OK code: 200 - duration: 94.812947ms + duration: 105.913084ms - id: 6 request: proto: HTTP/1.1 @@ -314,8 +314,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/374f6666-ea1a-4a4f-b637-766185b0e86c + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/a23a7ca6-8dc7-4a77-8f1f-2e851ae4a845 method: GET response: proto: HTTP/2.0 @@ -323,20 +323,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 380 + content_length: 388 uncompressed: false - body: '{"created_at":"2024-09-19T09:04:29.274351Z","id":"374f6666-ea1a-4a4f-b637-766185b0e86c","name":"my-source","origin":"external","project_id":"643f5a2d-bf67-4b95-83e8-4721cdee5eb1","region":"fr-par","synchronized_with_grafana":false,"type":"logs","updated_at":"2024-09-19T09:04:29.274351Z","url":"https://374f6666-ea1a-4a4f-b637-766185b0e86c.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:03:21.218307Z","id":"a23a7ca6-8dc7-4a77-8f1f-2e851ae4a845","name":"my-source","origin":"custom","project_id":"62ffcfb5-34a1-40e7-9f60-69ad5940346e","region":"fr-par","retention_days":6,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:21.218307Z","url":"https://a23a7ca6-8dc7-4a77-8f1f-2e851ae4a845.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - - "380" + - "388" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 19 Sep 2024 09:04:30 GMT + - Wed, 11 Dec 2024 11:03:22 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -344,10 +344,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 8bc32a50-27be-43a3-ba6e-d4db1f5c7189 + - de923040-3f1e-4cd0-8cad-6d677e356cd1 status: 200 OK code: 200 - duration: 159.297138ms + duration: 57.526625ms - id: 7 request: proto: HTTP/1.1 @@ -363,8 +363,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/374f6666-ea1a-4a4f-b637-766185b0e86c + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/a23a7ca6-8dc7-4a77-8f1f-2e851ae4a845 method: DELETE response: proto: HTTP/2.0 @@ -381,9 +381,9 @@ interactions: Content-Type: - application/json Date: - - Thu, 19 Sep 2024 09:04:30 GMT + - Wed, 11 Dec 2024 11:03:23 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -391,10 +391,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - a2dc2b21-03ee-436b-b430-02590cc6f223 + - e5f459f4-d5fd-4491-96f5-98deedd2c084 status: 204 No Content code: 204 - duration: 175.83618ms + duration: 212.195084ms - id: 8 request: proto: HTTP/1.1 @@ -410,8 +410,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/643f5a2d-bf67-4b95-83e8-4721cdee5eb1 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/62ffcfb5-34a1-40e7-9f60-69ad5940346e method: DELETE response: proto: HTTP/2.0 @@ -428,9 +428,9 @@ interactions: Content-Type: - application/json Date: - - Thu, 19 Sep 2024 09:04:32 GMT + - Wed, 11 Dec 2024 11:03:25 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -438,10 +438,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 5bd3455e-66d3-4da2-a57f-fabb7cd8e48e + - e2ad8e48-5dad-483b-8296-be9368fb0c75 status: 204 No Content code: 204 - duration: 1.285003641s + duration: 1.614575917s - id: 9 request: proto: HTTP/1.1 @@ -457,8 +457,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/374f6666-ea1a-4a4f-b637-766185b0e86c + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/a23a7ca6-8dc7-4a77-8f1f-2e851ae4a845 method: GET response: proto: HTTP/2.0 @@ -468,7 +468,7 @@ interactions: trailer: {} content_length: 132 uncompressed: false - body: '{"message":"resource is not found","resource":"data source","resource_id":"374f6666-ea1a-4a4f-b637-766185b0e86c","type":"not_found"}' + body: '{"message":"resource is not found","resource":"data source","resource_id":"a23a7ca6-8dc7-4a77-8f1f-2e851ae4a845","type":"not_found"}' headers: Content-Length: - "132" @@ -477,9 +477,9 @@ interactions: Content-Type: - application/json Date: - - Thu, 19 Sep 2024 09:04:32 GMT + - Wed, 11 Dec 2024 11:03:25 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -487,7 +487,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 40053baf-3898-4816-b5b3-bf1a3a6ae2ee + - 769b6337-860e-4b63-b55f-c0069b340f36 status: 404 Not Found code: 404 - duration: 22.687848ms + duration: 26.8505ms diff --git a/internal/services/cockpit/testdata/cockpit-source-basic-metrics.cassette.yaml b/internal/services/cockpit/testdata/cockpit-source-basic-metrics.cassette.yaml index bf804c460b..73236f6b43 100644 --- a/internal/services/cockpit/testdata/cockpit-source-basic-metrics.cassette.yaml +++ b/internal/services/cockpit/testdata/cockpit-source-basic-metrics.cassette.yaml @@ -29,7 +29,7 @@ interactions: trailer: {} content_length: 248 uncompressed: false - body: '{"created_at":"2024-12-10T15:17:34.936787Z","description":"","id":"4d16717e-4970-454c-ad8f-1c40c0131e76","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-10T15:17:34.936787Z"}' + body: '{"created_at":"2024-12-11T11:02:43.258086Z","description":"","id":"a658e694-dab3-4513-bf01-9d367d74306f","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:02:43.258086Z"}' headers: Content-Length: - "248" @@ -38,9 +38,9 @@ interactions: Content-Type: - application/json Date: - - Tue, 10 Dec 2024 15:17:35 GMT + - Wed, 11 Dec 2024 11:02:43 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - 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: - - fab0ddb1-ddcf-4957-9c91-686320ae4714 + - 2cb38ed4-b32a-4242-b82b-2e8c33e0c136 status: 200 OK code: 200 - duration: 381.652042ms + duration: 673.105ms - id: 1 request: proto: HTTP/1.1 @@ -68,7 +68,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/4d16717e-4970-454c-ad8f-1c40c0131e76 + url: https://api.scaleway.com/account/v3/projects/a658e694-dab3-4513-bf01-9d367d74306f method: GET response: proto: HTTP/2.0 @@ -78,7 +78,7 @@ interactions: trailer: {} content_length: 248 uncompressed: false - body: '{"created_at":"2024-12-10T15:17:34.936787Z","description":"","id":"4d16717e-4970-454c-ad8f-1c40c0131e76","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-10T15:17:34.936787Z"}' + body: '{"created_at":"2024-12-11T11:02:43.258086Z","description":"","id":"a658e694-dab3-4513-bf01-9d367d74306f","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:02:43.258086Z"}' headers: Content-Length: - "248" @@ -87,9 +87,9 @@ interactions: Content-Type: - application/json Date: - - Tue, 10 Dec 2024 15:17:35 GMT + - Wed, 11 Dec 2024 11:02:43 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - 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: - - b4987392-1c47-4134-b8a8-634cd24b0fce + - 27f2e40f-3f51-4b2a-9ec2-0155cf0e11dd status: 200 OK code: 200 - duration: 154.503833ms + duration: 118.074917ms - id: 2 request: proto: HTTP/1.1 @@ -112,7 +112,7 @@ interactions: host: api.scaleway.com remote_addr: "" request_uri: "" - body: '{"project_id":"4d16717e-4970-454c-ad8f-1c40c0131e76","name":"my-source","type":"metrics","retention_days":6}' + body: '{"project_id":"a658e694-dab3-4513-bf01-9d367d74306f","name":"my-source","type":"metrics","retention_days":6}' form: {} headers: Content-Type: @@ -129,7 +129,7 @@ interactions: trailer: {} content_length: 394 uncompressed: false - body: '{"created_at":"2024-12-10T15:17:35.588322Z","id":"ec32de22-110c-4730-8634-5491c3220310","name":"my-source","origin":"custom","project_id":"4d16717e-4970-454c-ad8f-1c40c0131e76","region":"fr-par","retention_days":6,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-10T15:17:35.588322Z","url":"https://ec32de22-110c-4730-8634-5491c3220310.metrics.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:02:43.837340Z","id":"c56ad6ca-37f0-463a-8619-fdf88f6269cf","name":"my-source","origin":"custom","project_id":"a658e694-dab3-4513-bf01-9d367d74306f","region":"fr-par","retention_days":6,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-11T11:02:43.837340Z","url":"https://c56ad6ca-37f0-463a-8619-fdf88f6269cf.metrics.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "394" @@ -138,9 +138,9 @@ interactions: Content-Type: - application/json Date: - - Tue, 10 Dec 2024 15:17:35 GMT + - Wed, 11 Dec 2024 11:02:43 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-2;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -148,10 +148,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - afa27f77-2671-4632-8028-50b36792daae + - a6a2bdc8-3743-4e58-b470-3ce233632bdb status: 200 OK code: 200 - duration: 297.43ms + duration: 227.84375ms - id: 3 request: proto: HTTP/1.1 @@ -168,7 +168,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/ec32de22-110c-4730-8634-5491c3220310 + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/c56ad6ca-37f0-463a-8619-fdf88f6269cf method: GET response: proto: HTTP/2.0 @@ -178,7 +178,7 @@ interactions: trailer: {} content_length: 394 uncompressed: false - body: '{"created_at":"2024-12-10T15:17:35.588322Z","id":"ec32de22-110c-4730-8634-5491c3220310","name":"my-source","origin":"custom","project_id":"4d16717e-4970-454c-ad8f-1c40c0131e76","region":"fr-par","retention_days":6,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-10T15:17:35.588322Z","url":"https://ec32de22-110c-4730-8634-5491c3220310.metrics.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:02:43.837340Z","id":"c56ad6ca-37f0-463a-8619-fdf88f6269cf","name":"my-source","origin":"custom","project_id":"a658e694-dab3-4513-bf01-9d367d74306f","region":"fr-par","retention_days":6,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-11T11:02:43.837340Z","url":"https://c56ad6ca-37f0-463a-8619-fdf88f6269cf.metrics.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "394" @@ -187,9 +187,9 @@ interactions: Content-Type: - application/json Date: - - Tue, 10 Dec 2024 15:17:35 GMT + - Wed, 11 Dec 2024 11:02:43 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-2;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -197,10 +197,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 66f9621e-8df2-4347-9223-af58049405a1 + - 7adfbaa2-ef3e-4c26-9790-bdd835c3c69b status: 200 OK code: 200 - duration: 78.804708ms + duration: 82.342042ms - id: 4 request: proto: HTTP/1.1 @@ -217,7 +217,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/ec32de22-110c-4730-8634-5491c3220310 + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/c56ad6ca-37f0-463a-8619-fdf88f6269cf method: GET response: proto: HTTP/2.0 @@ -227,7 +227,7 @@ interactions: trailer: {} content_length: 394 uncompressed: false - body: '{"created_at":"2024-12-10T15:17:35.588322Z","id":"ec32de22-110c-4730-8634-5491c3220310","name":"my-source","origin":"custom","project_id":"4d16717e-4970-454c-ad8f-1c40c0131e76","region":"fr-par","retention_days":6,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-10T15:17:35.588322Z","url":"https://ec32de22-110c-4730-8634-5491c3220310.metrics.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:02:43.837340Z","id":"c56ad6ca-37f0-463a-8619-fdf88f6269cf","name":"my-source","origin":"custom","project_id":"a658e694-dab3-4513-bf01-9d367d74306f","region":"fr-par","retention_days":6,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-11T11:02:43.837340Z","url":"https://c56ad6ca-37f0-463a-8619-fdf88f6269cf.metrics.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "394" @@ -236,9 +236,9 @@ interactions: Content-Type: - application/json Date: - - Tue, 10 Dec 2024 15:17:35 GMT + - Wed, 11 Dec 2024 11:02:44 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-2;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -246,10 +246,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - ad18a70e-14bd-493f-aeb9-126e3846952a + - 9cdbff46-bf28-4845-a0ba-c20fe2c4edd1 status: 200 OK code: 200 - duration: 64.076625ms + duration: 130.191334ms - id: 5 request: proto: HTTP/1.1 @@ -266,7 +266,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/4d16717e-4970-454c-ad8f-1c40c0131e76 + url: https://api.scaleway.com/account/v3/projects/a658e694-dab3-4513-bf01-9d367d74306f method: GET response: proto: HTTP/2.0 @@ -276,7 +276,7 @@ interactions: trailer: {} content_length: 248 uncompressed: false - body: '{"created_at":"2024-12-10T15:17:34.936787Z","description":"","id":"4d16717e-4970-454c-ad8f-1c40c0131e76","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-10T15:17:34.936787Z"}' + body: '{"created_at":"2024-12-11T11:02:43.258086Z","description":"","id":"a658e694-dab3-4513-bf01-9d367d74306f","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:02:43.258086Z"}' headers: Content-Length: - "248" @@ -285,9 +285,9 @@ interactions: Content-Type: - application/json Date: - - Tue, 10 Dec 2024 15:17:36 GMT + - Wed, 11 Dec 2024 11:02:44 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-2;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -295,10 +295,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 84b9c61d-55b7-40bd-b94b-dfae4b67d2b4 + - f24a64af-275e-404f-bfb0-70a0a70d9667 status: 200 OK code: 200 - duration: 116.318959ms + duration: 130.705125ms - id: 6 request: proto: HTTP/1.1 @@ -315,7 +315,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/ec32de22-110c-4730-8634-5491c3220310 + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/c56ad6ca-37f0-463a-8619-fdf88f6269cf method: GET response: proto: HTTP/2.0 @@ -325,7 +325,7 @@ interactions: trailer: {} content_length: 394 uncompressed: false - body: '{"created_at":"2024-12-10T15:17:35.588322Z","id":"ec32de22-110c-4730-8634-5491c3220310","name":"my-source","origin":"custom","project_id":"4d16717e-4970-454c-ad8f-1c40c0131e76","region":"fr-par","retention_days":6,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-10T15:17:35.588322Z","url":"https://ec32de22-110c-4730-8634-5491c3220310.metrics.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:02:43.837340Z","id":"c56ad6ca-37f0-463a-8619-fdf88f6269cf","name":"my-source","origin":"custom","project_id":"a658e694-dab3-4513-bf01-9d367d74306f","region":"fr-par","retention_days":6,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-11T11:02:43.837340Z","url":"https://c56ad6ca-37f0-463a-8619-fdf88f6269cf.metrics.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "394" @@ -334,9 +334,9 @@ interactions: Content-Type: - application/json Date: - - Tue, 10 Dec 2024 15:17:36 GMT + - Wed, 11 Dec 2024 11:02:44 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-2;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -344,10 +344,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - e3d78b2f-4377-48bc-bba1-2c2bfdb86a47 + - 27bdaf70-509d-4f4c-9638-e773d279877e status: 200 OK code: 200 - duration: 75.319792ms + duration: 119.267375ms - id: 7 request: proto: HTTP/1.1 @@ -364,7 +364,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/ec32de22-110c-4730-8634-5491c3220310 + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/c56ad6ca-37f0-463a-8619-fdf88f6269cf method: DELETE response: proto: HTTP/2.0 @@ -381,9 +381,9 @@ interactions: Content-Type: - application/json Date: - - Tue, 10 Dec 2024 15:17:37 GMT + - Wed, 11 Dec 2024 11:02:46 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - 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: - - 09bf1359-a044-4b2a-b2c2-b44dabdc0040 + - 335ca789-c727-450d-9294-fb7436d037d4 status: 204 No Content code: 204 - duration: 500.001333ms + duration: 455.528291ms - id: 8 request: proto: HTTP/1.1 @@ -411,7 +411,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/4d16717e-4970-454c-ad8f-1c40c0131e76 + url: https://api.scaleway.com/account/v3/projects/a658e694-dab3-4513-bf01-9d367d74306f method: DELETE response: proto: HTTP/2.0 @@ -428,9 +428,9 @@ interactions: Content-Type: - application/json Date: - - Tue, 10 Dec 2024 15:17:39 GMT + - Wed, 11 Dec 2024 11:02:47 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-2;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -438,10 +438,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 0d07a765-adf4-4cca-a4a4-c75fcb0783a3 + - 47bd693b-966d-4400-82dc-32b35b14573f status: 204 No Content code: 204 - duration: 1.834266833s + duration: 1.580195709s - id: 9 request: proto: HTTP/1.1 @@ -458,7 +458,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/ec32de22-110c-4730-8634-5491c3220310 + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/c56ad6ca-37f0-463a-8619-fdf88f6269cf method: GET response: proto: HTTP/2.0 @@ -468,7 +468,7 @@ interactions: trailer: {} content_length: 132 uncompressed: false - body: '{"message":"resource is not found","resource":"data source","resource_id":"ec32de22-110c-4730-8634-5491c3220310","type":"not_found"}' + body: '{"message":"resource is not found","resource":"data source","resource_id":"c56ad6ca-37f0-463a-8619-fdf88f6269cf","type":"not_found"}' headers: Content-Length: - "132" @@ -477,9 +477,9 @@ interactions: Content-Type: - application/json Date: - - Tue, 10 Dec 2024 15:17:39 GMT + - Wed, 11 Dec 2024 11:02:47 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-2;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -487,7 +487,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - ba7bb7c2-5489-4f0d-83c1-67e93bae4ae7 + - 19478572-49d7-42e2-a6ed-b22cf6187cd7 status: 404 Not Found code: 404 - duration: 25.91775ms + duration: 31.757666ms diff --git a/internal/services/cockpit/testdata/cockpit-source-retention-days.cassette.yaml b/internal/services/cockpit/testdata/cockpit-source-retention-days.cassette.yaml index 7ab80abe83..f611716f3e 100644 --- a/internal/services/cockpit/testdata/cockpit-source-retention-days.cassette.yaml +++ b/internal/services/cockpit/testdata/cockpit-source-retention-days.cassette.yaml @@ -29,7 +29,7 @@ interactions: trailer: {} content_length: 248 uncompressed: false - body: '{"created_at":"2024-12-10T15:17:51.716983Z","description":"","id":"3aa3aa81-d0d9-42d6-94c1-4543603a4cfe","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-10T15:17:51.716983Z"}' + body: '{"created_at":"2024-12-11T11:03:35.152458Z","description":"","id":"2ebd13b7-618e-4062-9065-e2b5e5ecabdf","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:03:35.152458Z"}' headers: Content-Length: - "248" @@ -38,9 +38,9 @@ interactions: Content-Type: - application/json Date: - - Tue, 10 Dec 2024 15:17:51 GMT + - Wed, 11 Dec 2024 11:03:35 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-2;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -48,10 +48,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - e2079db9-b922-4d19-81ed-832b8229741f + - ed21c5c1-985b-4a50-bc95-8e0b0a2d20c2 status: 200 OK code: 200 - duration: 482.903042ms + duration: 484.972792ms - id: 1 request: proto: HTTP/1.1 @@ -68,7 +68,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/3aa3aa81-d0d9-42d6-94c1-4543603a4cfe + url: https://api.scaleway.com/account/v3/projects/2ebd13b7-618e-4062-9065-e2b5e5ecabdf method: GET response: proto: HTTP/2.0 @@ -78,7 +78,7 @@ interactions: trailer: {} content_length: 248 uncompressed: false - body: '{"created_at":"2024-12-10T15:17:51.716983Z","description":"","id":"3aa3aa81-d0d9-42d6-94c1-4543603a4cfe","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-10T15:17:51.716983Z"}' + body: '{"created_at":"2024-12-11T11:03:35.152458Z","description":"","id":"2ebd13b7-618e-4062-9065-e2b5e5ecabdf","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:03:35.152458Z"}' headers: Content-Length: - "248" @@ -87,9 +87,9 @@ interactions: Content-Type: - application/json Date: - - Tue, 10 Dec 2024 15:17:52 GMT + - Wed, 11 Dec 2024 11:03:35 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-2;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -97,10 +97,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 62efb451-6ba4-4a24-8388-8f78e78da217 + - 82e24793-7135-49d3-a625-c06b3ca2e9ec status: 200 OK code: 200 - duration: 127.861958ms + duration: 96.823375ms - id: 2 request: proto: HTTP/1.1 @@ -112,7 +112,7 @@ interactions: host: api.scaleway.com remote_addr: "" request_uri: "" - body: '{"project_id":"3aa3aa81-d0d9-42d6-94c1-4543603a4cfe","name":"my-source","type":"logs","retention_days":13}' + body: '{"project_id":"2ebd13b7-618e-4062-9065-e2b5e5ecabdf","name":"my-source","type":"logs","retention_days":13}' form: {} headers: Content-Type: @@ -129,7 +129,7 @@ interactions: trailer: {} content_length: 389 uncompressed: false - body: '{"created_at":"2024-12-10T15:17:52.363909Z","id":"3030a5a8-f090-41a6-ad4c-09754a5a654b","name":"my-source","origin":"custom","project_id":"3aa3aa81-d0d9-42d6-94c1-4543603a4cfe","region":"fr-par","retention_days":13,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-10T15:17:52.363909Z","url":"https://3030a5a8-f090-41a6-ad4c-09754a5a654b.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:03:35.713992Z","id":"243e9f34-2a56-4217-9fe7-c34f7f7239dc","name":"my-source","origin":"custom","project_id":"2ebd13b7-618e-4062-9065-e2b5e5ecabdf","region":"fr-par","retention_days":13,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:35.713992Z","url":"https://243e9f34-2a56-4217-9fe7-c34f7f7239dc.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "389" @@ -138,9 +138,9 @@ interactions: Content-Type: - application/json Date: - - Tue, 10 Dec 2024 15:17:52 GMT + - Wed, 11 Dec 2024 11:03:35 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-2;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -148,10 +148,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 312f6fb4-b4b4-4538-a0fe-14915fcc51d5 + - 77aa7c30-36bc-4201-a34c-4d76007a2354 status: 200 OK code: 200 - duration: 255.113084ms + duration: 236.6575ms - id: 3 request: proto: HTTP/1.1 @@ -168,7 +168,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/3030a5a8-f090-41a6-ad4c-09754a5a654b + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/243e9f34-2a56-4217-9fe7-c34f7f7239dc method: GET response: proto: HTTP/2.0 @@ -178,7 +178,7 @@ interactions: trailer: {} content_length: 389 uncompressed: false - body: '{"created_at":"2024-12-10T15:17:52.363909Z","id":"3030a5a8-f090-41a6-ad4c-09754a5a654b","name":"my-source","origin":"custom","project_id":"3aa3aa81-d0d9-42d6-94c1-4543603a4cfe","region":"fr-par","retention_days":13,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-10T15:17:52.363909Z","url":"https://3030a5a8-f090-41a6-ad4c-09754a5a654b.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:03:35.713992Z","id":"243e9f34-2a56-4217-9fe7-c34f7f7239dc","name":"my-source","origin":"custom","project_id":"2ebd13b7-618e-4062-9065-e2b5e5ecabdf","region":"fr-par","retention_days":13,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:35.713992Z","url":"https://243e9f34-2a56-4217-9fe7-c34f7f7239dc.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "389" @@ -187,9 +187,9 @@ interactions: Content-Type: - application/json Date: - - Tue, 10 Dec 2024 15:17:52 GMT + - Wed, 11 Dec 2024 11:03:35 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-2;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -197,10 +197,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - c5f843e9-5c6f-46a3-a0d9-15619d0662bc + - c49ccb4a-d81b-475a-9a3f-3dd2f9398b62 status: 200 OK code: 200 - duration: 53.284375ms + duration: 74.705709ms - id: 4 request: proto: HTTP/1.1 @@ -217,7 +217,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/3030a5a8-f090-41a6-ad4c-09754a5a654b + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/243e9f34-2a56-4217-9fe7-c34f7f7239dc method: GET response: proto: HTTP/2.0 @@ -227,7 +227,7 @@ interactions: trailer: {} content_length: 389 uncompressed: false - body: '{"created_at":"2024-12-10T15:17:52.363909Z","id":"3030a5a8-f090-41a6-ad4c-09754a5a654b","name":"my-source","origin":"custom","project_id":"3aa3aa81-d0d9-42d6-94c1-4543603a4cfe","region":"fr-par","retention_days":13,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-10T15:17:52.363909Z","url":"https://3030a5a8-f090-41a6-ad4c-09754a5a654b.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:03:35.713992Z","id":"243e9f34-2a56-4217-9fe7-c34f7f7239dc","name":"my-source","origin":"custom","project_id":"2ebd13b7-618e-4062-9065-e2b5e5ecabdf","region":"fr-par","retention_days":13,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:35.713992Z","url":"https://243e9f34-2a56-4217-9fe7-c34f7f7239dc.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "389" @@ -236,9 +236,9 @@ interactions: Content-Type: - application/json Date: - - Tue, 10 Dec 2024 15:17:52 GMT + - Wed, 11 Dec 2024 11:03:36 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-2;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -246,10 +246,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - b697c53b-beba-40c9-847c-353d1a736725 + - 451778ea-00e7-4431-ad82-a0d0ce566d4f status: 200 OK code: 200 - duration: 68.035208ms + duration: 106.337959ms - id: 5 request: proto: HTTP/1.1 @@ -266,7 +266,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/3aa3aa81-d0d9-42d6-94c1-4543603a4cfe + url: https://api.scaleway.com/account/v3/projects/2ebd13b7-618e-4062-9065-e2b5e5ecabdf method: GET response: proto: HTTP/2.0 @@ -276,7 +276,7 @@ interactions: trailer: {} content_length: 248 uncompressed: false - body: '{"created_at":"2024-12-10T15:17:51.716983Z","description":"","id":"3aa3aa81-d0d9-42d6-94c1-4543603a4cfe","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-10T15:17:51.716983Z"}' + body: '{"created_at":"2024-12-11T11:03:35.152458Z","description":"","id":"2ebd13b7-618e-4062-9065-e2b5e5ecabdf","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:03:35.152458Z"}' headers: Content-Length: - "248" @@ -285,9 +285,9 @@ interactions: Content-Type: - application/json Date: - - Tue, 10 Dec 2024 15:17:53 GMT + - Wed, 11 Dec 2024 11:03:36 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-2;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -295,10 +295,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - d37313d9-f5f4-4aca-9fcc-4a2ac872f8b5 + - f58ddf43-c646-4fc6-97f7-bd4a9d1913fc status: 200 OK code: 200 - duration: 126.558333ms + duration: 108.18175ms - id: 6 request: proto: HTTP/1.1 @@ -315,7 +315,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/3030a5a8-f090-41a6-ad4c-09754a5a654b + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/243e9f34-2a56-4217-9fe7-c34f7f7239dc method: GET response: proto: HTTP/2.0 @@ -325,7 +325,7 @@ interactions: trailer: {} content_length: 389 uncompressed: false - body: '{"created_at":"2024-12-10T15:17:52.363909Z","id":"3030a5a8-f090-41a6-ad4c-09754a5a654b","name":"my-source","origin":"custom","project_id":"3aa3aa81-d0d9-42d6-94c1-4543603a4cfe","region":"fr-par","retention_days":13,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-10T15:17:52.363909Z","url":"https://3030a5a8-f090-41a6-ad4c-09754a5a654b.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:03:35.713992Z","id":"243e9f34-2a56-4217-9fe7-c34f7f7239dc","name":"my-source","origin":"custom","project_id":"2ebd13b7-618e-4062-9065-e2b5e5ecabdf","region":"fr-par","retention_days":13,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:35.713992Z","url":"https://243e9f34-2a56-4217-9fe7-c34f7f7239dc.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "389" @@ -334,9 +334,9 @@ interactions: Content-Type: - application/json Date: - - Tue, 10 Dec 2024 15:17:53 GMT + - Wed, 11 Dec 2024 11:03:36 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-2;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -344,10 +344,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - d7a485f6-c3dd-4d99-a45c-c922d2c70bae + - 7e08e089-67e4-4da7-ac16-6a125311adfc status: 200 OK code: 200 - duration: 142.355667ms + duration: 62.808625ms - id: 7 request: proto: HTTP/1.1 @@ -364,7 +364,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/3030a5a8-f090-41a6-ad4c-09754a5a654b + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/243e9f34-2a56-4217-9fe7-c34f7f7239dc method: DELETE response: proto: HTTP/2.0 @@ -381,9 +381,9 @@ interactions: Content-Type: - application/json Date: - - Tue, 10 Dec 2024 15:17:54 GMT + - Wed, 11 Dec 2024 11:03:37 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-2;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -391,10 +391,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 236d9b8b-a028-4009-a304-d904291523e3 + - b5e0a704-a44e-4c8a-8958-b903d640e493 status: 204 No Content code: 204 - duration: 191.0315ms + duration: 348.469375ms - id: 8 request: proto: HTTP/1.1 @@ -411,7 +411,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/3aa3aa81-d0d9-42d6-94c1-4543603a4cfe + url: https://api.scaleway.com/account/v3/projects/2ebd13b7-618e-4062-9065-e2b5e5ecabdf method: DELETE response: proto: HTTP/2.0 @@ -428,9 +428,9 @@ interactions: Content-Type: - application/json Date: - - Tue, 10 Dec 2024 15:17:55 GMT + - Wed, 11 Dec 2024 11:03:39 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-2;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -438,10 +438,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 0b8689cd-416c-4305-be6c-c733b3475aa6 + - e96738d0-2ddd-45e3-bd91-2888ddfadff9 status: 204 No Content code: 204 - duration: 1.379577208s + duration: 1.431694792s - id: 9 request: proto: HTTP/1.1 @@ -458,7 +458,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/3030a5a8-f090-41a6-ad4c-09754a5a654b + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/243e9f34-2a56-4217-9fe7-c34f7f7239dc method: GET response: proto: HTTP/2.0 @@ -468,7 +468,7 @@ interactions: trailer: {} content_length: 132 uncompressed: false - body: '{"message":"resource is not found","resource":"data source","resource_id":"3030a5a8-f090-41a6-ad4c-09754a5a654b","type":"not_found"}' + body: '{"message":"resource is not found","resource":"data source","resource_id":"243e9f34-2a56-4217-9fe7-c34f7f7239dc","type":"not_found"}' headers: Content-Length: - "132" @@ -477,9 +477,9 @@ interactions: Content-Type: - application/json Date: - - Tue, 10 Dec 2024 15:17:56 GMT + - Wed, 11 Dec 2024 11:03:39 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-2;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -487,7 +487,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - c5ff5ec5-c59a-4a18-97e7-6508c86f0de4 + - 2f8c3d58-04e8-4065-8f77-cdc9ad32962f status: 404 Not Found code: 404 - duration: 21.831042ms + duration: 25.828584ms diff --git a/internal/services/cockpit/testdata/cockpit-source-update.cassette.yaml b/internal/services/cockpit/testdata/cockpit-source-update.cassette.yaml new file mode 100644 index 0000000000..905c42cd4f --- /dev/null +++ b/internal/services/cockpit/testdata/cockpit-source-update.cassette.yaml @@ -0,0 +1,1181 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 115 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","description":""}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 245 + uncompressed: false + body: '{"created_at":"2024-12-11T11:03:49.447785Z","description":"","id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:03:49.447785Z"}' + headers: + Content-Length: + - "245" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:03:49 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: + - 8c4387a0-882f-44aa-9444-8da1b5500d5f + status: 200 OK + code: 200 + duration: 644.045584ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/7d0584bc-b5e6-4aec-8aec-bc35a2d97739 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 245 + uncompressed: false + body: '{"created_at":"2024-12-11T11:03:49.447785Z","description":"","id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:03:49.447785Z"}' + headers: + Content-Length: + - "245" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:03:49 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: + - f6630f6a-2b07-4d81-9224-090c9df1b868 + status: 200 OK + code: 200 + duration: 254.87075ms + - id: 2 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 109 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","name":"initial-name","type":"logs","retention_days":10}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 392 + uncompressed: false + body: '{"created_at":"2024-12-11T11:03:50.337604Z","id":"e9fbe310-e693-4446-a323-d95d868bbb5d","name":"initial-name","origin":"custom","project_id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","region":"fr-par","retention_days":10,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:50.337604Z","url":"https://e9fbe310-e693-4446-a323-d95d868bbb5d.logs.cockpit.fr-par.scw.cloud"}' + headers: + Content-Length: + - "392" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:03:50 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: + - b3650c69-7888-46f1-a189-2413b2c721ee + status: 200 OK + code: 200 + duration: 342.563083ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/e9fbe310-e693-4446-a323-d95d868bbb5d + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 392 + uncompressed: false + body: '{"created_at":"2024-12-11T11:03:50.337604Z","id":"e9fbe310-e693-4446-a323-d95d868bbb5d","name":"initial-name","origin":"custom","project_id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","region":"fr-par","retention_days":10,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:50.337604Z","url":"https://e9fbe310-e693-4446-a323-d95d868bbb5d.logs.cockpit.fr-par.scw.cloud"}' + headers: + Content-Length: + - "392" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:03:50 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: + - 548da40e-4153-4dc4-8785-770942e07db5 + status: 200 OK + code: 200 + duration: 62.296417ms + - id: 4 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/e9fbe310-e693-4446-a323-d95d868bbb5d + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 392 + uncompressed: false + body: '{"created_at":"2024-12-11T11:03:50.337604Z","id":"e9fbe310-e693-4446-a323-d95d868bbb5d","name":"initial-name","origin":"custom","project_id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","region":"fr-par","retention_days":10,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:50.337604Z","url":"https://e9fbe310-e693-4446-a323-d95d868bbb5d.logs.cockpit.fr-par.scw.cloud"}' + headers: + Content-Length: + - "392" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:03:50 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: + - cf621438-0a6b-4cc8-b68e-e667da36f5f6 + status: 200 OK + code: 200 + duration: 66.348667ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/7d0584bc-b5e6-4aec-8aec-bc35a2d97739 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 245 + uncompressed: false + body: '{"created_at":"2024-12-11T11:03:49.447785Z","description":"","id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:03:49.447785Z"}' + headers: + Content-Length: + - "245" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:03:51 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: + - ae08d1ae-6d60-45f8-ab9f-ca9a6a375d7f + status: 200 OK + code: 200 + duration: 123.735ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/e9fbe310-e693-4446-a323-d95d868bbb5d + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 392 + uncompressed: false + body: '{"created_at":"2024-12-11T11:03:50.337604Z","id":"e9fbe310-e693-4446-a323-d95d868bbb5d","name":"initial-name","origin":"custom","project_id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","region":"fr-par","retention_days":10,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:50.337604Z","url":"https://e9fbe310-e693-4446-a323-d95d868bbb5d.logs.cockpit.fr-par.scw.cloud"}' + headers: + Content-Length: + - "392" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:03:51 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: + - fc4c0725-3664-4ceb-a000-6577fa19fa8e + status: 200 OK + code: 200 + duration: 107.682709ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/7d0584bc-b5e6-4aec-8aec-bc35a2d97739 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 245 + uncompressed: false + body: '{"created_at":"2024-12-11T11:03:49.447785Z","description":"","id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:03:49.447785Z"}' + headers: + Content-Length: + - "245" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:03:52 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: + - f192a168-47ba-40d4-9bdd-679d578610b6 + status: 200 OK + code: 200 + duration: 114.46ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/e9fbe310-e693-4446-a323-d95d868bbb5d + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 392 + uncompressed: false + body: '{"created_at":"2024-12-11T11:03:50.337604Z","id":"e9fbe310-e693-4446-a323-d95d868bbb5d","name":"initial-name","origin":"custom","project_id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","region":"fr-par","retention_days":10,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:50.337604Z","url":"https://e9fbe310-e693-4446-a323-d95d868bbb5d.logs.cockpit.fr-par.scw.cloud"}' + headers: + Content-Length: + - "392" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:03:52 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: + - 162ab91a-52b8-4a38-94e0-f5fb4e140fe7 + status: 200 OK + code: 200 + duration: 55.897375ms + - id: 9 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 21 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"retention_days":20}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/e9fbe310-e693-4446-a323-d95d868bbb5d + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 392 + uncompressed: false + body: '{"created_at":"2024-12-11T11:03:50.337604Z","id":"e9fbe310-e693-4446-a323-d95d868bbb5d","name":"initial-name","origin":"custom","project_id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:50.337604Z","url":"https://e9fbe310-e693-4446-a323-d95d868bbb5d.logs.cockpit.fr-par.scw.cloud"}' + headers: + Content-Length: + - "392" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:03:53 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: + - 63b7dfa0-176a-432d-8dd1-27a5d6df3923 + status: 200 OK + code: 200 + duration: 206.655083ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/e9fbe310-e693-4446-a323-d95d868bbb5d + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 392 + uncompressed: false + body: '{"created_at":"2024-12-11T11:03:50.337604Z","id":"e9fbe310-e693-4446-a323-d95d868bbb5d","name":"initial-name","origin":"custom","project_id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:50.337604Z","url":"https://e9fbe310-e693-4446-a323-d95d868bbb5d.logs.cockpit.fr-par.scw.cloud"}' + headers: + Content-Length: + - "392" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:03:53 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: + - 3d0893f8-e8d8-4697-95d7-863b206aef63 + status: 200 OK + code: 200 + duration: 79.525292ms + - id: 11 + 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/7d0584bc-b5e6-4aec-8aec-bc35a2d97739 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 245 + uncompressed: false + body: '{"created_at":"2024-12-11T11:03:49.447785Z","description":"","id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:03:49.447785Z"}' + headers: + Content-Length: + - "245" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:03:54 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: + - 8af3d50d-1329-4ccc-bd42-9da7fc53ae07 + status: 200 OK + code: 200 + duration: 283.698083ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/e9fbe310-e693-4446-a323-d95d868bbb5d + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 392 + uncompressed: false + body: '{"created_at":"2024-12-11T11:03:50.337604Z","id":"e9fbe310-e693-4446-a323-d95d868bbb5d","name":"initial-name","origin":"custom","project_id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:50.337604Z","url":"https://e9fbe310-e693-4446-a323-d95d868bbb5d.logs.cockpit.fr-par.scw.cloud"}' + headers: + Content-Length: + - "392" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:03:54 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: + - 036c3974-9cea-4e01-a98c-a2a0c0e32935 + status: 200 OK + code: 200 + duration: 64.67225ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/7d0584bc-b5e6-4aec-8aec-bc35a2d97739 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 245 + uncompressed: false + body: '{"created_at":"2024-12-11T11:03:49.447785Z","description":"","id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:03:49.447785Z"}' + headers: + Content-Length: + - "245" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:03:55 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: + - 093fced7-92de-47a8-9ebb-858cafc463bb + status: 200 OK + code: 200 + duration: 119.640416ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/e9fbe310-e693-4446-a323-d95d868bbb5d + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 392 + uncompressed: false + body: '{"created_at":"2024-12-11T11:03:50.337604Z","id":"e9fbe310-e693-4446-a323-d95d868bbb5d","name":"initial-name","origin":"custom","project_id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:50.337604Z","url":"https://e9fbe310-e693-4446-a323-d95d868bbb5d.logs.cockpit.fr-par.scw.cloud"}' + headers: + Content-Length: + - "392" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:03:55 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: + - 5b494f8a-dfc5-4746-902a-1cb312bc69fc + status: 200 OK + code: 200 + duration: 75.277333ms + - id: 15 + 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/e9fbe310-e693-4446-a323-d95d868bbb5d + 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: + - Wed, 11 Dec 2024 11:03:56 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: + - 01d81558-db76-4575-9158-7b7ac215f16a + status: 204 No Content + code: 204 + duration: 196.206542ms + - id: 16 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 109 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","name":"updated-name","type":"logs","retention_days":20}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 392 + uncompressed: false + body: '{"created_at":"2024-12-11T11:03:56.441412Z","id":"4395c399-987e-4b7c-a40a-48644692b863","name":"updated-name","origin":"custom","project_id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:56.441412Z","url":"https://4395c399-987e-4b7c-a40a-48644692b863.logs.cockpit.fr-par.scw.cloud"}' + headers: + Content-Length: + - "392" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:03:56 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: + - 60f2b612-0cb3-45dc-b402-770b6983ebb1 + status: 200 OK + code: 200 + duration: 208.347666ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/4395c399-987e-4b7c-a40a-48644692b863 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 392 + uncompressed: false + body: '{"created_at":"2024-12-11T11:03:56.441412Z","id":"4395c399-987e-4b7c-a40a-48644692b863","name":"updated-name","origin":"custom","project_id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:56.441412Z","url":"https://4395c399-987e-4b7c-a40a-48644692b863.logs.cockpit.fr-par.scw.cloud"}' + headers: + Content-Length: + - "392" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:03:56 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: + - 125078ac-1e17-4024-8af1-19f7f5048470 + status: 200 OK + code: 200 + duration: 78.125375ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/4395c399-987e-4b7c-a40a-48644692b863 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 392 + uncompressed: false + body: '{"created_at":"2024-12-11T11:03:56.441412Z","id":"4395c399-987e-4b7c-a40a-48644692b863","name":"updated-name","origin":"custom","project_id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:56.441412Z","url":"https://4395c399-987e-4b7c-a40a-48644692b863.logs.cockpit.fr-par.scw.cloud"}' + headers: + Content-Length: + - "392" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:03:56 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: + - 56a11525-db61-48c3-9b02-ce7fcf4723a3 + status: 200 OK + code: 200 + duration: 149.04675ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/7d0584bc-b5e6-4aec-8aec-bc35a2d97739 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 245 + uncompressed: false + body: '{"created_at":"2024-12-11T11:03:49.447785Z","description":"","id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:03:49.447785Z"}' + headers: + Content-Length: + - "245" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:03:57 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: + - 8b44167b-3867-4e64-b1d9-cb46351e565b + status: 200 OK + code: 200 + duration: 116.438833ms + - id: 20 + 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/4395c399-987e-4b7c-a40a-48644692b863 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 392 + uncompressed: false + body: '{"created_at":"2024-12-11T11:03:56.441412Z","id":"4395c399-987e-4b7c-a40a-48644692b863","name":"updated-name","origin":"custom","project_id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:56.441412Z","url":"https://4395c399-987e-4b7c-a40a-48644692b863.logs.cockpit.fr-par.scw.cloud"}' + headers: + Content-Length: + - "392" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:03:57 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: + - 698676f3-5bdf-4f16-8624-541a731331f4 + status: 200 OK + code: 200 + duration: 89.955209ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/4395c399-987e-4b7c-a40a-48644692b863 + 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: + - Wed, 11 Dec 2024 11:03:58 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: + - b055cc5d-0578-4403-9e21-840e3b218d92 + status: 204 No Content + code: 204 + duration: 164.538375ms + - id: 22 + 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/7d0584bc-b5e6-4aec-8aec-bc35a2d97739 + 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: + - Wed, 11 Dec 2024 11:04:00 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: + - 55eb94c8-004a-4d48-a848-67cd71919162 + status: 204 No Content + code: 204 + duration: 1.416253833s + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/4395c399-987e-4b7c-a40a-48644692b863 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 132 + uncompressed: false + body: '{"message":"resource is not found","resource":"data source","resource_id":"4395c399-987e-4b7c-a40a-48644692b863","type":"not_found"}' + headers: + Content-Length: + - "132" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:04:00 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: + - b2d6c2a5-68f3-48c3-bef3-f6bfbb1fa324 + status: 404 Not Found + code: 404 + duration: 49.456666ms diff --git a/internal/services/cockpit/testdata/data-source-cockpit-basic.cassette.yaml b/internal/services/cockpit/testdata/data-source-cockpit-basic.cassette.yaml index 34c206ecfc..0302f38abd 100644 --- a/internal/services/cockpit/testdata/data-source-cockpit-basic.cassette.yaml +++ b/internal/services/cockpit/testdata/data-source-cockpit-basic.cassette.yaml @@ -18,7 +18,7 @@ interactions: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests url: https://api.scaleway.com/account/v3/projects method: POST response: @@ -27,20 +27,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 252 + content_length: 247 uncompressed: false - body: '{"created_at":"2024-09-19T09:04:22.910554Z","description":"","id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c","name":"tf_tests_cockpit_project_premium","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-09-19T09:04:22.910554Z"}' + body: '{"created_at":"2024-12-11T10:57:13.642158Z","description":"","id":"52c5fc69-758a-4c3e-9556-d0a0cb28dd54","name":"tf_tests_cockpit_project_premium","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T10:57:13.642158Z"}' headers: Content-Length: - - "252" + - "247" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 19 Sep 2024 09:04:23 GMT + - Wed, 11 Dec 2024 10:57:13 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -48,10 +48,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - c5f8736d-70cc-463c-b200-3ed9a60d9b3f + - 031d25cd-25da-4cbd-9b18-b602f6ddccaa status: 200 OK code: 200 - duration: 498.873006ms + duration: 480.37ms - id: 1 request: proto: HTTP/1.1 @@ -67,8 +67,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/a6d9deb7-246e-422f-bbc2-ec69db69b12c + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/52c5fc69-758a-4c3e-9556-d0a0cb28dd54 method: GET response: proto: HTTP/2.0 @@ -76,20 +76,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 252 + content_length: 247 uncompressed: false - body: '{"created_at":"2024-09-19T09:04:22.910554Z","description":"","id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c","name":"tf_tests_cockpit_project_premium","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-09-19T09:04:22.910554Z"}' + body: '{"created_at":"2024-12-11T10:57:13.642158Z","description":"","id":"52c5fc69-758a-4c3e-9556-d0a0cb28dd54","name":"tf_tests_cockpit_project_premium","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T10:57:13.642158Z"}' headers: Content-Length: - - "252" + - "247" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 19 Sep 2024 09:04:23 GMT + - Wed, 11 Dec 2024 10:57:13 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -97,10 +97,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - a39e5629-4783-4b28-988e-95fb3762bc1c + - a0239156-cc61-445d-a9c1-a8440fd521ac status: 200 OK code: 200 - duration: 130.416856ms + duration: 110.531458ms - id: 2 request: proto: HTTP/1.1 @@ -112,13 +112,13 @@ interactions: host: api.scaleway.com remote_addr: "" request_uri: "" - body: '{"project_id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c"}' + body: '{"project_id":"52c5fc69-758a-4c3e-9556-d0a0cb28dd54"}' form: {} headers: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/enable method: POST response: @@ -127,20 +127,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 187 + content_length: 184 uncompressed: false - body: '{"alert_manager_enabled":true,"alert_manager_url":"https://3190d101-7041-4ed7-894d-27eae39f5a12.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":false,"region":"fr-par"}' + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://1844a7dd-314e-4f5e-bdef-d8c1bb06358a.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":false,"region":"fr-par"}' headers: Content-Length: - - "187" + - "184" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 19 Sep 2024 09:04:23 GMT + - Wed, 11 Dec 2024 10:57:14 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -148,28 +148,28 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 748066ef-e470-41b0-9b86-63b17290567e + - 9fdd1545-0819-45cf-8b43-ac33a1ac23f9 status: 200 OK code: 200 - duration: 184.607037ms + duration: 154.728916ms - id: 3 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 100 + content_length: 119 transfer_encoding: [] trailer: {} host: api.scaleway.com remote_addr: "" request_uri: "" - body: '{"project_id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c","name":"my-data-source-traces","type":"traces"}' + body: '{"project_id":"52c5fc69-758a-4c3e-9556-d0a0cb28dd54","name":"my-data-source-traces","type":"traces","retention_days":0}' form: {} headers: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources method: POST response: @@ -178,20 +178,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 396 + content_length: 171 uncompressed: false - body: '{"created_at":"2024-09-19T09:04:23.450385Z","id":"3a0f6618-29fb-496e-a697-e68337f1ba3e","name":"my-data-source-traces","origin":"external","project_id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c","region":"fr-par","synchronized_with_grafana":false,"type":"traces","updated_at":"2024-09-19T09:04:23.450385Z","url":"https://3a0f6618-29fb-496e-a697-e68337f1ba3e.traces.cockpit.fr-par.scw.cloud"}' + body: '{"details":[{"argument_name":"retention_days","help_message":"must be between 1 and 31","reason":"constraint"}],"message":"invalid argument(s)","type":"invalid_arguments"}' headers: Content-Length: - - "396" + - "171" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 19 Sep 2024 09:04:23 GMT + - Wed, 11 Dec 2024 10:57:14 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -199,28 +199,28 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - a7df4291-d7ed-4bca-9ee0-d4d042070ea7 - status: 200 OK - code: 200 - duration: 222.543906ms + - 2e8fac9e-25b6-4f1f-9064-7b22e798b372 + status: 400 Bad Request + code: 400 + duration: 223.627583ms - id: 4 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 102 + content_length: 115 transfer_encoding: [] trailer: {} host: api.scaleway.com remote_addr: "" request_uri: "" - body: '{"project_id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c","name":"my-data-source-metrics","type":"metrics"}' + body: '{"project_id":"52c5fc69-758a-4c3e-9556-d0a0cb28dd54","name":"my-data-source-logs","type":"logs","retention_days":0}' form: {} headers: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources method: POST response: @@ -229,20 +229,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 399 + content_length: 171 uncompressed: false - body: '{"created_at":"2024-09-19T09:04:23.452224Z","id":"5ba0ccc3-0d3c-4b4b-b083-bb82965ec28d","name":"my-data-source-metrics","origin":"external","project_id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c","region":"fr-par","synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-09-19T09:04:23.452224Z","url":"https://5ba0ccc3-0d3c-4b4b-b083-bb82965ec28d.metrics.cockpit.fr-par.scw.cloud"}' + body: '{"details":[{"argument_name":"retention_days","help_message":"must be between 1 and 31","reason":"constraint"}],"message":"invalid argument(s)","type":"invalid_arguments"}' headers: Content-Length: - - "399" + - "171" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 19 Sep 2024 09:04:23 GMT + - Wed, 11 Dec 2024 10:57:14 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -250,28 +250,28 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - c687b4f6-7198-4010-a277-d00b00b69508 - status: 200 OK - code: 200 - duration: 225.4169ms + - 71c60930-ed92-433a-9512-8d9a864488cf + status: 400 Bad Request + code: 400 + duration: 240.490333ms - id: 5 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 96 + content_length: 121 transfer_encoding: [] trailer: {} host: api.scaleway.com remote_addr: "" request_uri: "" - body: '{"project_id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c","name":"my-data-source-logs","type":"logs"}' + body: '{"project_id":"52c5fc69-758a-4c3e-9556-d0a0cb28dd54","name":"my-data-source-metrics","type":"metrics","retention_days":0}' form: {} headers: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources method: POST response: @@ -280,20 +280,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 390 + content_length: 172 uncompressed: false - body: '{"created_at":"2024-09-19T09:04:23.500089Z","id":"0923a514-b6c3-4845-85b0-9e65c515a783","name":"my-data-source-logs","origin":"external","project_id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c","region":"fr-par","synchronized_with_grafana":false,"type":"logs","updated_at":"2024-09-19T09:04:23.500089Z","url":"https://0923a514-b6c3-4845-85b0-9e65c515a783.logs.cockpit.fr-par.scw.cloud"}' + body: '{"details":[{"argument_name":"retention_days","help_message":"must be between 1 and 365","reason":"constraint"}],"message":"invalid argument(s)","type":"invalid_arguments"}' headers: Content-Length: - - "390" + - "172" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 19 Sep 2024 09:04:23 GMT + - Wed, 11 Dec 2024 10:57:14 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -301,158 +301,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 4a1a11fa-5359-43b7-a7d3-496b57a001ed - status: 200 OK - code: 200 - duration: 268.325314ms + - 55f06575-d1e7-43b4-bc98-ed5423617360 + status: 400 Bad Request + code: 400 + duration: 258.839625ms - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/3a0f6618-29fb-496e-a697-e68337f1ba3e - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 396 - uncompressed: false - body: '{"created_at":"2024-09-19T09:04:23.450385Z","id":"3a0f6618-29fb-496e-a697-e68337f1ba3e","name":"my-data-source-traces","origin":"external","project_id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c","region":"fr-par","synchronized_with_grafana":false,"type":"traces","updated_at":"2024-09-19T09:04:23.450385Z","url":"https://3a0f6618-29fb-496e-a697-e68337f1ba3e.traces.cockpit.fr-par.scw.cloud"}' - headers: - Content-Length: - - "396" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Thu, 19 Sep 2024 09:04:23 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - d4c3a962-43f0-4aac-b890-a73e3f1711c8 - status: 200 OK - code: 200 - duration: 73.760577ms - - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/5ba0ccc3-0d3c-4b4b-b083-bb82965ec28d - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 399 - uncompressed: false - body: '{"created_at":"2024-09-19T09:04:23.452224Z","id":"5ba0ccc3-0d3c-4b4b-b083-bb82965ec28d","name":"my-data-source-metrics","origin":"external","project_id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c","region":"fr-par","synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-09-19T09:04:23.452224Z","url":"https://5ba0ccc3-0d3c-4b4b-b083-bb82965ec28d.metrics.cockpit.fr-par.scw.cloud"}' - headers: - Content-Length: - - "399" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Thu, 19 Sep 2024 09:04:23 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 1a003c44-b8b8-463a-bcc8-36bc01976c07 - status: 200 OK - code: 200 - duration: 72.3338ms - - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/0923a514-b6c3-4845-85b0-9e65c515a783 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 390 - uncompressed: false - body: '{"created_at":"2024-09-19T09:04:23.500089Z","id":"0923a514-b6c3-4845-85b0-9e65c515a783","name":"my-data-source-logs","origin":"external","project_id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c","region":"fr-par","synchronized_with_grafana":false,"type":"logs","updated_at":"2024-09-19T09:04:23.500089Z","url":"https://0923a514-b6c3-4845-85b0-9e65c515a783.logs.cockpit.fr-par.scw.cloud"}' - headers: - Content-Length: - - "390" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Thu, 19 Sep 2024 09:04:23 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 6245d72a-7fcc-48db-8855-951751320707 - status: 200 OK - code: 200 - duration: 78.551717ms - - id: 9 request: proto: HTTP/1.1 proto_major: 1 @@ -463,13 +316,13 @@ interactions: host: api.scaleway.com remote_addr: "" request_uri: "" - body: '{"project_id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c"}' + body: '{"project_id":"52c5fc69-758a-4c3e-9556-d0a0cb28dd54"}' form: {} headers: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/managed-alerts/enable method: POST response: @@ -478,20 +331,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 186 + content_length: 183 uncompressed: false - body: '{"alert_manager_enabled":true,"alert_manager_url":"https://3190d101-7041-4ed7-894d-27eae39f5a12.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://1844a7dd-314e-4f5e-bdef-d8c1bb06358a.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' headers: Content-Length: - - "186" + - "183" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 19 Sep 2024 09:04:23 GMT + - Wed, 11 Dec 2024 10:57:14 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -499,11 +352,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 03ec6517-563b-4397-ac95-ed682a0f45db + - 943dbeeb-578e-4d3c-9edb-12c5a8fbbe7f status: 200 OK code: 200 - duration: 247.66762ms - - id: 10 + duration: 300.586625ms + - id: 7 request: proto: HTTP/1.1 proto_major: 1 @@ -518,8 +371,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=a6d9deb7-246e-422f-bbc2-ec69db69b12c + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=52c5fc69-758a-4c3e-9556-d0a0cb28dd54 method: GET response: proto: HTTP/2.0 @@ -527,20 +380,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 186 + content_length: 183 uncompressed: false - body: '{"alert_manager_enabled":true,"alert_manager_url":"https://3190d101-7041-4ed7-894d-27eae39f5a12.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://1844a7dd-314e-4f5e-bdef-d8c1bb06358a.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' headers: Content-Length: - - "186" + - "183" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 19 Sep 2024 09:04:23 GMT + - Wed, 11 Dec 2024 10:57:14 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -548,11 +401,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 368c84f0-deb1-4a7f-b510-7ea0c7be240c + - 5a062710-cd02-43b1-9aa6-da0ea6b8c762 status: 200 OK code: 200 - duration: 88.84905ms - - id: 11 + duration: 81.6885ms + - id: 8 request: proto: HTTP/1.1 proto_major: 1 @@ -567,8 +420,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=a6d9deb7-246e-422f-bbc2-ec69db69b12c + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=52c5fc69-758a-4c3e-9556-d0a0cb28dd54 method: GET response: proto: HTTP/2.0 @@ -576,20 +429,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 111 + content_length: 108 uncompressed: false body: '{"contact_points":[],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":0}' headers: Content-Length: - - "111" + - "108" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 19 Sep 2024 09:04:24 GMT + - Wed, 11 Dec 2024 10:57:14 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -597,11 +450,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 0f601f37-2bf4-4493-8fd1-63ce3d520d73 + - 25d383bf-f782-4a4f-8b4a-dc69df3225aa status: 200 OK code: 200 - duration: 242.143249ms - - id: 12 + duration: 126.320625ms + - id: 9 request: proto: HTTP/1.1 proto_major: 1 @@ -616,8 +469,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/plans?order_by=name_asc&page=1 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=52c5fc69-758a-4c3e-9556-d0a0cb28dd54 method: GET response: proto: HTTP/2.0 @@ -625,20 +478,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 754 + content_length: 108 uncompressed: false - body: '{"plans":[{"logs_ingestion_price":35,"monthly_price":29,"name":"custom","retention_logs_interval":"2678400s","retention_metrics_interval":"31536000s","retention_traces_interval":"2678400s","sample_ingestion_price":15,"traces_ingestion_price":35},{"logs_ingestion_price":35,"monthly_price":0,"name":"free","retention_logs_interval":"604800s","retention_metrics_interval":"2678400s","retention_traces_interval":"604800s","sample_ingestion_price":15,"traces_ingestion_price":35},{"logs_ingestion_price":35,"monthly_price":29,"name":"premium","retention_logs_interval":"2678400s","retention_metrics_interval":"31536000s","retention_traces_interval":"2678400s","sample_ingestion_price":15,"traces_ingestion_price":35}],"total_count":3}' + body: '{"contact_points":[],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":0}' headers: Content-Length: - - "754" + - "108" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 19 Sep 2024 09:04:24 GMT + - Wed, 11 Dec 2024 10:57:15 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -646,99 +499,50 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - f44671de-eaea-4ef3-b298-372bab2c705d + - aedb1125-5bc8-4aa1-8e54-f18deb53cf7c status: 200 OK code: 200 - duration: 35.386597ms - - id: 13 + duration: 271.982791ms + - id: 10 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 72 + content_length: 53 transfer_encoding: [] trailer: {} host: api.scaleway.com remote_addr: "" request_uri: "" - body: '{"project_id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c","plan_name":"free"}' + body: '{"project_id":"52c5fc69-758a-4c3e-9556-d0a0cb28dd54"}' form: {} headers: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/plans - method: PATCH - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 236 - uncompressed: false - body: '{"logs_ingestion_price":35,"monthly_price":0,"name":"free","retention_logs_interval":"604800s","retention_metrics_interval":"2678400s","retention_traces_interval":"604800s","sample_ingestion_price":15,"traces_ingestion_price":35}' - headers: - Content-Length: - - "236" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Thu, 19 Sep 2024 09:04:24 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 4eac62cd-933c-434b-86c1-49e93ded5a75 - status: 200 OK - code: 200 - duration: 121.816088ms - - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/current-plan?project_id=a6d9deb7-246e-422f-bbc2-ec69db69b12c - method: GET + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/managed-alerts/disable + method: POST response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 236 + content_length: 184 uncompressed: false - body: '{"logs_ingestion_price":35,"monthly_price":0,"name":"free","retention_logs_interval":"604800s","retention_metrics_interval":"2678400s","retention_traces_interval":"604800s","sample_ingestion_price":15,"traces_ingestion_price":35}' + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://1844a7dd-314e-4f5e-bdef-d8c1bb06358a.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":false,"region":"fr-par"}' headers: Content-Length: - - "236" + - "184" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 19 Sep 2024 09:04:24 GMT + - Wed, 11 Dec 2024 10:57:15 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -746,97 +550,50 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - d9c171d1-7edf-485e-8829-bac5f37b2078 + - de6c3adc-1a4e-45a5-8a76-5af1d4199888 status: 200 OK code: 200 - duration: 70.566417ms - - id: 15 + duration: 254.669291ms + - id: 11 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 0 + content_length: 53 transfer_encoding: [] trailer: {} host: api.scaleway.com remote_addr: "" request_uri: "" - body: "" + body: '{"project_id":"52c5fc69-758a-4c3e-9556-d0a0cb28dd54"}' form: {} headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources?order_by=created_at_asc&origin=external&page=1&project_id=a6d9deb7-246e-422f-bbc2-ec69db69b12c - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 1225 - uncompressed: false - body: '{"data_sources":[{"created_at":"2024-09-19T09:04:23.450385Z","id":"3a0f6618-29fb-496e-a697-e68337f1ba3e","name":"my-data-source-traces","origin":"external","project_id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c","region":"fr-par","synchronized_with_grafana":false,"type":"traces","updated_at":"2024-09-19T09:04:23.450385Z","url":"https://3a0f6618-29fb-496e-a697-e68337f1ba3e.traces.cockpit.fr-par.scw.cloud"},{"created_at":"2024-09-19T09:04:23.452224Z","id":"5ba0ccc3-0d3c-4b4b-b083-bb82965ec28d","name":"my-data-source-metrics","origin":"external","project_id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c","region":"fr-par","synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-09-19T09:04:23.452224Z","url":"https://5ba0ccc3-0d3c-4b4b-b083-bb82965ec28d.metrics.cockpit.fr-par.scw.cloud"},{"created_at":"2024-09-19T09:04:23.500089Z","id":"0923a514-b6c3-4845-85b0-9e65c515a783","name":"my-data-source-logs","origin":"external","project_id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c","region":"fr-par","synchronized_with_grafana":false,"type":"logs","updated_at":"2024-09-19T09:04:23.500089Z","url":"https://0923a514-b6c3-4845-85b0-9e65c515a783.logs.cockpit.fr-par.scw.cloud"}],"total_count":3}' - headers: - Content-Length: - - "1225" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json - Date: - - Thu, 19 Sep 2024 09:04:24 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - a615c429-08be-45cc-9f98-2ef9221cafe7 - status: 200 OK - code: 200 - duration: 273.075284ms - - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/grafana?project_id=a6d9deb7-246e-422f-bbc2-ec69db69b12c - method: GET + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/disable + method: POST response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 18 + content_length: 105 uncompressed: false - body: '{"grafana_url":""}' + body: '{"alert_manager_enabled":false,"alert_manager_url":null,"managed_alerts_enabled":false,"region":"fr-par"}' headers: Content-Length: - - "18" + - "105" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 19 Sep 2024 09:04:24 GMT + - Wed, 11 Dec 2024 10:57:15 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -844,1626 +601,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 91e3be51-9242-48d8-a9bd-c1521470e84c + - 6c3e9220-d4fe-4044-8ce7-8c49a030b2c6 status: 200 OK code: 200 - duration: 61.453701ms - - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=a6d9deb7-246e-422f-bbc2-ec69db69b12c - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 186 - uncompressed: false - body: '{"alert_manager_enabled":true,"alert_manager_url":"https://3190d101-7041-4ed7-894d-27eae39f5a12.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' - headers: - Content-Length: - - "186" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Thu, 19 Sep 2024 09:04:24 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - a2d4d3e7-f75a-4dcc-94af-b7ec2d579911 - status: 200 OK - code: 200 - duration: 84.976954ms - - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/current-plan?project_id=a6d9deb7-246e-422f-bbc2-ec69db69b12c - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 236 - uncompressed: false - body: '{"logs_ingestion_price":35,"monthly_price":0,"name":"free","retention_logs_interval":"604800s","retention_metrics_interval":"2678400s","retention_traces_interval":"604800s","sample_ingestion_price":15,"traces_ingestion_price":35}' - headers: - Content-Length: - - "236" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Thu, 19 Sep 2024 09:04:24 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 3fb04787-947e-48c2-ba89-8d2f56a01cd9 - status: 200 OK - code: 200 - duration: 122.205266ms - - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources?order_by=created_at_asc&origin=external&page=1&project_id=a6d9deb7-246e-422f-bbc2-ec69db69b12c - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 1225 - uncompressed: false - body: '{"data_sources":[{"created_at":"2024-09-19T09:04:23.450385Z","id":"3a0f6618-29fb-496e-a697-e68337f1ba3e","name":"my-data-source-traces","origin":"external","project_id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c","region":"fr-par","synchronized_with_grafana":false,"type":"traces","updated_at":"2024-09-19T09:04:23.450385Z","url":"https://3a0f6618-29fb-496e-a697-e68337f1ba3e.traces.cockpit.fr-par.scw.cloud"},{"created_at":"2024-09-19T09:04:23.452224Z","id":"5ba0ccc3-0d3c-4b4b-b083-bb82965ec28d","name":"my-data-source-metrics","origin":"external","project_id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c","region":"fr-par","synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-09-19T09:04:23.452224Z","url":"https://5ba0ccc3-0d3c-4b4b-b083-bb82965ec28d.metrics.cockpit.fr-par.scw.cloud"},{"created_at":"2024-09-19T09:04:23.500089Z","id":"0923a514-b6c3-4845-85b0-9e65c515a783","name":"my-data-source-logs","origin":"external","project_id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c","region":"fr-par","synchronized_with_grafana":false,"type":"logs","updated_at":"2024-09-19T09:04:23.500089Z","url":"https://0923a514-b6c3-4845-85b0-9e65c515a783.logs.cockpit.fr-par.scw.cloud"}],"total_count":3}' - headers: - Content-Length: - - "1225" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Thu, 19 Sep 2024 09:04:25 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 46735ea4-fcb6-4a36-b5b3-1a86d826718f - status: 200 OK - code: 200 - duration: 386.728943ms - - id: 20 - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/grafana?project_id=a6d9deb7-246e-422f-bbc2-ec69db69b12c - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 18 - uncompressed: false - body: '{"grafana_url":""}' - headers: - Content-Length: - - "18" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Thu, 19 Sep 2024 09:04:25 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 4a53788c-e66d-4c8e-a3db-e1c6644486d1 - status: 200 OK - code: 200 - duration: 850.599879ms - - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=a6d9deb7-246e-422f-bbc2-ec69db69b12c - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 186 - uncompressed: false - body: '{"alert_manager_enabled":true,"alert_manager_url":"https://3190d101-7041-4ed7-894d-27eae39f5a12.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' - headers: - Content-Length: - - "186" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Thu, 19 Sep 2024 09:04:26 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - ec98e019-e37e-4855-b2ca-c8a9b1866eef - status: 200 OK - code: 200 - duration: 59.41537ms - - id: 22 - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/current-plan?project_id=a6d9deb7-246e-422f-bbc2-ec69db69b12c - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 236 - uncompressed: false - body: '{"logs_ingestion_price":35,"monthly_price":0,"name":"free","retention_logs_interval":"604800s","retention_metrics_interval":"2678400s","retention_traces_interval":"604800s","sample_ingestion_price":15,"traces_ingestion_price":35}' - headers: - Content-Length: - - "236" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Thu, 19 Sep 2024 09:04:26 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - e15a3f5b-2b2b-4747-b345-a5d8b6c6fcb6 - status: 200 OK - code: 200 - duration: 73.471439ms - - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources?order_by=created_at_asc&origin=external&page=1&project_id=a6d9deb7-246e-422f-bbc2-ec69db69b12c - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 1225 - uncompressed: false - body: '{"data_sources":[{"created_at":"2024-09-19T09:04:23.450385Z","id":"3a0f6618-29fb-496e-a697-e68337f1ba3e","name":"my-data-source-traces","origin":"external","project_id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c","region":"fr-par","synchronized_with_grafana":false,"type":"traces","updated_at":"2024-09-19T09:04:23.450385Z","url":"https://3a0f6618-29fb-496e-a697-e68337f1ba3e.traces.cockpit.fr-par.scw.cloud"},{"created_at":"2024-09-19T09:04:23.452224Z","id":"5ba0ccc3-0d3c-4b4b-b083-bb82965ec28d","name":"my-data-source-metrics","origin":"external","project_id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c","region":"fr-par","synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-09-19T09:04:23.452224Z","url":"https://5ba0ccc3-0d3c-4b4b-b083-bb82965ec28d.metrics.cockpit.fr-par.scw.cloud"},{"created_at":"2024-09-19T09:04:23.500089Z","id":"0923a514-b6c3-4845-85b0-9e65c515a783","name":"my-data-source-logs","origin":"external","project_id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c","region":"fr-par","synchronized_with_grafana":false,"type":"logs","updated_at":"2024-09-19T09:04:23.500089Z","url":"https://0923a514-b6c3-4845-85b0-9e65c515a783.logs.cockpit.fr-par.scw.cloud"}],"total_count":3}' - headers: - Content-Length: - - "1225" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Thu, 19 Sep 2024 09:04:26 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 69da013c-234e-459f-a423-1fa51256fcb7 - status: 200 OK - code: 200 - duration: 292.563143ms - - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/grafana?project_id=a6d9deb7-246e-422f-bbc2-ec69db69b12c - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 18 - uncompressed: false - body: '{"grafana_url":""}' - headers: - Content-Length: - - "18" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Thu, 19 Sep 2024 09:04:26 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - b60a617b-01d9-4402-9f7b-fe612bf3aa9a - status: 200 OK - code: 200 - duration: 212.001924ms - - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=a6d9deb7-246e-422f-bbc2-ec69db69b12c - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 186 - uncompressed: false - body: '{"alert_manager_enabled":true,"alert_manager_url":"https://3190d101-7041-4ed7-894d-27eae39f5a12.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' - headers: - Content-Length: - - "186" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Thu, 19 Sep 2024 09:04:27 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - a3b0dd08-468d-4271-9dc0-997dbf9bcecb - status: 200 OK - code: 200 - duration: 77.692242ms - - id: 26 - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/a6d9deb7-246e-422f-bbc2-ec69db69b12c - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 252 - uncompressed: false - body: '{"created_at":"2024-09-19T09:04:22.910554Z","description":"","id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c","name":"tf_tests_cockpit_project_premium","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-09-19T09:04:22.910554Z"}' - headers: - Content-Length: - - "252" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Thu, 19 Sep 2024 09:04:27 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 54d3771b-ddad-409c-9295-6e9f95c92208 - status: 200 OK - code: 200 - duration: 96.377248ms - - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/5ba0ccc3-0d3c-4b4b-b083-bb82965ec28d - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 399 - uncompressed: false - body: '{"created_at":"2024-09-19T09:04:23.452224Z","id":"5ba0ccc3-0d3c-4b4b-b083-bb82965ec28d","name":"my-data-source-metrics","origin":"external","project_id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c","region":"fr-par","synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-09-19T09:04:23.452224Z","url":"https://5ba0ccc3-0d3c-4b4b-b083-bb82965ec28d.metrics.cockpit.fr-par.scw.cloud"}' - headers: - Content-Length: - - "399" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Thu, 19 Sep 2024 09:04:27 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 092c7d8e-4a96-4375-923c-14a3dc402710 - status: 200 OK - code: 200 - duration: 50.018035ms - - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=a6d9deb7-246e-422f-bbc2-ec69db69b12c - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 186 - uncompressed: false - body: '{"alert_manager_enabled":true,"alert_manager_url":"https://3190d101-7041-4ed7-894d-27eae39f5a12.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' - headers: - Content-Length: - - "186" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Thu, 19 Sep 2024 09:04:27 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 19e836ee-52f9-404f-8b75-35b61605e72f - status: 200 OK - code: 200 - duration: 55.496687ms - - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/3a0f6618-29fb-496e-a697-e68337f1ba3e - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 396 - uncompressed: false - body: '{"created_at":"2024-09-19T09:04:23.450385Z","id":"3a0f6618-29fb-496e-a697-e68337f1ba3e","name":"my-data-source-traces","origin":"external","project_id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c","region":"fr-par","synchronized_with_grafana":false,"type":"traces","updated_at":"2024-09-19T09:04:23.450385Z","url":"https://3a0f6618-29fb-496e-a697-e68337f1ba3e.traces.cockpit.fr-par.scw.cloud"}' - headers: - Content-Length: - - "396" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Thu, 19 Sep 2024 09:04:27 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - ef85ae93-dcd3-4353-b50f-c83d6ce54a08 - status: 200 OK - code: 200 - duration: 61.432903ms - - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/0923a514-b6c3-4845-85b0-9e65c515a783 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 390 - uncompressed: false - body: '{"created_at":"2024-09-19T09:04:23.500089Z","id":"0923a514-b6c3-4845-85b0-9e65c515a783","name":"my-data-source-logs","origin":"external","project_id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c","region":"fr-par","synchronized_with_grafana":false,"type":"logs","updated_at":"2024-09-19T09:04:23.500089Z","url":"https://0923a514-b6c3-4845-85b0-9e65c515a783.logs.cockpit.fr-par.scw.cloud"}' - headers: - Content-Length: - - "390" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Thu, 19 Sep 2024 09:04:27 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 73a31bad-5e02-449a-9c1b-0726c352f30c - status: 200 OK - code: 200 - duration: 61.91139ms - - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=a6d9deb7-246e-422f-bbc2-ec69db69b12c - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 111 - uncompressed: false - body: '{"contact_points":[],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":0}' - headers: - Content-Length: - - "111" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Thu, 19 Sep 2024 09:04:27 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 8f9a8dc9-22cd-4d92-bb7c-50c6d7ea35d6 - status: 200 OK - code: 200 - duration: 162.334855ms - - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/current-plan?project_id=a6d9deb7-246e-422f-bbc2-ec69db69b12c - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 236 - uncompressed: false - body: '{"logs_ingestion_price":35,"monthly_price":0,"name":"free","retention_logs_interval":"604800s","retention_metrics_interval":"2678400s","retention_traces_interval":"604800s","sample_ingestion_price":15,"traces_ingestion_price":35}' - headers: - Content-Length: - - "236" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Thu, 19 Sep 2024 09:04:27 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 1c2f0781-0091-4239-8af1-815ae624f3ab - status: 200 OK - code: 200 - duration: 65.928943ms - - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources?order_by=created_at_asc&origin=external&page=1&project_id=a6d9deb7-246e-422f-bbc2-ec69db69b12c - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 1225 - uncompressed: false - body: '{"data_sources":[{"created_at":"2024-09-19T09:04:23.450385Z","id":"3a0f6618-29fb-496e-a697-e68337f1ba3e","name":"my-data-source-traces","origin":"external","project_id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c","region":"fr-par","synchronized_with_grafana":false,"type":"traces","updated_at":"2024-09-19T09:04:23.450385Z","url":"https://3a0f6618-29fb-496e-a697-e68337f1ba3e.traces.cockpit.fr-par.scw.cloud"},{"created_at":"2024-09-19T09:04:23.452224Z","id":"5ba0ccc3-0d3c-4b4b-b083-bb82965ec28d","name":"my-data-source-metrics","origin":"external","project_id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c","region":"fr-par","synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-09-19T09:04:23.452224Z","url":"https://5ba0ccc3-0d3c-4b4b-b083-bb82965ec28d.metrics.cockpit.fr-par.scw.cloud"},{"created_at":"2024-09-19T09:04:23.500089Z","id":"0923a514-b6c3-4845-85b0-9e65c515a783","name":"my-data-source-logs","origin":"external","project_id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c","region":"fr-par","synchronized_with_grafana":false,"type":"logs","updated_at":"2024-09-19T09:04:23.500089Z","url":"https://0923a514-b6c3-4845-85b0-9e65c515a783.logs.cockpit.fr-par.scw.cloud"}],"total_count":3}' - headers: - Content-Length: - - "1225" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Thu, 19 Sep 2024 09:04:27 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 632cc882-99cb-4dc6-91fd-8c86d110b93d - status: 200 OK - code: 200 - duration: 240.861287ms - - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/grafana?project_id=a6d9deb7-246e-422f-bbc2-ec69db69b12c - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 18 - uncompressed: false - body: '{"grafana_url":""}' - headers: - Content-Length: - - "18" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Thu, 19 Sep 2024 09:04:27 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - fed418a1-a620-4138-b576-93c4e929d4d8 - status: 200 OK - code: 200 - duration: 55.560849ms - - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=a6d9deb7-246e-422f-bbc2-ec69db69b12c - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 186 - uncompressed: false - body: '{"alert_manager_enabled":true,"alert_manager_url":"https://3190d101-7041-4ed7-894d-27eae39f5a12.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' - headers: - Content-Length: - - "186" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Thu, 19 Sep 2024 09:04:27 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 8a7c3ed8-209f-4f83-af71-36bd7e5072a2 - status: 200 OK - code: 200 - duration: 53.17632ms - - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/current-plan?project_id=a6d9deb7-246e-422f-bbc2-ec69db69b12c - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 236 - uncompressed: false - body: '{"logs_ingestion_price":35,"monthly_price":0,"name":"free","retention_logs_interval":"604800s","retention_metrics_interval":"2678400s","retention_traces_interval":"604800s","sample_ingestion_price":15,"traces_ingestion_price":35}' - headers: - Content-Length: - - "236" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Thu, 19 Sep 2024 09:04:28 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - f4f479e7-52e4-4393-98f5-1dcd5ff8332b - status: 200 OK - code: 200 - duration: 62.560903ms - - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources?order_by=created_at_asc&origin=external&page=1&project_id=a6d9deb7-246e-422f-bbc2-ec69db69b12c - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 1225 - uncompressed: false - body: '{"data_sources":[{"created_at":"2024-09-19T09:04:23.450385Z","id":"3a0f6618-29fb-496e-a697-e68337f1ba3e","name":"my-data-source-traces","origin":"external","project_id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c","region":"fr-par","synchronized_with_grafana":false,"type":"traces","updated_at":"2024-09-19T09:04:23.450385Z","url":"https://3a0f6618-29fb-496e-a697-e68337f1ba3e.traces.cockpit.fr-par.scw.cloud"},{"created_at":"2024-09-19T09:04:23.452224Z","id":"5ba0ccc3-0d3c-4b4b-b083-bb82965ec28d","name":"my-data-source-metrics","origin":"external","project_id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c","region":"fr-par","synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-09-19T09:04:23.452224Z","url":"https://5ba0ccc3-0d3c-4b4b-b083-bb82965ec28d.metrics.cockpit.fr-par.scw.cloud"},{"created_at":"2024-09-19T09:04:23.500089Z","id":"0923a514-b6c3-4845-85b0-9e65c515a783","name":"my-data-source-logs","origin":"external","project_id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c","region":"fr-par","synchronized_with_grafana":false,"type":"logs","updated_at":"2024-09-19T09:04:23.500089Z","url":"https://0923a514-b6c3-4845-85b0-9e65c515a783.logs.cockpit.fr-par.scw.cloud"}],"total_count":3}' - headers: - Content-Length: - - "1225" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Thu, 19 Sep 2024 09:04:28 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 0a7184e0-1e07-474c-b7b3-b659e393a945 - status: 200 OK - code: 200 - duration: 288.574336ms - - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/grafana?project_id=a6d9deb7-246e-422f-bbc2-ec69db69b12c - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 18 - uncompressed: false - body: '{"grafana_url":""}' - headers: - Content-Length: - - "18" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Thu, 19 Sep 2024 09:04:28 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 9ca6a4a7-fca7-457b-bad5-60e732ae5cc5 - status: 200 OK - code: 200 - duration: 77.544919ms - - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=a6d9deb7-246e-422f-bbc2-ec69db69b12c - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 186 - uncompressed: false - body: '{"alert_manager_enabled":true,"alert_manager_url":"https://3190d101-7041-4ed7-894d-27eae39f5a12.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' - headers: - Content-Length: - - "186" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Thu, 19 Sep 2024 09:04:28 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 6512179f-5c7c-4d6e-aed3-a5208dae8e5e - status: 200 OK - code: 200 - duration: 56.635706ms - - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/current-plan?project_id=a6d9deb7-246e-422f-bbc2-ec69db69b12c - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 236 - uncompressed: false - body: '{"logs_ingestion_price":35,"monthly_price":0,"name":"free","retention_logs_interval":"604800s","retention_metrics_interval":"2678400s","retention_traces_interval":"604800s","sample_ingestion_price":15,"traces_ingestion_price":35}' - headers: - Content-Length: - - "236" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Thu, 19 Sep 2024 09:04:28 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 05ec89d7-4f79-4868-b30c-892a3db550b8 - status: 200 OK - code: 200 - duration: 66.073808ms - - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources?order_by=created_at_asc&origin=external&page=1&project_id=a6d9deb7-246e-422f-bbc2-ec69db69b12c - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 1225 - uncompressed: false - body: '{"data_sources":[{"created_at":"2024-09-19T09:04:23.450385Z","id":"3a0f6618-29fb-496e-a697-e68337f1ba3e","name":"my-data-source-traces","origin":"external","project_id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c","region":"fr-par","synchronized_with_grafana":false,"type":"traces","updated_at":"2024-09-19T09:04:23.450385Z","url":"https://3a0f6618-29fb-496e-a697-e68337f1ba3e.traces.cockpit.fr-par.scw.cloud"},{"created_at":"2024-09-19T09:04:23.452224Z","id":"5ba0ccc3-0d3c-4b4b-b083-bb82965ec28d","name":"my-data-source-metrics","origin":"external","project_id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c","region":"fr-par","synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-09-19T09:04:23.452224Z","url":"https://5ba0ccc3-0d3c-4b4b-b083-bb82965ec28d.metrics.cockpit.fr-par.scw.cloud"},{"created_at":"2024-09-19T09:04:23.500089Z","id":"0923a514-b6c3-4845-85b0-9e65c515a783","name":"my-data-source-logs","origin":"external","project_id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c","region":"fr-par","synchronized_with_grafana":false,"type":"logs","updated_at":"2024-09-19T09:04:23.500089Z","url":"https://0923a514-b6c3-4845-85b0-9e65c515a783.logs.cockpit.fr-par.scw.cloud"}],"total_count":3}' - headers: - Content-Length: - - "1225" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Thu, 19 Sep 2024 09:04:28 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 3e8e4d3f-56de-4589-84e1-5acdc95a2b8a - status: 200 OK - code: 200 - duration: 336.585849ms - - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/grafana?project_id=a6d9deb7-246e-422f-bbc2-ec69db69b12c - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 18 - uncompressed: false - body: '{"grafana_url":""}' - headers: - Content-Length: - - "18" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Thu, 19 Sep 2024 09:04:29 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 6eddf023-507e-4c7c-9339-a6bb41844b41 - status: 200 OK - code: 200 - duration: 59.794483ms - - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=a6d9deb7-246e-422f-bbc2-ec69db69b12c - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 186 - uncompressed: false - body: '{"alert_manager_enabled":true,"alert_manager_url":"https://3190d101-7041-4ed7-894d-27eae39f5a12.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' - headers: - Content-Length: - - "186" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Thu, 19 Sep 2024 09:04:29 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - fbecd434-7f27-4ed3-a5cb-d3eb83c2c0ac - status: 200 OK - code: 200 - duration: 78.51438ms - - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/3a0f6618-29fb-496e-a697-e68337f1ba3e - 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: - - Thu, 19 Sep 2024 09:04:29 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - f520ccdc-80b0-423b-bce7-cf0e733560d7 - status: 204 No Content - code: 204 - duration: 88.518516ms - - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=a6d9deb7-246e-422f-bbc2-ec69db69b12c - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 111 - uncompressed: false - body: '{"contact_points":[],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":0}' - headers: - Content-Length: - - "111" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Thu, 19 Sep 2024 09:04:29 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - c979ecfd-c9fd-4195-bc31-21a0f7256804 - status: 200 OK - code: 200 - duration: 177.285756ms - - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/0923a514-b6c3-4845-85b0-9e65c515a783 - 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: - - Thu, 19 Sep 2024 09:04:29 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 0211e705-c0dc-438a-bca6-fb7c59cf9987 - status: 204 No Content - code: 204 - duration: 235.918854ms - - id: 47 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 53 - transfer_encoding: [] - trailer: {} - host: api.scaleway.com - remote_addr: "" - request_uri: "" - body: '{"project_id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c"}' - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/managed-alerts/disable - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 187 - uncompressed: false - body: '{"alert_manager_enabled":true,"alert_manager_url":"https://3190d101-7041-4ed7-894d-27eae39f5a12.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":false,"region":"fr-par"}' - headers: - Content-Length: - - "187" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Thu, 19 Sep 2024 09:04:29 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 406d2538-2118-4c58-b9a7-6e49d38b8ab6 - status: 200 OK - code: 200 - duration: 234.611054ms - - 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.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/5ba0ccc3-0d3c-4b4b-b083-bb82965ec28d - 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: - - Thu, 19 Sep 2024 09:04:30 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - dd6223c1-ab90-4ae1-853c-14e9dcac9c95 - status: 204 No Content - code: 204 - duration: 695.441402ms - - id: 49 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 53 - transfer_encoding: [] - trailer: {} - host: api.scaleway.com - remote_addr: "" - request_uri: "" - body: '{"project_id":"a6d9deb7-246e-422f-bbc2-ec69db69b12c"}' - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/disable - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 108 - uncompressed: false - body: '{"alert_manager_enabled":false,"alert_manager_url":null,"managed_alerts_enabled":false,"region":"fr-par"}' - headers: - Content-Length: - - "108" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Thu, 19 Sep 2024 09:04:30 GMT - Server: - - Scaleway API Gateway (fr-par-1;edge03) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 3421dc9e-8fce-439b-9a25-f7c39a0b0d62 - status: 200 OK - code: 200 - duration: 400.612714ms - - id: 50 + duration: 410.026ms + - id: 12 request: proto: HTTP/1.1 proto_major: 1 @@ -2478,8 +620,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/a6d9deb7-246e-422f-bbc2-ec69db69b12c + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/52c5fc69-758a-4c3e-9556-d0a0cb28dd54 method: DELETE response: proto: HTTP/2.0 @@ -2496,9 +638,9 @@ interactions: Content-Type: - application/json Date: - - Thu, 19 Sep 2024 09:04:31 GMT + - Wed, 11 Dec 2024 10:57:17 GMT Server: - - Scaleway API Gateway (fr-par-1;edge03) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -2506,7 +648,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 3bcd8264-1858-46dd-9b33-90df2028a6e8 + - 97ce5f5b-b97a-441f-9ccb-f184ff4cfced status: 204 No Content code: 204 - duration: 1.274676545s + duration: 1.456528708s From a14799e6985d2fa15db41b50fc3028d0eeae0fcf Mon Sep 17 00:00:00 2001 From: devtools-ci-cd Date: Wed, 11 Dec 2024 12:20:48 +0100 Subject: [PATCH 3/5] feat(cockpit): required for retention_days --- .../cockpit/cockpit_data_source_test.go | 3 + internal/services/cockpit/source.go | 7 +- internal/services/cockpit/source_test.go | 5 +- .../cockpit-source-basic-logs.cassette.yaml | 112 +- ...cockpit-source-basic-metrics.cassette.yaml | 132 +- ...ockpit-source-retention-days.cassette.yaml | 114 +- .../cockpit-source-update.cassette.yaml | 232 +- .../data-source-cockpit-basic.cassette.yaml | 2074 ++++++++++++++++- 8 files changed, 2269 insertions(+), 410 deletions(-) diff --git a/internal/services/cockpit/cockpit_data_source_test.go b/internal/services/cockpit/cockpit_data_source_test.go index 52c3378a69..361cf31eb7 100644 --- a/internal/services/cockpit/cockpit_data_source_test.go +++ b/internal/services/cockpit/cockpit_data_source_test.go @@ -25,18 +25,21 @@ func TestAccDataSourceCockpit_Basic(t *testing.T) { project_id = scaleway_account_project.project.id name = "my-data-source-metrics" type = "metrics" + retention_days = 31 } resource "scaleway_cockpit_source" "logs" { project_id = scaleway_account_project.project.id name = "my-data-source-logs" type = "logs" + retention_days = 7 } resource "scaleway_cockpit_source" "traces" { project_id = scaleway_account_project.project.id name = "my-data-source-traces" type = "traces" + retention_days = 7 } resource "scaleway_cockpit_alert_manager" "alert_manager" { diff --git a/internal/services/cockpit/source.go b/internal/services/cockpit/source.go index 99878c98da..dbfa9789a3 100644 --- a/internal/services/cockpit/source.go +++ b/internal/services/cockpit/source.go @@ -45,8 +45,7 @@ func ResourceCockpitSource() *schema.Resource { }, "retention_days": { Type: schema.TypeInt, - Optional: true, - Default: 6, + Required: true, Description: "The number of days to retain data, must be between 1 and 365.", }, // computed @@ -93,10 +92,6 @@ func ResourceCockpitSourceCreate(ctx context.Context, d *schema.ResourceData, me } retentionDays := uint32(d.Get("retention_days").(int)) - if retentionDays == 0 { - retentionDays = 6 - } - res, err := api.CreateDataSource(&cockpit.RegionalAPICreateDataSourceRequest{ Region: region, ProjectID: d.Get("project_id").(string), diff --git a/internal/services/cockpit/source_test.go b/internal/services/cockpit/source_test.go index 9f72ebbcff..295e35a107 100644 --- a/internal/services/cockpit/source_test.go +++ b/internal/services/cockpit/source_test.go @@ -31,6 +31,7 @@ func TestAccCockpitSource_Basic_metrics(t *testing.T) { project_id = scaleway_account_project.project.id name = "my-source" type = "metrics" + retention_days = 31 } `, Check: resource.ComposeTestCheckFunc( @@ -38,7 +39,7 @@ func TestAccCockpitSource_Basic_metrics(t *testing.T) { resource.TestCheckResourceAttr("scaleway_cockpit_source.main", "name", "my-source"), resource.TestCheckResourceAttr("scaleway_cockpit_source.main", "type", "metrics"), resource.TestCheckResourceAttr("scaleway_cockpit_source.main", "region", "fr-par"), - resource.TestCheckResourceAttr("scaleway_cockpit_source.main", "retention_days", "6"), + resource.TestCheckResourceAttr("scaleway_cockpit_source.main", "retention_days", "31"), resource.TestCheckResourceAttrSet("scaleway_cockpit_source.main", "url"), resource.TestCheckResourceAttrSet("scaleway_cockpit_source.main", "push_url"), resource.TestCheckResourceAttrSet("scaleway_cockpit_source.main", "origin"), @@ -71,6 +72,8 @@ func TestAccCockpitSource_Basic_logs(t *testing.T) { project_id = scaleway_account_project.project.id name = "my-source" type = "logs" + retention_days = 31 + } `, Check: resource.ComposeTestCheckFunc( diff --git a/internal/services/cockpit/testdata/cockpit-source-basic-logs.cassette.yaml b/internal/services/cockpit/testdata/cockpit-source-basic-logs.cassette.yaml index f5d684be16..d1a6c025ed 100644 --- a/internal/services/cockpit/testdata/cockpit-source-basic-logs.cassette.yaml +++ b/internal/services/cockpit/testdata/cockpit-source-basic-logs.cassette.yaml @@ -29,7 +29,7 @@ interactions: trailer: {} content_length: 248 uncompressed: false - body: '{"created_at":"2024-12-11T11:03:20.648097Z","description":"","id":"62ffcfb5-34a1-40e7-9f60-69ad5940346e","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:03:20.648097Z"}' + body: '{"created_at":"2024-12-11T11:19:00.596350Z","description":"","id":"0ca30e8f-43d8-417b-aeaf-904b66182790","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:19:00.596350Z"}' headers: Content-Length: - "248" @@ -38,7 +38,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:20 GMT + - Wed, 11 Dec 2024 11:19:00 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -48,10 +48,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - f5a6ae1a-6ae1-4174-a179-9cc49b4af487 + - cb479384-2605-49f1-9e0b-81677dd20778 status: 200 OK code: 200 - duration: 733.205458ms + duration: 837.908292ms - id: 1 request: proto: HTTP/1.1 @@ -68,7 +68,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/62ffcfb5-34a1-40e7-9f60-69ad5940346e + url: https://api.scaleway.com/account/v3/projects/0ca30e8f-43d8-417b-aeaf-904b66182790 method: GET response: proto: HTTP/2.0 @@ -78,7 +78,7 @@ interactions: trailer: {} content_length: 248 uncompressed: false - body: '{"created_at":"2024-12-11T11:03:20.648097Z","description":"","id":"62ffcfb5-34a1-40e7-9f60-69ad5940346e","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:03:20.648097Z"}' + body: '{"created_at":"2024-12-11T11:19:00.596350Z","description":"","id":"0ca30e8f-43d8-417b-aeaf-904b66182790","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:19:00.596350Z"}' headers: Content-Length: - "248" @@ -87,7 +87,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:20 GMT + - Wed, 11 Dec 2024 11:19:00 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -97,22 +97,22 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - d156d9b2-fd14-4d3a-8107-41d503182dc3 + - 78fd5901-ad7b-47ec-8a6e-c5d7ad556f07 status: 200 OK code: 200 - duration: 151.67ms + duration: 161.829375ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 105 + content_length: 106 transfer_encoding: [] trailer: {} host: api.scaleway.com remote_addr: "" request_uri: "" - body: '{"project_id":"62ffcfb5-34a1-40e7-9f60-69ad5940346e","name":"my-source","type":"logs","retention_days":6}' + body: '{"project_id":"0ca30e8f-43d8-417b-aeaf-904b66182790","name":"my-source","type":"logs","retention_days":31}' form: {} headers: Content-Type: @@ -127,18 +127,18 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 388 + content_length: 389 uncompressed: false - body: '{"created_at":"2024-12-11T11:03:21.218307Z","id":"a23a7ca6-8dc7-4a77-8f1f-2e851ae4a845","name":"my-source","origin":"custom","project_id":"62ffcfb5-34a1-40e7-9f60-69ad5940346e","region":"fr-par","retention_days":6,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:21.218307Z","url":"https://a23a7ca6-8dc7-4a77-8f1f-2e851ae4a845.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:19:01.364666Z","id":"94326abe-6449-4d49-86fb-d7291ebb18a8","name":"my-source","origin":"custom","project_id":"0ca30e8f-43d8-417b-aeaf-904b66182790","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:01.364666Z","url":"https://94326abe-6449-4d49-86fb-d7291ebb18a8.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - - "388" + - "389" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:21 GMT + - Wed, 11 Dec 2024 11:19:01 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -148,10 +148,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 306348ee-6eb2-48c4-b86d-df7752074460 + - 7bb4cc79-c920-4cf0-a641-f808fc7c5060 status: 200 OK code: 200 - duration: 333.280042ms + duration: 335.209083ms - id: 3 request: proto: HTTP/1.1 @@ -168,7 +168,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/a23a7ca6-8dc7-4a77-8f1f-2e851ae4a845 + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/94326abe-6449-4d49-86fb-d7291ebb18a8 method: GET response: proto: HTTP/2.0 @@ -176,18 +176,18 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 388 + content_length: 389 uncompressed: false - body: '{"created_at":"2024-12-11T11:03:21.218307Z","id":"a23a7ca6-8dc7-4a77-8f1f-2e851ae4a845","name":"my-source","origin":"custom","project_id":"62ffcfb5-34a1-40e7-9f60-69ad5940346e","region":"fr-par","retention_days":6,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:21.218307Z","url":"https://a23a7ca6-8dc7-4a77-8f1f-2e851ae4a845.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:19:01.364666Z","id":"94326abe-6449-4d49-86fb-d7291ebb18a8","name":"my-source","origin":"custom","project_id":"0ca30e8f-43d8-417b-aeaf-904b66182790","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:01.364666Z","url":"https://94326abe-6449-4d49-86fb-d7291ebb18a8.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - - "388" + - "389" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:21 GMT + - Wed, 11 Dec 2024 11:19:01 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -197,10 +197,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 8ab214fc-ba3b-4b0f-b0bc-abd7471ea82d + - cffbb1c0-af6e-4a49-9de8-399426268652 status: 200 OK code: 200 - duration: 62.256792ms + duration: 66.024875ms - id: 4 request: proto: HTTP/1.1 @@ -217,7 +217,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/a23a7ca6-8dc7-4a77-8f1f-2e851ae4a845 + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/94326abe-6449-4d49-86fb-d7291ebb18a8 method: GET response: proto: HTTP/2.0 @@ -225,18 +225,18 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 388 + content_length: 389 uncompressed: false - body: '{"created_at":"2024-12-11T11:03:21.218307Z","id":"a23a7ca6-8dc7-4a77-8f1f-2e851ae4a845","name":"my-source","origin":"custom","project_id":"62ffcfb5-34a1-40e7-9f60-69ad5940346e","region":"fr-par","retention_days":6,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:21.218307Z","url":"https://a23a7ca6-8dc7-4a77-8f1f-2e851ae4a845.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:19:01.364666Z","id":"94326abe-6449-4d49-86fb-d7291ebb18a8","name":"my-source","origin":"custom","project_id":"0ca30e8f-43d8-417b-aeaf-904b66182790","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:01.364666Z","url":"https://94326abe-6449-4d49-86fb-d7291ebb18a8.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - - "388" + - "389" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:21 GMT + - Wed, 11 Dec 2024 11:19:02 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -246,10 +246,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 63bc0d83-ecd1-48d3-8ca2-8eb5e3b2438c + - 98c8c5b5-5064-4d7a-82e6-fd4423efe209 status: 200 OK code: 200 - duration: 68.299291ms + duration: 622.824167ms - id: 5 request: proto: HTTP/1.1 @@ -266,7 +266,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/62ffcfb5-34a1-40e7-9f60-69ad5940346e + url: https://api.scaleway.com/account/v3/projects/0ca30e8f-43d8-417b-aeaf-904b66182790 method: GET response: proto: HTTP/2.0 @@ -276,7 +276,7 @@ interactions: trailer: {} content_length: 248 uncompressed: false - body: '{"created_at":"2024-12-11T11:03:20.648097Z","description":"","id":"62ffcfb5-34a1-40e7-9f60-69ad5940346e","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:03:20.648097Z"}' + body: '{"created_at":"2024-12-11T11:19:00.596350Z","description":"","id":"0ca30e8f-43d8-417b-aeaf-904b66182790","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:19:00.596350Z"}' headers: Content-Length: - "248" @@ -285,7 +285,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:22 GMT + - Wed, 11 Dec 2024 11:19:03 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -295,10 +295,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 3cc97fd5-e1a6-44e2-a1b8-f514dc4f9fca + - ad2977c1-146c-4881-824a-0b1d023c8e5b status: 200 OK code: 200 - duration: 105.913084ms + duration: 119.830708ms - id: 6 request: proto: HTTP/1.1 @@ -315,7 +315,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/a23a7ca6-8dc7-4a77-8f1f-2e851ae4a845 + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/94326abe-6449-4d49-86fb-d7291ebb18a8 method: GET response: proto: HTTP/2.0 @@ -323,18 +323,18 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 388 + content_length: 389 uncompressed: false - body: '{"created_at":"2024-12-11T11:03:21.218307Z","id":"a23a7ca6-8dc7-4a77-8f1f-2e851ae4a845","name":"my-source","origin":"custom","project_id":"62ffcfb5-34a1-40e7-9f60-69ad5940346e","region":"fr-par","retention_days":6,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:21.218307Z","url":"https://a23a7ca6-8dc7-4a77-8f1f-2e851ae4a845.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:19:01.364666Z","id":"94326abe-6449-4d49-86fb-d7291ebb18a8","name":"my-source","origin":"custom","project_id":"0ca30e8f-43d8-417b-aeaf-904b66182790","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:01.364666Z","url":"https://94326abe-6449-4d49-86fb-d7291ebb18a8.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - - "388" + - "389" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:22 GMT + - Wed, 11 Dec 2024 11:19:03 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -344,10 +344,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - de923040-3f1e-4cd0-8cad-6d677e356cd1 + - 25932ee8-4fd7-440e-9d90-f8210b34d3f9 status: 200 OK code: 200 - duration: 57.526625ms + duration: 142.679917ms - id: 7 request: proto: HTTP/1.1 @@ -364,7 +364,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/a23a7ca6-8dc7-4a77-8f1f-2e851ae4a845 + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/94326abe-6449-4d49-86fb-d7291ebb18a8 method: DELETE response: proto: HTTP/2.0 @@ -381,7 +381,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:23 GMT + - Wed, 11 Dec 2024 11:19:04 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -391,10 +391,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - e5f459f4-d5fd-4491-96f5-98deedd2c084 + - 7ac3947a-6e12-4bf7-855a-36861a033ca4 status: 204 No Content code: 204 - duration: 212.195084ms + duration: 189.7005ms - id: 8 request: proto: HTTP/1.1 @@ -411,7 +411,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/62ffcfb5-34a1-40e7-9f60-69ad5940346e + url: https://api.scaleway.com/account/v3/projects/0ca30e8f-43d8-417b-aeaf-904b66182790 method: DELETE response: proto: HTTP/2.0 @@ -428,7 +428,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:25 GMT + - Wed, 11 Dec 2024 11:19:05 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -438,10 +438,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - e2ad8e48-5dad-483b-8296-be9368fb0c75 + - 6626dec1-7cd3-4063-96f5-1cb3574cfd54 status: 204 No Content code: 204 - duration: 1.614575917s + duration: 1.516675625s - id: 9 request: proto: HTTP/1.1 @@ -458,7 +458,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/a23a7ca6-8dc7-4a77-8f1f-2e851ae4a845 + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/94326abe-6449-4d49-86fb-d7291ebb18a8 method: GET response: proto: HTTP/2.0 @@ -468,7 +468,7 @@ interactions: trailer: {} content_length: 132 uncompressed: false - body: '{"message":"resource is not found","resource":"data source","resource_id":"a23a7ca6-8dc7-4a77-8f1f-2e851ae4a845","type":"not_found"}' + body: '{"message":"resource is not found","resource":"data source","resource_id":"94326abe-6449-4d49-86fb-d7291ebb18a8","type":"not_found"}' headers: Content-Length: - "132" @@ -477,7 +477,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:25 GMT + - Wed, 11 Dec 2024 11:19:05 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -487,7 +487,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 769b6337-860e-4b63-b55f-c0069b340f36 + - 7b0823cc-2da5-4788-8fa6-18a4678a846b status: 404 Not Found code: 404 - duration: 26.8505ms + duration: 29.096459ms diff --git a/internal/services/cockpit/testdata/cockpit-source-basic-metrics.cassette.yaml b/internal/services/cockpit/testdata/cockpit-source-basic-metrics.cassette.yaml index 73236f6b43..bfe8aa39cc 100644 --- a/internal/services/cockpit/testdata/cockpit-source-basic-metrics.cassette.yaml +++ b/internal/services/cockpit/testdata/cockpit-source-basic-metrics.cassette.yaml @@ -29,7 +29,7 @@ interactions: trailer: {} content_length: 248 uncompressed: false - body: '{"created_at":"2024-12-11T11:02:43.258086Z","description":"","id":"a658e694-dab3-4513-bf01-9d367d74306f","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:02:43.258086Z"}' + body: '{"created_at":"2024-12-11T11:18:47.722465Z","description":"","id":"2047883c-39e1-43f0-aaca-556dc03fef5b","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:18:47.722465Z"}' headers: Content-Length: - "248" @@ -38,9 +38,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:02:43 GMT + - Wed, 11 Dec 2024 11:18:47 GMT Server: - - Scaleway API Gateway (fr-par-2;edge03) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -48,10 +48,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 2cb38ed4-b32a-4242-b82b-2e8c33e0c136 + - 74a679b1-14ab-4da7-a0f7-0d3dcca9bc53 status: 200 OK code: 200 - duration: 673.105ms + duration: 1.009994459s - id: 1 request: proto: HTTP/1.1 @@ -68,7 +68,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/a658e694-dab3-4513-bf01-9d367d74306f + url: https://api.scaleway.com/account/v3/projects/2047883c-39e1-43f0-aaca-556dc03fef5b method: GET response: proto: HTTP/2.0 @@ -78,7 +78,7 @@ interactions: trailer: {} content_length: 248 uncompressed: false - body: '{"created_at":"2024-12-11T11:02:43.258086Z","description":"","id":"a658e694-dab3-4513-bf01-9d367d74306f","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:02:43.258086Z"}' + body: '{"created_at":"2024-12-11T11:18:47.722465Z","description":"","id":"2047883c-39e1-43f0-aaca-556dc03fef5b","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:18:47.722465Z"}' headers: Content-Length: - "248" @@ -87,9 +87,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:02:43 GMT + - Wed, 11 Dec 2024 11:18:48 GMT Server: - - Scaleway API Gateway (fr-par-2;edge03) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -97,22 +97,22 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 27f2e40f-3f51-4b2a-9ec2-0155cf0e11dd + - 48a8c0b0-dccf-4438-941b-0a33eae894d9 status: 200 OK code: 200 - duration: 118.074917ms + duration: 138.44175ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 108 + content_length: 109 transfer_encoding: [] trailer: {} host: api.scaleway.com remote_addr: "" request_uri: "" - body: '{"project_id":"a658e694-dab3-4513-bf01-9d367d74306f","name":"my-source","type":"metrics","retention_days":6}' + body: '{"project_id":"2047883c-39e1-43f0-aaca-556dc03fef5b","name":"my-source","type":"metrics","retention_days":31}' form: {} headers: Content-Type: @@ -127,20 +127,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 394 + content_length: 395 uncompressed: false - body: '{"created_at":"2024-12-11T11:02:43.837340Z","id":"c56ad6ca-37f0-463a-8619-fdf88f6269cf","name":"my-source","origin":"custom","project_id":"a658e694-dab3-4513-bf01-9d367d74306f","region":"fr-par","retention_days":6,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-11T11:02:43.837340Z","url":"https://c56ad6ca-37f0-463a-8619-fdf88f6269cf.metrics.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:18:48.389338Z","id":"2eeb91de-0859-434e-93dd-9880a668c981","name":"my-source","origin":"custom","project_id":"2047883c-39e1-43f0-aaca-556dc03fef5b","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-11T11:18:48.389338Z","url":"https://2eeb91de-0859-434e-93dd-9880a668c981.metrics.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - - "394" + - "395" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:02:43 GMT + - Wed, 11 Dec 2024 11:18:48 GMT Server: - - Scaleway API Gateway (fr-par-2;edge03) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -148,10 +148,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - a6a2bdc8-3743-4e58-b470-3ce233632bdb + - 0a5e421e-609e-4aa4-a60d-16870f363586 status: 200 OK code: 200 - duration: 227.84375ms + duration: 240.719666ms - id: 3 request: proto: HTTP/1.1 @@ -168,7 +168,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/c56ad6ca-37f0-463a-8619-fdf88f6269cf + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/2eeb91de-0859-434e-93dd-9880a668c981 method: GET response: proto: HTTP/2.0 @@ -176,20 +176,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 394 + content_length: 395 uncompressed: false - body: '{"created_at":"2024-12-11T11:02:43.837340Z","id":"c56ad6ca-37f0-463a-8619-fdf88f6269cf","name":"my-source","origin":"custom","project_id":"a658e694-dab3-4513-bf01-9d367d74306f","region":"fr-par","retention_days":6,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-11T11:02:43.837340Z","url":"https://c56ad6ca-37f0-463a-8619-fdf88f6269cf.metrics.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:18:48.389338Z","id":"2eeb91de-0859-434e-93dd-9880a668c981","name":"my-source","origin":"custom","project_id":"2047883c-39e1-43f0-aaca-556dc03fef5b","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-11T11:18:48.389338Z","url":"https://2eeb91de-0859-434e-93dd-9880a668c981.metrics.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - - "394" + - "395" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:02:43 GMT + - Wed, 11 Dec 2024 11:18:48 GMT Server: - - Scaleway API Gateway (fr-par-2;edge03) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -197,10 +197,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 7adfbaa2-ef3e-4c26-9790-bdd835c3c69b + - c3b4c4e7-0e50-4460-92c5-832a5ebda0bb status: 200 OK code: 200 - duration: 82.342042ms + duration: 58.055875ms - id: 4 request: proto: HTTP/1.1 @@ -217,7 +217,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/c56ad6ca-37f0-463a-8619-fdf88f6269cf + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/2eeb91de-0859-434e-93dd-9880a668c981 method: GET response: proto: HTTP/2.0 @@ -225,20 +225,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 394 + content_length: 395 uncompressed: false - body: '{"created_at":"2024-12-11T11:02:43.837340Z","id":"c56ad6ca-37f0-463a-8619-fdf88f6269cf","name":"my-source","origin":"custom","project_id":"a658e694-dab3-4513-bf01-9d367d74306f","region":"fr-par","retention_days":6,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-11T11:02:43.837340Z","url":"https://c56ad6ca-37f0-463a-8619-fdf88f6269cf.metrics.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:18:48.389338Z","id":"2eeb91de-0859-434e-93dd-9880a668c981","name":"my-source","origin":"custom","project_id":"2047883c-39e1-43f0-aaca-556dc03fef5b","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-11T11:18:48.389338Z","url":"https://2eeb91de-0859-434e-93dd-9880a668c981.metrics.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - - "394" + - "395" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:02:44 GMT + - Wed, 11 Dec 2024 11:18:48 GMT Server: - - Scaleway API Gateway (fr-par-2;edge03) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -246,10 +246,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 9cdbff46-bf28-4845-a0ba-c20fe2c4edd1 + - 80712192-72de-4a90-9f1a-79e359c61eab status: 200 OK code: 200 - duration: 130.191334ms + duration: 70.458167ms - id: 5 request: proto: HTTP/1.1 @@ -266,7 +266,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/a658e694-dab3-4513-bf01-9d367d74306f + url: https://api.scaleway.com/account/v3/projects/2047883c-39e1-43f0-aaca-556dc03fef5b method: GET response: proto: HTTP/2.0 @@ -276,7 +276,7 @@ interactions: trailer: {} content_length: 248 uncompressed: false - body: '{"created_at":"2024-12-11T11:02:43.258086Z","description":"","id":"a658e694-dab3-4513-bf01-9d367d74306f","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:02:43.258086Z"}' + body: '{"created_at":"2024-12-11T11:18:47.722465Z","description":"","id":"2047883c-39e1-43f0-aaca-556dc03fef5b","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:18:47.722465Z"}' headers: Content-Length: - "248" @@ -285,9 +285,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:02:44 GMT + - Wed, 11 Dec 2024 11:18:49 GMT Server: - - Scaleway API Gateway (fr-par-2;edge03) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -295,10 +295,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - f24a64af-275e-404f-bfb0-70a0a70d9667 + - ed8fa392-6660-4e65-b278-b1fa8764e643 status: 200 OK code: 200 - duration: 130.705125ms + duration: 110.647167ms - id: 6 request: proto: HTTP/1.1 @@ -315,7 +315,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/c56ad6ca-37f0-463a-8619-fdf88f6269cf + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/2eeb91de-0859-434e-93dd-9880a668c981 method: GET response: proto: HTTP/2.0 @@ -323,20 +323,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 394 + content_length: 395 uncompressed: false - body: '{"created_at":"2024-12-11T11:02:43.837340Z","id":"c56ad6ca-37f0-463a-8619-fdf88f6269cf","name":"my-source","origin":"custom","project_id":"a658e694-dab3-4513-bf01-9d367d74306f","region":"fr-par","retention_days":6,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-11T11:02:43.837340Z","url":"https://c56ad6ca-37f0-463a-8619-fdf88f6269cf.metrics.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:18:48.389338Z","id":"2eeb91de-0859-434e-93dd-9880a668c981","name":"my-source","origin":"custom","project_id":"2047883c-39e1-43f0-aaca-556dc03fef5b","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-11T11:18:48.389338Z","url":"https://2eeb91de-0859-434e-93dd-9880a668c981.metrics.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - - "394" + - "395" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:02:44 GMT + - Wed, 11 Dec 2024 11:18:49 GMT Server: - - Scaleway API Gateway (fr-par-2;edge03) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -344,10 +344,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 27bdaf70-509d-4f4c-9638-e773d279877e + - c2957177-9bf6-40d0-8b16-decc111900d4 status: 200 OK code: 200 - duration: 119.267375ms + duration: 123.206041ms - id: 7 request: proto: HTTP/1.1 @@ -364,7 +364,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/c56ad6ca-37f0-463a-8619-fdf88f6269cf + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/2eeb91de-0859-434e-93dd-9880a668c981 method: DELETE response: proto: HTTP/2.0 @@ -381,9 +381,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:02:46 GMT + - Wed, 11 Dec 2024 11:18:50 GMT Server: - - Scaleway API Gateway (fr-par-2;edge03) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -391,10 +391,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 335ca789-c727-450d-9294-fb7436d037d4 + - 1ee842fe-d43f-4454-bfe3-7d72da804849 status: 204 No Content code: 204 - duration: 455.528291ms + duration: 515.250833ms - id: 8 request: proto: HTTP/1.1 @@ -411,7 +411,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/a658e694-dab3-4513-bf01-9d367d74306f + url: https://api.scaleway.com/account/v3/projects/2047883c-39e1-43f0-aaca-556dc03fef5b method: DELETE response: proto: HTTP/2.0 @@ -428,9 +428,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:02:47 GMT + - Wed, 11 Dec 2024 11:18:52 GMT Server: - - Scaleway API Gateway (fr-par-2;edge03) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -438,10 +438,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 47bd693b-966d-4400-82dc-32b35b14573f + - 63310986-0642-4db3-9983-8e0c74efa8ed status: 204 No Content code: 204 - duration: 1.580195709s + duration: 1.698535209s - id: 9 request: proto: HTTP/1.1 @@ -458,7 +458,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/c56ad6ca-37f0-463a-8619-fdf88f6269cf + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/2eeb91de-0859-434e-93dd-9880a668c981 method: GET response: proto: HTTP/2.0 @@ -468,7 +468,7 @@ interactions: trailer: {} content_length: 132 uncompressed: false - body: '{"message":"resource is not found","resource":"data source","resource_id":"c56ad6ca-37f0-463a-8619-fdf88f6269cf","type":"not_found"}' + body: '{"message":"resource is not found","resource":"data source","resource_id":"2eeb91de-0859-434e-93dd-9880a668c981","type":"not_found"}' headers: Content-Length: - "132" @@ -477,9 +477,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:02:47 GMT + - Wed, 11 Dec 2024 11:18:52 GMT Server: - - Scaleway API Gateway (fr-par-2;edge03) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -487,7 +487,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 19478572-49d7-42e2-a6ed-b22cf6187cd7 + - 66b6f59b-382f-4504-aa5a-f41b48ed8b57 status: 404 Not Found code: 404 - duration: 31.757666ms + duration: 26.69175ms diff --git a/internal/services/cockpit/testdata/cockpit-source-retention-days.cassette.yaml b/internal/services/cockpit/testdata/cockpit-source-retention-days.cassette.yaml index f611716f3e..1549395594 100644 --- a/internal/services/cockpit/testdata/cockpit-source-retention-days.cassette.yaml +++ b/internal/services/cockpit/testdata/cockpit-source-retention-days.cassette.yaml @@ -29,7 +29,7 @@ interactions: trailer: {} content_length: 248 uncompressed: false - body: '{"created_at":"2024-12-11T11:03:35.152458Z","description":"","id":"2ebd13b7-618e-4062-9065-e2b5e5ecabdf","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:03:35.152458Z"}' + body: '{"created_at":"2024-12-11T11:19:13.536170Z","description":"","id":"ae3d2ebf-6a8d-4577-90c7-075d45a5d7d9","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:19:13.536170Z"}' headers: Content-Length: - "248" @@ -38,9 +38,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:35 GMT + - Wed, 11 Dec 2024 11:19:13 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -48,10 +48,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - ed21c5c1-985b-4a50-bc95-8e0b0a2d20c2 + - 549dff2f-c5eb-4e76-9457-f606344c1d3b status: 200 OK code: 200 - duration: 484.972792ms + duration: 454.639208ms - id: 1 request: proto: HTTP/1.1 @@ -68,7 +68,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/2ebd13b7-618e-4062-9065-e2b5e5ecabdf + url: https://api.scaleway.com/account/v3/projects/ae3d2ebf-6a8d-4577-90c7-075d45a5d7d9 method: GET response: proto: HTTP/2.0 @@ -78,7 +78,7 @@ interactions: trailer: {} content_length: 248 uncompressed: false - body: '{"created_at":"2024-12-11T11:03:35.152458Z","description":"","id":"2ebd13b7-618e-4062-9065-e2b5e5ecabdf","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:03:35.152458Z"}' + body: '{"created_at":"2024-12-11T11:19:13.536170Z","description":"","id":"ae3d2ebf-6a8d-4577-90c7-075d45a5d7d9","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:19:13.536170Z"}' headers: Content-Length: - "248" @@ -87,9 +87,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:35 GMT + - Wed, 11 Dec 2024 11:19:13 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -97,10 +97,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 82e24793-7135-49d3-a625-c06b3ca2e9ec + - 32fa7504-a91c-4941-9b36-115d7ebe0142 status: 200 OK code: 200 - duration: 96.823375ms + duration: 104.469958ms - id: 2 request: proto: HTTP/1.1 @@ -112,7 +112,7 @@ interactions: host: api.scaleway.com remote_addr: "" request_uri: "" - body: '{"project_id":"2ebd13b7-618e-4062-9065-e2b5e5ecabdf","name":"my-source","type":"logs","retention_days":13}' + body: '{"project_id":"ae3d2ebf-6a8d-4577-90c7-075d45a5d7d9","name":"my-source","type":"logs","retention_days":13}' form: {} headers: Content-Type: @@ -129,7 +129,7 @@ interactions: trailer: {} content_length: 389 uncompressed: false - body: '{"created_at":"2024-12-11T11:03:35.713992Z","id":"243e9f34-2a56-4217-9fe7-c34f7f7239dc","name":"my-source","origin":"custom","project_id":"2ebd13b7-618e-4062-9065-e2b5e5ecabdf","region":"fr-par","retention_days":13,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:35.713992Z","url":"https://243e9f34-2a56-4217-9fe7-c34f7f7239dc.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:19:14.094682Z","id":"7326fe86-2a89-4621-bb89-0f1ea9ecdc67","name":"my-source","origin":"custom","project_id":"ae3d2ebf-6a8d-4577-90c7-075d45a5d7d9","region":"fr-par","retention_days":13,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:14.094682Z","url":"https://7326fe86-2a89-4621-bb89-0f1ea9ecdc67.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "389" @@ -138,9 +138,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:35 GMT + - Wed, 11 Dec 2024 11:19:14 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -148,10 +148,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 77aa7c30-36bc-4201-a34c-4d76007a2354 + - 21bfc227-22cf-4640-a509-b8dfc50a38f4 status: 200 OK code: 200 - duration: 236.6575ms + duration: 235.868584ms - id: 3 request: proto: HTTP/1.1 @@ -168,7 +168,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/243e9f34-2a56-4217-9fe7-c34f7f7239dc + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/7326fe86-2a89-4621-bb89-0f1ea9ecdc67 method: GET response: proto: HTTP/2.0 @@ -178,7 +178,7 @@ interactions: trailer: {} content_length: 389 uncompressed: false - body: '{"created_at":"2024-12-11T11:03:35.713992Z","id":"243e9f34-2a56-4217-9fe7-c34f7f7239dc","name":"my-source","origin":"custom","project_id":"2ebd13b7-618e-4062-9065-e2b5e5ecabdf","region":"fr-par","retention_days":13,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:35.713992Z","url":"https://243e9f34-2a56-4217-9fe7-c34f7f7239dc.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:19:14.094682Z","id":"7326fe86-2a89-4621-bb89-0f1ea9ecdc67","name":"my-source","origin":"custom","project_id":"ae3d2ebf-6a8d-4577-90c7-075d45a5d7d9","region":"fr-par","retention_days":13,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:14.094682Z","url":"https://7326fe86-2a89-4621-bb89-0f1ea9ecdc67.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "389" @@ -187,9 +187,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:35 GMT + - Wed, 11 Dec 2024 11:19:14 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -197,10 +197,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - c49ccb4a-d81b-475a-9a3f-3dd2f9398b62 + - 41d683b4-f472-4b9d-bf45-5c5e5a0d3b6e status: 200 OK code: 200 - duration: 74.705709ms + duration: 64.712458ms - id: 4 request: proto: HTTP/1.1 @@ -217,7 +217,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/243e9f34-2a56-4217-9fe7-c34f7f7239dc + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/7326fe86-2a89-4621-bb89-0f1ea9ecdc67 method: GET response: proto: HTTP/2.0 @@ -227,7 +227,7 @@ interactions: trailer: {} content_length: 389 uncompressed: false - body: '{"created_at":"2024-12-11T11:03:35.713992Z","id":"243e9f34-2a56-4217-9fe7-c34f7f7239dc","name":"my-source","origin":"custom","project_id":"2ebd13b7-618e-4062-9065-e2b5e5ecabdf","region":"fr-par","retention_days":13,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:35.713992Z","url":"https://243e9f34-2a56-4217-9fe7-c34f7f7239dc.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:19:14.094682Z","id":"7326fe86-2a89-4621-bb89-0f1ea9ecdc67","name":"my-source","origin":"custom","project_id":"ae3d2ebf-6a8d-4577-90c7-075d45a5d7d9","region":"fr-par","retention_days":13,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:14.094682Z","url":"https://7326fe86-2a89-4621-bb89-0f1ea9ecdc67.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "389" @@ -236,9 +236,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:36 GMT + - Wed, 11 Dec 2024 11:19:14 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -246,10 +246,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 451778ea-00e7-4431-ad82-a0d0ce566d4f + - 670f28f5-8f13-43f4-a22e-8874a3d63b00 status: 200 OK code: 200 - duration: 106.337959ms + duration: 80.201625ms - id: 5 request: proto: HTTP/1.1 @@ -266,7 +266,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/2ebd13b7-618e-4062-9065-e2b5e5ecabdf + url: https://api.scaleway.com/account/v3/projects/ae3d2ebf-6a8d-4577-90c7-075d45a5d7d9 method: GET response: proto: HTTP/2.0 @@ -276,7 +276,7 @@ interactions: trailer: {} content_length: 248 uncompressed: false - body: '{"created_at":"2024-12-11T11:03:35.152458Z","description":"","id":"2ebd13b7-618e-4062-9065-e2b5e5ecabdf","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:03:35.152458Z"}' + body: '{"created_at":"2024-12-11T11:19:13.536170Z","description":"","id":"ae3d2ebf-6a8d-4577-90c7-075d45a5d7d9","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:19:13.536170Z"}' headers: Content-Length: - "248" @@ -285,9 +285,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:36 GMT + - Wed, 11 Dec 2024 11:19:15 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -295,10 +295,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - f58ddf43-c646-4fc6-97f7-bd4a9d1913fc + - 88f1fd4e-4e5d-42fd-ab93-3e30fd03d471 status: 200 OK code: 200 - duration: 108.18175ms + duration: 126.220459ms - id: 6 request: proto: HTTP/1.1 @@ -315,7 +315,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/243e9f34-2a56-4217-9fe7-c34f7f7239dc + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/7326fe86-2a89-4621-bb89-0f1ea9ecdc67 method: GET response: proto: HTTP/2.0 @@ -325,7 +325,7 @@ interactions: trailer: {} content_length: 389 uncompressed: false - body: '{"created_at":"2024-12-11T11:03:35.713992Z","id":"243e9f34-2a56-4217-9fe7-c34f7f7239dc","name":"my-source","origin":"custom","project_id":"2ebd13b7-618e-4062-9065-e2b5e5ecabdf","region":"fr-par","retention_days":13,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:35.713992Z","url":"https://243e9f34-2a56-4217-9fe7-c34f7f7239dc.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:19:14.094682Z","id":"7326fe86-2a89-4621-bb89-0f1ea9ecdc67","name":"my-source","origin":"custom","project_id":"ae3d2ebf-6a8d-4577-90c7-075d45a5d7d9","region":"fr-par","retention_days":13,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:14.094682Z","url":"https://7326fe86-2a89-4621-bb89-0f1ea9ecdc67.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "389" @@ -334,9 +334,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:36 GMT + - Wed, 11 Dec 2024 11:19:15 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -344,10 +344,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 7e08e089-67e4-4da7-ac16-6a125311adfc + - 37f585f4-d183-4437-88a0-2cdc05d71daf status: 200 OK code: 200 - duration: 62.808625ms + duration: 77.749375ms - id: 7 request: proto: HTTP/1.1 @@ -364,7 +364,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/243e9f34-2a56-4217-9fe7-c34f7f7239dc + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/7326fe86-2a89-4621-bb89-0f1ea9ecdc67 method: DELETE response: proto: HTTP/2.0 @@ -381,9 +381,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:37 GMT + - Wed, 11 Dec 2024 11:19:16 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -391,10 +391,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - b5e0a704-a44e-4c8a-8958-b903d640e493 + - e100b61f-5cd0-4846-ac4e-2d1323224fb5 status: 204 No Content code: 204 - duration: 348.469375ms + duration: 157.88375ms - id: 8 request: proto: HTTP/1.1 @@ -411,7 +411,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/2ebd13b7-618e-4062-9065-e2b5e5ecabdf + url: https://api.scaleway.com/account/v3/projects/ae3d2ebf-6a8d-4577-90c7-075d45a5d7d9 method: DELETE response: proto: HTTP/2.0 @@ -428,9 +428,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:39 GMT + - Wed, 11 Dec 2024 11:19:17 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -438,10 +438,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - e96738d0-2ddd-45e3-bd91-2888ddfadff9 + - 4ec70dd9-a034-4c81-922c-899238226c58 status: 204 No Content code: 204 - duration: 1.431694792s + duration: 1.360312166s - id: 9 request: proto: HTTP/1.1 @@ -458,7 +458,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/243e9f34-2a56-4217-9fe7-c34f7f7239dc + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/7326fe86-2a89-4621-bb89-0f1ea9ecdc67 method: GET response: proto: HTTP/2.0 @@ -468,7 +468,7 @@ interactions: trailer: {} content_length: 132 uncompressed: false - body: '{"message":"resource is not found","resource":"data source","resource_id":"243e9f34-2a56-4217-9fe7-c34f7f7239dc","type":"not_found"}' + body: '{"message":"resource is not found","resource":"data source","resource_id":"7326fe86-2a89-4621-bb89-0f1ea9ecdc67","type":"not_found"}' headers: Content-Length: - "132" @@ -477,9 +477,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:39 GMT + - Wed, 11 Dec 2024 11:19:17 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -487,7 +487,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 2f8c3d58-04e8-4065-8f77-cdc9ad32962f + - 5eb6dc81-54f7-4aa3-acb7-f1703b3971bd status: 404 Not Found code: 404 - duration: 25.828584ms + duration: 27.245208ms diff --git a/internal/services/cockpit/testdata/cockpit-source-update.cassette.yaml b/internal/services/cockpit/testdata/cockpit-source-update.cassette.yaml index 905c42cd4f..7bd01d53ac 100644 --- a/internal/services/cockpit/testdata/cockpit-source-update.cassette.yaml +++ b/internal/services/cockpit/testdata/cockpit-source-update.cassette.yaml @@ -29,7 +29,7 @@ interactions: trailer: {} content_length: 245 uncompressed: false - body: '{"created_at":"2024-12-11T11:03:49.447785Z","description":"","id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:03:49.447785Z"}' + body: '{"created_at":"2024-12-11T11:19:25.028389Z","description":"","id":"7470157d-f669-482c-ab98-6ee099955db1","name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:19:25.028389Z"}' headers: Content-Length: - "245" @@ -38,7 +38,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:49 GMT + - Wed, 11 Dec 2024 11:19:25 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -48,10 +48,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 8c4387a0-882f-44aa-9444-8da1b5500d5f + - 719dbe11-f5ff-459b-aa26-95e69d49acd5 status: 200 OK code: 200 - duration: 644.045584ms + duration: 440.846667ms - id: 1 request: proto: HTTP/1.1 @@ -68,7 +68,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/7d0584bc-b5e6-4aec-8aec-bc35a2d97739 + url: https://api.scaleway.com/account/v3/projects/7470157d-f669-482c-ab98-6ee099955db1 method: GET response: proto: HTTP/2.0 @@ -78,7 +78,7 @@ interactions: trailer: {} content_length: 245 uncompressed: false - body: '{"created_at":"2024-12-11T11:03:49.447785Z","description":"","id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:03:49.447785Z"}' + body: '{"created_at":"2024-12-11T11:19:25.028389Z","description":"","id":"7470157d-f669-482c-ab98-6ee099955db1","name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:19:25.028389Z"}' headers: Content-Length: - "245" @@ -87,7 +87,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:49 GMT + - Wed, 11 Dec 2024 11:19:25 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -97,10 +97,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - f6630f6a-2b07-4d81-9224-090c9df1b868 + - 5276e4b8-4ae0-4846-95b3-356c53647b10 status: 200 OK code: 200 - duration: 254.87075ms + duration: 110.121416ms - id: 2 request: proto: HTTP/1.1 @@ -112,7 +112,7 @@ interactions: host: api.scaleway.com remote_addr: "" request_uri: "" - body: '{"project_id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","name":"initial-name","type":"logs","retention_days":10}' + body: '{"project_id":"7470157d-f669-482c-ab98-6ee099955db1","name":"initial-name","type":"logs","retention_days":10}' form: {} headers: Content-Type: @@ -129,7 +129,7 @@ interactions: trailer: {} content_length: 392 uncompressed: false - body: '{"created_at":"2024-12-11T11:03:50.337604Z","id":"e9fbe310-e693-4446-a323-d95d868bbb5d","name":"initial-name","origin":"custom","project_id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","region":"fr-par","retention_days":10,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:50.337604Z","url":"https://e9fbe310-e693-4446-a323-d95d868bbb5d.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:19:25.615389Z","id":"cc640233-a6be-4d19-8cba-75c3523ad8db","name":"initial-name","origin":"custom","project_id":"7470157d-f669-482c-ab98-6ee099955db1","region":"fr-par","retention_days":10,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:25.615389Z","url":"https://cc640233-a6be-4d19-8cba-75c3523ad8db.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "392" @@ -138,7 +138,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:50 GMT + - Wed, 11 Dec 2024 11:19:25 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -148,10 +148,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - b3650c69-7888-46f1-a189-2413b2c721ee + - 2a5dbf85-f2b5-4677-861c-f8cc0ebe0aee status: 200 OK code: 200 - duration: 342.563083ms + duration: 245.609542ms - id: 3 request: proto: HTTP/1.1 @@ -168,7 +168,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/e9fbe310-e693-4446-a323-d95d868bbb5d + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/cc640233-a6be-4d19-8cba-75c3523ad8db method: GET response: proto: HTTP/2.0 @@ -178,7 +178,7 @@ interactions: trailer: {} content_length: 392 uncompressed: false - body: '{"created_at":"2024-12-11T11:03:50.337604Z","id":"e9fbe310-e693-4446-a323-d95d868bbb5d","name":"initial-name","origin":"custom","project_id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","region":"fr-par","retention_days":10,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:50.337604Z","url":"https://e9fbe310-e693-4446-a323-d95d868bbb5d.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:19:25.615389Z","id":"cc640233-a6be-4d19-8cba-75c3523ad8db","name":"initial-name","origin":"custom","project_id":"7470157d-f669-482c-ab98-6ee099955db1","region":"fr-par","retention_days":10,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:25.615389Z","url":"https://cc640233-a6be-4d19-8cba-75c3523ad8db.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "392" @@ -187,7 +187,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:50 GMT + - Wed, 11 Dec 2024 11:19:25 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -197,10 +197,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 548da40e-4153-4dc4-8785-770942e07db5 + - 98a6a433-3fee-463f-911f-6944150c6724 status: 200 OK code: 200 - duration: 62.296417ms + duration: 87.351417ms - id: 4 request: proto: HTTP/1.1 @@ -217,7 +217,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/e9fbe310-e693-4446-a323-d95d868bbb5d + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/cc640233-a6be-4d19-8cba-75c3523ad8db method: GET response: proto: HTTP/2.0 @@ -227,7 +227,7 @@ interactions: trailer: {} content_length: 392 uncompressed: false - body: '{"created_at":"2024-12-11T11:03:50.337604Z","id":"e9fbe310-e693-4446-a323-d95d868bbb5d","name":"initial-name","origin":"custom","project_id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","region":"fr-par","retention_days":10,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:50.337604Z","url":"https://e9fbe310-e693-4446-a323-d95d868bbb5d.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:19:25.615389Z","id":"cc640233-a6be-4d19-8cba-75c3523ad8db","name":"initial-name","origin":"custom","project_id":"7470157d-f669-482c-ab98-6ee099955db1","region":"fr-par","retention_days":10,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:25.615389Z","url":"https://cc640233-a6be-4d19-8cba-75c3523ad8db.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "392" @@ -236,7 +236,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:50 GMT + - Wed, 11 Dec 2024 11:19:25 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -246,10 +246,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - cf621438-0a6b-4cc8-b68e-e667da36f5f6 + - 3f252367-a3d4-45b8-a847-cd85440366e6 status: 200 OK code: 200 - duration: 66.348667ms + duration: 164.892833ms - id: 5 request: proto: HTTP/1.1 @@ -266,7 +266,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/7d0584bc-b5e6-4aec-8aec-bc35a2d97739 + url: https://api.scaleway.com/account/v3/projects/7470157d-f669-482c-ab98-6ee099955db1 method: GET response: proto: HTTP/2.0 @@ -276,7 +276,7 @@ interactions: trailer: {} content_length: 245 uncompressed: false - body: '{"created_at":"2024-12-11T11:03:49.447785Z","description":"","id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:03:49.447785Z"}' + body: '{"created_at":"2024-12-11T11:19:25.028389Z","description":"","id":"7470157d-f669-482c-ab98-6ee099955db1","name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:19:25.028389Z"}' headers: Content-Length: - "245" @@ -285,7 +285,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:51 GMT + - Wed, 11 Dec 2024 11:19:26 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -295,10 +295,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - ae08d1ae-6d60-45f8-ab9f-ca9a6a375d7f + - 110e969e-eec4-4828-b785-6d8c84bdac40 status: 200 OK code: 200 - duration: 123.735ms + duration: 115.151125ms - id: 6 request: proto: HTTP/1.1 @@ -315,7 +315,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/e9fbe310-e693-4446-a323-d95d868bbb5d + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/cc640233-a6be-4d19-8cba-75c3523ad8db method: GET response: proto: HTTP/2.0 @@ -325,7 +325,7 @@ interactions: trailer: {} content_length: 392 uncompressed: false - body: '{"created_at":"2024-12-11T11:03:50.337604Z","id":"e9fbe310-e693-4446-a323-d95d868bbb5d","name":"initial-name","origin":"custom","project_id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","region":"fr-par","retention_days":10,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:50.337604Z","url":"https://e9fbe310-e693-4446-a323-d95d868bbb5d.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:19:25.615389Z","id":"cc640233-a6be-4d19-8cba-75c3523ad8db","name":"initial-name","origin":"custom","project_id":"7470157d-f669-482c-ab98-6ee099955db1","region":"fr-par","retention_days":10,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:25.615389Z","url":"https://cc640233-a6be-4d19-8cba-75c3523ad8db.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "392" @@ -334,7 +334,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:51 GMT + - Wed, 11 Dec 2024 11:19:26 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -344,10 +344,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - fc4c0725-3664-4ceb-a000-6577fa19fa8e + - 3c49ac3e-0053-4bb8-a129-1b1d7a7e0fc4 status: 200 OK code: 200 - duration: 107.682709ms + duration: 173.944459ms - id: 7 request: proto: HTTP/1.1 @@ -364,7 +364,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/7d0584bc-b5e6-4aec-8aec-bc35a2d97739 + url: https://api.scaleway.com/account/v3/projects/7470157d-f669-482c-ab98-6ee099955db1 method: GET response: proto: HTTP/2.0 @@ -374,7 +374,7 @@ interactions: trailer: {} content_length: 245 uncompressed: false - body: '{"created_at":"2024-12-11T11:03:49.447785Z","description":"","id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:03:49.447785Z"}' + body: '{"created_at":"2024-12-11T11:19:25.028389Z","description":"","id":"7470157d-f669-482c-ab98-6ee099955db1","name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:19:25.028389Z"}' headers: Content-Length: - "245" @@ -383,7 +383,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:52 GMT + - Wed, 11 Dec 2024 11:19:27 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -393,10 +393,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - f192a168-47ba-40d4-9bdd-679d578610b6 + - a8827418-962d-4c4a-8681-5b076a0c56ea status: 200 OK code: 200 - duration: 114.46ms + duration: 506.308916ms - id: 8 request: proto: HTTP/1.1 @@ -413,7 +413,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/e9fbe310-e693-4446-a323-d95d868bbb5d + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/cc640233-a6be-4d19-8cba-75c3523ad8db method: GET response: proto: HTTP/2.0 @@ -423,7 +423,7 @@ interactions: trailer: {} content_length: 392 uncompressed: false - body: '{"created_at":"2024-12-11T11:03:50.337604Z","id":"e9fbe310-e693-4446-a323-d95d868bbb5d","name":"initial-name","origin":"custom","project_id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","region":"fr-par","retention_days":10,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:50.337604Z","url":"https://e9fbe310-e693-4446-a323-d95d868bbb5d.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:19:25.615389Z","id":"cc640233-a6be-4d19-8cba-75c3523ad8db","name":"initial-name","origin":"custom","project_id":"7470157d-f669-482c-ab98-6ee099955db1","region":"fr-par","retention_days":10,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:25.615389Z","url":"https://cc640233-a6be-4d19-8cba-75c3523ad8db.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "392" @@ -432,7 +432,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:52 GMT + - Wed, 11 Dec 2024 11:19:28 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -442,10 +442,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 162ab91a-52b8-4a38-94e0-f5fb4e140fe7 + - b9e93424-3d9a-4ffe-9fb4-f0b34401b67a status: 200 OK code: 200 - duration: 55.897375ms + duration: 67.438334ms - id: 9 request: proto: HTTP/1.1 @@ -464,7 +464,7 @@ interactions: - application/json User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/e9fbe310-e693-4446-a323-d95d868bbb5d + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/cc640233-a6be-4d19-8cba-75c3523ad8db method: PATCH response: proto: HTTP/2.0 @@ -474,7 +474,7 @@ interactions: trailer: {} content_length: 392 uncompressed: false - body: '{"created_at":"2024-12-11T11:03:50.337604Z","id":"e9fbe310-e693-4446-a323-d95d868bbb5d","name":"initial-name","origin":"custom","project_id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:50.337604Z","url":"https://e9fbe310-e693-4446-a323-d95d868bbb5d.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:19:25.615389Z","id":"cc640233-a6be-4d19-8cba-75c3523ad8db","name":"initial-name","origin":"custom","project_id":"7470157d-f669-482c-ab98-6ee099955db1","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:25.615389Z","url":"https://cc640233-a6be-4d19-8cba-75c3523ad8db.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "392" @@ -483,7 +483,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:53 GMT + - Wed, 11 Dec 2024 11:19:28 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -493,10 +493,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 63b7dfa0-176a-432d-8dd1-27a5d6df3923 + - 93ec0930-3df7-4b15-8de5-a457a6b548dd status: 200 OK code: 200 - duration: 206.655083ms + duration: 91.717959ms - id: 10 request: proto: HTTP/1.1 @@ -513,7 +513,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/e9fbe310-e693-4446-a323-d95d868bbb5d + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/cc640233-a6be-4d19-8cba-75c3523ad8db method: GET response: proto: HTTP/2.0 @@ -523,7 +523,7 @@ interactions: trailer: {} content_length: 392 uncompressed: false - body: '{"created_at":"2024-12-11T11:03:50.337604Z","id":"e9fbe310-e693-4446-a323-d95d868bbb5d","name":"initial-name","origin":"custom","project_id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:50.337604Z","url":"https://e9fbe310-e693-4446-a323-d95d868bbb5d.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:19:25.615389Z","id":"cc640233-a6be-4d19-8cba-75c3523ad8db","name":"initial-name","origin":"custom","project_id":"7470157d-f669-482c-ab98-6ee099955db1","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:25.615389Z","url":"https://cc640233-a6be-4d19-8cba-75c3523ad8db.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "392" @@ -532,7 +532,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:53 GMT + - Wed, 11 Dec 2024 11:19:29 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -542,10 +542,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 3d0893f8-e8d8-4697-95d7-863b206aef63 + - c2968326-cdcb-4d63-8eb1-a42299990888 status: 200 OK code: 200 - duration: 79.525292ms + duration: 106.025333ms - id: 11 request: proto: HTTP/1.1 @@ -562,7 +562,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/7d0584bc-b5e6-4aec-8aec-bc35a2d97739 + url: https://api.scaleway.com/account/v3/projects/7470157d-f669-482c-ab98-6ee099955db1 method: GET response: proto: HTTP/2.0 @@ -572,7 +572,7 @@ interactions: trailer: {} content_length: 245 uncompressed: false - body: '{"created_at":"2024-12-11T11:03:49.447785Z","description":"","id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:03:49.447785Z"}' + body: '{"created_at":"2024-12-11T11:19:25.028389Z","description":"","id":"7470157d-f669-482c-ab98-6ee099955db1","name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:19:25.028389Z"}' headers: Content-Length: - "245" @@ -581,7 +581,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:54 GMT + - Wed, 11 Dec 2024 11:19:29 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -591,10 +591,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 8af3d50d-1329-4ccc-bd42-9da7fc53ae07 + - 73c3d759-a9f9-41ce-a70a-d2f3f31d4d77 status: 200 OK code: 200 - duration: 283.698083ms + duration: 107.805209ms - id: 12 request: proto: HTTP/1.1 @@ -611,7 +611,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/e9fbe310-e693-4446-a323-d95d868bbb5d + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/cc640233-a6be-4d19-8cba-75c3523ad8db method: GET response: proto: HTTP/2.0 @@ -621,7 +621,7 @@ interactions: trailer: {} content_length: 392 uncompressed: false - body: '{"created_at":"2024-12-11T11:03:50.337604Z","id":"e9fbe310-e693-4446-a323-d95d868bbb5d","name":"initial-name","origin":"custom","project_id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:50.337604Z","url":"https://e9fbe310-e693-4446-a323-d95d868bbb5d.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:19:25.615389Z","id":"cc640233-a6be-4d19-8cba-75c3523ad8db","name":"initial-name","origin":"custom","project_id":"7470157d-f669-482c-ab98-6ee099955db1","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:25.615389Z","url":"https://cc640233-a6be-4d19-8cba-75c3523ad8db.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "392" @@ -630,7 +630,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:54 GMT + - Wed, 11 Dec 2024 11:19:30 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -640,10 +640,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 036c3974-9cea-4e01-a98c-a2a0c0e32935 + - 8fe9288b-79eb-4ab0-8cf5-800dce72f0bf status: 200 OK code: 200 - duration: 64.67225ms + duration: 67.990791ms - id: 13 request: proto: HTTP/1.1 @@ -660,7 +660,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/7d0584bc-b5e6-4aec-8aec-bc35a2d97739 + url: https://api.scaleway.com/account/v3/projects/7470157d-f669-482c-ab98-6ee099955db1 method: GET response: proto: HTTP/2.0 @@ -670,7 +670,7 @@ interactions: trailer: {} content_length: 245 uncompressed: false - body: '{"created_at":"2024-12-11T11:03:49.447785Z","description":"","id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:03:49.447785Z"}' + body: '{"created_at":"2024-12-11T11:19:25.028389Z","description":"","id":"7470157d-f669-482c-ab98-6ee099955db1","name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:19:25.028389Z"}' headers: Content-Length: - "245" @@ -679,7 +679,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:55 GMT + - Wed, 11 Dec 2024 11:19:30 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -689,10 +689,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 093fced7-92de-47a8-9ebb-858cafc463bb + - 16364d8f-2dff-495e-868f-62baac705351 status: 200 OK code: 200 - duration: 119.640416ms + duration: 109.313083ms - id: 14 request: proto: HTTP/1.1 @@ -709,7 +709,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/e9fbe310-e693-4446-a323-d95d868bbb5d + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/cc640233-a6be-4d19-8cba-75c3523ad8db method: GET response: proto: HTTP/2.0 @@ -719,7 +719,7 @@ interactions: trailer: {} content_length: 392 uncompressed: false - body: '{"created_at":"2024-12-11T11:03:50.337604Z","id":"e9fbe310-e693-4446-a323-d95d868bbb5d","name":"initial-name","origin":"custom","project_id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:50.337604Z","url":"https://e9fbe310-e693-4446-a323-d95d868bbb5d.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:19:25.615389Z","id":"cc640233-a6be-4d19-8cba-75c3523ad8db","name":"initial-name","origin":"custom","project_id":"7470157d-f669-482c-ab98-6ee099955db1","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:25.615389Z","url":"https://cc640233-a6be-4d19-8cba-75c3523ad8db.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "392" @@ -728,7 +728,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:55 GMT + - Wed, 11 Dec 2024 11:19:30 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -738,10 +738,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 5b494f8a-dfc5-4746-902a-1cb312bc69fc + - 94a19102-1a8d-45c1-bbb3-bda97be6dc32 status: 200 OK code: 200 - duration: 75.277333ms + duration: 58.359916ms - id: 15 request: proto: HTTP/1.1 @@ -758,7 +758,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/e9fbe310-e693-4446-a323-d95d868bbb5d + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/cc640233-a6be-4d19-8cba-75c3523ad8db method: DELETE response: proto: HTTP/2.0 @@ -775,7 +775,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:56 GMT + - Wed, 11 Dec 2024 11:19:31 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -785,10 +785,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 01d81558-db76-4575-9158-7b7ac215f16a + - f695a017-5143-4b00-b842-ad4accd6142a status: 204 No Content code: 204 - duration: 196.206542ms + duration: 244.260458ms - id: 16 request: proto: HTTP/1.1 @@ -800,7 +800,7 @@ interactions: host: api.scaleway.com remote_addr: "" request_uri: "" - body: '{"project_id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","name":"updated-name","type":"logs","retention_days":20}' + body: '{"project_id":"7470157d-f669-482c-ab98-6ee099955db1","name":"updated-name","type":"logs","retention_days":20}' form: {} headers: Content-Type: @@ -817,7 +817,7 @@ interactions: trailer: {} content_length: 392 uncompressed: false - body: '{"created_at":"2024-12-11T11:03:56.441412Z","id":"4395c399-987e-4b7c-a40a-48644692b863","name":"updated-name","origin":"custom","project_id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:56.441412Z","url":"https://4395c399-987e-4b7c-a40a-48644692b863.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:19:31.920756Z","id":"f1fb05a7-7d6b-48d6-8dff-22e8041fdd81","name":"updated-name","origin":"custom","project_id":"7470157d-f669-482c-ab98-6ee099955db1","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:31.920756Z","url":"https://f1fb05a7-7d6b-48d6-8dff-22e8041fdd81.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "392" @@ -826,7 +826,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:56 GMT + - Wed, 11 Dec 2024 11:19:31 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -836,10 +836,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 60f2b612-0cb3-45dc-b402-770b6983ebb1 + - 38ce8ef7-e1f6-4476-af19-b480445f6142 status: 200 OK code: 200 - duration: 208.347666ms + duration: 169.012917ms - id: 17 request: proto: HTTP/1.1 @@ -856,7 +856,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/4395c399-987e-4b7c-a40a-48644692b863 + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/f1fb05a7-7d6b-48d6-8dff-22e8041fdd81 method: GET response: proto: HTTP/2.0 @@ -866,7 +866,7 @@ interactions: trailer: {} content_length: 392 uncompressed: false - body: '{"created_at":"2024-12-11T11:03:56.441412Z","id":"4395c399-987e-4b7c-a40a-48644692b863","name":"updated-name","origin":"custom","project_id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:56.441412Z","url":"https://4395c399-987e-4b7c-a40a-48644692b863.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:19:31.920756Z","id":"f1fb05a7-7d6b-48d6-8dff-22e8041fdd81","name":"updated-name","origin":"custom","project_id":"7470157d-f669-482c-ab98-6ee099955db1","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:31.920756Z","url":"https://f1fb05a7-7d6b-48d6-8dff-22e8041fdd81.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "392" @@ -875,7 +875,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:56 GMT + - Wed, 11 Dec 2024 11:19:31 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -885,10 +885,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 125078ac-1e17-4024-8af1-19f7f5048470 + - 74760f94-ddf2-455d-90b1-dd067a083850 status: 200 OK code: 200 - duration: 78.125375ms + duration: 65.962708ms - id: 18 request: proto: HTTP/1.1 @@ -905,7 +905,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/4395c399-987e-4b7c-a40a-48644692b863 + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/f1fb05a7-7d6b-48d6-8dff-22e8041fdd81 method: GET response: proto: HTTP/2.0 @@ -915,7 +915,7 @@ interactions: trailer: {} content_length: 392 uncompressed: false - body: '{"created_at":"2024-12-11T11:03:56.441412Z","id":"4395c399-987e-4b7c-a40a-48644692b863","name":"updated-name","origin":"custom","project_id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:56.441412Z","url":"https://4395c399-987e-4b7c-a40a-48644692b863.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:19:31.920756Z","id":"f1fb05a7-7d6b-48d6-8dff-22e8041fdd81","name":"updated-name","origin":"custom","project_id":"7470157d-f669-482c-ab98-6ee099955db1","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:31.920756Z","url":"https://f1fb05a7-7d6b-48d6-8dff-22e8041fdd81.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "392" @@ -924,7 +924,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:56 GMT + - Wed, 11 Dec 2024 11:19:32 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -934,10 +934,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 56a11525-db61-48c3-9b02-ce7fcf4723a3 + - 6b43d6ce-3313-4a87-bf90-fffa5f07d6da status: 200 OK code: 200 - duration: 149.04675ms + duration: 74.214375ms - id: 19 request: proto: HTTP/1.1 @@ -954,7 +954,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/7d0584bc-b5e6-4aec-8aec-bc35a2d97739 + url: https://api.scaleway.com/account/v3/projects/7470157d-f669-482c-ab98-6ee099955db1 method: GET response: proto: HTTP/2.0 @@ -964,7 +964,7 @@ interactions: trailer: {} content_length: 245 uncompressed: false - body: '{"created_at":"2024-12-11T11:03:49.447785Z","description":"","id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:03:49.447785Z"}' + body: '{"created_at":"2024-12-11T11:19:25.028389Z","description":"","id":"7470157d-f669-482c-ab98-6ee099955db1","name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:19:25.028389Z"}' headers: Content-Length: - "245" @@ -973,7 +973,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:57 GMT + - Wed, 11 Dec 2024 11:19:32 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -983,10 +983,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 8b44167b-3867-4e64-b1d9-cb46351e565b + - 40c56a01-3a35-4d08-90c3-3d33bf78c071 status: 200 OK code: 200 - duration: 116.438833ms + duration: 99.369834ms - id: 20 request: proto: HTTP/1.1 @@ -1003,7 +1003,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/4395c399-987e-4b7c-a40a-48644692b863 + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/f1fb05a7-7d6b-48d6-8dff-22e8041fdd81 method: GET response: proto: HTTP/2.0 @@ -1013,7 +1013,7 @@ interactions: trailer: {} content_length: 392 uncompressed: false - body: '{"created_at":"2024-12-11T11:03:56.441412Z","id":"4395c399-987e-4b7c-a40a-48644692b863","name":"updated-name","origin":"custom","project_id":"7d0584bc-b5e6-4aec-8aec-bc35a2d97739","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:03:56.441412Z","url":"https://4395c399-987e-4b7c-a40a-48644692b863.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-11T11:19:31.920756Z","id":"f1fb05a7-7d6b-48d6-8dff-22e8041fdd81","name":"updated-name","origin":"custom","project_id":"7470157d-f669-482c-ab98-6ee099955db1","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:31.920756Z","url":"https://f1fb05a7-7d6b-48d6-8dff-22e8041fdd81.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "392" @@ -1022,7 +1022,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:57 GMT + - Wed, 11 Dec 2024 11:19:33 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -1032,10 +1032,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 698676f3-5bdf-4f16-8624-541a731331f4 + - e29bb7b3-79ae-45c0-96dd-576d7e9f0f33 status: 200 OK code: 200 - duration: 89.955209ms + duration: 69.411291ms - id: 21 request: proto: HTTP/1.1 @@ -1052,7 +1052,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/4395c399-987e-4b7c-a40a-48644692b863 + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/f1fb05a7-7d6b-48d6-8dff-22e8041fdd81 method: DELETE response: proto: HTTP/2.0 @@ -1069,7 +1069,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:03:58 GMT + - Wed, 11 Dec 2024 11:19:33 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -1079,10 +1079,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - b055cc5d-0578-4403-9e21-840e3b218d92 + - cf7e0166-1719-435d-bb61-755540e60f5f status: 204 No Content code: 204 - duration: 164.538375ms + duration: 259.607541ms - id: 22 request: proto: HTTP/1.1 @@ -1099,7 +1099,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/7d0584bc-b5e6-4aec-8aec-bc35a2d97739 + url: https://api.scaleway.com/account/v3/projects/7470157d-f669-482c-ab98-6ee099955db1 method: DELETE response: proto: HTTP/2.0 @@ -1116,7 +1116,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:04:00 GMT + - Wed, 11 Dec 2024 11:19:35 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -1126,10 +1126,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 55eb94c8-004a-4d48-a848-67cd71919162 + - c9c80fb4-86f6-4841-a6fb-9b11e762dd2b status: 204 No Content code: 204 - duration: 1.416253833s + duration: 1.4883245s - id: 23 request: proto: HTTP/1.1 @@ -1146,7 +1146,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/4395c399-987e-4b7c-a40a-48644692b863 + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/f1fb05a7-7d6b-48d6-8dff-22e8041fdd81 method: GET response: proto: HTTP/2.0 @@ -1156,7 +1156,7 @@ interactions: trailer: {} content_length: 132 uncompressed: false - body: '{"message":"resource is not found","resource":"data source","resource_id":"4395c399-987e-4b7c-a40a-48644692b863","type":"not_found"}' + body: '{"message":"resource is not found","resource":"data source","resource_id":"f1fb05a7-7d6b-48d6-8dff-22e8041fdd81","type":"not_found"}' headers: Content-Length: - "132" @@ -1165,7 +1165,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:04:00 GMT + - Wed, 11 Dec 2024 11:19:35 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -1175,7 +1175,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - b2d6c2a5-68f3-48c3-bef3-f6bfbb1fa324 + - e1c6c713-0c4e-4fca-9d68-53fa035874c2 status: 404 Not Found code: 404 - duration: 49.456666ms + duration: 23.219917ms diff --git a/internal/services/cockpit/testdata/data-source-cockpit-basic.cassette.yaml b/internal/services/cockpit/testdata/data-source-cockpit-basic.cassette.yaml index 0302f38abd..6478313c60 100644 --- a/internal/services/cockpit/testdata/data-source-cockpit-basic.cassette.yaml +++ b/internal/services/cockpit/testdata/data-source-cockpit-basic.cassette.yaml @@ -29,7 +29,7 @@ interactions: trailer: {} content_length: 247 uncompressed: false - body: '{"created_at":"2024-12-11T10:57:13.642158Z","description":"","id":"52c5fc69-758a-4c3e-9556-d0a0cb28dd54","name":"tf_tests_cockpit_project_premium","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T10:57:13.642158Z"}' + body: '{"created_at":"2024-12-11T11:19:57.049595Z","description":"","id":"20c94887-1862-4c8f-b866-a6e8561281fb","name":"tf_tests_cockpit_project_premium","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:19:57.049595Z"}' headers: Content-Length: - "247" @@ -38,9 +38,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 10:57:13 GMT + - Wed, 11 Dec 2024 11:19:57 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-2;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -48,10 +48,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 031d25cd-25da-4cbd-9b18-b602f6ddccaa + - a6a17660-a18c-47c3-814d-264bc53070a4 status: 200 OK code: 200 - duration: 480.37ms + duration: 439.780834ms - id: 1 request: proto: HTTP/1.1 @@ -68,7 +68,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/52c5fc69-758a-4c3e-9556-d0a0cb28dd54 + url: https://api.scaleway.com/account/v3/projects/20c94887-1862-4c8f-b866-a6e8561281fb method: GET response: proto: HTTP/2.0 @@ -78,7 +78,7 @@ interactions: trailer: {} content_length: 247 uncompressed: false - body: '{"created_at":"2024-12-11T10:57:13.642158Z","description":"","id":"52c5fc69-758a-4c3e-9556-d0a0cb28dd54","name":"tf_tests_cockpit_project_premium","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T10:57:13.642158Z"}' + body: '{"created_at":"2024-12-11T11:19:57.049595Z","description":"","id":"20c94887-1862-4c8f-b866-a6e8561281fb","name":"tf_tests_cockpit_project_premium","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:19:57.049595Z"}' headers: Content-Length: - "247" @@ -87,9 +87,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 10:57:13 GMT + - Wed, 11 Dec 2024 11:19:57 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-2;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -97,10 +97,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - a0239156-cc61-445d-a9c1-a8440fd521ac + - 67acb91d-4aa5-458b-b888-d37a6985a922 status: 200 OK code: 200 - duration: 110.531458ms + duration: 154.327209ms - id: 2 request: proto: HTTP/1.1 @@ -112,7 +112,7 @@ interactions: host: api.scaleway.com remote_addr: "" request_uri: "" - body: '{"project_id":"52c5fc69-758a-4c3e-9556-d0a0cb28dd54"}' + body: '{"project_id":"20c94887-1862-4c8f-b866-a6e8561281fb"}' form: {} headers: Content-Type: @@ -129,7 +129,7 @@ interactions: trailer: {} content_length: 184 uncompressed: false - body: '{"alert_manager_enabled":true,"alert_manager_url":"https://1844a7dd-314e-4f5e-bdef-d8c1bb06358a.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":false,"region":"fr-par"}' + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://c827424b-6f25-4050-af52-4b692491f6c0.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":false,"region":"fr-par"}' headers: Content-Length: - "184" @@ -138,9 +138,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 10:57:14 GMT + - Wed, 11 Dec 2024 11:19:57 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-2;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -148,22 +148,22 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 9fdd1545-0819-45cf-8b43-ac33a1ac23f9 + - e62e967a-2f99-4ff7-ae4d-81e6e39d3f93 status: 200 OK code: 200 - duration: 154.728916ms + duration: 142.497ms - id: 3 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 119 + content_length: 115 transfer_encoding: [] trailer: {} host: api.scaleway.com remote_addr: "" request_uri: "" - body: '{"project_id":"52c5fc69-758a-4c3e-9556-d0a0cb28dd54","name":"my-data-source-traces","type":"traces","retention_days":0}' + body: '{"project_id":"20c94887-1862-4c8f-b866-a6e8561281fb","name":"my-data-source-logs","type":"logs","retention_days":7}' form: {} headers: Content-Type: @@ -178,20 +178,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 171 + content_length: 398 uncompressed: false - body: '{"details":[{"argument_name":"retention_days","help_message":"must be between 1 and 31","reason":"constraint"}],"message":"invalid argument(s)","type":"invalid_arguments"}' + body: '{"created_at":"2024-12-11T11:19:57.740932Z","id":"b4f906d7-7dae-4fe4-9f45-abff6e69847a","name":"my-data-source-logs","origin":"custom","project_id":"20c94887-1862-4c8f-b866-a6e8561281fb","region":"fr-par","retention_days":7,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:57.740932Z","url":"https://b4f906d7-7dae-4fe4-9f45-abff6e69847a.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - - "171" + - "398" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 11 Dec 2024 10:57:14 GMT + - Wed, 11 Dec 2024 11:19:57 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-2;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -199,22 +199,22 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 2e8fac9e-25b6-4f1f-9064-7b22e798b372 - status: 400 Bad Request - code: 400 - duration: 223.627583ms + - 1eca066f-fdd0-46c0-9479-82cc1b00f430 + status: 200 OK + code: 200 + duration: 325.0685ms - id: 4 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 115 + content_length: 119 transfer_encoding: [] trailer: {} host: api.scaleway.com remote_addr: "" request_uri: "" - body: '{"project_id":"52c5fc69-758a-4c3e-9556-d0a0cb28dd54","name":"my-data-source-logs","type":"logs","retention_days":0}' + body: '{"project_id":"20c94887-1862-4c8f-b866-a6e8561281fb","name":"my-data-source-traces","type":"traces","retention_days":7}' form: {} headers: Content-Type: @@ -229,20 +229,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 171 + content_length: 404 uncompressed: false - body: '{"details":[{"argument_name":"retention_days","help_message":"must be between 1 and 31","reason":"constraint"}],"message":"invalid argument(s)","type":"invalid_arguments"}' + body: '{"created_at":"2024-12-11T11:19:57.715471Z","id":"7f6a911d-e1af-44fc-9a10-25e67583f3f5","name":"my-data-source-traces","origin":"custom","project_id":"20c94887-1862-4c8f-b866-a6e8561281fb","region":"fr-par","retention_days":7,"synchronized_with_grafana":false,"type":"traces","updated_at":"2024-12-11T11:19:57.715471Z","url":"https://7f6a911d-e1af-44fc-9a10-25e67583f3f5.traces.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - - "171" + - "404" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 11 Dec 2024 10:57:14 GMT + - Wed, 11 Dec 2024 11:19:57 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-2;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -250,22 +250,22 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 71c60930-ed92-433a-9512-8d9a864488cf - status: 400 Bad Request - code: 400 - duration: 240.490333ms + - d77524d2-64fd-48d7-acb3-5f533d0017b4 + status: 200 OK + code: 200 + duration: 325.688708ms - id: 5 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 121 + content_length: 122 transfer_encoding: [] trailer: {} host: api.scaleway.com remote_addr: "" request_uri: "" - body: '{"project_id":"52c5fc69-758a-4c3e-9556-d0a0cb28dd54","name":"my-data-source-metrics","type":"metrics","retention_days":0}' + body: '{"project_id":"20c94887-1862-4c8f-b866-a6e8561281fb","name":"my-data-source-metrics","type":"metrics","retention_days":31}' form: {} headers: Content-Type: @@ -280,20 +280,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 172 + content_length: 408 uncompressed: false - body: '{"details":[{"argument_name":"retention_days","help_message":"must be between 1 and 365","reason":"constraint"}],"message":"invalid argument(s)","type":"invalid_arguments"}' + body: '{"created_at":"2024-12-11T11:19:57.745750Z","id":"4053066d-d8e9-453e-b90d-cc29f1eb0149","name":"my-data-source-metrics","origin":"custom","project_id":"20c94887-1862-4c8f-b866-a6e8561281fb","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-11T11:19:57.745750Z","url":"https://4053066d-d8e9-453e-b90d-cc29f1eb0149.metrics.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - - "172" + - "408" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 11 Dec 2024 10:57:14 GMT + - Wed, 11 Dec 2024 11:19:57 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-2;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -301,11 +301,158 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 55f06575-d1e7-43b4-bc98-ed5423617360 - status: 400 Bad Request - code: 400 - duration: 258.839625ms + - 41776601-b33c-409a-990c-3e7e1e32048b + status: 200 OK + code: 200 + duration: 325.073833ms - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/b4f906d7-7dae-4fe4-9f45-abff6e69847a + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 398 + uncompressed: false + body: '{"created_at":"2024-12-11T11:19:57.740932Z","id":"b4f906d7-7dae-4fe4-9f45-abff6e69847a","name":"my-data-source-logs","origin":"custom","project_id":"20c94887-1862-4c8f-b866-a6e8561281fb","region":"fr-par","retention_days":7,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:57.740932Z","url":"https://b4f906d7-7dae-4fe4-9f45-abff6e69847a.logs.cockpit.fr-par.scw.cloud"}' + headers: + Content-Length: + - "398" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:19:57 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: + - 9cc934e1-4805-4d25-b1ef-122314e72c0a + status: 200 OK + code: 200 + duration: 66.309958ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/7f6a911d-e1af-44fc-9a10-25e67583f3f5 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 404 + uncompressed: false + body: '{"created_at":"2024-12-11T11:19:57.715471Z","id":"7f6a911d-e1af-44fc-9a10-25e67583f3f5","name":"my-data-source-traces","origin":"custom","project_id":"20c94887-1862-4c8f-b866-a6e8561281fb","region":"fr-par","retention_days":7,"synchronized_with_grafana":false,"type":"traces","updated_at":"2024-12-11T11:19:57.715471Z","url":"https://7f6a911d-e1af-44fc-9a10-25e67583f3f5.traces.cockpit.fr-par.scw.cloud"}' + headers: + Content-Length: + - "404" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:19:57 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: + - bd9fa67b-3631-4b4c-9cb2-adc930b827f5 + status: 200 OK + code: 200 + duration: 69.314041ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/4053066d-d8e9-453e-b90d-cc29f1eb0149 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 408 + uncompressed: false + body: '{"created_at":"2024-12-11T11:19:57.745750Z","id":"4053066d-d8e9-453e-b90d-cc29f1eb0149","name":"my-data-source-metrics","origin":"custom","project_id":"20c94887-1862-4c8f-b866-a6e8561281fb","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-11T11:19:57.745750Z","url":"https://4053066d-d8e9-453e-b90d-cc29f1eb0149.metrics.cockpit.fr-par.scw.cloud"}' + headers: + Content-Length: + - "408" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:19:57 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: + - dbb27d65-adea-47eb-ab7d-5715a95ec854 + status: 200 OK + code: 200 + duration: 70.287875ms + - id: 9 request: proto: HTTP/1.1 proto_major: 1 @@ -316,7 +463,7 @@ interactions: host: api.scaleway.com remote_addr: "" request_uri: "" - body: '{"project_id":"52c5fc69-758a-4c3e-9556-d0a0cb28dd54"}' + body: '{"project_id":"20c94887-1862-4c8f-b866-a6e8561281fb"}' form: {} headers: Content-Type: @@ -333,7 +480,7 @@ interactions: trailer: {} content_length: 183 uncompressed: false - body: '{"alert_manager_enabled":true,"alert_manager_url":"https://1844a7dd-314e-4f5e-bdef-d8c1bb06358a.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://c827424b-6f25-4050-af52-4b692491f6c0.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' headers: Content-Length: - "183" @@ -342,9 +489,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 10:57:14 GMT + - Wed, 11 Dec 2024 11:19:57 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-2;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -352,11 +499,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 943dbeeb-578e-4d3c-9edb-12c5a8fbbe7f + - 9a7f52cd-dc9f-4f05-9212-9eeef3e549fe status: 200 OK code: 200 - duration: 300.586625ms - - id: 7 + duration: 336.866667ms + - id: 10 request: proto: HTTP/1.1 proto_major: 1 @@ -372,7 +519,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=52c5fc69-758a-4c3e-9556-d0a0cb28dd54 + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=20c94887-1862-4c8f-b866-a6e8561281fb method: GET response: proto: HTTP/2.0 @@ -382,7 +529,7 @@ interactions: trailer: {} content_length: 183 uncompressed: false - body: '{"alert_manager_enabled":true,"alert_manager_url":"https://1844a7dd-314e-4f5e-bdef-d8c1bb06358a.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://c827424b-6f25-4050-af52-4b692491f6c0.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' headers: Content-Length: - "183" @@ -391,9 +538,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 10:57:14 GMT + - Wed, 11 Dec 2024 11:19:58 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-2;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -401,11 +548,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 5a062710-cd02-43b1-9aa6-da0ea6b8c762 + - 776024a0-08a0-4705-8c6d-6eb8378e8c94 status: 200 OK code: 200 - duration: 81.6885ms - - id: 8 + duration: 68.67125ms + - id: 11 request: proto: HTTP/1.1 proto_major: 1 @@ -421,7 +568,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=52c5fc69-758a-4c3e-9556-d0a0cb28dd54 + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=20c94887-1862-4c8f-b866-a6e8561281fb method: GET response: proto: HTTP/2.0 @@ -440,9 +587,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 10:57:14 GMT + - Wed, 11 Dec 2024 11:19:58 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-2;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -450,11 +597,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 25d383bf-f782-4a4f-8b4a-dc69df3225aa + - 9df327c9-e048-4525-a964-340e994c3300 status: 200 OK code: 200 - duration: 126.320625ms - - id: 9 + duration: 195.99975ms + - id: 12 request: proto: HTTP/1.1 proto_major: 1 @@ -470,7 +617,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=52c5fc69-758a-4c3e-9556-d0a0cb28dd54 + url: https://api.scaleway.com/cockpit/v1/plans?order_by=name_asc&page=1 method: GET response: proto: HTTP/2.0 @@ -478,20 +625,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 108 + content_length: 730 uncompressed: false - body: '{"contact_points":[],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":0}' + body: '{"plans":[{"logs_ingestion_price":35,"monthly_price":29,"name":"custom","retention_logs_interval":"2678400s","retention_metrics_interval":"31536000s","retention_traces_interval":"2678400s","sample_ingestion_price":15,"traces_ingestion_price":35},{"logs_ingestion_price":35,"monthly_price":0,"name":"free","retention_logs_interval":"604800s","retention_metrics_interval":"2678400s","retention_traces_interval":"604800s","sample_ingestion_price":15,"traces_ingestion_price":35},{"logs_ingestion_price":35,"monthly_price":29,"name":"premium","retention_logs_interval":"2678400s","retention_metrics_interval":"31536000s","retention_traces_interval":"2678400s","sample_ingestion_price":15,"traces_ingestion_price":35}],"total_count":3}' headers: Content-Length: - - "108" + - "730" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 11 Dec 2024 10:57:15 GMT + - Wed, 11 Dec 2024 11:19:58 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-2;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -499,50 +646,50 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - aedb1125-5bc8-4aa1-8e54-f18deb53cf7c + - af0b1895-d66a-49d3-9043-f25d105f0568 status: 200 OK code: 200 - duration: 271.982791ms - - id: 10 + duration: 25.466333ms + - id: 13 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 53 + content_length: 72 transfer_encoding: [] trailer: {} host: api.scaleway.com remote_addr: "" request_uri: "" - body: '{"project_id":"52c5fc69-758a-4c3e-9556-d0a0cb28dd54"}' + body: '{"project_id":"20c94887-1862-4c8f-b866-a6e8561281fb","plan_name":"free"}' form: {} headers: Content-Type: - application/json User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/managed-alerts/disable - method: POST + url: https://api.scaleway.com/cockpit/v1/plans + method: PATCH response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 184 + content_length: 229 uncompressed: false - body: '{"alert_manager_enabled":true,"alert_manager_url":"https://1844a7dd-314e-4f5e-bdef-d8c1bb06358a.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":false,"region":"fr-par"}' + body: '{"logs_ingestion_price":35,"monthly_price":0,"name":"free","retention_logs_interval":"604800s","retention_metrics_interval":"2678400s","retention_traces_interval":"604800s","sample_ingestion_price":15,"traces_ingestion_price":35}' headers: Content-Length: - - "184" + - "229" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 11 Dec 2024 10:57:15 GMT + - Wed, 11 Dec 2024 11:19:58 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-2;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -550,50 +697,97 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - de6c3adc-1a4e-45a5-8a76-5af1d4199888 + - 95298168-3b0e-4e1d-bafb-ba5ad8aee94a status: 200 OK code: 200 - duration: 254.669291ms - - id: 11 + duration: 144.966916ms + - id: 14 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 53 + content_length: 0 transfer_encoding: [] trailer: {} host: api.scaleway.com remote_addr: "" request_uri: "" - body: '{"project_id":"52c5fc69-758a-4c3e-9556-d0a0cb28dd54"}' + body: "" form: {} headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/current-plan?project_id=20c94887-1862-4c8f-b866-a6e8561281fb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 229 + uncompressed: false + body: '{"logs_ingestion_price":35,"monthly_price":0,"name":"free","retention_logs_interval":"604800s","retention_metrics_interval":"2678400s","retention_traces_interval":"604800s","sample_ingestion_price":15,"traces_ingestion_price":35}' + headers: + Content-Length: + - "229" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json + Date: + - Wed, 11 Dec 2024 11:19:58 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: + - 553617f5-3afd-4fcb-9156-5a98015bf98e + status: 200 OK + code: 200 + duration: 70.60775ms + - id: 15 + 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/disable - method: POST + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources?order_by=created_at_asc&origin=external&page=1&project_id=20c94887-1862-4c8f-b866-a6e8561281fb + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 105 + content_length: 1247 uncompressed: false - body: '{"alert_manager_enabled":false,"alert_manager_url":null,"managed_alerts_enabled":false,"region":"fr-par"}' + body: '{"data_sources":[{"created_at":"2024-12-11T11:19:57.715471Z","id":"7f6a911d-e1af-44fc-9a10-25e67583f3f5","name":"my-data-source-traces","origin":"custom","project_id":"20c94887-1862-4c8f-b866-a6e8561281fb","region":"fr-par","retention_days":7,"synchronized_with_grafana":false,"type":"traces","updated_at":"2024-12-11T11:19:57.715471Z","url":"https://7f6a911d-e1af-44fc-9a10-25e67583f3f5.traces.cockpit.fr-par.scw.cloud"},{"created_at":"2024-12-11T11:19:57.740932Z","id":"b4f906d7-7dae-4fe4-9f45-abff6e69847a","name":"my-data-source-logs","origin":"custom","project_id":"20c94887-1862-4c8f-b866-a6e8561281fb","region":"fr-par","retention_days":7,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:57.740932Z","url":"https://b4f906d7-7dae-4fe4-9f45-abff6e69847a.logs.cockpit.fr-par.scw.cloud"},{"created_at":"2024-12-11T11:19:57.745750Z","id":"4053066d-d8e9-453e-b90d-cc29f1eb0149","name":"my-data-source-metrics","origin":"custom","project_id":"20c94887-1862-4c8f-b866-a6e8561281fb","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-11T11:19:57.745750Z","url":"https://4053066d-d8e9-453e-b90d-cc29f1eb0149.metrics.cockpit.fr-par.scw.cloud"}],"total_count":3}' headers: Content-Length: - - "105" + - "1247" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 11 Dec 2024 10:57:15 GMT + - Wed, 11 Dec 2024 11:19:58 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-2;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -601,11 +795,1675 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 6c3e9220-d4fe-4044-8ce7-8c49a030b2c6 + - cf4adcbf-b61f-443d-a790-3e831d21d105 status: 200 OK code: 200 - duration: 410.026ms - - id: 12 + duration: 319.32875ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/grafana?project_id=20c94887-1862-4c8f-b866-a6e8561281fb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 18 + uncompressed: false + body: '{"grafana_url":""}' + headers: + Content-Length: + - "18" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:19:58 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: + - 63740984-5891-4cca-952e-2d4e5744e785 + status: 200 OK + code: 200 + duration: 81.473208ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=20c94887-1862-4c8f-b866-a6e8561281fb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 183 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://c827424b-6f25-4050-af52-4b692491f6c0.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' + headers: + Content-Length: + - "183" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:19:58 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: + - 5fdd0c38-1535-4bc0-a58f-e2b924486b44 + status: 200 OK + code: 200 + duration: 90.870209ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/current-plan?project_id=20c94887-1862-4c8f-b866-a6e8561281fb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 229 + uncompressed: false + body: '{"logs_ingestion_price":35,"monthly_price":0,"name":"free","retention_logs_interval":"604800s","retention_metrics_interval":"2678400s","retention_traces_interval":"604800s","sample_ingestion_price":15,"traces_ingestion_price":35}' + headers: + Content-Length: + - "229" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:19:59 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: + - 2dea9575-c7e4-4a70-9b3a-2f555b04d6f5 + status: 200 OK + code: 200 + duration: 84.92425ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources?order_by=created_at_asc&origin=external&page=1&project_id=20c94887-1862-4c8f-b866-a6e8561281fb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1247 + uncompressed: false + body: '{"data_sources":[{"created_at":"2024-12-11T11:19:57.715471Z","id":"7f6a911d-e1af-44fc-9a10-25e67583f3f5","name":"my-data-source-traces","origin":"custom","project_id":"20c94887-1862-4c8f-b866-a6e8561281fb","region":"fr-par","retention_days":7,"synchronized_with_grafana":false,"type":"traces","updated_at":"2024-12-11T11:19:57.715471Z","url":"https://7f6a911d-e1af-44fc-9a10-25e67583f3f5.traces.cockpit.fr-par.scw.cloud"},{"created_at":"2024-12-11T11:19:57.740932Z","id":"b4f906d7-7dae-4fe4-9f45-abff6e69847a","name":"my-data-source-logs","origin":"custom","project_id":"20c94887-1862-4c8f-b866-a6e8561281fb","region":"fr-par","retention_days":7,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:57.740932Z","url":"https://b4f906d7-7dae-4fe4-9f45-abff6e69847a.logs.cockpit.fr-par.scw.cloud"},{"created_at":"2024-12-11T11:19:57.745750Z","id":"4053066d-d8e9-453e-b90d-cc29f1eb0149","name":"my-data-source-metrics","origin":"custom","project_id":"20c94887-1862-4c8f-b866-a6e8561281fb","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-11T11:19:57.745750Z","url":"https://4053066d-d8e9-453e-b90d-cc29f1eb0149.metrics.cockpit.fr-par.scw.cloud"}],"total_count":3}' + headers: + Content-Length: + - "1247" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:19:59 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: + - 41596091-668c-431c-8205-5e36bb6d81ff + status: 200 OK + code: 200 + duration: 359.958333ms + - id: 20 + 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/grafana?project_id=20c94887-1862-4c8f-b866-a6e8561281fb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 18 + uncompressed: false + body: '{"grafana_url":""}' + headers: + Content-Length: + - "18" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:19:59 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: + - 2c79d124-e5a4-46b3-a6ff-763af3a48fb4 + status: 200 OK + code: 200 + duration: 70.997ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=20c94887-1862-4c8f-b866-a6e8561281fb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 183 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://c827424b-6f25-4050-af52-4b692491f6c0.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' + headers: + Content-Length: + - "183" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:19:59 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: + - 02e8fb22-5be3-44c5-be21-3a22764333a9 + status: 200 OK + code: 200 + duration: 68.037666ms + - id: 22 + 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/current-plan?project_id=20c94887-1862-4c8f-b866-a6e8561281fb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 229 + uncompressed: false + body: '{"logs_ingestion_price":35,"monthly_price":0,"name":"free","retention_logs_interval":"604800s","retention_metrics_interval":"2678400s","retention_traces_interval":"604800s","sample_ingestion_price":15,"traces_ingestion_price":35}' + headers: + Content-Length: + - "229" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:20:00 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: + - 799eb249-d9c7-47e7-9c3e-3d2c4cb8865c + status: 200 OK + code: 200 + duration: 65.596917ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources?order_by=created_at_asc&origin=external&page=1&project_id=20c94887-1862-4c8f-b866-a6e8561281fb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1247 + uncompressed: false + body: '{"data_sources":[{"created_at":"2024-12-11T11:19:57.715471Z","id":"7f6a911d-e1af-44fc-9a10-25e67583f3f5","name":"my-data-source-traces","origin":"custom","project_id":"20c94887-1862-4c8f-b866-a6e8561281fb","region":"fr-par","retention_days":7,"synchronized_with_grafana":false,"type":"traces","updated_at":"2024-12-11T11:19:57.715471Z","url":"https://7f6a911d-e1af-44fc-9a10-25e67583f3f5.traces.cockpit.fr-par.scw.cloud"},{"created_at":"2024-12-11T11:19:57.740932Z","id":"b4f906d7-7dae-4fe4-9f45-abff6e69847a","name":"my-data-source-logs","origin":"custom","project_id":"20c94887-1862-4c8f-b866-a6e8561281fb","region":"fr-par","retention_days":7,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:57.740932Z","url":"https://b4f906d7-7dae-4fe4-9f45-abff6e69847a.logs.cockpit.fr-par.scw.cloud"},{"created_at":"2024-12-11T11:19:57.745750Z","id":"4053066d-d8e9-453e-b90d-cc29f1eb0149","name":"my-data-source-metrics","origin":"custom","project_id":"20c94887-1862-4c8f-b866-a6e8561281fb","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-11T11:19:57.745750Z","url":"https://4053066d-d8e9-453e-b90d-cc29f1eb0149.metrics.cockpit.fr-par.scw.cloud"}],"total_count":3}' + headers: + Content-Length: + - "1247" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:20:00 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: + - b3854f4c-1114-4299-b451-74ef89093b15 + status: 200 OK + code: 200 + duration: 361.100375ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/grafana?project_id=20c94887-1862-4c8f-b866-a6e8561281fb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 18 + uncompressed: false + body: '{"grafana_url":""}' + headers: + Content-Length: + - "18" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:20:00 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: + - 1bb882ca-b81f-4dc0-b7e8-fc493f81354b + status: 200 OK + code: 200 + duration: 62.084667ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=20c94887-1862-4c8f-b866-a6e8561281fb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 183 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://c827424b-6f25-4050-af52-4b692491f6c0.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' + headers: + Content-Length: + - "183" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:20:00 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: + - f808d166-0704-413c-87d3-f8af98827494 + status: 200 OK + code: 200 + duration: 82.422458ms + - id: 26 + 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/20c94887-1862-4c8f-b866-a6e8561281fb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 247 + uncompressed: false + body: '{"created_at":"2024-12-11T11:19:57.049595Z","description":"","id":"20c94887-1862-4c8f-b866-a6e8561281fb","name":"tf_tests_cockpit_project_premium","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:19:57.049595Z"}' + headers: + Content-Length: + - "247" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:20:01 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: + - 74847aac-e1aa-4a45-bc88-5930d14a8488 + status: 200 OK + code: 200 + duration: 117.191834ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/b4f906d7-7dae-4fe4-9f45-abff6e69847a + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 398 + uncompressed: false + body: '{"created_at":"2024-12-11T11:19:57.740932Z","id":"b4f906d7-7dae-4fe4-9f45-abff6e69847a","name":"my-data-source-logs","origin":"custom","project_id":"20c94887-1862-4c8f-b866-a6e8561281fb","region":"fr-par","retention_days":7,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:57.740932Z","url":"https://b4f906d7-7dae-4fe4-9f45-abff6e69847a.logs.cockpit.fr-par.scw.cloud"}' + headers: + Content-Length: + - "398" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:20:01 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: + - fcf42266-1ef5-4b58-8ec8-a454e3cffe16 + status: 200 OK + code: 200 + duration: 65.863708ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=20c94887-1862-4c8f-b866-a6e8561281fb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 183 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://c827424b-6f25-4050-af52-4b692491f6c0.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' + headers: + Content-Length: + - "183" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:20:01 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: + - ebf61f42-8233-424d-9361-e8a201bd2b52 + status: 200 OK + code: 200 + duration: 71.629875ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/7f6a911d-e1af-44fc-9a10-25e67583f3f5 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 404 + uncompressed: false + body: '{"created_at":"2024-12-11T11:19:57.715471Z","id":"7f6a911d-e1af-44fc-9a10-25e67583f3f5","name":"my-data-source-traces","origin":"custom","project_id":"20c94887-1862-4c8f-b866-a6e8561281fb","region":"fr-par","retention_days":7,"synchronized_with_grafana":false,"type":"traces","updated_at":"2024-12-11T11:19:57.715471Z","url":"https://7f6a911d-e1af-44fc-9a10-25e67583f3f5.traces.cockpit.fr-par.scw.cloud"}' + headers: + Content-Length: + - "404" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:20:01 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: + - 98eecdbb-0973-4170-9dbb-ecd1e8a3f3b9 + status: 200 OK + code: 200 + duration: 68.409958ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/4053066d-d8e9-453e-b90d-cc29f1eb0149 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 408 + uncompressed: false + body: '{"created_at":"2024-12-11T11:19:57.745750Z","id":"4053066d-d8e9-453e-b90d-cc29f1eb0149","name":"my-data-source-metrics","origin":"custom","project_id":"20c94887-1862-4c8f-b866-a6e8561281fb","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-11T11:19:57.745750Z","url":"https://4053066d-d8e9-453e-b90d-cc29f1eb0149.metrics.cockpit.fr-par.scw.cloud"}' + headers: + Content-Length: + - "408" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:20:01 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: + - 0c2cb03c-dcfa-485b-8e11-9a9f2c7eaa34 + status: 200 OK + code: 200 + duration: 87.532041ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=20c94887-1862-4c8f-b866-a6e8561281fb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 108 + uncompressed: false + body: '{"contact_points":[],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":0}' + headers: + Content-Length: + - "108" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:20:01 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: + - 606736ad-2013-4789-ab22-4ebf9deaac1e + status: 200 OK + code: 200 + duration: 117.980959ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/current-plan?project_id=20c94887-1862-4c8f-b866-a6e8561281fb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 229 + uncompressed: false + body: '{"logs_ingestion_price":35,"monthly_price":0,"name":"free","retention_logs_interval":"604800s","retention_metrics_interval":"2678400s","retention_traces_interval":"604800s","sample_ingestion_price":15,"traces_ingestion_price":35}' + headers: + Content-Length: + - "229" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:20:01 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: + - 261f39cd-b6b7-4832-b869-908f6761d552 + status: 200 OK + code: 200 + duration: 71.973458ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources?order_by=created_at_asc&origin=external&page=1&project_id=20c94887-1862-4c8f-b866-a6e8561281fb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1247 + uncompressed: false + body: '{"data_sources":[{"created_at":"2024-12-11T11:19:57.715471Z","id":"7f6a911d-e1af-44fc-9a10-25e67583f3f5","name":"my-data-source-traces","origin":"custom","project_id":"20c94887-1862-4c8f-b866-a6e8561281fb","region":"fr-par","retention_days":7,"synchronized_with_grafana":false,"type":"traces","updated_at":"2024-12-11T11:19:57.715471Z","url":"https://7f6a911d-e1af-44fc-9a10-25e67583f3f5.traces.cockpit.fr-par.scw.cloud"},{"created_at":"2024-12-11T11:19:57.740932Z","id":"b4f906d7-7dae-4fe4-9f45-abff6e69847a","name":"my-data-source-logs","origin":"custom","project_id":"20c94887-1862-4c8f-b866-a6e8561281fb","region":"fr-par","retention_days":7,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:57.740932Z","url":"https://b4f906d7-7dae-4fe4-9f45-abff6e69847a.logs.cockpit.fr-par.scw.cloud"},{"created_at":"2024-12-11T11:19:57.745750Z","id":"4053066d-d8e9-453e-b90d-cc29f1eb0149","name":"my-data-source-metrics","origin":"custom","project_id":"20c94887-1862-4c8f-b866-a6e8561281fb","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-11T11:19:57.745750Z","url":"https://4053066d-d8e9-453e-b90d-cc29f1eb0149.metrics.cockpit.fr-par.scw.cloud"}],"total_count":3}' + headers: + Content-Length: + - "1247" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:20:01 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: + - 895f1506-d974-4715-b6f5-232a5af06af7 + status: 200 OK + code: 200 + duration: 401.576125ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/grafana?project_id=20c94887-1862-4c8f-b866-a6e8561281fb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 18 + uncompressed: false + body: '{"grafana_url":""}' + headers: + Content-Length: + - "18" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:20:02 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: + - 9e160677-a337-4b55-85ca-926daf46b124 + status: 200 OK + code: 200 + duration: 501.70875ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=20c94887-1862-4c8f-b866-a6e8561281fb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 183 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://c827424b-6f25-4050-af52-4b692491f6c0.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' + headers: + Content-Length: + - "183" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:20:02 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: + - f8928820-bed5-44b4-a462-37d3240eb34a + status: 200 OK + code: 200 + duration: 110.080792ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/current-plan?project_id=20c94887-1862-4c8f-b866-a6e8561281fb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 229 + uncompressed: false + body: '{"logs_ingestion_price":35,"monthly_price":0,"name":"free","retention_logs_interval":"604800s","retention_metrics_interval":"2678400s","retention_traces_interval":"604800s","sample_ingestion_price":15,"traces_ingestion_price":35}' + headers: + Content-Length: + - "229" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:20:02 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: + - d26b2271-fabf-4c94-bc2b-7120bdcd3a73 + status: 200 OK + code: 200 + duration: 80.265667ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources?order_by=created_at_asc&origin=external&page=1&project_id=20c94887-1862-4c8f-b866-a6e8561281fb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1247 + uncompressed: false + body: '{"data_sources":[{"created_at":"2024-12-11T11:19:57.715471Z","id":"7f6a911d-e1af-44fc-9a10-25e67583f3f5","name":"my-data-source-traces","origin":"custom","project_id":"20c94887-1862-4c8f-b866-a6e8561281fb","region":"fr-par","retention_days":7,"synchronized_with_grafana":false,"type":"traces","updated_at":"2024-12-11T11:19:57.715471Z","url":"https://7f6a911d-e1af-44fc-9a10-25e67583f3f5.traces.cockpit.fr-par.scw.cloud"},{"created_at":"2024-12-11T11:19:57.740932Z","id":"b4f906d7-7dae-4fe4-9f45-abff6e69847a","name":"my-data-source-logs","origin":"custom","project_id":"20c94887-1862-4c8f-b866-a6e8561281fb","region":"fr-par","retention_days":7,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:57.740932Z","url":"https://b4f906d7-7dae-4fe4-9f45-abff6e69847a.logs.cockpit.fr-par.scw.cloud"},{"created_at":"2024-12-11T11:19:57.745750Z","id":"4053066d-d8e9-453e-b90d-cc29f1eb0149","name":"my-data-source-metrics","origin":"custom","project_id":"20c94887-1862-4c8f-b866-a6e8561281fb","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-11T11:19:57.745750Z","url":"https://4053066d-d8e9-453e-b90d-cc29f1eb0149.metrics.cockpit.fr-par.scw.cloud"}],"total_count":3}' + headers: + Content-Length: + - "1247" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:20:02 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: + - 0bdff8a4-af2c-4508-b497-ab0e6bbc80b9 + status: 200 OK + code: 200 + duration: 353.962625ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/grafana?project_id=20c94887-1862-4c8f-b866-a6e8561281fb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 18 + uncompressed: false + body: '{"grafana_url":""}' + headers: + Content-Length: + - "18" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:20:02 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: + - 4f266bd4-42ef-4813-839d-eb8bd1705969 + status: 200 OK + code: 200 + duration: 85.721917ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=20c94887-1862-4c8f-b866-a6e8561281fb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 183 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://c827424b-6f25-4050-af52-4b692491f6c0.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' + headers: + Content-Length: + - "183" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:20:03 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: + - 0f79f62a-bc09-47fd-b452-796195153a5a + status: 200 OK + code: 200 + duration: 98.155875ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/current-plan?project_id=20c94887-1862-4c8f-b866-a6e8561281fb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 229 + uncompressed: false + body: '{"logs_ingestion_price":35,"monthly_price":0,"name":"free","retention_logs_interval":"604800s","retention_metrics_interval":"2678400s","retention_traces_interval":"604800s","sample_ingestion_price":15,"traces_ingestion_price":35}' + headers: + Content-Length: + - "229" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:20:03 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: + - d3c9dc9f-4427-47c0-b130-e7d320f0ddde + status: 200 OK + code: 200 + duration: 77.859875ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources?order_by=created_at_asc&origin=external&page=1&project_id=20c94887-1862-4c8f-b866-a6e8561281fb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1247 + uncompressed: false + body: '{"data_sources":[{"created_at":"2024-12-11T11:19:57.715471Z","id":"7f6a911d-e1af-44fc-9a10-25e67583f3f5","name":"my-data-source-traces","origin":"custom","project_id":"20c94887-1862-4c8f-b866-a6e8561281fb","region":"fr-par","retention_days":7,"synchronized_with_grafana":false,"type":"traces","updated_at":"2024-12-11T11:19:57.715471Z","url":"https://7f6a911d-e1af-44fc-9a10-25e67583f3f5.traces.cockpit.fr-par.scw.cloud"},{"created_at":"2024-12-11T11:19:57.740932Z","id":"b4f906d7-7dae-4fe4-9f45-abff6e69847a","name":"my-data-source-logs","origin":"custom","project_id":"20c94887-1862-4c8f-b866-a6e8561281fb","region":"fr-par","retention_days":7,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:57.740932Z","url":"https://b4f906d7-7dae-4fe4-9f45-abff6e69847a.logs.cockpit.fr-par.scw.cloud"},{"created_at":"2024-12-11T11:19:57.745750Z","id":"4053066d-d8e9-453e-b90d-cc29f1eb0149","name":"my-data-source-metrics","origin":"custom","project_id":"20c94887-1862-4c8f-b866-a6e8561281fb","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-11T11:19:57.745750Z","url":"https://4053066d-d8e9-453e-b90d-cc29f1eb0149.metrics.cockpit.fr-par.scw.cloud"}],"total_count":3}' + headers: + Content-Length: + - "1247" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:20:03 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: + - ad247d67-3de8-4db4-a42f-f5cec1b88008 + status: 200 OK + code: 200 + duration: 345.47175ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/grafana?project_id=20c94887-1862-4c8f-b866-a6e8561281fb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 18 + uncompressed: false + body: '{"grafana_url":""}' + headers: + Content-Length: + - "18" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:20:03 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: + - 4fbb3440-e747-4a44-86a3-30df002309d1 + status: 200 OK + code: 200 + duration: 67.601958ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=20c94887-1862-4c8f-b866-a6e8561281fb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 183 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://c827424b-6f25-4050-af52-4b692491f6c0.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' + headers: + Content-Length: + - "183" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:20:03 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: + - 41de4543-102c-4aa0-a59c-32924ed25329 + status: 200 OK + code: 200 + duration: 81.829375ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/7f6a911d-e1af-44fc-9a10-25e67583f3f5 + 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: + - Wed, 11 Dec 2024 11:20:04 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: + - ee39fc73-b5f0-431d-850a-be6f6bb77daf + status: 204 No Content + code: 204 + duration: 76.315ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=20c94887-1862-4c8f-b866-a6e8561281fb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 108 + uncompressed: false + body: '{"contact_points":[],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":0}' + headers: + Content-Length: + - "108" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:20:04 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: + - d2ec078e-9f20-47ef-9cbb-3be27c812e59 + status: 200 OK + code: 200 + duration: 103.063709ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/b4f906d7-7dae-4fe4-9f45-abff6e69847a + 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: + - Wed, 11 Dec 2024 11:20:04 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: + - 3b7901a6-d687-4b54-94e0-8cbb5af1f45d + status: 204 No Content + code: 204 + duration: 260.973834ms + - id: 47 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 53 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"20c94887-1862-4c8f-b866-a6e8561281fb"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/managed-alerts/disable + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 184 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://c827424b-6f25-4050-af52-4b692491f6c0.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":false,"region":"fr-par"}' + headers: + Content-Length: + - "184" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:20:04 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: + - 00662974-9df3-4850-b8b7-ce2ac284b45e + status: 200 OK + code: 200 + duration: 268.773583ms + - 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.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/4053066d-d8e9-453e-b90d-cc29f1eb0149 + 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: + - Wed, 11 Dec 2024 11:20:05 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: + - c2188e5e-65d1-435d-89e5-aa69c21ee50d + status: 204 No Content + code: 204 + duration: 707.598083ms + - id: 49 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 53 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"20c94887-1862-4c8f-b866-a6e8561281fb"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/disable + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 105 + uncompressed: false + body: '{"alert_manager_enabled":false,"alert_manager_url":null,"managed_alerts_enabled":false,"region":"fr-par"}' + headers: + Content-Length: + - "105" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 11 Dec 2024 11:20:05 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: + - ed0bec93-b60b-4ca9-b04c-a140633d81ef + status: 200 OK + code: 200 + duration: 334.509083ms + - id: 50 request: proto: HTTP/1.1 proto_major: 1 @@ -621,7 +2479,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/52c5fc69-758a-4c3e-9556-d0a0cb28dd54 + url: https://api.scaleway.com/account/v3/projects/20c94887-1862-4c8f-b866-a6e8561281fb method: DELETE response: proto: HTTP/2.0 @@ -638,9 +2496,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 10:57:17 GMT + - Wed, 11 Dec 2024 11:20:06 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-2;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -648,7 +2506,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 97ce5f5b-b97a-441f-9ccb-f184ff4cfced + - 23f51af9-d116-45a0-8683-ba8a5986ab06 status: 204 No Content code: 204 - duration: 1.456528708s + duration: 1.466510833s From 7b1c59a57b92d049c93cb339d1741a8affeda1f3 Mon Sep 17 00:00:00 2001 From: devtools-ci-cd Date: Thu, 12 Dec 2024 15:47:02 +0100 Subject: [PATCH 4/5] feat(cockpit): add validate func for retention days --- internal/services/cockpit/source.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/internal/services/cockpit/source.go b/internal/services/cockpit/source.go index dbfa9789a3..539e7a4092 100644 --- a/internal/services/cockpit/source.go +++ b/internal/services/cockpit/source.go @@ -5,6 +5,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" "github.com/scaleway/scaleway-sdk-go/api/cockpit/v1" "github.com/scaleway/scaleway-sdk-go/scw" "github.com/scaleway/terraform-provider-scaleway/v2/internal/httperrors" @@ -44,9 +45,10 @@ func ResourceCockpitSource() *schema.Resource { ValidateDiagFunc: verify.ValidateEnum[cockpit.DataSourceType](), }, "retention_days": { - Type: schema.TypeInt, - Required: true, - Description: "The number of days to retain data, must be between 1 and 365.", + Type: schema.TypeInt, + Required: true, + ValidateFunc: validation.IntBetween(1, 365), + Description: "The number of days to retain data, must be between 1 and 365.", }, // computed "url": { @@ -166,7 +168,7 @@ func ResourceCockpitSourceUpdate(ctx context.Context, d *schema.ResourceData, me updateRequest.RetentionDays = &retentionDays } - if updateRequest.Name != nil || updateRequest.RetentionDays != nil { + if d.HasChange("retention_days") || d.HasChange("name") { _, err = api.UpdateDataSource(updateRequest, scw.WithContext(ctx)) if err != nil { return diag.FromErr(err) From 8e3f4c1f987f30ac9efb18df0dd3f49b928fb601 Mon Sep 17 00:00:00 2001 From: devtools-ci-cd Date: Thu, 12 Dec 2024 16:06:17 +0100 Subject: [PATCH 5/5] feat(cockpit): refacto update source --- internal/services/cockpit/source.go | 2 +- .../cockpit-source-basic-logs.cassette.yaml | 114 +++---- ...cockpit-source-basic-metrics.cassette.yaml | 114 +++---- .../cockpit-source-update.cassette.yaml | 280 +++++++++--------- 4 files changed, 255 insertions(+), 255 deletions(-) diff --git a/internal/services/cockpit/source.go b/internal/services/cockpit/source.go index 539e7a4092..6ac3e43bf9 100644 --- a/internal/services/cockpit/source.go +++ b/internal/services/cockpit/source.go @@ -168,7 +168,7 @@ func ResourceCockpitSourceUpdate(ctx context.Context, d *schema.ResourceData, me updateRequest.RetentionDays = &retentionDays } - if d.HasChange("retention_days") || d.HasChange("name") { + if d.HasChanges("retention_days", "name") { _, err = api.UpdateDataSource(updateRequest, scw.WithContext(ctx)) if err != nil { return diag.FromErr(err) diff --git a/internal/services/cockpit/testdata/cockpit-source-basic-logs.cassette.yaml b/internal/services/cockpit/testdata/cockpit-source-basic-logs.cassette.yaml index d1a6c025ed..22075e95cb 100644 --- a/internal/services/cockpit/testdata/cockpit-source-basic-logs.cassette.yaml +++ b/internal/services/cockpit/testdata/cockpit-source-basic-logs.cassette.yaml @@ -29,7 +29,7 @@ interactions: trailer: {} content_length: 248 uncompressed: false - body: '{"created_at":"2024-12-11T11:19:00.596350Z","description":"","id":"0ca30e8f-43d8-417b-aeaf-904b66182790","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:19:00.596350Z"}' + body: '{"created_at":"2024-12-12T14:54:36.490449Z","description":"","id":"5b1330fa-f0c0-4245-858d-acbe89fca85a","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-12T14:54:36.490449Z"}' headers: Content-Length: - "248" @@ -38,9 +38,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:00 GMT + - Thu, 12 Dec 2024 14:54:36 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -48,10 +48,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - cb479384-2605-49f1-9e0b-81677dd20778 + - 7d4f1035-6b10-4c9e-a841-8823ac84a372 status: 200 OK code: 200 - duration: 837.908292ms + duration: 545.295875ms - id: 1 request: proto: HTTP/1.1 @@ -68,7 +68,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/0ca30e8f-43d8-417b-aeaf-904b66182790 + url: https://api.scaleway.com/account/v3/projects/5b1330fa-f0c0-4245-858d-acbe89fca85a method: GET response: proto: HTTP/2.0 @@ -78,7 +78,7 @@ interactions: trailer: {} content_length: 248 uncompressed: false - body: '{"created_at":"2024-12-11T11:19:00.596350Z","description":"","id":"0ca30e8f-43d8-417b-aeaf-904b66182790","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:19:00.596350Z"}' + body: '{"created_at":"2024-12-12T14:54:36.490449Z","description":"","id":"5b1330fa-f0c0-4245-858d-acbe89fca85a","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-12T14:54:36.490449Z"}' headers: Content-Length: - "248" @@ -87,9 +87,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:00 GMT + - Thu, 12 Dec 2024 14:54:36 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -97,10 +97,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 78fd5901-ad7b-47ec-8a6e-c5d7ad556f07 + - 2244f0c2-d95e-499d-af2d-93f4fc30f729 status: 200 OK code: 200 - duration: 161.829375ms + duration: 167.432375ms - id: 2 request: proto: HTTP/1.1 @@ -112,7 +112,7 @@ interactions: host: api.scaleway.com remote_addr: "" request_uri: "" - body: '{"project_id":"0ca30e8f-43d8-417b-aeaf-904b66182790","name":"my-source","type":"logs","retention_days":31}' + body: '{"project_id":"5b1330fa-f0c0-4245-858d-acbe89fca85a","name":"my-source","type":"logs","retention_days":31}' form: {} headers: Content-Type: @@ -129,7 +129,7 @@ interactions: trailer: {} content_length: 389 uncompressed: false - body: '{"created_at":"2024-12-11T11:19:01.364666Z","id":"94326abe-6449-4d49-86fb-d7291ebb18a8","name":"my-source","origin":"custom","project_id":"0ca30e8f-43d8-417b-aeaf-904b66182790","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:01.364666Z","url":"https://94326abe-6449-4d49-86fb-d7291ebb18a8.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-12T14:54:37.234781Z","id":"32742a1d-a023-457e-b399-4e198d3b2fde","name":"my-source","origin":"custom","project_id":"5b1330fa-f0c0-4245-858d-acbe89fca85a","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-12T14:54:37.234781Z","url":"https://32742a1d-a023-457e-b399-4e198d3b2fde.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "389" @@ -138,9 +138,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:01 GMT + - Thu, 12 Dec 2024 14:54:37 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -148,10 +148,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 7bb4cc79-c920-4cf0-a641-f808fc7c5060 + - 2acb4d7e-d325-4f50-b7ae-6da5a128770a status: 200 OK code: 200 - duration: 335.209083ms + duration: 259.22875ms - id: 3 request: proto: HTTP/1.1 @@ -168,7 +168,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/94326abe-6449-4d49-86fb-d7291ebb18a8 + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/32742a1d-a023-457e-b399-4e198d3b2fde method: GET response: proto: HTTP/2.0 @@ -178,7 +178,7 @@ interactions: trailer: {} content_length: 389 uncompressed: false - body: '{"created_at":"2024-12-11T11:19:01.364666Z","id":"94326abe-6449-4d49-86fb-d7291ebb18a8","name":"my-source","origin":"custom","project_id":"0ca30e8f-43d8-417b-aeaf-904b66182790","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:01.364666Z","url":"https://94326abe-6449-4d49-86fb-d7291ebb18a8.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-12T14:54:37.234781Z","id":"32742a1d-a023-457e-b399-4e198d3b2fde","name":"my-source","origin":"custom","project_id":"5b1330fa-f0c0-4245-858d-acbe89fca85a","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-12T14:54:37.234781Z","url":"https://32742a1d-a023-457e-b399-4e198d3b2fde.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "389" @@ -187,9 +187,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:01 GMT + - Thu, 12 Dec 2024 14:54:37 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -197,10 +197,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - cffbb1c0-af6e-4a49-9de8-399426268652 + - 15e4581a-9489-4249-8922-ed33ea061510 status: 200 OK code: 200 - duration: 66.024875ms + duration: 152.852416ms - id: 4 request: proto: HTTP/1.1 @@ -217,7 +217,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/94326abe-6449-4d49-86fb-d7291ebb18a8 + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/32742a1d-a023-457e-b399-4e198d3b2fde method: GET response: proto: HTTP/2.0 @@ -227,7 +227,7 @@ interactions: trailer: {} content_length: 389 uncompressed: false - body: '{"created_at":"2024-12-11T11:19:01.364666Z","id":"94326abe-6449-4d49-86fb-d7291ebb18a8","name":"my-source","origin":"custom","project_id":"0ca30e8f-43d8-417b-aeaf-904b66182790","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:01.364666Z","url":"https://94326abe-6449-4d49-86fb-d7291ebb18a8.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-12T14:54:37.234781Z","id":"32742a1d-a023-457e-b399-4e198d3b2fde","name":"my-source","origin":"custom","project_id":"5b1330fa-f0c0-4245-858d-acbe89fca85a","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-12T14:54:37.234781Z","url":"https://32742a1d-a023-457e-b399-4e198d3b2fde.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "389" @@ -236,9 +236,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:02 GMT + - Thu, 12 Dec 2024 14:54:37 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -246,10 +246,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 98c8c5b5-5064-4d7a-82e6-fd4423efe209 + - b457f51a-38c5-40ba-9e15-4271b5f7af00 status: 200 OK code: 200 - duration: 622.824167ms + duration: 78.686917ms - id: 5 request: proto: HTTP/1.1 @@ -266,7 +266,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/0ca30e8f-43d8-417b-aeaf-904b66182790 + url: https://api.scaleway.com/account/v3/projects/5b1330fa-f0c0-4245-858d-acbe89fca85a method: GET response: proto: HTTP/2.0 @@ -276,7 +276,7 @@ interactions: trailer: {} content_length: 248 uncompressed: false - body: '{"created_at":"2024-12-11T11:19:00.596350Z","description":"","id":"0ca30e8f-43d8-417b-aeaf-904b66182790","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:19:00.596350Z"}' + body: '{"created_at":"2024-12-12T14:54:36.490449Z","description":"","id":"5b1330fa-f0c0-4245-858d-acbe89fca85a","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-12T14:54:36.490449Z"}' headers: Content-Length: - "248" @@ -285,9 +285,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:03 GMT + - Thu, 12 Dec 2024 14:54:38 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -295,10 +295,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - ad2977c1-146c-4881-824a-0b1d023c8e5b + - a37e4572-d0ad-4a1f-8119-bbe0fba3873b status: 200 OK code: 200 - duration: 119.830708ms + duration: 170.257875ms - id: 6 request: proto: HTTP/1.1 @@ -315,7 +315,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/94326abe-6449-4d49-86fb-d7291ebb18a8 + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/32742a1d-a023-457e-b399-4e198d3b2fde method: GET response: proto: HTTP/2.0 @@ -325,7 +325,7 @@ interactions: trailer: {} content_length: 389 uncompressed: false - body: '{"created_at":"2024-12-11T11:19:01.364666Z","id":"94326abe-6449-4d49-86fb-d7291ebb18a8","name":"my-source","origin":"custom","project_id":"0ca30e8f-43d8-417b-aeaf-904b66182790","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:01.364666Z","url":"https://94326abe-6449-4d49-86fb-d7291ebb18a8.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-12T14:54:37.234781Z","id":"32742a1d-a023-457e-b399-4e198d3b2fde","name":"my-source","origin":"custom","project_id":"5b1330fa-f0c0-4245-858d-acbe89fca85a","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-12T14:54:37.234781Z","url":"https://32742a1d-a023-457e-b399-4e198d3b2fde.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "389" @@ -334,9 +334,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:03 GMT + - Thu, 12 Dec 2024 14:54:38 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -344,10 +344,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 25932ee8-4fd7-440e-9d90-f8210b34d3f9 + - 26cf386f-4776-423d-9abf-d81a1873ed02 status: 200 OK code: 200 - duration: 142.679917ms + duration: 67.160542ms - id: 7 request: proto: HTTP/1.1 @@ -364,7 +364,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/94326abe-6449-4d49-86fb-d7291ebb18a8 + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/32742a1d-a023-457e-b399-4e198d3b2fde method: DELETE response: proto: HTTP/2.0 @@ -381,9 +381,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:04 GMT + - Thu, 12 Dec 2024 14:54:39 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -391,10 +391,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 7ac3947a-6e12-4bf7-855a-36861a033ca4 + - c03b9cea-07a0-415f-b59d-d9721de4287e status: 204 No Content code: 204 - duration: 189.7005ms + duration: 223.728125ms - id: 8 request: proto: HTTP/1.1 @@ -411,7 +411,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/0ca30e8f-43d8-417b-aeaf-904b66182790 + url: https://api.scaleway.com/account/v3/projects/5b1330fa-f0c0-4245-858d-acbe89fca85a method: DELETE response: proto: HTTP/2.0 @@ -428,9 +428,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:05 GMT + - Thu, 12 Dec 2024 14:54:40 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -438,10 +438,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 6626dec1-7cd3-4063-96f5-1cb3574cfd54 + - 399a19fd-e83c-4e92-b240-b546132b286f status: 204 No Content code: 204 - duration: 1.516675625s + duration: 1.455796208s - id: 9 request: proto: HTTP/1.1 @@ -458,7 +458,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/94326abe-6449-4d49-86fb-d7291ebb18a8 + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/32742a1d-a023-457e-b399-4e198d3b2fde method: GET response: proto: HTTP/2.0 @@ -468,7 +468,7 @@ interactions: trailer: {} content_length: 132 uncompressed: false - body: '{"message":"resource is not found","resource":"data source","resource_id":"94326abe-6449-4d49-86fb-d7291ebb18a8","type":"not_found"}' + body: '{"message":"resource is not found","resource":"data source","resource_id":"32742a1d-a023-457e-b399-4e198d3b2fde","type":"not_found"}' headers: Content-Length: - "132" @@ -477,9 +477,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:05 GMT + - Thu, 12 Dec 2024 14:54:41 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -487,7 +487,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 7b0823cc-2da5-4788-8fa6-18a4678a846b + - 5842e2bf-406b-42ad-ac76-8c86be322058 status: 404 Not Found code: 404 - duration: 29.096459ms + duration: 24.829167ms diff --git a/internal/services/cockpit/testdata/cockpit-source-basic-metrics.cassette.yaml b/internal/services/cockpit/testdata/cockpit-source-basic-metrics.cassette.yaml index bfe8aa39cc..b272c188a6 100644 --- a/internal/services/cockpit/testdata/cockpit-source-basic-metrics.cassette.yaml +++ b/internal/services/cockpit/testdata/cockpit-source-basic-metrics.cassette.yaml @@ -29,7 +29,7 @@ interactions: trailer: {} content_length: 248 uncompressed: false - body: '{"created_at":"2024-12-11T11:18:47.722465Z","description":"","id":"2047883c-39e1-43f0-aaca-556dc03fef5b","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:18:47.722465Z"}' + body: '{"created_at":"2024-12-12T14:54:23.052479Z","description":"","id":"f9d7fbd6-c86c-45d8-ad28-963e0a251e0c","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-12T14:54:23.052479Z"}' headers: Content-Length: - "248" @@ -38,9 +38,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:18:47 GMT + - Thu, 12 Dec 2024 14:54:23 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -48,10 +48,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 74a679b1-14ab-4da7-a0f7-0d3dcca9bc53 + - 5fa12e8c-eaca-4edf-9c3f-4df7680a20c3 status: 200 OK code: 200 - duration: 1.009994459s + duration: 977.68625ms - id: 1 request: proto: HTTP/1.1 @@ -68,7 +68,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/2047883c-39e1-43f0-aaca-556dc03fef5b + url: https://api.scaleway.com/account/v3/projects/f9d7fbd6-c86c-45d8-ad28-963e0a251e0c method: GET response: proto: HTTP/2.0 @@ -78,7 +78,7 @@ interactions: trailer: {} content_length: 248 uncompressed: false - body: '{"created_at":"2024-12-11T11:18:47.722465Z","description":"","id":"2047883c-39e1-43f0-aaca-556dc03fef5b","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:18:47.722465Z"}' + body: '{"created_at":"2024-12-12T14:54:23.052479Z","description":"","id":"f9d7fbd6-c86c-45d8-ad28-963e0a251e0c","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-12T14:54:23.052479Z"}' headers: Content-Length: - "248" @@ -87,9 +87,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:18:48 GMT + - Thu, 12 Dec 2024 14:54:23 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -97,10 +97,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 48a8c0b0-dccf-4438-941b-0a33eae894d9 + - 6e23808e-426f-4575-8d17-00f5b23f611d status: 200 OK code: 200 - duration: 138.44175ms + duration: 110.312959ms - id: 2 request: proto: HTTP/1.1 @@ -112,7 +112,7 @@ interactions: host: api.scaleway.com remote_addr: "" request_uri: "" - body: '{"project_id":"2047883c-39e1-43f0-aaca-556dc03fef5b","name":"my-source","type":"metrics","retention_days":31}' + body: '{"project_id":"f9d7fbd6-c86c-45d8-ad28-963e0a251e0c","name":"my-source","type":"metrics","retention_days":31}' form: {} headers: Content-Type: @@ -129,7 +129,7 @@ interactions: trailer: {} content_length: 395 uncompressed: false - body: '{"created_at":"2024-12-11T11:18:48.389338Z","id":"2eeb91de-0859-434e-93dd-9880a668c981","name":"my-source","origin":"custom","project_id":"2047883c-39e1-43f0-aaca-556dc03fef5b","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-11T11:18:48.389338Z","url":"https://2eeb91de-0859-434e-93dd-9880a668c981.metrics.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-12T14:54:23.714975Z","id":"547c1b2d-321c-4a80-8c53-5e58a866b0c3","name":"my-source","origin":"custom","project_id":"f9d7fbd6-c86c-45d8-ad28-963e0a251e0c","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-12T14:54:23.714975Z","url":"https://547c1b2d-321c-4a80-8c53-5e58a866b0c3.metrics.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "395" @@ -138,9 +138,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:18:48 GMT + - Thu, 12 Dec 2024 14:54:23 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -148,10 +148,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 0a5e421e-609e-4aa4-a60d-16870f363586 + - 6c35e620-38ee-4b3e-99f5-fe4a300e3313 status: 200 OK code: 200 - duration: 240.719666ms + duration: 339.527125ms - id: 3 request: proto: HTTP/1.1 @@ -168,7 +168,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/2eeb91de-0859-434e-93dd-9880a668c981 + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/547c1b2d-321c-4a80-8c53-5e58a866b0c3 method: GET response: proto: HTTP/2.0 @@ -178,7 +178,7 @@ interactions: trailer: {} content_length: 395 uncompressed: false - body: '{"created_at":"2024-12-11T11:18:48.389338Z","id":"2eeb91de-0859-434e-93dd-9880a668c981","name":"my-source","origin":"custom","project_id":"2047883c-39e1-43f0-aaca-556dc03fef5b","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-11T11:18:48.389338Z","url":"https://2eeb91de-0859-434e-93dd-9880a668c981.metrics.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-12T14:54:23.714975Z","id":"547c1b2d-321c-4a80-8c53-5e58a866b0c3","name":"my-source","origin":"custom","project_id":"f9d7fbd6-c86c-45d8-ad28-963e0a251e0c","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-12T14:54:23.714975Z","url":"https://547c1b2d-321c-4a80-8c53-5e58a866b0c3.metrics.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "395" @@ -187,9 +187,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:18:48 GMT + - Thu, 12 Dec 2024 14:54:23 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -197,10 +197,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - c3b4c4e7-0e50-4460-92c5-832a5ebda0bb + - ff682e64-a8ad-4a83-96b4-54115e8fc05f status: 200 OK code: 200 - duration: 58.055875ms + duration: 147.375709ms - id: 4 request: proto: HTTP/1.1 @@ -217,7 +217,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/2eeb91de-0859-434e-93dd-9880a668c981 + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/547c1b2d-321c-4a80-8c53-5e58a866b0c3 method: GET response: proto: HTTP/2.0 @@ -227,7 +227,7 @@ interactions: trailer: {} content_length: 395 uncompressed: false - body: '{"created_at":"2024-12-11T11:18:48.389338Z","id":"2eeb91de-0859-434e-93dd-9880a668c981","name":"my-source","origin":"custom","project_id":"2047883c-39e1-43f0-aaca-556dc03fef5b","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-11T11:18:48.389338Z","url":"https://2eeb91de-0859-434e-93dd-9880a668c981.metrics.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-12T14:54:23.714975Z","id":"547c1b2d-321c-4a80-8c53-5e58a866b0c3","name":"my-source","origin":"custom","project_id":"f9d7fbd6-c86c-45d8-ad28-963e0a251e0c","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-12T14:54:23.714975Z","url":"https://547c1b2d-321c-4a80-8c53-5e58a866b0c3.metrics.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "395" @@ -236,9 +236,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:18:48 GMT + - Thu, 12 Dec 2024 14:54:24 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -246,10 +246,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 80712192-72de-4a90-9f1a-79e359c61eab + - 41cade1c-b80d-4e9f-8547-029cf5f8a21c status: 200 OK code: 200 - duration: 70.458167ms + duration: 109.970125ms - id: 5 request: proto: HTTP/1.1 @@ -266,7 +266,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/2047883c-39e1-43f0-aaca-556dc03fef5b + url: https://api.scaleway.com/account/v3/projects/f9d7fbd6-c86c-45d8-ad28-963e0a251e0c method: GET response: proto: HTTP/2.0 @@ -276,7 +276,7 @@ interactions: trailer: {} content_length: 248 uncompressed: false - body: '{"created_at":"2024-12-11T11:18:47.722465Z","description":"","id":"2047883c-39e1-43f0-aaca-556dc03fef5b","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:18:47.722465Z"}' + body: '{"created_at":"2024-12-12T14:54:23.052479Z","description":"","id":"f9d7fbd6-c86c-45d8-ad28-963e0a251e0c","name":"tf_tests_cockpit_datasource_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-12T14:54:23.052479Z"}' headers: Content-Length: - "248" @@ -285,9 +285,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:18:49 GMT + - Thu, 12 Dec 2024 14:54:24 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -295,10 +295,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - ed8fa392-6660-4e65-b278-b1fa8764e643 + - 6ec08702-e303-4b3f-8108-80a63525be85 status: 200 OK code: 200 - duration: 110.647167ms + duration: 146.50125ms - id: 6 request: proto: HTTP/1.1 @@ -315,7 +315,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/2eeb91de-0859-434e-93dd-9880a668c981 + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/547c1b2d-321c-4a80-8c53-5e58a866b0c3 method: GET response: proto: HTTP/2.0 @@ -325,7 +325,7 @@ interactions: trailer: {} content_length: 395 uncompressed: false - body: '{"created_at":"2024-12-11T11:18:48.389338Z","id":"2eeb91de-0859-434e-93dd-9880a668c981","name":"my-source","origin":"custom","project_id":"2047883c-39e1-43f0-aaca-556dc03fef5b","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-11T11:18:48.389338Z","url":"https://2eeb91de-0859-434e-93dd-9880a668c981.metrics.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-12T14:54:23.714975Z","id":"547c1b2d-321c-4a80-8c53-5e58a866b0c3","name":"my-source","origin":"custom","project_id":"f9d7fbd6-c86c-45d8-ad28-963e0a251e0c","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2024-12-12T14:54:23.714975Z","url":"https://547c1b2d-321c-4a80-8c53-5e58a866b0c3.metrics.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "395" @@ -334,9 +334,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:18:49 GMT + - Thu, 12 Dec 2024 14:54:25 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -344,10 +344,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - c2957177-9bf6-40d0-8b16-decc111900d4 + - 709f87bc-a9a7-423e-900e-0c2c25cbb038 status: 200 OK code: 200 - duration: 123.206041ms + duration: 103.497542ms - id: 7 request: proto: HTTP/1.1 @@ -364,7 +364,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/2eeb91de-0859-434e-93dd-9880a668c981 + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/547c1b2d-321c-4a80-8c53-5e58a866b0c3 method: DELETE response: proto: HTTP/2.0 @@ -381,9 +381,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:18:50 GMT + - Thu, 12 Dec 2024 14:54:26 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -391,10 +391,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 1ee842fe-d43f-4454-bfe3-7d72da804849 + - 2f765233-6068-4774-92c6-3530110cd98b status: 204 No Content code: 204 - duration: 515.250833ms + duration: 428.495834ms - id: 8 request: proto: HTTP/1.1 @@ -411,7 +411,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/2047883c-39e1-43f0-aaca-556dc03fef5b + url: https://api.scaleway.com/account/v3/projects/f9d7fbd6-c86c-45d8-ad28-963e0a251e0c method: DELETE response: proto: HTTP/2.0 @@ -428,9 +428,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:18:52 GMT + - Thu, 12 Dec 2024 14:54:27 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -438,10 +438,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 63310986-0642-4db3-9983-8e0c74efa8ed + - 520787bc-c213-4344-99a1-78830c9407b3 status: 204 No Content code: 204 - duration: 1.698535209s + duration: 1.448017958s - id: 9 request: proto: HTTP/1.1 @@ -458,7 +458,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/2eeb91de-0859-434e-93dd-9880a668c981 + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/547c1b2d-321c-4a80-8c53-5e58a866b0c3 method: GET response: proto: HTTP/2.0 @@ -468,7 +468,7 @@ interactions: trailer: {} content_length: 132 uncompressed: false - body: '{"message":"resource is not found","resource":"data source","resource_id":"2eeb91de-0859-434e-93dd-9880a668c981","type":"not_found"}' + body: '{"message":"resource is not found","resource":"data source","resource_id":"547c1b2d-321c-4a80-8c53-5e58a866b0c3","type":"not_found"}' headers: Content-Length: - "132" @@ -477,9 +477,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:18:52 GMT + - Thu, 12 Dec 2024 14:54:27 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -487,7 +487,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 66b6f59b-382f-4504-aa5a-f41b48ed8b57 + - b759f7b2-eeae-4351-a230-4813e34e82e2 status: 404 Not Found code: 404 - duration: 26.69175ms + duration: 26.838917ms diff --git a/internal/services/cockpit/testdata/cockpit-source-update.cassette.yaml b/internal/services/cockpit/testdata/cockpit-source-update.cassette.yaml index 7bd01d53ac..a665a7cbc4 100644 --- a/internal/services/cockpit/testdata/cockpit-source-update.cassette.yaml +++ b/internal/services/cockpit/testdata/cockpit-source-update.cassette.yaml @@ -29,7 +29,7 @@ interactions: trailer: {} content_length: 245 uncompressed: false - body: '{"created_at":"2024-12-11T11:19:25.028389Z","description":"","id":"7470157d-f669-482c-ab98-6ee099955db1","name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:19:25.028389Z"}' + body: '{"created_at":"2024-12-12T14:54:56.667579Z","description":"","id":"90abc510-f0b3-4f25-bd2a-eb22adc31f40","name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-12T14:54:56.667579Z"}' headers: Content-Length: - "245" @@ -38,9 +38,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:25 GMT + - Thu, 12 Dec 2024 14:54:56 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -48,10 +48,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 719dbe11-f5ff-459b-aa26-95e69d49acd5 + - c5b9eef3-7d8c-4a50-9029-a250e08b0d6d status: 200 OK code: 200 - duration: 440.846667ms + duration: 824.167417ms - id: 1 request: proto: HTTP/1.1 @@ -68,7 +68,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/7470157d-f669-482c-ab98-6ee099955db1 + url: https://api.scaleway.com/account/v3/projects/90abc510-f0b3-4f25-bd2a-eb22adc31f40 method: GET response: proto: HTTP/2.0 @@ -78,7 +78,7 @@ interactions: trailer: {} content_length: 245 uncompressed: false - body: '{"created_at":"2024-12-11T11:19:25.028389Z","description":"","id":"7470157d-f669-482c-ab98-6ee099955db1","name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:19:25.028389Z"}' + body: '{"created_at":"2024-12-12T14:54:56.667579Z","description":"","id":"90abc510-f0b3-4f25-bd2a-eb22adc31f40","name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-12T14:54:56.667579Z"}' headers: Content-Length: - "245" @@ -87,9 +87,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:25 GMT + - Thu, 12 Dec 2024 14:54:57 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -97,10 +97,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 5276e4b8-4ae0-4846-95b3-356c53647b10 + - 0cf8e8a1-8313-4b26-8eb3-b924adc568ce status: 200 OK code: 200 - duration: 110.121416ms + duration: 210.0565ms - id: 2 request: proto: HTTP/1.1 @@ -112,7 +112,7 @@ interactions: host: api.scaleway.com remote_addr: "" request_uri: "" - body: '{"project_id":"7470157d-f669-482c-ab98-6ee099955db1","name":"initial-name","type":"logs","retention_days":10}' + body: '{"project_id":"90abc510-f0b3-4f25-bd2a-eb22adc31f40","name":"initial-name","type":"logs","retention_days":10}' form: {} headers: Content-Type: @@ -129,7 +129,7 @@ interactions: trailer: {} content_length: 392 uncompressed: false - body: '{"created_at":"2024-12-11T11:19:25.615389Z","id":"cc640233-a6be-4d19-8cba-75c3523ad8db","name":"initial-name","origin":"custom","project_id":"7470157d-f669-482c-ab98-6ee099955db1","region":"fr-par","retention_days":10,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:25.615389Z","url":"https://cc640233-a6be-4d19-8cba-75c3523ad8db.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-12T14:54:57.467145Z","id":"7e47c93a-5398-4e28-aff5-2d3ad5b74a55","name":"initial-name","origin":"custom","project_id":"90abc510-f0b3-4f25-bd2a-eb22adc31f40","region":"fr-par","retention_days":10,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-12T14:54:57.467145Z","url":"https://7e47c93a-5398-4e28-aff5-2d3ad5b74a55.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "392" @@ -138,9 +138,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:25 GMT + - Thu, 12 Dec 2024 14:54:57 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -148,10 +148,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 2a5dbf85-f2b5-4677-861c-f8cc0ebe0aee + - bdd9f51d-d507-4876-b96e-747748fe20dd status: 200 OK code: 200 - duration: 245.609542ms + duration: 340.680542ms - id: 3 request: proto: HTTP/1.1 @@ -168,7 +168,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/cc640233-a6be-4d19-8cba-75c3523ad8db + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/7e47c93a-5398-4e28-aff5-2d3ad5b74a55 method: GET response: proto: HTTP/2.0 @@ -178,7 +178,7 @@ interactions: trailer: {} content_length: 392 uncompressed: false - body: '{"created_at":"2024-12-11T11:19:25.615389Z","id":"cc640233-a6be-4d19-8cba-75c3523ad8db","name":"initial-name","origin":"custom","project_id":"7470157d-f669-482c-ab98-6ee099955db1","region":"fr-par","retention_days":10,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:25.615389Z","url":"https://cc640233-a6be-4d19-8cba-75c3523ad8db.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-12T14:54:57.467145Z","id":"7e47c93a-5398-4e28-aff5-2d3ad5b74a55","name":"initial-name","origin":"custom","project_id":"90abc510-f0b3-4f25-bd2a-eb22adc31f40","region":"fr-par","retention_days":10,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-12T14:54:57.467145Z","url":"https://7e47c93a-5398-4e28-aff5-2d3ad5b74a55.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "392" @@ -187,9 +187,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:25 GMT + - Thu, 12 Dec 2024 14:54:57 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -197,10 +197,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 98a6a433-3fee-463f-911f-6944150c6724 + - 0575b83f-2bd7-44d5-a58f-2aa95e17d78a status: 200 OK code: 200 - duration: 87.351417ms + duration: 77.383583ms - id: 4 request: proto: HTTP/1.1 @@ -217,7 +217,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/cc640233-a6be-4d19-8cba-75c3523ad8db + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/7e47c93a-5398-4e28-aff5-2d3ad5b74a55 method: GET response: proto: HTTP/2.0 @@ -227,7 +227,7 @@ interactions: trailer: {} content_length: 392 uncompressed: false - body: '{"created_at":"2024-12-11T11:19:25.615389Z","id":"cc640233-a6be-4d19-8cba-75c3523ad8db","name":"initial-name","origin":"custom","project_id":"7470157d-f669-482c-ab98-6ee099955db1","region":"fr-par","retention_days":10,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:25.615389Z","url":"https://cc640233-a6be-4d19-8cba-75c3523ad8db.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-12T14:54:57.467145Z","id":"7e47c93a-5398-4e28-aff5-2d3ad5b74a55","name":"initial-name","origin":"custom","project_id":"90abc510-f0b3-4f25-bd2a-eb22adc31f40","region":"fr-par","retention_days":10,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-12T14:54:57.467145Z","url":"https://7e47c93a-5398-4e28-aff5-2d3ad5b74a55.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "392" @@ -236,9 +236,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:25 GMT + - Thu, 12 Dec 2024 14:54:57 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -246,10 +246,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 3f252367-a3d4-45b8-a847-cd85440366e6 + - 05f75ea4-9177-4b64-922a-3384893084cb status: 200 OK code: 200 - duration: 164.892833ms + duration: 86.330292ms - id: 5 request: proto: HTTP/1.1 @@ -266,7 +266,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/7470157d-f669-482c-ab98-6ee099955db1 + url: https://api.scaleway.com/account/v3/projects/90abc510-f0b3-4f25-bd2a-eb22adc31f40 method: GET response: proto: HTTP/2.0 @@ -276,7 +276,7 @@ interactions: trailer: {} content_length: 245 uncompressed: false - body: '{"created_at":"2024-12-11T11:19:25.028389Z","description":"","id":"7470157d-f669-482c-ab98-6ee099955db1","name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:19:25.028389Z"}' + body: '{"created_at":"2024-12-12T14:54:56.667579Z","description":"","id":"90abc510-f0b3-4f25-bd2a-eb22adc31f40","name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-12T14:54:56.667579Z"}' headers: Content-Length: - "245" @@ -285,9 +285,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:26 GMT + - Thu, 12 Dec 2024 14:54:58 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -295,10 +295,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 110e969e-eec4-4828-b785-6d8c84bdac40 + - 5b560bb1-8757-4c54-bf2b-3d8275e50db6 status: 200 OK code: 200 - duration: 115.151125ms + duration: 127.175417ms - id: 6 request: proto: HTTP/1.1 @@ -315,7 +315,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/cc640233-a6be-4d19-8cba-75c3523ad8db + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/7e47c93a-5398-4e28-aff5-2d3ad5b74a55 method: GET response: proto: HTTP/2.0 @@ -325,7 +325,7 @@ interactions: trailer: {} content_length: 392 uncompressed: false - body: '{"created_at":"2024-12-11T11:19:25.615389Z","id":"cc640233-a6be-4d19-8cba-75c3523ad8db","name":"initial-name","origin":"custom","project_id":"7470157d-f669-482c-ab98-6ee099955db1","region":"fr-par","retention_days":10,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:25.615389Z","url":"https://cc640233-a6be-4d19-8cba-75c3523ad8db.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-12T14:54:57.467145Z","id":"7e47c93a-5398-4e28-aff5-2d3ad5b74a55","name":"initial-name","origin":"custom","project_id":"90abc510-f0b3-4f25-bd2a-eb22adc31f40","region":"fr-par","retention_days":10,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-12T14:54:57.467145Z","url":"https://7e47c93a-5398-4e28-aff5-2d3ad5b74a55.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "392" @@ -334,9 +334,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:26 GMT + - Thu, 12 Dec 2024 14:54:58 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -344,10 +344,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 3c49ac3e-0053-4bb8-a129-1b1d7a7e0fc4 + - 1a736053-0743-4d34-8a59-5cfc7bcc89ef status: 200 OK code: 200 - duration: 173.944459ms + duration: 139.368209ms - id: 7 request: proto: HTTP/1.1 @@ -364,7 +364,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/7470157d-f669-482c-ab98-6ee099955db1 + url: https://api.scaleway.com/account/v3/projects/90abc510-f0b3-4f25-bd2a-eb22adc31f40 method: GET response: proto: HTTP/2.0 @@ -374,7 +374,7 @@ interactions: trailer: {} content_length: 245 uncompressed: false - body: '{"created_at":"2024-12-11T11:19:25.028389Z","description":"","id":"7470157d-f669-482c-ab98-6ee099955db1","name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:19:25.028389Z"}' + body: '{"created_at":"2024-12-12T14:54:56.667579Z","description":"","id":"90abc510-f0b3-4f25-bd2a-eb22adc31f40","name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-12T14:54:56.667579Z"}' headers: Content-Length: - "245" @@ -383,9 +383,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:27 GMT + - Thu, 12 Dec 2024 14:54:59 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -393,10 +393,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - a8827418-962d-4c4a-8681-5b076a0c56ea + - a90afdbf-22dd-44c4-bc2a-71e239461032 status: 200 OK code: 200 - duration: 506.308916ms + duration: 149.129792ms - id: 8 request: proto: HTTP/1.1 @@ -413,7 +413,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/cc640233-a6be-4d19-8cba-75c3523ad8db + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/7e47c93a-5398-4e28-aff5-2d3ad5b74a55 method: GET response: proto: HTTP/2.0 @@ -423,7 +423,7 @@ interactions: trailer: {} content_length: 392 uncompressed: false - body: '{"created_at":"2024-12-11T11:19:25.615389Z","id":"cc640233-a6be-4d19-8cba-75c3523ad8db","name":"initial-name","origin":"custom","project_id":"7470157d-f669-482c-ab98-6ee099955db1","region":"fr-par","retention_days":10,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:25.615389Z","url":"https://cc640233-a6be-4d19-8cba-75c3523ad8db.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-12T14:54:57.467145Z","id":"7e47c93a-5398-4e28-aff5-2d3ad5b74a55","name":"initial-name","origin":"custom","project_id":"90abc510-f0b3-4f25-bd2a-eb22adc31f40","region":"fr-par","retention_days":10,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-12T14:54:57.467145Z","url":"https://7e47c93a-5398-4e28-aff5-2d3ad5b74a55.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "392" @@ -432,9 +432,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:28 GMT + - Thu, 12 Dec 2024 14:54:59 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -442,10 +442,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - b9e93424-3d9a-4ffe-9fb4-f0b34401b67a + - f5836d90-85c2-42f4-aae1-553bd76d4da6 status: 200 OK code: 200 - duration: 67.438334ms + duration: 59.458666ms - id: 9 request: proto: HTTP/1.1 @@ -464,7 +464,7 @@ interactions: - application/json User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/cc640233-a6be-4d19-8cba-75c3523ad8db + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/7e47c93a-5398-4e28-aff5-2d3ad5b74a55 method: PATCH response: proto: HTTP/2.0 @@ -474,7 +474,7 @@ interactions: trailer: {} content_length: 392 uncompressed: false - body: '{"created_at":"2024-12-11T11:19:25.615389Z","id":"cc640233-a6be-4d19-8cba-75c3523ad8db","name":"initial-name","origin":"custom","project_id":"7470157d-f669-482c-ab98-6ee099955db1","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:25.615389Z","url":"https://cc640233-a6be-4d19-8cba-75c3523ad8db.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-12T14:54:57.467145Z","id":"7e47c93a-5398-4e28-aff5-2d3ad5b74a55","name":"initial-name","origin":"custom","project_id":"90abc510-f0b3-4f25-bd2a-eb22adc31f40","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-12T14:54:57.467145Z","url":"https://7e47c93a-5398-4e28-aff5-2d3ad5b74a55.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "392" @@ -483,9 +483,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:28 GMT + - Thu, 12 Dec 2024 14:55:00 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -493,10 +493,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 93ec0930-3df7-4b15-8de5-a457a6b548dd + - ca21ee3c-2607-4771-aa8e-7ee216bec009 status: 200 OK code: 200 - duration: 91.717959ms + duration: 98.252958ms - id: 10 request: proto: HTTP/1.1 @@ -513,7 +513,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/cc640233-a6be-4d19-8cba-75c3523ad8db + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/7e47c93a-5398-4e28-aff5-2d3ad5b74a55 method: GET response: proto: HTTP/2.0 @@ -523,7 +523,7 @@ interactions: trailer: {} content_length: 392 uncompressed: false - body: '{"created_at":"2024-12-11T11:19:25.615389Z","id":"cc640233-a6be-4d19-8cba-75c3523ad8db","name":"initial-name","origin":"custom","project_id":"7470157d-f669-482c-ab98-6ee099955db1","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:25.615389Z","url":"https://cc640233-a6be-4d19-8cba-75c3523ad8db.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-12T14:54:57.467145Z","id":"7e47c93a-5398-4e28-aff5-2d3ad5b74a55","name":"initial-name","origin":"custom","project_id":"90abc510-f0b3-4f25-bd2a-eb22adc31f40","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-12T14:54:57.467145Z","url":"https://7e47c93a-5398-4e28-aff5-2d3ad5b74a55.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "392" @@ -532,9 +532,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:29 GMT + - Thu, 12 Dec 2024 14:55:00 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -542,10 +542,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - c2968326-cdcb-4d63-8eb1-a42299990888 + - d35ab9b1-d5eb-4ae8-b446-1fd6e8099b0a status: 200 OK code: 200 - duration: 106.025333ms + duration: 113.277125ms - id: 11 request: proto: HTTP/1.1 @@ -562,7 +562,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/7470157d-f669-482c-ab98-6ee099955db1 + url: https://api.scaleway.com/account/v3/projects/90abc510-f0b3-4f25-bd2a-eb22adc31f40 method: GET response: proto: HTTP/2.0 @@ -572,7 +572,7 @@ interactions: trailer: {} content_length: 245 uncompressed: false - body: '{"created_at":"2024-12-11T11:19:25.028389Z","description":"","id":"7470157d-f669-482c-ab98-6ee099955db1","name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:19:25.028389Z"}' + body: '{"created_at":"2024-12-12T14:54:56.667579Z","description":"","id":"90abc510-f0b3-4f25-bd2a-eb22adc31f40","name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-12T14:54:56.667579Z"}' headers: Content-Length: - "245" @@ -581,9 +581,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:29 GMT + - Thu, 12 Dec 2024 14:55:01 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -591,10 +591,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 73c3d759-a9f9-41ce-a70a-d2f3f31d4d77 + - 20be134a-e3f6-4a3b-b287-fc38a33a2c32 status: 200 OK code: 200 - duration: 107.805209ms + duration: 124.8935ms - id: 12 request: proto: HTTP/1.1 @@ -611,7 +611,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/cc640233-a6be-4d19-8cba-75c3523ad8db + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/7e47c93a-5398-4e28-aff5-2d3ad5b74a55 method: GET response: proto: HTTP/2.0 @@ -621,7 +621,7 @@ interactions: trailer: {} content_length: 392 uncompressed: false - body: '{"created_at":"2024-12-11T11:19:25.615389Z","id":"cc640233-a6be-4d19-8cba-75c3523ad8db","name":"initial-name","origin":"custom","project_id":"7470157d-f669-482c-ab98-6ee099955db1","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:25.615389Z","url":"https://cc640233-a6be-4d19-8cba-75c3523ad8db.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-12T14:54:57.467145Z","id":"7e47c93a-5398-4e28-aff5-2d3ad5b74a55","name":"initial-name","origin":"custom","project_id":"90abc510-f0b3-4f25-bd2a-eb22adc31f40","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-12T14:54:57.467145Z","url":"https://7e47c93a-5398-4e28-aff5-2d3ad5b74a55.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "392" @@ -630,9 +630,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:30 GMT + - Thu, 12 Dec 2024 14:55:01 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -640,10 +640,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 8fe9288b-79eb-4ab0-8cf5-800dce72f0bf + - 075d3256-01c3-4ad6-a9a9-1b79a2db0dbe status: 200 OK code: 200 - duration: 67.990791ms + duration: 97.682875ms - id: 13 request: proto: HTTP/1.1 @@ -660,7 +660,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/7470157d-f669-482c-ab98-6ee099955db1 + url: https://api.scaleway.com/account/v3/projects/90abc510-f0b3-4f25-bd2a-eb22adc31f40 method: GET response: proto: HTTP/2.0 @@ -670,7 +670,7 @@ interactions: trailer: {} content_length: 245 uncompressed: false - body: '{"created_at":"2024-12-11T11:19:25.028389Z","description":"","id":"7470157d-f669-482c-ab98-6ee099955db1","name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:19:25.028389Z"}' + body: '{"created_at":"2024-12-12T14:54:56.667579Z","description":"","id":"90abc510-f0b3-4f25-bd2a-eb22adc31f40","name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-12T14:54:56.667579Z"}' headers: Content-Length: - "245" @@ -679,9 +679,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:30 GMT + - Thu, 12 Dec 2024 14:55:02 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -689,10 +689,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 16364d8f-2dff-495e-868f-62baac705351 + - 0e266784-4fce-420b-b43e-0f2fc8ca4437 status: 200 OK code: 200 - duration: 109.313083ms + duration: 136.970791ms - id: 14 request: proto: HTTP/1.1 @@ -709,7 +709,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/cc640233-a6be-4d19-8cba-75c3523ad8db + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/7e47c93a-5398-4e28-aff5-2d3ad5b74a55 method: GET response: proto: HTTP/2.0 @@ -719,7 +719,7 @@ interactions: trailer: {} content_length: 392 uncompressed: false - body: '{"created_at":"2024-12-11T11:19:25.615389Z","id":"cc640233-a6be-4d19-8cba-75c3523ad8db","name":"initial-name","origin":"custom","project_id":"7470157d-f669-482c-ab98-6ee099955db1","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:25.615389Z","url":"https://cc640233-a6be-4d19-8cba-75c3523ad8db.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-12T14:54:57.467145Z","id":"7e47c93a-5398-4e28-aff5-2d3ad5b74a55","name":"initial-name","origin":"custom","project_id":"90abc510-f0b3-4f25-bd2a-eb22adc31f40","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-12T14:54:57.467145Z","url":"https://7e47c93a-5398-4e28-aff5-2d3ad5b74a55.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "392" @@ -728,9 +728,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:30 GMT + - Thu, 12 Dec 2024 14:55:02 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -738,10 +738,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 94a19102-1a8d-45c1-bbb3-bda97be6dc32 + - 30991a50-80c2-4490-ba70-783329dee8c0 status: 200 OK code: 200 - duration: 58.359916ms + duration: 101.804791ms - id: 15 request: proto: HTTP/1.1 @@ -758,7 +758,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/cc640233-a6be-4d19-8cba-75c3523ad8db + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/7e47c93a-5398-4e28-aff5-2d3ad5b74a55 method: DELETE response: proto: HTTP/2.0 @@ -775,9 +775,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:31 GMT + - Thu, 12 Dec 2024 14:55:03 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -785,10 +785,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - f695a017-5143-4b00-b842-ad4accd6142a + - b69c9f38-f560-49b9-8602-e6595e0c8191 status: 204 No Content code: 204 - duration: 244.260458ms + duration: 197.867459ms - id: 16 request: proto: HTTP/1.1 @@ -800,7 +800,7 @@ interactions: host: api.scaleway.com remote_addr: "" request_uri: "" - body: '{"project_id":"7470157d-f669-482c-ab98-6ee099955db1","name":"updated-name","type":"logs","retention_days":20}' + body: '{"project_id":"90abc510-f0b3-4f25-bd2a-eb22adc31f40","name":"updated-name","type":"logs","retention_days":20}' form: {} headers: Content-Type: @@ -817,7 +817,7 @@ interactions: trailer: {} content_length: 392 uncompressed: false - body: '{"created_at":"2024-12-11T11:19:31.920756Z","id":"f1fb05a7-7d6b-48d6-8dff-22e8041fdd81","name":"updated-name","origin":"custom","project_id":"7470157d-f669-482c-ab98-6ee099955db1","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:31.920756Z","url":"https://f1fb05a7-7d6b-48d6-8dff-22e8041fdd81.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-12T14:55:03.624376Z","id":"819c2924-d6e6-4b2a-b16a-64a43ba222f6","name":"updated-name","origin":"custom","project_id":"90abc510-f0b3-4f25-bd2a-eb22adc31f40","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-12T14:55:03.624376Z","url":"https://819c2924-d6e6-4b2a-b16a-64a43ba222f6.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "392" @@ -826,9 +826,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:31 GMT + - Thu, 12 Dec 2024 14:55:03 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -836,10 +836,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 38ce8ef7-e1f6-4476-af19-b480445f6142 + - c31e50e9-3139-4ba9-ae4f-241111a3d52f status: 200 OK code: 200 - duration: 169.012917ms + duration: 735.39425ms - id: 17 request: proto: HTTP/1.1 @@ -856,7 +856,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/f1fb05a7-7d6b-48d6-8dff-22e8041fdd81 + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/819c2924-d6e6-4b2a-b16a-64a43ba222f6 method: GET response: proto: HTTP/2.0 @@ -866,7 +866,7 @@ interactions: trailer: {} content_length: 392 uncompressed: false - body: '{"created_at":"2024-12-11T11:19:31.920756Z","id":"f1fb05a7-7d6b-48d6-8dff-22e8041fdd81","name":"updated-name","origin":"custom","project_id":"7470157d-f669-482c-ab98-6ee099955db1","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:31.920756Z","url":"https://f1fb05a7-7d6b-48d6-8dff-22e8041fdd81.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-12T14:55:03.624376Z","id":"819c2924-d6e6-4b2a-b16a-64a43ba222f6","name":"updated-name","origin":"custom","project_id":"90abc510-f0b3-4f25-bd2a-eb22adc31f40","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-12T14:55:03.624376Z","url":"https://819c2924-d6e6-4b2a-b16a-64a43ba222f6.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "392" @@ -875,9 +875,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:31 GMT + - Thu, 12 Dec 2024 14:55:04 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -885,10 +885,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 74760f94-ddf2-455d-90b1-dd067a083850 + - e3536826-706b-4fd9-a3ec-b4e8de60e51b status: 200 OK code: 200 - duration: 65.962708ms + duration: 83.334875ms - id: 18 request: proto: HTTP/1.1 @@ -905,7 +905,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/f1fb05a7-7d6b-48d6-8dff-22e8041fdd81 + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/819c2924-d6e6-4b2a-b16a-64a43ba222f6 method: GET response: proto: HTTP/2.0 @@ -915,7 +915,7 @@ interactions: trailer: {} content_length: 392 uncompressed: false - body: '{"created_at":"2024-12-11T11:19:31.920756Z","id":"f1fb05a7-7d6b-48d6-8dff-22e8041fdd81","name":"updated-name","origin":"custom","project_id":"7470157d-f669-482c-ab98-6ee099955db1","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:31.920756Z","url":"https://f1fb05a7-7d6b-48d6-8dff-22e8041fdd81.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-12T14:55:03.624376Z","id":"819c2924-d6e6-4b2a-b16a-64a43ba222f6","name":"updated-name","origin":"custom","project_id":"90abc510-f0b3-4f25-bd2a-eb22adc31f40","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-12T14:55:03.624376Z","url":"https://819c2924-d6e6-4b2a-b16a-64a43ba222f6.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "392" @@ -924,9 +924,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:32 GMT + - Thu, 12 Dec 2024 14:55:04 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -934,10 +934,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 6b43d6ce-3313-4a87-bf90-fffa5f07d6da + - 094b6e1b-62fb-4ca8-ab18-b0176de9c91c status: 200 OK code: 200 - duration: 74.214375ms + duration: 64.457291ms - id: 19 request: proto: HTTP/1.1 @@ -954,7 +954,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/7470157d-f669-482c-ab98-6ee099955db1 + url: https://api.scaleway.com/account/v3/projects/90abc510-f0b3-4f25-bd2a-eb22adc31f40 method: GET response: proto: HTTP/2.0 @@ -964,7 +964,7 @@ interactions: trailer: {} content_length: 245 uncompressed: false - body: '{"created_at":"2024-12-11T11:19:25.028389Z","description":"","id":"7470157d-f669-482c-ab98-6ee099955db1","name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-11T11:19:25.028389Z"}' + body: '{"created_at":"2024-12-12T14:54:56.667579Z","description":"","id":"90abc510-f0b3-4f25-bd2a-eb22adc31f40","name":"tf_tests_cockpit_source_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-12-12T14:54:56.667579Z"}' headers: Content-Length: - "245" @@ -973,9 +973,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:32 GMT + - Thu, 12 Dec 2024 14:55:05 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -983,10 +983,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 40c56a01-3a35-4d08-90c3-3d33bf78c071 + - 23d297aa-9376-4459-8306-e9464e655d60 status: 200 OK code: 200 - duration: 99.369834ms + duration: 145.275958ms - id: 20 request: proto: HTTP/1.1 @@ -1003,7 +1003,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/f1fb05a7-7d6b-48d6-8dff-22e8041fdd81 + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/819c2924-d6e6-4b2a-b16a-64a43ba222f6 method: GET response: proto: HTTP/2.0 @@ -1013,7 +1013,7 @@ interactions: trailer: {} content_length: 392 uncompressed: false - body: '{"created_at":"2024-12-11T11:19:31.920756Z","id":"f1fb05a7-7d6b-48d6-8dff-22e8041fdd81","name":"updated-name","origin":"custom","project_id":"7470157d-f669-482c-ab98-6ee099955db1","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-11T11:19:31.920756Z","url":"https://f1fb05a7-7d6b-48d6-8dff-22e8041fdd81.logs.cockpit.fr-par.scw.cloud"}' + body: '{"created_at":"2024-12-12T14:55:03.624376Z","id":"819c2924-d6e6-4b2a-b16a-64a43ba222f6","name":"updated-name","origin":"custom","project_id":"90abc510-f0b3-4f25-bd2a-eb22adc31f40","region":"fr-par","retention_days":20,"synchronized_with_grafana":false,"type":"logs","updated_at":"2024-12-12T14:55:03.624376Z","url":"https://819c2924-d6e6-4b2a-b16a-64a43ba222f6.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "392" @@ -1022,9 +1022,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:33 GMT + - Thu, 12 Dec 2024 14:55:05 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1032,10 +1032,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - e29bb7b3-79ae-45c0-96dd-576d7e9f0f33 + - c068ef96-15e2-4f93-a47f-858d4a28a906 status: 200 OK code: 200 - duration: 69.411291ms + duration: 261.626417ms - id: 21 request: proto: HTTP/1.1 @@ -1052,7 +1052,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/f1fb05a7-7d6b-48d6-8dff-22e8041fdd81 + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/819c2924-d6e6-4b2a-b16a-64a43ba222f6 method: DELETE response: proto: HTTP/2.0 @@ -1069,9 +1069,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:33 GMT + - Thu, 12 Dec 2024 14:55:06 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1079,10 +1079,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - cf7e0166-1719-435d-bb61-755540e60f5f + - d4b3876d-945c-4bbf-b051-39d7b74bf974 status: 204 No Content code: 204 - duration: 259.607541ms + duration: 338.650667ms - id: 22 request: proto: HTTP/1.1 @@ -1099,7 +1099,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/7470157d-f669-482c-ab98-6ee099955db1 + url: https://api.scaleway.com/account/v3/projects/90abc510-f0b3-4f25-bd2a-eb22adc31f40 method: DELETE response: proto: HTTP/2.0 @@ -1116,9 +1116,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:35 GMT + - Thu, 12 Dec 2024 14:55:08 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1126,10 +1126,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - c9c80fb4-86f6-4841-a6fb-9b11e762dd2b + - a47c4842-44d0-496b-9db9-f2d84dec57ed status: 204 No Content code: 204 - duration: 1.4883245s + duration: 1.587281166s - id: 23 request: proto: HTTP/1.1 @@ -1146,7 +1146,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/f1fb05a7-7d6b-48d6-8dff-22e8041fdd81 + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/819c2924-d6e6-4b2a-b16a-64a43ba222f6 method: GET response: proto: HTTP/2.0 @@ -1156,7 +1156,7 @@ interactions: trailer: {} content_length: 132 uncompressed: false - body: '{"message":"resource is not found","resource":"data source","resource_id":"f1fb05a7-7d6b-48d6-8dff-22e8041fdd81","type":"not_found"}' + body: '{"message":"resource is not found","resource":"data source","resource_id":"819c2924-d6e6-4b2a-b16a-64a43ba222f6","type":"not_found"}' headers: Content-Length: - "132" @@ -1165,9 +1165,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:35 GMT + - Thu, 12 Dec 2024 14:55:08 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1175,7 +1175,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - e1c6c713-0c4e-4fca-9d68-53fa035874c2 + - 40f2f1e4-e5e1-47d7-a0a9-ee8aa6bba8da status: 404 Not Found code: 404 - duration: 23.219917ms + duration: 31.858167ms