diff --git a/internal/services/cockpit/cockpit.go b/internal/services/cockpit/cockpit.go index 11870f6f35..7090fbdb74 100644 --- a/internal/services/cockpit/cockpit.go +++ b/internal/services/cockpit/cockpit.go @@ -25,45 +25,46 @@ func ResourceCockpit() *schema.Resource { Type: schema.TypeString, Optional: true, Default: "free", - Description: "Name or ID of the plan", + Description: "[DEPRECATED] The plan field is deprecated. Any modification or selection will have no effect.", + Deprecated: "The 'plan' attribute is deprecated and no longer has any effect. Future updates will remove this attribute entirely.", }, "plan_id": { Type: schema.TypeString, Computed: true, - Description: "The plan ID of the cockpit", - Deprecated: "Please use Name only", + Description: "[DEPRECATED] The plan ID of the cockpit. This field is no longer relevant.", + Deprecated: "The 'plan_id' attribute is deprecated and will be removed in a future release.", }, "endpoints": { Type: schema.TypeList, Computed: true, - Description: "Endpoints", - Deprecated: "Please use `scaleway_cockpit_source` instead", + Description: "[DEPRECATED] Endpoints list. Please use 'scaleway_cockpit_source' instead.", + Deprecated: "Use 'scaleway_cockpit_source' instead of 'endpoints'. This field will be removed in future releases.", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "metrics_url": { Type: schema.TypeString, Computed: true, - Description: "The metrics URL", + Description: "The metrics URL.", }, "logs_url": { Type: schema.TypeString, Computed: true, - Description: "The logs URL", + Description: "The logs URL.", }, "alertmanager_url": { Type: schema.TypeString, Computed: true, - Description: "The alertmanager URL", + Description: "The alertmanager URL.", }, "grafana_url": { Type: schema.TypeString, Computed: true, - Description: "The grafana URL", + Description: "The grafana URL.", }, "traces_url": { Type: schema.TypeString, Computed: true, - Description: "The traces URL", + Description: "The traces URL.", }, }, }, @@ -71,7 +72,7 @@ func ResourceCockpit() *schema.Resource { "push_url": { Type: schema.TypeList, Computed: true, - Description: "Push_url", + Description: "[DEPRECATED] Push_url", Deprecated: "Please use `scaleway_cockpit_source` instead", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ @@ -93,48 +94,22 @@ func ResourceCockpit() *schema.Resource { } func ResourceCockpitCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - api, err := NewGlobalAPI(m) - if err != nil { - return diag.FromErr(err) - } - projectID := d.Get("project_id").(string) - - if targetPlanI, ok := d.GetOk("plan"); ok { - targetPlan := targetPlanI.(string) - - plans, err := api.ListPlans(&cockpit.GlobalAPIListPlansRequest{}, scw.WithContext(ctx), scw.WithAllPages()) //nolint:staticcheck - if err != nil { - return diag.FromErr(err) - } - - var planName string - - for _, plan := range plans.Plans { - if plan.Name.String() == targetPlan { - planName = plan.Name.String() - - break - } - } - - if planName == "" { - return diag.Errorf("plan %s not found", targetPlan) - } - - _, err = api.SelectPlan(&cockpit.GlobalAPISelectPlanRequest{ //nolint:staticcheck - ProjectID: projectID, - PlanName: cockpit.PlanName(planName), - }, scw.WithContext(ctx)) + if projectID == "" { + _, err := getDefaultProjectID(ctx, m) if err != nil { return diag.FromErr(err) } } + d.SetId(projectID) + return ResourceCockpitRead(ctx, d, m) } func ResourceCockpitRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { + var diags diag.Diagnostics + api, err := NewGlobalAPI(m) if err != nil { return diag.FromErr(err) @@ -153,15 +128,14 @@ func ResourceCockpitRead(ctx context.Context, d *schema.ResourceData, m interfac } } - res, err := api.GetCurrentPlan(&cockpit.GlobalAPIGetCurrentPlanRequest{ //nolint:staticcheck - ProjectID: projectID, - }, scw.WithContext(ctx)) - if err != nil { - return diag.FromErr(err) - } + diags = append(diags, diag.Diagnostic{ + Severity: diag.Warning, + Summary: "Deprecated attribute: 'plan'", + Detail: "The 'plan' attribute is deprecated and will be removed in a future version. Any changes to this attribute will have no effect.", + }) - _ = d.Set("plan", res.Name.String()) - _ = d.Set("plan_id", res.Name.String()) + _ = d.Set("plan", d.Get("plan")) + _ = d.Set("plan_id", "") dataSourcesRes, err := regionalAPI.ListDataSources(&cockpit.RegionalAPIListDataSourcesRequest{ Region: region, @@ -203,54 +177,26 @@ func ResourceCockpitRead(ctx context.Context, d *schema.ResourceData, m interfac _ = d.Set("endpoints", endpoints) _ = d.Set("push_url", createCockpitPushURLList(endpoints)) - return nil + return diags } func ResourceCockpitUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - api, err := NewGlobalAPI(m) - if err != nil { - return diag.FromErr(err) - } - - projectID := d.Id() - + diags := diag.Diagnostics{} if d.HasChange("plan") { - targetPlan := cockpit.PlanNameFree.String() - if targetPlanI, ok := d.GetOk("plan"); ok { - targetPlan = targetPlanI.(string) - } - - plans, err := api.ListPlans(&cockpit.GlobalAPIListPlansRequest{}, scw.WithContext(ctx), scw.WithAllPages()) //nolint:staticcheck - if err != nil { - return diag.FromErr(err) - } - - var planName string - - for _, plan := range plans.Plans { - if plan.Name.String() == targetPlan { - planName = plan.Name.String() - - break - } - } - - if planName == "" { - return diag.Errorf("plan %s not found", targetPlan) - } - - _, err = api.SelectPlan(&cockpit.GlobalAPISelectPlanRequest{ //nolint:staticcheck - ProjectID: projectID, - PlanName: cockpit.PlanName(planName), - }, scw.WithContext(ctx)) - if err != nil { - return diag.FromErr(err) - } + diags = append(diags, diag.Diagnostic{ + Severity: diag.Warning, + Summary: "Deprecated attribute update: 'plan'", + Detail: "Updating 'plan' has no effect as it is deprecated and will be removed in a future version.", + }) } - return ResourceCockpitRead(ctx, d, m) + diags = append(diags, ResourceCockpitRead(ctx, d, m)...) + + return diags } -func ResourceCockpitDelete(_ context.Context, _ *schema.ResourceData, _ interface{}) diag.Diagnostics { +func ResourceCockpitDelete(_ context.Context, d *schema.ResourceData, _ interface{}) diag.Diagnostics { + d.SetId("") + return nil } diff --git a/internal/services/cockpit/cockpit_data_source.go b/internal/services/cockpit/cockpit_data_source.go index 264807cd3f..194d25eaed 100644 --- a/internal/services/cockpit/cockpit_data_source.go +++ b/internal/services/cockpit/cockpit_data_source.go @@ -5,17 +5,12 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" - "github.com/scaleway/scaleway-sdk-go/api/cockpit/v1" - "github.com/scaleway/scaleway-sdk-go/scw" "github.com/scaleway/terraform-provider-scaleway/v2/internal/datasource" - "github.com/scaleway/terraform-provider-scaleway/v2/internal/httperrors" "github.com/scaleway/terraform-provider-scaleway/v2/internal/verify" ) func DataSourceCockpit() *schema.Resource { - // Generate datasource schema from resource dsSchema := datasource.SchemaFromResourceSchema(ResourceCockpit().Schema) - dsSchema["project_id"] = &schema.Schema{ Type: schema.TypeString, Description: "The project_id you want to attach the resource to", @@ -25,7 +20,8 @@ func DataSourceCockpit() *schema.Resource { dsSchema["plan"] = &schema.Schema{ Type: schema.TypeString, Computed: true, - Description: "The current plan of the cockpit project", + Description: "[DEPRECATED] The current plan of the cockpit project.", + Deprecated: "The 'plan' attribute is deprecated and will be removed in a future version. Any changes to this attribute will have no effect.", } return &schema.Resource{ @@ -36,78 +32,25 @@ func DataSourceCockpit() *schema.Resource { } func dataSourceCockpitRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - api, err := NewGlobalAPI(m) - if err != nil { - return diag.FromErr(err) - } - - regionalAPI, region, err := cockpitAPIWithRegion(d, m) - if err != nil { - return diag.FromErr(err) - } - projectID := d.Get("project_id").(string) if projectID == "" { - projectID, err = getDefaultProjectID(ctx, m) + _, err := getDefaultProjectID(ctx, m) if err != nil { return diag.FromErr(err) } } - res, err := api.GetCurrentPlan(&cockpit.GlobalAPIGetCurrentPlanRequest{ //nolint:staticcheck - ProjectID: projectID, - }, scw.WithContext(ctx)) - if err != nil { - if httperrors.Is404(err) { - d.SetId("") - - return nil - } - - return diag.FromErr(err) - } - - _ = d.Set("project_id", d.Get("project_id").(string)) - _ = d.Set("plan", res.Name) - _ = d.Set("plan_id", res.Name) + diags := diag.Diagnostics{} - dataSourcesRes, err := regionalAPI.ListDataSources(&cockpit.RegionalAPIListDataSourcesRequest{ - Region: region, - ProjectID: projectID, - Origin: "external", - }, scw.WithContext(ctx), scw.WithAllPages()) - if err != nil { - return diag.FromErr(err) - } - - grafana, err := api.GetGrafana(&cockpit.GlobalAPIGetGrafanaRequest{ - ProjectID: projectID, - }, scw.WithContext(ctx)) - if err != nil { - return diag.FromErr(err) - } - - if grafana.GrafanaURL == "" { - grafana.GrafanaURL = createGrafanaURL(projectID, region) - } - - alertManager, err := regionalAPI.GetAlertManager(&cockpit.RegionalAPIGetAlertManagerRequest{ - ProjectID: projectID, + diags = append(diags, diag.Diagnostic{ + Severity: diag.Warning, + Summary: "Deprecated attribute: 'plan'", + Detail: "The 'plan' attribute is deprecated and will be removed in a future version. Any changes to this attribute will have no effect.", }) - if err != nil { - return diag.FromErr(err) - } - - alertManagerURL := "" - if alertManager.AlertManagerURL != nil { - alertManagerURL = *alertManager.AlertManagerURL - } - - endpoints := flattenCockpitEndpoints(dataSourcesRes.DataSources, grafana.GrafanaURL, alertManagerURL) - _ = d.Set("endpoints", endpoints) - _ = d.Set("push_url", createCockpitPushURLList(endpoints)) + _ = d.Set("plan", d.Get("plan")) + _ = d.Set("project_id", projectID) d.SetId(projectID) - return nil + return diags } diff --git a/internal/services/cockpit/cockpit_data_source_test.go b/internal/services/cockpit/cockpit_data_source_test.go index 361cf31eb7..27d0199a38 100644 --- a/internal/services/cockpit/cockpit_data_source_test.go +++ b/internal/services/cockpit/cockpit_data_source_test.go @@ -67,7 +67,6 @@ func TestAccDataSourceCockpit_Basic(t *testing.T) { `, Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("scaleway_cockpit.main", "plan", "free"), - resource.TestCheckResourceAttr("scaleway_cockpit.main", "plan_id", "free"), resource.TestCheckResourceAttrSet("scaleway_cockpit.main", "endpoints.0.metrics_url"), resource.TestCheckResourceAttrSet("scaleway_cockpit.main", "endpoints.0.logs_url"), resource.TestCheckResourceAttrSet("scaleway_cockpit.main", "endpoints.0.alertmanager_url"), diff --git a/internal/services/cockpit/cockpit_test.go b/internal/services/cockpit/cockpit_test.go index 72f79f5b85..eca369b428 100644 --- a/internal/services/cockpit/cockpit_test.go +++ b/internal/services/cockpit/cockpit_test.go @@ -25,7 +25,6 @@ func TestAccCockpit_Simple(t *testing.T) { `, Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttrSet("scaleway_cockpit.main", "plan"), - resource.TestCheckResourceAttrSet("scaleway_cockpit.main", "plan_id"), resource.TestCheckResourceAttr("scaleway_cockpit.main", "plan", "free"), resource.TestCheckResourceAttrSet("scaleway_cockpit.main", "endpoints.0.grafana_url"), ), @@ -57,7 +56,6 @@ func TestAccCockpit_Basic(t *testing.T) { Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttrPair("scaleway_cockpit.main", "project_id", "scaleway_account_project.project", "id"), resource.TestCheckResourceAttrSet("scaleway_cockpit.main", "plan"), - resource.TestCheckResourceAttrSet("scaleway_cockpit.main", "plan_id"), resource.TestCheckResourceAttr("scaleway_cockpit.main", "plan", "free"), resource.TestCheckResourceAttrSet("scaleway_cockpit.main", "endpoints.0.grafana_url"), checkGrafanaURL("scaleway_cockpit.main", "scaleway_account_project.project"), @@ -127,7 +125,6 @@ func TestAccCockpit_WithSourceEndpoints(t *testing.T) { `, Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("scaleway_cockpit.main", "plan", "premium"), - resource.TestCheckResourceAttr("scaleway_cockpit.main", "plan_id", "premium"), resource.TestCheckResourceAttrSet("scaleway_cockpit.main", "endpoints.0.metrics_url"), resource.TestCheckResourceAttrSet("scaleway_cockpit.main", "endpoints.0.logs_url"), resource.TestCheckResourceAttrSet("scaleway_cockpit.main", "endpoints.0.alertmanager_url"), diff --git a/internal/services/cockpit/testdata/cockpit-simple.cassette.yaml b/internal/services/cockpit/testdata/cockpit-simple.cassette.yaml index 055ef4e076..48770c5b18 100644 --- a/internal/services/cockpit/testdata/cockpit-simple.cassette.yaml +++ b/internal/services/cockpit/testdata/cockpit-simple.cassette.yaml @@ -16,8 +16,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.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects?name=default&order_by=created_at_asc&organization_id=105bdce1-64c0-48ab-899d-868455867ecf method: GET response: proto: HTTP/2.0 @@ -25,20 +25,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 754 + content_length: 253 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: '{"projects":[{"created_at":"2019-09-30T07:52:49.358300Z","description":"","id":"105bdce1-64c0-48ab-899d-868455867ecf","name":"default","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2020-05-03T19:41:17.997124Z"}],"total_count":1}' headers: Content-Length: - - "754" + - "253" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 19 Sep 2024 12:42:25 GMT + - Mon, 10 Mar 2025 09:47:52 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-3;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -46,62 +46,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - c72cbd22-8e07-4a1c-8a21-bcab0e55a672 + - b81524e3-0b5b-4120-a1ca-4ff50022b6c4 status: 200 OK code: 200 - duration: 79.286804ms + duration: 996.515792ms - id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 72 - transfer_encoding: [] - trailer: {} - host: api.scaleway.com - remote_addr: "" - request_uri: "" - body: '{"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","plan_name":"free"}' - 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 12:42:25 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: - - 76c4488c-4b85-484f-bc82-d17e229afc57 - status: 200 OK - code: 200 - duration: 119.825756ms - - id: 2 request: proto: HTTP/1.1 proto_major: 1 @@ -116,7 +65,7 @@ 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 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests url: https://api.scaleway.com/account/v3/projects?name=default&order_by=created_at_asc&organization_id=105bdce1-64c0-48ab-899d-868455867ecf method: GET response: @@ -125,69 +74,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 259 + content_length: 253 uncompressed: false body: '{"projects":[{"created_at":"2019-09-30T07:52:49.358300Z","description":"","id":"105bdce1-64c0-48ab-899d-868455867ecf","name":"default","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2020-05-03T19:41:17.997124Z"}],"total_count":1}' headers: Content-Length: - - "259" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Thu, 19 Sep 2024 12:42:26 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: - - ec040566-3a28-447f-ab51-e8d153603a0d - status: 200 OK - code: 200 - duration: 1.061990614s - - 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.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/cockpit/v1/current-plan?project_id=105bdce1-64c0-48ab-899d-868455867ecf - 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" + - "253" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 19 Sep 2024 12:42:27 GMT + - Mon, 10 Mar 2025 09:47:53 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-3;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -195,11 +95,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 815c7fc1-7f74-4cd2-8bab-0709073926b3 + - 7e78b6dc-f441-4d7a-9584-ea47e1cd5489 status: 200 OK code: 200 - duration: 77.723035ms - - id: 4 + duration: 817.3385ms + - id: 2 request: proto: HTTP/1.1 proto_major: 1 @@ -214,7 +114,7 @@ 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 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources?order_by=created_at_asc&origin=external&page=1&project_id=105bdce1-64c0-48ab-899d-868455867ecf method: GET response: @@ -223,20 +123,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 795 + content_length: 35 uncompressed: false - body: '{"data_sources":[{"created_at":"2023-05-17T09:46:07.224133Z","id":"b878efd7-8d6e-4486-94ed-57094273da22","name":"Metrics","origin":"external","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","synchronized_with_grafana":true,"type":"metrics","updated_at":"2023-05-17T09:46:07.224133Z","url":"https://b878efd7-8d6e-4486-94ed-57094273da22.metrics.cockpit.fr-par.scw.cloud"},{"created_at":"2023-05-17T09:46:07.231274Z","id":"73918c2a-a652-4bab-a8e4-2709aae02e5e","name":"Logs","origin":"external","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","synchronized_with_grafana":true,"type":"logs","updated_at":"2023-05-17T09:46:07.231274Z","url":"https://73918c2a-a652-4bab-a8e4-2709aae02e5e.logs.cockpit.fr-par.scw.cloud"}],"total_count":2}' + body: '{"data_sources":[],"total_count":0}' headers: Content-Length: - - "795" + - "35" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 19 Sep 2024 12:42:27 GMT + - Mon, 10 Mar 2025 09:47:53 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-3;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -244,11 +144,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 867a23fc-a169-4235-bc57-4c62add1cb3c + - 9554a350-0c2c-4f36-a800-ffc0199972d1 status: 200 OK code: 200 - duration: 299.667059ms - - id: 5 + duration: 91.517625ms + - id: 3 request: proto: HTTP/1.1 proto_major: 1 @@ -263,7 +163,7 @@ 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 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests url: https://api.scaleway.com/cockpit/v1/grafana?project_id=105bdce1-64c0-48ab-899d-868455867ecf method: GET response: @@ -283,9 +183,9 @@ interactions: Content-Type: - application/json Date: - - Thu, 19 Sep 2024 12:42:27 GMT + - Mon, 10 Mar 2025 09:47:53 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-3;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -293,11 +193,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - c58f93ec-5d27-4e85-bfac-2a1f89e4b7ac + - 32f219d3-1666-4b24-9a0b-85135458b7bb status: 200 OK code: 200 - duration: 99.984497ms - - id: 6 + duration: 71.153625ms + - id: 4 request: proto: HTTP/1.1 proto_major: 1 @@ -312,7 +212,7 @@ 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 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=105bdce1-64c0-48ab-899d-868455867ecf method: GET response: @@ -321,20 +221,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://53bfc50f-0420-4c11-bef8-07bf3f1c0fbb.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 12:42:27 GMT + - Mon, 10 Mar 2025 09:47:53 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-3;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -342,60 +242,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 36863b16-6112-4cec-8762-957d1efaf344 + - 2f61cbec-c4f1-4238-aea2-5c5465af0570 status: 200 OK code: 200 - duration: 69.109265ms - - 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/current-plan?project_id=105bdce1-64c0-48ab-899d-868455867ecf - 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 12:42:28 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: - - a3b19242-1f5d-4583-8399-46758615443f - status: 200 OK - code: 200 - duration: 73.863397ms - - id: 8 + duration: 121.40975ms + - id: 5 request: proto: HTTP/1.1 proto_major: 1 @@ -410,7 +261,7 @@ 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 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources?order_by=created_at_asc&origin=external&page=1&project_id=105bdce1-64c0-48ab-899d-868455867ecf method: GET response: @@ -419,20 +270,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 795 + content_length: 35 uncompressed: false - body: '{"data_sources":[{"created_at":"2023-05-17T09:46:07.224133Z","id":"b878efd7-8d6e-4486-94ed-57094273da22","name":"Metrics","origin":"external","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","synchronized_with_grafana":true,"type":"metrics","updated_at":"2023-05-17T09:46:07.224133Z","url":"https://b878efd7-8d6e-4486-94ed-57094273da22.metrics.cockpit.fr-par.scw.cloud"},{"created_at":"2023-05-17T09:46:07.231274Z","id":"73918c2a-a652-4bab-a8e4-2709aae02e5e","name":"Logs","origin":"external","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","synchronized_with_grafana":true,"type":"logs","updated_at":"2023-05-17T09:46:07.231274Z","url":"https://73918c2a-a652-4bab-a8e4-2709aae02e5e.logs.cockpit.fr-par.scw.cloud"}],"total_count":2}' + body: '{"data_sources":[],"total_count":0}' headers: Content-Length: - - "795" + - "35" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 19 Sep 2024 12:42:28 GMT + - Mon, 10 Mar 2025 09:47:54 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-3;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -440,11 +291,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 0bab4fa8-be49-4b14-81cf-b3c71a1e41de + - 29e5c6c1-f150-4edd-891f-87e217d51a46 status: 200 OK code: 200 - duration: 325.240471ms - - id: 9 + duration: 92.552375ms + - id: 6 request: proto: HTTP/1.1 proto_major: 1 @@ -459,7 +310,7 @@ 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 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests url: https://api.scaleway.com/cockpit/v1/grafana?project_id=105bdce1-64c0-48ab-899d-868455867ecf method: GET response: @@ -479,9 +330,9 @@ interactions: Content-Type: - application/json Date: - - Thu, 19 Sep 2024 12:42:28 GMT + - Mon, 10 Mar 2025 09:47:54 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-3;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -489,11 +340,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - f7444296-e984-4d7a-a19e-9fd4b747ecc2 + - ef73595c-7a5f-4c41-b144-345279b8e033 status: 200 OK code: 200 - duration: 60.75626ms - - id: 10 + duration: 85.577292ms + - id: 7 request: proto: HTTP/1.1 proto_major: 1 @@ -508,7 +359,7 @@ 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 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=105bdce1-64c0-48ab-899d-868455867ecf method: GET response: @@ -517,20 +368,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://53bfc50f-0420-4c11-bef8-07bf3f1c0fbb.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 12:42:28 GMT + - Mon, 10 Mar 2025 09:47:55 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-3;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -538,7 +389,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - dd8a826d-2b11-4144-9a3d-350cdefa16f6 + - 765ce4be-557b-4334-9814-84d12520f540 status: 200 OK code: 200 - duration: 66.690851ms + duration: 148.723334ms 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 6478313c60..84ed02ae1e 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.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests url: https://api.scaleway.com/account/v3/projects method: POST response: @@ -29,7 +29,7 @@ interactions: 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"}' + body: '{"created_at":"2025-03-10T09:51:46.094266Z","description":"","id":"5783b138-5111-404a-a5fe-048e682e6d0a","name":"tf_tests_cockpit_project_premium","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2025-03-10T09:51:46.094266Z"}' headers: Content-Length: - "247" @@ -38,9 +38,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:57 GMT + - Mon, 10 Mar 2025 09:51:46 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -48,10 +48,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - a6a17660-a18c-47c3-814d-264bc53070a4 + - f0f124f0-98dd-4a89-ba07-c7ab5f2d7eb8 status: 200 OK code: 200 - duration: 439.780834ms + duration: 587.494667ms - 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.3; darwin; arm64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/account/v3/projects/20c94887-1862-4c8f-b866-a6e8561281fb + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/5783b138-5111-404a-a5fe-048e682e6d0a method: GET response: proto: HTTP/2.0 @@ -78,7 +78,7 @@ interactions: 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"}' + body: '{"created_at":"2025-03-10T09:51:46.094266Z","description":"","id":"5783b138-5111-404a-a5fe-048e682e6d0a","name":"tf_tests_cockpit_project_premium","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2025-03-10T09:51:46.094266Z"}' headers: Content-Length: - "247" @@ -87,9 +87,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:57 GMT + - Mon, 10 Mar 2025 09:51:46 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -97,10 +97,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 67acb91d-4aa5-458b-b888-d37a6985a922 + - 532fe986-9596-4e8d-b2b4-854ef6a2fa6b status: 200 OK code: 200 - duration: 154.327209ms + duration: 169.774125ms - id: 2 request: proto: HTTP/1.1 @@ -112,13 +112,13 @@ interactions: host: api.scaleway.com remote_addr: "" request_uri: "" - body: '{"project_id":"20c94887-1862-4c8f-b866-a6e8561281fb"}' + body: '{"project_id":"5783b138-5111-404a-a5fe-048e682e6d0a"}' 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 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/enable method: POST response: @@ -129,7 +129,7 @@ interactions: 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"}' + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://ac662fca-f471-4fa9-b110-e1c5a5c29633.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 11:19:57 GMT + - Mon, 10 Mar 2025 09:51:46 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -148,10 +148,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - e62e967a-2f99-4ff7-ae4d-81e6e39d3f93 + - ae503584-b864-49b3-8a16-6f1b48c8442d status: 200 OK code: 200 - duration: 142.497ms + duration: 173.465958ms - id: 3 request: proto: HTTP/1.1 @@ -163,13 +163,13 @@ interactions: host: api.scaleway.com remote_addr: "" request_uri: "" - body: '{"project_id":"20c94887-1862-4c8f-b866-a6e8561281fb","name":"my-data-source-logs","type":"logs","retention_days":7}' + body: '{"project_id":"5783b138-5111-404a-a5fe-048e682e6d0a","name":"my-data-source-logs","type":"logs","retention_days":7}' 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 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources method: POST response: @@ -180,7 +180,7 @@ interactions: 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"}' + body: '{"created_at":"2025-03-10T09:51:46.654138Z","id":"2fe980fb-146b-4091-9af7-c898f3f37d46","name":"my-data-source-logs","origin":"custom","project_id":"5783b138-5111-404a-a5fe-048e682e6d0a","region":"fr-par","retention_days":7,"synchronized_with_grafana":false,"type":"logs","updated_at":"2025-03-10T09:51:46.654138Z","url":"https://2fe980fb-146b-4091-9af7-c898f3f37d46.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "398" @@ -189,9 +189,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:19:57 GMT + - Mon, 10 Mar 2025 09:51:46 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -199,938 +199,50 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 1eca066f-fdd0-46c0-9479-82cc1b00f430 + - 14c156c0-0f93-45dd-9387-0f6d4c09632d status: 200 OK code: 200 - duration: 325.0685ms + duration: 178.783208ms - id: 4 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 119 - transfer_encoding: [] - trailer: {} - host: api.scaleway.com - remote_addr: "" - request_uri: "" - body: '{"project_id":"20c94887-1862-4c8f-b866-a6e8561281fb","name":"my-data-source-traces","type":"traces","retention_days":7}' - 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: 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: - - 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: 122 - transfer_encoding: [] - trailer: {} - host: api.scaleway.com - remote_addr: "" - request_uri: "" - body: '{"project_id":"20c94887-1862-4c8f-b866-a6e8561281fb","name":"my-data-source-metrics","type":"metrics","retention_days":31}' - 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: 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: - - 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 - 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/enable - method: POST - 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: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: - - 9a7f52cd-dc9f-4f05-9212-9eeef3e549fe - status: 200 OK - code: 200 - duration: 336.866667ms - - 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/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: - - 776024a0-08a0-4705-8c6d-6eb8378e8c94 - status: 200 OK - code: 200 - duration: 68.67125ms - - 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/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: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: - - 9df327c9-e048-4525-a964-340e994c3300 - status: 200 OK - code: 200 - duration: 195.99975ms - - 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/plans?order_by=name_asc&page=1 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 730 - 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}' - headers: - Content-Length: - - "730" - 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: - - af0b1895-d66a-49d3-9043-f25d105f0568 - status: 200 OK - code: 200 - duration: 25.466333ms - - id: 13 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 72 - transfer_encoding: [] - trailer: {} - host: api.scaleway.com - remote_addr: "" - request_uri: "" - 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/plans - method: PATCH - 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: - - 95298168-3b0e-4e1d-bafb-ba5ad8aee94a - status: 200 OK - code: 200 - duration: 144.966916ms - - 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/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/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: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: - - cf4adcbf-b61f-443d-a790-3e831d21d105 - status: 200 OK - code: 200 - 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 + content_length: 122 transfer_encoding: [] trailer: {} host: api.scaleway.com remote_addr: "" request_uri: "" - body: "" + body: '{"project_id":"5783b138-5111-404a-a5fe-048e682e6d0a","name":"my-data-source-metrics","type":"metrics","retention_days":31}' 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 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/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: 229 + content_length: 408 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: '{"created_at":"2025-03-10T09:51:46.654379Z","id":"c8959ba0-889f-4556-8537-ff338a995056","name":"my-data-source-metrics","origin":"custom","project_id":"5783b138-5111-404a-a5fe-048e682e6d0a","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2025-03-10T09:51:46.654379Z","url":"https://c8959ba0-889f-4556-8537-ff338a995056.metrics.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - - "229" + - "408" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:20:00 GMT + - Mon, 10 Mar 2025 09:51:46 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1138,97 +250,50 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 799eb249-d9c7-47e7-9c3e-3d2c4cb8865c + - 6e5f9989-d5ee-441d-a682-fb9e140c7f7c status: 200 OK code: 200 - duration: 65.596917ms - - id: 23 + duration: 178.025375ms + - id: 5 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 0 + content_length: 119 transfer_encoding: [] trailer: {} host: api.scaleway.com remote_addr: "" request_uri: "" - body: "" + body: '{"project_id":"5783b138-5111-404a-a5fe-048e682e6d0a","name":"my-data-source-traces","type":"traces","retention_days":7}' 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 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/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: 18 + content_length: 404 uncompressed: false - body: '{"grafana_url":""}' + body: '{"created_at":"2025-03-10T09:51:46.653963Z","id":"d787f5c4-058c-497b-9933-78cda1d90045","name":"my-data-source-traces","origin":"custom","project_id":"5783b138-5111-404a-a5fe-048e682e6d0a","region":"fr-par","retention_days":7,"synchronized_with_grafana":false,"type":"traces","updated_at":"2025-03-10T09:51:46.653963Z","url":"https://d787f5c4-058c-497b-9933-78cda1d90045.traces.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - - "18" + - "404" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:20:00 GMT + - Mon, 10 Mar 2025 09:51:46 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1236,28 +301,30 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 1bb882ca-b81f-4dc0-b7e8-fc493f81354b + - 64bad659-59eb-45b3-9e91-ae653cfec9b9 status: 200 OK code: 200 - duration: 62.084667ms - - id: 25 + duration: 184.370458ms + - id: 6 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":"5783b138-5111-404a-a5fe-048e682e6d0a"}' 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?project_id=20c94887-1862-4c8f-b866-a6e8561281fb - method: GET + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/managed-alerts/enable + method: POST response: proto: HTTP/2.0 proto_major: 2 @@ -1266,7 +333,7 @@ interactions: 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"}' + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://ac662fca-f471-4fa9-b110-e1c5a5c29633.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' headers: Content-Length: - "183" @@ -1275,9 +342,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:20:00 GMT + - Mon, 10 Mar 2025 09:51:46 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1285,11 +352,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - f808d166-0704-413c-87d3-f8af98827494 + - 67c5aca5-cde0-46dc-8038-e811967ebe70 status: 200 OK code: 200 - duration: 82.422458ms - - id: 26 + duration: 87.663083ms + - id: 7 request: proto: HTTP/1.1 proto_major: 1 @@ -1304,8 +371,8 @@ interactions: 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 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/c8959ba0-889f-4556-8537-ff338a995056 method: GET response: proto: HTTP/2.0 @@ -1313,20 +380,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 247 + content_length: 408 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"}' + body: '{"created_at":"2025-03-10T09:51:46.654379Z","id":"c8959ba0-889f-4556-8537-ff338a995056","name":"my-data-source-metrics","origin":"custom","project_id":"5783b138-5111-404a-a5fe-048e682e6d0a","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2025-03-10T09:51:46.654379Z","url":"https://c8959ba0-889f-4556-8537-ff338a995056.metrics.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - - "247" + - "408" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:20:01 GMT + - Mon, 10 Mar 2025 09:51:46 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1334,11 +401,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 74847aac-e1aa-4a45-bc88-5930d14a8488 + - e6f8a43f-07e6-4fff-af68-100fc5091602 status: 200 OK code: 200 - duration: 117.191834ms - - id: 27 + duration: 85.018667ms + - id: 8 request: proto: HTTP/1.1 proto_major: 1 @@ -1353,8 +420,8 @@ interactions: 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 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/2fe980fb-146b-4091-9af7-c898f3f37d46 method: GET response: proto: HTTP/2.0 @@ -1364,7 +431,7 @@ interactions: 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"}' + body: '{"created_at":"2025-03-10T09:51:46.654138Z","id":"2fe980fb-146b-4091-9af7-c898f3f37d46","name":"my-data-source-logs","origin":"custom","project_id":"5783b138-5111-404a-a5fe-048e682e6d0a","region":"fr-par","retention_days":7,"synchronized_with_grafana":false,"type":"logs","updated_at":"2025-03-10T09:51:46.654138Z","url":"https://2fe980fb-146b-4091-9af7-c898f3f37d46.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "398" @@ -1373,58 +440,9 @@ interactions: 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 + - Mon, 10 Mar 2025 09:51:46 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1432,11 +450,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - ebf61f42-8233-424d-9361-e8a201bd2b52 + - 10612aa7-b1b8-4197-a1b4-a03e7975ac66 status: 200 OK code: 200 - duration: 71.629875ms - - id: 29 + duration: 97.974125ms + - id: 9 request: proto: HTTP/1.1 proto_major: 1 @@ -1451,8 +469,8 @@ interactions: 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 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/d787f5c4-058c-497b-9933-78cda1d90045 method: GET response: proto: HTTP/2.0 @@ -1462,7 +480,7 @@ interactions: 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"}' + body: '{"created_at":"2025-03-10T09:51:46.653963Z","id":"d787f5c4-058c-497b-9933-78cda1d90045","name":"my-data-source-traces","origin":"custom","project_id":"5783b138-5111-404a-a5fe-048e682e6d0a","region":"fr-par","retention_days":7,"synchronized_with_grafana":false,"type":"traces","updated_at":"2025-03-10T09:51:46.653963Z","url":"https://d787f5c4-058c-497b-9933-78cda1d90045.traces.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - "404" @@ -1471,9 +489,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:20:01 GMT + - Mon, 10 Mar 2025 09:51:46 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1481,11 +499,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 98eecdbb-0973-4170-9dbb-ecd1e8a3f3b9 + - 70529125-d1af-40d4-8960-bfc36bb30e6a status: 200 OK code: 200 - duration: 68.409958ms - - id: 30 + duration: 92.345583ms + - id: 10 request: proto: HTTP/1.1 proto_major: 1 @@ -1500,8 +518,8 @@ interactions: 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 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=5783b138-5111-404a-a5fe-048e682e6d0a method: GET response: proto: HTTP/2.0 @@ -1509,20 +527,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 408 + content_length: 183 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"}' + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://ac662fca-f471-4fa9-b110-e1c5a5c29633.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' headers: Content-Length: - - "408" + - "183" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:20:01 GMT + - Mon, 10 Mar 2025 09:51:46 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1530,11 +548,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 0c2cb03c-dcfa-485b-8e11-9a9f2c7eaa34 + - b1037eed-991b-4df8-83b7-3d408e586b05 status: 200 OK code: 200 - duration: 87.532041ms - - id: 31 + duration: 93.905167ms + - id: 11 request: proto: HTTP/1.1 proto_major: 1 @@ -1549,8 +567,8 @@ interactions: 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 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=5783b138-5111-404a-a5fe-048e682e6d0a method: GET response: proto: HTTP/2.0 @@ -1569,9 +587,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:20:01 GMT + - Mon, 10 Mar 2025 09:51:47 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1579,11 +597,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 606736ad-2013-4789-ab22-4ebf9deaac1e + - 3c45e031-b369-4e8a-801c-abe97d820898 status: 200 OK code: 200 - duration: 117.980959ms - - id: 32 + duration: 189.203708ms + - id: 12 request: proto: HTTP/1.1 proto_major: 1 @@ -1598,8 +616,8 @@ interactions: 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 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources?order_by=created_at_asc&origin=external&page=1&project_id=5783b138-5111-404a-a5fe-048e682e6d0a method: GET response: proto: HTTP/2.0 @@ -1607,20 +625,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 229 + content_length: 1247 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: '{"data_sources":[{"created_at":"2025-03-10T09:51:46.653963Z","id":"d787f5c4-058c-497b-9933-78cda1d90045","name":"my-data-source-traces","origin":"custom","project_id":"5783b138-5111-404a-a5fe-048e682e6d0a","region":"fr-par","retention_days":7,"synchronized_with_grafana":false,"type":"traces","updated_at":"2025-03-10T09:51:46.653963Z","url":"https://d787f5c4-058c-497b-9933-78cda1d90045.traces.cockpit.fr-par.scw.cloud"},{"created_at":"2025-03-10T09:51:46.654138Z","id":"2fe980fb-146b-4091-9af7-c898f3f37d46","name":"my-data-source-logs","origin":"custom","project_id":"5783b138-5111-404a-a5fe-048e682e6d0a","region":"fr-par","retention_days":7,"synchronized_with_grafana":false,"type":"logs","updated_at":"2025-03-10T09:51:46.654138Z","url":"https://2fe980fb-146b-4091-9af7-c898f3f37d46.logs.cockpit.fr-par.scw.cloud"},{"created_at":"2025-03-10T09:51:46.654379Z","id":"c8959ba0-889f-4556-8537-ff338a995056","name":"my-data-source-metrics","origin":"custom","project_id":"5783b138-5111-404a-a5fe-048e682e6d0a","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2025-03-10T09:51:46.654379Z","url":"https://c8959ba0-889f-4556-8537-ff338a995056.metrics.cockpit.fr-par.scw.cloud"}],"total_count":3}' headers: Content-Length: - - "229" + - "1247" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:20:01 GMT + - Mon, 10 Mar 2025 09:51:47 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1628,11 +646,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 261f39cd-b6b7-4832-b869-908f6761d552 + - 3ac466b4-07b6-4188-9024-67e536784e3f status: 200 OK code: 200 - duration: 71.973458ms - - id: 33 + duration: 88.34425ms + - id: 13 request: proto: HTTP/1.1 proto_major: 1 @@ -1647,8 +665,8 @@ interactions: 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 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/grafana?project_id=5783b138-5111-404a-a5fe-048e682e6d0a method: GET response: proto: HTTP/2.0 @@ -1656,20 +674,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 1247 + content_length: 18 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}' + body: '{"grafana_url":""}' headers: Content-Length: - - "1247" + - "18" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:20:01 GMT + - Mon, 10 Mar 2025 09:51:47 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1677,11 +695,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 895f1506-d974-4715-b6f5-232a5af06af7 + - 3a6250fc-c7e5-4b43-a9f5-d8fffaad819d status: 200 OK code: 200 - duration: 401.576125ms - - id: 34 + duration: 90.932667ms + - id: 14 request: proto: HTTP/1.1 proto_major: 1 @@ -1696,8 +714,8 @@ interactions: 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 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=5783b138-5111-404a-a5fe-048e682e6d0a method: GET response: proto: HTTP/2.0 @@ -1705,20 +723,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 18 + content_length: 183 uncompressed: false - body: '{"grafana_url":""}' + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://ac662fca-f471-4fa9-b110-e1c5a5c29633.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' headers: Content-Length: - - "18" + - "183" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:20:02 GMT + - Mon, 10 Mar 2025 09:51:47 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1726,11 +744,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 9e160677-a337-4b55-85ca-926daf46b124 + - 4aefb99e-4c4c-4a9b-8c48-2a54098746f6 status: 200 OK code: 200 - duration: 501.70875ms - - id: 35 + duration: 94.024333ms + - id: 15 request: proto: HTTP/1.1 proto_major: 1 @@ -1745,8 +763,8 @@ interactions: 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 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/5783b138-5111-404a-a5fe-048e682e6d0a method: GET response: proto: HTTP/2.0 @@ -1754,20 +772,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 183 + content_length: 247 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"}' + body: '{"created_at":"2025-03-10T09:51:46.094266Z","description":"","id":"5783b138-5111-404a-a5fe-048e682e6d0a","name":"tf_tests_cockpit_project_premium","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2025-03-10T09:51:46.094266Z"}' headers: Content-Length: - - "183" + - "247" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:20:02 GMT + - Mon, 10 Mar 2025 09:51:48 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1775,11 +793,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - f8928820-bed5-44b4-a462-37d3240eb34a + - 60eb07fc-08d3-4dab-8ba3-4d489935372e status: 200 OK code: 200 - duration: 110.080792ms - - id: 36 + duration: 121.129875ms + - id: 16 request: proto: HTTP/1.1 proto_major: 1 @@ -1794,8 +812,8 @@ interactions: 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 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=5783b138-5111-404a-a5fe-048e682e6d0a method: GET response: proto: HTTP/2.0 @@ -1803,20 +821,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 229 + content_length: 183 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://ac662fca-f471-4fa9-b110-e1c5a5c29633.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' headers: Content-Length: - - "229" + - "183" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:20:02 GMT + - Mon, 10 Mar 2025 09:51:48 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1824,11 +842,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - d26b2271-fabf-4c94-bc2b-7120bdcd3a73 + - 6dc1c88a-a6ea-4a58-a9de-c84b9e66c63b status: 200 OK code: 200 - duration: 80.265667ms - - id: 37 + duration: 77.196792ms + - id: 17 request: proto: HTTP/1.1 proto_major: 1 @@ -1843,8 +861,8 @@ interactions: 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 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/d787f5c4-058c-497b-9933-78cda1d90045 method: GET response: proto: HTTP/2.0 @@ -1852,20 +870,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 1247 + content_length: 404 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}' + body: '{"created_at":"2025-03-10T09:51:46.653963Z","id":"d787f5c4-058c-497b-9933-78cda1d90045","name":"my-data-source-traces","origin":"custom","project_id":"5783b138-5111-404a-a5fe-048e682e6d0a","region":"fr-par","retention_days":7,"synchronized_with_grafana":false,"type":"traces","updated_at":"2025-03-10T09:51:46.653963Z","url":"https://d787f5c4-058c-497b-9933-78cda1d90045.traces.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - - "1247" + - "404" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:20:02 GMT + - Mon, 10 Mar 2025 09:51:48 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1873,11 +891,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 0bdff8a4-af2c-4508-b497-ab0e6bbc80b9 + - e4510a80-efd8-43c8-948d-8c5bccf0f6cd status: 200 OK code: 200 - duration: 353.962625ms - - id: 38 + duration: 71.096166ms + - id: 18 request: proto: HTTP/1.1 proto_major: 1 @@ -1892,8 +910,8 @@ interactions: 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 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/2fe980fb-146b-4091-9af7-c898f3f37d46 method: GET response: proto: HTTP/2.0 @@ -1901,20 +919,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 18 + content_length: 398 uncompressed: false - body: '{"grafana_url":""}' + body: '{"created_at":"2025-03-10T09:51:46.654138Z","id":"2fe980fb-146b-4091-9af7-c898f3f37d46","name":"my-data-source-logs","origin":"custom","project_id":"5783b138-5111-404a-a5fe-048e682e6d0a","region":"fr-par","retention_days":7,"synchronized_with_grafana":false,"type":"logs","updated_at":"2025-03-10T09:51:46.654138Z","url":"https://2fe980fb-146b-4091-9af7-c898f3f37d46.logs.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - - "18" + - "398" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:20:02 GMT + - Mon, 10 Mar 2025 09:51:48 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1922,11 +940,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 4f266bd4-42ef-4813-839d-eb8bd1705969 + - 3d4a4150-5afd-4976-bc97-8ea6c631ab0d status: 200 OK code: 200 - duration: 85.721917ms - - id: 39 + duration: 72.456208ms + - id: 19 request: proto: HTTP/1.1 proto_major: 1 @@ -1941,8 +959,8 @@ interactions: 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 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/c8959ba0-889f-4556-8537-ff338a995056 method: GET response: proto: HTTP/2.0 @@ -1950,20 +968,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 183 + content_length: 408 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"}' + body: '{"created_at":"2025-03-10T09:51:46.654379Z","id":"c8959ba0-889f-4556-8537-ff338a995056","name":"my-data-source-metrics","origin":"custom","project_id":"5783b138-5111-404a-a5fe-048e682e6d0a","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2025-03-10T09:51:46.654379Z","url":"https://c8959ba0-889f-4556-8537-ff338a995056.metrics.cockpit.fr-par.scw.cloud"}' headers: Content-Length: - - "183" + - "408" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:20:03 GMT + - Mon, 10 Mar 2025 09:51:48 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1971,11 +989,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 0f79f62a-bc09-47fd-b452-796195153a5a + - c358955c-f796-46a3-9a2c-74c4d0c0de3c status: 200 OK code: 200 - duration: 98.155875ms - - id: 40 + duration: 93.114917ms + - id: 20 request: proto: HTTP/1.1 proto_major: 1 @@ -1990,8 +1008,8 @@ interactions: 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 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=5783b138-5111-404a-a5fe-048e682e6d0a method: GET response: proto: HTTP/2.0 @@ -1999,20 +1017,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 229 + content_length: 108 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: '{"contact_points":[],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":0}' headers: Content-Length: - - "229" + - "108" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:20:03 GMT + - Mon, 10 Mar 2025 09:51:48 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -2020,11 +1038,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - d3c9dc9f-4427-47c0-b130-e7d320f0ddde + - 4cd748aa-196a-4acf-a02c-c1b98154d2d6 status: 200 OK code: 200 - duration: 77.859875ms - - id: 41 + duration: 165.797875ms + - id: 21 request: proto: HTTP/1.1 proto_major: 1 @@ -2039,8 +1057,8 @@ interactions: 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 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources?order_by=created_at_asc&origin=external&page=1&project_id=5783b138-5111-404a-a5fe-048e682e6d0a method: GET response: proto: HTTP/2.0 @@ -2050,7 +1068,7 @@ interactions: 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}' + body: '{"data_sources":[{"created_at":"2025-03-10T09:51:46.653963Z","id":"d787f5c4-058c-497b-9933-78cda1d90045","name":"my-data-source-traces","origin":"custom","project_id":"5783b138-5111-404a-a5fe-048e682e6d0a","region":"fr-par","retention_days":7,"synchronized_with_grafana":false,"type":"traces","updated_at":"2025-03-10T09:51:46.653963Z","url":"https://d787f5c4-058c-497b-9933-78cda1d90045.traces.cockpit.fr-par.scw.cloud"},{"created_at":"2025-03-10T09:51:46.654138Z","id":"2fe980fb-146b-4091-9af7-c898f3f37d46","name":"my-data-source-logs","origin":"custom","project_id":"5783b138-5111-404a-a5fe-048e682e6d0a","region":"fr-par","retention_days":7,"synchronized_with_grafana":false,"type":"logs","updated_at":"2025-03-10T09:51:46.654138Z","url":"https://2fe980fb-146b-4091-9af7-c898f3f37d46.logs.cockpit.fr-par.scw.cloud"},{"created_at":"2025-03-10T09:51:46.654379Z","id":"c8959ba0-889f-4556-8537-ff338a995056","name":"my-data-source-metrics","origin":"custom","project_id":"5783b138-5111-404a-a5fe-048e682e6d0a","region":"fr-par","retention_days":31,"synchronized_with_grafana":false,"type":"metrics","updated_at":"2025-03-10T09:51:46.654379Z","url":"https://c8959ba0-889f-4556-8537-ff338a995056.metrics.cockpit.fr-par.scw.cloud"}],"total_count":3}' headers: Content-Length: - "1247" @@ -2059,9 +1077,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:20:03 GMT + - Mon, 10 Mar 2025 09:51:48 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -2069,11 +1087,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - ad247d67-3de8-4db4-a42f-f5cec1b88008 + - 2ddd01e8-e22f-4551-a790-e4e402932618 status: 200 OK code: 200 - duration: 345.47175ms - - id: 42 + duration: 101.903958ms + - id: 22 request: proto: HTTP/1.1 proto_major: 1 @@ -2088,8 +1106,8 @@ interactions: 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 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/grafana?project_id=5783b138-5111-404a-a5fe-048e682e6d0a method: GET response: proto: HTTP/2.0 @@ -2108,9 +1126,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:20:03 GMT + - Mon, 10 Mar 2025 09:51:48 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -2118,11 +1136,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 4fbb3440-e747-4a44-86a3-30df002309d1 + - 4ffd946a-cdcd-4023-8b82-bc4e5e753dd8 status: 200 OK code: 200 - duration: 67.601958ms - - id: 43 + duration: 82.012209ms + - id: 23 request: proto: HTTP/1.1 proto_major: 1 @@ -2137,8 +1155,8 @@ interactions: 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 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=5783b138-5111-404a-a5fe-048e682e6d0a method: GET response: proto: HTTP/2.0 @@ -2148,7 +1166,7 @@ interactions: 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"}' + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://ac662fca-f471-4fa9-b110-e1c5a5c29633.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' headers: Content-Length: - "183" @@ -2157,9 +1175,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:20:03 GMT + - Mon, 10 Mar 2025 09:51:48 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -2167,11 +1185,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 41de4543-102c-4aa0-a59c-32924ed25329 + - a20d6659-bdbd-4892-9b7d-4aa7a1cefc77 status: 200 OK code: 200 - duration: 81.829375ms - - id: 44 + duration: 82.608041ms + - id: 24 request: proto: HTTP/1.1 proto_major: 1 @@ -2186,8 +1204,8 @@ interactions: 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 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/d787f5c4-058c-497b-9933-78cda1d90045 method: DELETE response: proto: HTTP/2.0 @@ -2204,9 +1222,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:20:04 GMT + - Mon, 10 Mar 2025 09:51:50 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -2214,11 +1232,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - ee39fc73-b5f0-431d-850a-be6f6bb77daf + - 69a8dde0-467b-4ff6-95fe-a7fc81cbcd85 status: 204 No Content code: 204 - duration: 76.315ms - - id: 45 + duration: 100.813542ms + - id: 25 request: proto: HTTP/1.1 proto_major: 1 @@ -2233,8 +1251,8 @@ interactions: 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 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=5783b138-5111-404a-a5fe-048e682e6d0a method: GET response: proto: HTTP/2.0 @@ -2253,9 +1271,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:20:04 GMT + - Mon, 10 Mar 2025 09:51:50 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -2263,11 +1281,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - d2ec078e-9f20-47ef-9cbb-3be27c812e59 + - d55b714c-3a8b-470e-80ea-b4d6f25611f7 status: 200 OK code: 200 - duration: 103.063709ms - - id: 46 + duration: 177.285041ms + - id: 26 request: proto: HTTP/1.1 proto_major: 1 @@ -2282,8 +1300,8 @@ interactions: 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 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/2fe980fb-146b-4091-9af7-c898f3f37d46 method: DELETE response: proto: HTTP/2.0 @@ -2300,9 +1318,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:20:04 GMT + - Mon, 10 Mar 2025 09:51:50 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -2310,11 +1328,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 3b7901a6-d687-4b54-94e0-8cbb5af1f45d + - 94960af8-fc8a-4c95-9de3-8c003b979b40 status: 204 No Content code: 204 - duration: 260.973834ms - - id: 47 + duration: 225.742959ms + - id: 27 request: proto: HTTP/1.1 proto_major: 1 @@ -2325,13 +1343,13 @@ interactions: host: api.scaleway.com remote_addr: "" request_uri: "" - body: '{"project_id":"20c94887-1862-4c8f-b866-a6e8561281fb"}' + body: '{"project_id":"5783b138-5111-404a-a5fe-048e682e6d0a"}' 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 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/managed-alerts/disable method: POST response: @@ -2342,7 +1360,7 @@ interactions: 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"}' + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://ac662fca-f471-4fa9-b110-e1c5a5c29633.alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":false,"region":"fr-par"}' headers: Content-Length: - "184" @@ -2351,9 +1369,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:20:04 GMT + - Mon, 10 Mar 2025 09:51:50 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -2361,11 +1379,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 00662974-9df3-4850-b8b7-ce2ac284b45e + - 6c5df377-5af9-4535-9821-57188b93d818 status: 200 OK code: 200 - duration: 268.773583ms - - id: 48 + duration: 105.532875ms + - id: 28 request: proto: HTTP/1.1 proto_major: 1 @@ -2380,8 +1398,8 @@ interactions: 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 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/data-sources/c8959ba0-889f-4556-8537-ff338a995056 method: DELETE response: proto: HTTP/2.0 @@ -2398,9 +1416,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:20:05 GMT + - Mon, 10 Mar 2025 09:51:50 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -2408,11 +1426,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - c2188e5e-65d1-435d-89e5-aa69c21ee50d + - d0a43b9e-aab1-48ea-abca-ff73712003c1 status: 204 No Content code: 204 - duration: 707.598083ms - - id: 49 + duration: 300.605667ms + - id: 29 request: proto: HTTP/1.1 proto_major: 1 @@ -2423,13 +1441,13 @@ interactions: host: api.scaleway.com remote_addr: "" request_uri: "" - body: '{"project_id":"20c94887-1862-4c8f-b866-a6e8561281fb"}' + body: '{"project_id":"5783b138-5111-404a-a5fe-048e682e6d0a"}' 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 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/disable method: POST response: @@ -2449,9 +1467,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:20:05 GMT + - Mon, 10 Mar 2025 09:51:50 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -2459,11 +1477,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - ed0bec93-b60b-4ca9-b04c-a140633d81ef + - 8095fccf-5eca-4155-a97f-ffe870012c22 status: 200 OK code: 200 - duration: 334.509083ms - - id: 50 + duration: 174.942917ms + - id: 30 request: proto: HTTP/1.1 proto_major: 1 @@ -2478,8 +1496,8 @@ interactions: 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 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/5783b138-5111-404a-a5fe-048e682e6d0a method: DELETE response: proto: HTTP/2.0 @@ -2496,9 +1514,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Dec 2024 11:20:06 GMT + - Mon, 10 Mar 2025 09:51:51 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -2506,7 +1524,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 23f51af9-d116-45a0-8683-ba8a5986ab06 + - 14ef1fc3-ff2d-488c-9109-7a58d035a5cc status: 204 No Content code: 204 - duration: 1.466510833s + duration: 1.382816667s