diff --git a/docs/resources/cockpit_alert_manager.md b/docs/resources/cockpit_alert_manager.md new file mode 100644 index 000000000..f58e70106 --- /dev/null +++ b/docs/resources/cockpit_alert_manager.md @@ -0,0 +1,54 @@ +--- +subcategory: "Cockpit" +page_title: "Scaleway: scaleway_cockpit_alert_manager" +--- + +# Resource: scaleway_cockpit_alert_manager + +Creates and manages Scaleway Cockpit Alert Managers. + +For more information consult the [documentation](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#grafana-users). + +## Example Usage + +```terraform + +resource "scaleway_account_project" "project" { + name = "tf_test_project" +} + +resource "scaleway_cockpit_alert_manager" "alert_manager" { + project_id = scaleway_account_project.project.id + enable_managed_alerts = true + contact_points = [ + { + email = "alert1@example.com" + }, + { + email = "alert2@example.com" + } + ]} +``` + + +## Argument Reference + +- `enable_managed_alerts` - (Optional, Boolean) Indicates whether the alert manager should be enabled. Defaults to true. +- `contact_points` - (Optional, List of Map) A list of contact points with email addresses for the alert receivers. Each map should contain a single key email. +- `project_id` - (Defaults to [provider](../index.md#project_id) `project_id`) The ID of the project the cockpit is associated with. +- `region` - (Defaults to [provider](../index.md#arguments-reference) `region`) The [region](../guides/regions_and_zones.md#regions) in which alert_manager should be created. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +- `alert_manager_url` - Alert manager URL. + + +## Import + +Alert managers can be imported using the project ID, e.g. + +```bash +$ terraform import scaleway_cockpit_alert_manager.main fr-par/11111111-1111-1111-1111-111111111111 +``` diff --git a/internal/provider/provider.go b/internal/provider/provider.go index b601dbe8e..7fd34b63d 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -126,6 +126,7 @@ func Provider(config *Config) plugin.ProviderFunc { "scaleway_cockpit_source": cockpit.ResourceCockpitSource(), "scaleway_cockpit_grafana_user": cockpit.ResourceCockpitGrafanaUser(), "scaleway_cockpit_token": cockpit.ResourceToken(), + "scaleway_cockpit_alert_manager": cockpit.ResourceCockpitAlertManager(), "scaleway_container": container.ResourceContainer(), "scaleway_container_cron": container.ResourceCron(), "scaleway_container_domain": container.ResourceDomain(), diff --git a/internal/services/cockpit/alert_manager.go b/internal/services/cockpit/alert_manager.go new file mode 100644 index 000000000..8e77b84d6 --- /dev/null +++ b/internal/services/cockpit/alert_manager.go @@ -0,0 +1,283 @@ +package cockpit + +import ( + "context" + "errors" + "fmt" + + "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/locality/regional" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/services/account" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/verify" +) + +func ResourceCockpitAlertManager() *schema.Resource { + return &schema.Resource{ + CreateContext: ResourceCockpitAlertManagerCreate, + ReadContext: ResourceCockpitAlertManagerRead, + UpdateContext: ResourceCockpitAlertManagerUpdate, + DeleteContext: ResourceCockpitAlertManagerDelete, + Importer: &schema.ResourceImporter{ + StateContext: schema.ImportStatePassthroughContext, + }, + Schema: map[string]*schema.Schema{ + "project_id": account.ProjectIDSchema(), + "enable_managed_alerts": { + Type: schema.TypeBool, + Optional: true, + Default: true, + Description: "Enable or disable the alert manager", + }, + + "contact_points": { + Type: schema.TypeList, + Optional: true, + Description: "A list of contact points", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "email": { + Type: schema.TypeString, + Optional: true, + ValidateFunc: verify.IsEmail(), + Description: "Email addresses for the alert receivers", + }, + }, + }, + }, + "region": regional.Schema(), + "alert_manager_url": { + Type: schema.TypeString, + Computed: true, + Description: "Alert manager URL", + }, + }, + } +} + +func ResourceCockpitAlertManagerCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + api, region, err := cockpitAPIWithRegion(d, meta) + if err != nil { + return diag.FromErr(err) + } + + projectID := d.Get("project_id").(string) + contactPoints := d.Get("contact_points").([]interface{}) + EnableManagedAlerts := d.Get("enable_managed_alerts").(bool) + + _, err = api.EnableAlertManager(&cockpit.RegionalAPIEnableAlertManagerRequest{ + Region: region, + ProjectID: projectID, + }) + if err != nil { + return diag.FromErr(err) + } + if EnableManagedAlerts { + _, err = api.EnableManagedAlerts(&cockpit.RegionalAPIEnableManagedAlertsRequest{ + Region: region, + ProjectID: projectID, + }) + if err != nil { + return diag.FromErr(err) + } + } + + if len(contactPoints) > 0 { + for _, cp := range contactPoints { + cpMap, ok := cp.(map[string]interface{}) + if !ok { + return diag.FromErr(errors.New("invalid contact point format")) + } + + email, ok := cpMap["email"].(string) + if !ok { + return diag.FromErr(errors.New("invalid email format")) + } + + emailCP := &cockpit.ContactPointEmail{ + To: email, + } + + _, err = api.CreateContactPoint(&cockpit.RegionalAPICreateContactPointRequest{ + ProjectID: projectID, + Email: emailCP, + Region: region, + }, scw.WithContext(ctx)) + if err != nil { + return diag.FromErr(err) + } + } + } + + d.SetId(ResourceCockpitAlertManagerID(region, projectID)) + return ResourceCockpitAlertManagerRead(ctx, d, meta) +} + +func ResourceCockpitAlertManagerRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + api, region, err := cockpitAPIWithRegion(d, meta) + if err != nil { + return diag.FromErr(err) + } + + projectID := d.Get("project_id").(string) + + alertManager, err := api.GetAlertManager(&cockpit.RegionalAPIGetAlertManagerRequest{ + Region: region, + ProjectID: projectID, + }, scw.WithContext(ctx)) + if err != nil { + return diag.FromErr(err) + } + + _ = d.Set("enable_managed_alerts", alertManager.ManagedAlertsEnabled) + _ = d.Set("region", alertManager.Region) + _ = d.Set("alert_manager_url", alertManager.AlertManagerURL) + + contactPoints, err := api.ListContactPoints(&cockpit.RegionalAPIListContactPointsRequest{ + Region: region, + ProjectID: projectID, + }, scw.WithContext(ctx)) + if err != nil { + return diag.FromErr(err) + } + + var contactPointsList []map[string]interface{} + for _, cp := range contactPoints.ContactPoints { + if cp.Email != nil { + contactPoint := map[string]interface{}{ + "email": cp.Email.To, + } + contactPointsList = append(contactPointsList, contactPoint) + } + } + _ = d.Set("contact_points", contactPointsList) + return nil +} + +func ResourceCockpitAlertManagerUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + api, region, err := cockpitAPIWithRegion(d, meta) + if err != nil { + return diag.FromErr(err) + } + projectID := d.Get("project_id").(string) + + if d.HasChange("enable_managed_alerts") { + enable := d.Get("enable_managed_alerts").(bool) + if enable { + _, err = api.EnableManagedAlerts(&cockpit.RegionalAPIEnableManagedAlertsRequest{ + Region: region, + ProjectID: projectID, + }) + } else { + _, err = api.DisableManagedAlerts(&cockpit.RegionalAPIDisableManagedAlertsRequest{ + Region: region, + ProjectID: projectID, + }, scw.WithContext(ctx)) + } + if err != nil { + return diag.FromErr(err) + } + } + if d.HasChange("contact_points") { + oldContactPointsInterface, newContactPointsInterface := d.GetChange("contact_points") + oldContactPoints := oldContactPointsInterface.([]interface{}) + newContactPoints := newContactPointsInterface.([]interface{}) + + oldContactMap := make(map[string]map[string]interface{}) + for _, oldCP := range oldContactPoints { + cp := oldCP.(map[string]interface{}) + email := cp["email"].(string) + oldContactMap[email] = cp + } + + newContactMap := make(map[string]map[string]interface{}) + for _, newCP := range newContactPoints { + cp := newCP.(map[string]interface{}) + email := cp["email"].(string) + newContactMap[email] = cp + } + for email := range oldContactMap { + if _, found := newContactMap[email]; !found { + err := api.DeleteContactPoint(&cockpit.RegionalAPIDeleteContactPointRequest{ + Region: region, + ProjectID: projectID, + Email: &cockpit.ContactPointEmail{To: email}, + }, scw.WithContext(ctx)) + if err != nil { + return diag.FromErr(err) + } + } + } + + for email := range newContactMap { + if _, found := oldContactMap[email]; !found { + contactPointEmail := &cockpit.ContactPointEmail{To: email} + _, err = api.CreateContactPoint(&cockpit.RegionalAPICreateContactPointRequest{ + Region: region, + ProjectID: projectID, + Email: contactPointEmail, + }, scw.WithContext(ctx)) + if err != nil { + return diag.FromErr(err) + } + } + } + } + + return ResourceCockpitAlertManagerRead(ctx, d, meta) +} + +func ResourceCockpitAlertManagerDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + api, region, err := cockpitAPIWithRegion(d, meta) + if err != nil { + return diag.FromErr(err) + } + + projectID := d.Get("project_id").(string) + + contactPoints, err := api.ListContactPoints(&cockpit.RegionalAPIListContactPointsRequest{ + Region: region, + ProjectID: projectID, + }, scw.WithContext(ctx)) + if err != nil { + return diag.FromErr(err) + } + + for _, cp := range contactPoints.ContactPoints { + if cp.Email != nil { + err = api.DeleteContactPoint(&cockpit.RegionalAPIDeleteContactPointRequest{ + Region: region, + ProjectID: projectID, + Email: &cockpit.ContactPointEmail{To: cp.Email.To}, + }, scw.WithContext(ctx)) + if err != nil { + return diag.FromErr(err) + } + } + } + + _, err = api.DisableManagedAlerts(&cockpit.RegionalAPIDisableManagedAlertsRequest{ + Region: region, + ProjectID: projectID, + }, scw.WithContext(ctx)) + if err != nil { + return diag.FromErr(err) + } + _, err = api.DisableAlertManager(&cockpit.RegionalAPIDisableAlertManagerRequest{ + Region: region, + ProjectID: projectID, + }) + if err != nil { + return diag.FromErr(err) + } + + d.SetId("") + + return nil +} + +func ResourceCockpitAlertManagerID(region scw.Region, projectID string) (resourceID string) { + return fmt.Sprintf("%s/%s/1", region, projectID) +} diff --git a/internal/services/cockpit/alert_manager_test.go b/internal/services/cockpit/alert_manager_test.go new file mode 100644 index 000000000..4d982b91e --- /dev/null +++ b/internal/services/cockpit/alert_manager_test.go @@ -0,0 +1,278 @@ +package cockpit_test + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" + "github.com/scaleway/scaleway-sdk-go/api/cockpit/v1" + "github.com/scaleway/scaleway-sdk-go/scw" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/acctest" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/httperrors" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/meta" +) + +func TestAccCockpitAlertManager_CreateWithSingleContact(t *testing.T) { + tt := acctest.NewTestTools(t) + defer tt.Cleanup() + + resource.ParallelTest(t, resource.TestCase{ + PreCheck: func() { acctest.PreCheck(t) }, + ProviderFactories: tt.ProviderFactories, + CheckDestroy: testAccCockpitAlertManagerAndContactsDestroy(tt), + Steps: []resource.TestStep{ + { + Config: testAccCockpitAlertManagerConfigWithContacts([]map[string]string{ + {"email": "initial@example.com"}, + }), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("scaleway_cockpit_alert_manager.alert_manager", "project_id"), + resource.TestCheckResourceAttr("scaleway_cockpit_alert_manager.alert_manager", "enable_managed_alerts", "true"), + resource.TestCheckResourceAttr("scaleway_cockpit_alert_manager.alert_manager", "contact_points.0.email", "initial@example.com"), + resource.TestCheckResourceAttrSet("scaleway_cockpit_alert_manager.alert_manager", "region"), + resource.TestCheckResourceAttrSet("scaleway_cockpit_alert_manager.alert_manager", "alert_manager_url"), + testAccCheckCockpitContactPointExists(tt, "scaleway_cockpit_alert_manager.alert_manager"), + ), + }, + { + Config: testAccCockpitAlertManagerConfigWithContacts([]map[string]string{ + {"email": "updated@example.com"}, + }), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("scaleway_cockpit_alert_manager.alert_manager", "enable_managed_alerts", "true"), + resource.TestCheckResourceAttr("scaleway_cockpit_alert_manager.alert_manager", "contact_points.0.email", "updated@example.com"), + resource.TestCheckResourceAttrSet("scaleway_cockpit_alert_manager.alert_manager", "region"), + resource.TestCheckResourceAttrSet("scaleway_cockpit_alert_manager.alert_manager", "alert_manager_url"), + testAccCheckCockpitContactPointExists(tt, "scaleway_cockpit_alert_manager.alert_manager"), + ), + }, + }, + }) +} + +func TestAccCockpitAlertManager_CreateWithMultipleContacts(t *testing.T) { + tt := acctest.NewTestTools(t) + defer tt.Cleanup() + + resource.ParallelTest(t, resource.TestCase{ + PreCheck: func() { acctest.PreCheck(t) }, + ProviderFactories: tt.ProviderFactories, + CheckDestroy: testAccCockpitAlertManagerAndContactsDestroy(tt), + Steps: []resource.TestStep{ + { + Config: testAccCockpitAlertManagerConfigWithContacts([]map[string]string{ + {"email": "initial1@example.com"}, + {"email": "initial2@example.com"}, + }), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("scaleway_cockpit_alert_manager.alert_manager", "project_id"), + resource.TestCheckResourceAttr("scaleway_cockpit_alert_manager.alert_manager", "enable_managed_alerts", "true"), + resource.TestCheckResourceAttr("scaleway_cockpit_alert_manager.alert_manager", "contact_points.0.email", "initial1@example.com"), + resource.TestCheckResourceAttr("scaleway_cockpit_alert_manager.alert_manager", "contact_points.1.email", "initial2@example.com"), + resource.TestCheckResourceAttrSet("scaleway_cockpit_alert_manager.alert_manager", "region"), + resource.TestCheckResourceAttrSet("scaleway_cockpit_alert_manager.alert_manager", "alert_manager_url"), + testAccCheckCockpitContactPointExists(tt, "scaleway_cockpit_alert_manager.alert_manager"), + ), + }, + { + Config: testAccCockpitAlertManagerConfigWithContacts([]map[string]string{ + {"email": "updated1@example.com"}, + {"email": "updated2@example.com"}, + }), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("scaleway_cockpit_alert_manager.alert_manager", "enable_managed_alerts", "true"), + resource.TestCheckResourceAttr("scaleway_cockpit_alert_manager.alert_manager", "contact_points.0.email", "updated1@example.com"), + resource.TestCheckResourceAttr("scaleway_cockpit_alert_manager.alert_manager", "contact_points.1.email", "updated2@example.com"), + resource.TestCheckResourceAttrSet("scaleway_cockpit_alert_manager.alert_manager", "region"), + resource.TestCheckResourceAttrSet("scaleway_cockpit_alert_manager.alert_manager", "alert_manager_url"), + testAccCheckCockpitContactPointExists(tt, "scaleway_cockpit_alert_manager.alert_manager"), + ), + }, + }, + }) +} + +func TestAccCockpitAlertManager_UpdateSingleContact(t *testing.T) { + tt := acctest.NewTestTools(t) + defer tt.Cleanup() + + resource.ParallelTest(t, resource.TestCase{ + PreCheck: func() { acctest.PreCheck(t) }, + ProviderFactories: tt.ProviderFactories, + CheckDestroy: testAccCockpitAlertManagerAndContactsDestroy(tt), + Steps: []resource.TestStep{ + { + Config: testAccCockpitAlertManagerConfigWithContacts([]map[string]string{ + {"email": "notupdated@example.com"}, + {"email": "initial1@example.com"}, + }), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("scaleway_cockpit_alert_manager.alert_manager", "project_id"), + resource.TestCheckResourceAttr("scaleway_cockpit_alert_manager.alert_manager", "enable_managed_alerts", "true"), + resource.TestCheckResourceAttr("scaleway_cockpit_alert_manager.alert_manager", "contact_points.0.email", "notupdated@example.com"), + resource.TestCheckResourceAttr("scaleway_cockpit_alert_manager.alert_manager", "contact_points.1.email", "initial1@example.com"), + resource.TestCheckResourceAttrSet("scaleway_cockpit_alert_manager.alert_manager", "region"), + resource.TestCheckResourceAttrSet("scaleway_cockpit_alert_manager.alert_manager", "alert_manager_url"), + testAccCheckCockpitContactPointExists(tt, "scaleway_cockpit_alert_manager.alert_manager"), + ), + }, + { + Config: testAccCockpitAlertManagerConfigWithContacts([]map[string]string{ + {"email": "notupdated@example.com"}, + {"email": "updated1@example.com"}, + }), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("scaleway_cockpit_alert_manager.alert_manager", "enable_managed_alerts", "true"), + resource.TestCheckResourceAttr("scaleway_cockpit_alert_manager.alert_manager", "contact_points.0.email", "notupdated@example.com"), + resource.TestCheckResourceAttr("scaleway_cockpit_alert_manager.alert_manager", "contact_points.1.email", "updated1@example.com"), + resource.TestCheckResourceAttrSet("scaleway_cockpit_alert_manager.alert_manager", "region"), + resource.TestCheckResourceAttrSet("scaleway_cockpit_alert_manager.alert_manager", "alert_manager_url"), + testAccCheckCockpitContactPointExists(tt, "scaleway_cockpit_alert_manager.alert_manager"), + ), + }, + }, + }) +} + +func TestAccCockpitAlertManager_EnableDisable(t *testing.T) { + tt := acctest.NewTestTools(t) + defer tt.Cleanup() + + resource.ParallelTest(t, resource.TestCase{ + PreCheck: func() { acctest.PreCheck(t) }, + ProviderFactories: tt.ProviderFactories, + CheckDestroy: testAccCockpitAlertManagerAndContactsDestroy(tt), + Steps: []resource.TestStep{ + { + Config: testAccCockpitAlertManagerEnableConfig(true), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("scaleway_cockpit_alert_manager.alert_manager", "enable_managed_alerts", "true"), + resource.TestCheckResourceAttrSet("scaleway_cockpit_alert_manager.alert_manager", "region"), + resource.TestCheckResourceAttrSet("scaleway_cockpit_alert_manager.alert_manager", "alert_manager_url"), + testAccCheckAlertManagerEnabled(tt, "scaleway_cockpit_alert_manager.alert_manager", true), + ), + }, + { + Config: testAccCockpitAlertManagerEnableConfig(false), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("scaleway_cockpit_alert_manager.alert_manager", "enable_managed_alerts", "false"), + testAccCheckAlertManagerEnabled(tt, "scaleway_cockpit_alert_manager.alert_manager", false), + ), + }, + }, + }) +} + +func testAccCockpitAlertManagerConfigWithContacts(contactPoints []map[string]string) string { + contactsConfig := "" + for _, contact := range contactPoints { + contactsConfig += fmt.Sprintf(` + contact_points { + email = "%s" + }`, contact["email"]) + } + + return fmt.Sprintf(` + resource "scaleway_account_project" "project" { + name = "tf_test_project" + } + + resource "scaleway_cockpit_alert_manager" "alert_manager" { + project_id = scaleway_account_project.project.id + enable_managed_alerts = true + %s + } + `, contactsConfig) +} + +func testAccCockpitAlertManagerEnableConfig(enable bool) string { + return fmt.Sprintf(` + resource "scaleway_account_project" "project" { + name = "tf_test_project" + } + + resource "scaleway_cockpit_alert_manager" "alert_manager" { + project_id = scaleway_account_project.project.id + enable_managed_alerts = %t + } + `, enable) +} + +func testAccCheckAlertManagerEnabled(tt *acctest.TestTools, resourceName string, expectedEnabled bool) resource.TestCheckFunc { + return func(s *terraform.State) error { + rs, ok := s.RootModule().Resources[resourceName] + if !ok { + return fmt.Errorf("alert manager not found: %s", resourceName) + } + + api := cockpit.NewRegionalAPI(meta.ExtractScwClient(tt.Meta)) + projectID := rs.Primary.Attributes["project_id"] + + alertManager, err := api.GetAlertManager(&cockpit.RegionalAPIGetAlertManagerRequest{ + ProjectID: projectID, + }) + if err != nil { + return err + } + if alertManager.ManagedAlertsEnabled != expectedEnabled { + return fmt.Errorf("alert manager enabled state %t does not match expected state %t", alertManager.AlertManagerEnabled, expectedEnabled) + } + return nil + } +} + +func testAccCheckCockpitContactPointExists(tt *acctest.TestTools, resourceName string) resource.TestCheckFunc { + return func(s *terraform.State) error { + rs, ok := s.RootModule().Resources[resourceName] + if !ok { + return fmt.Errorf("alert manager not found: %s", resourceName) + } + + api := cockpit.NewRegionalAPI(meta.ExtractScwClient(tt.Meta)) + projectID := rs.Primary.Attributes["project_id"] + + contactPoints, err := api.ListContactPoints(&cockpit.RegionalAPIListContactPointsRequest{ + ProjectID: projectID, + }) + if err != nil { + return err + } + for _, cp := range contactPoints.ContactPoints { + if cp.Email != nil && cp.Email.To == rs.Primary.Attributes["contact_points.0.email"] { + return nil + } + } + return fmt.Errorf("contact point with email %s not found in project %s", rs.Primary.Attributes["emails.0"], projectID) + } +} + +func testAccCockpitAlertManagerAndContactsDestroy(tt *acctest.TestTools) resource.TestCheckFunc { + return func(state *terraform.State) error { + for _, rs := range state.RootModule().Resources { + if rs.Type != "scaleway_cockpit_alert_manager" { + continue + } + + api := cockpit.NewRegionalAPI(meta.ExtractScwClient(tt.Meta)) + projectID := rs.Primary.Attributes["project_id"] + region := scw.RegionFrPar + alertManager, err := api.GetAlertManager(&cockpit.RegionalAPIGetAlertManagerRequest{ + Region: region, + ProjectID: projectID, + }) + + if !httperrors.Is404(err) && !httperrors.Is403(err) { + return err + } + + if alertManager == nil { + return nil + } + if alertManager.AlertManagerEnabled { + return fmt.Errorf("cockpit alert manager (%s) is still enabled", rs.Primary.ID) + } + } + return nil + } +} diff --git a/internal/services/cockpit/testdata/cockpit-alert-manager-basic.cassette.yaml b/internal/services/cockpit/testdata/cockpit-alert-manager-basic.cassette.yaml new file mode 100644 index 000000000..5e7c463e7 --- /dev/null +++ b/internal/services/cockpit/testdata/cockpit-alert-manager-basic.cassette.yaml @@ -0,0 +1,499 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 100 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","description":""}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 230 + uncompressed: false + body: '{"created_at":"2024-05-02T09:03:22.582967Z","description":"","id":"91ae2d20-f03b-4a81-aa4a-bda4c70d2a88","name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","updated_at":"2024-05-02T09:03:22.582967Z"}' + headers: + Content-Length: + - "230" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 02 May 2024 09:03:22 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - decb41bf-4553-4663-bb08-dc1c5eeed26a + status: 200 OK + code: 200 + duration: 269.194802ms + - id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/91ae2d20-f03b-4a81-aa4a-bda4c70d2a88 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 230 + uncompressed: false + body: '{"created_at":"2024-05-02T09:03:22.582967Z","description":"","id":"91ae2d20-f03b-4a81-aa4a-bda4c70d2a88","name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","updated_at":"2024-05-02T09:03:22.582967Z"}' + headers: + Content-Length: + - "230" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 02 May 2024 09:03:22 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 408c479c-e67d-4901-838d-375b96cd4956 + status: 200 OK + code: 200 + duration: 44.247684ms + - id: 2 + 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":"91ae2d20-f03b-4a81-aa4a-bda4c70d2a88"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/enable + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 147 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":false,"region":"fr-par"}' + headers: + Content-Length: + - "147" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 02 May 2024 09:03:22 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - aa2917e7-d761-4593-9c53-8dc8b1398ec4 + status: 200 OK + code: 200 + duration: 140.273572ms + - 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.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/91ae2d20-f03b-4a81-aa4a-bda4c70d2a88 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 230 + uncompressed: false + body: '{"created_at":"2024-05-02T09:03:22.582967Z","description":"","id":"91ae2d20-f03b-4a81-aa4a-bda4c70d2a88","name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","updated_at":"2024-05-02T09:03:22.582967Z"}' + headers: + Content-Length: + - "230" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 02 May 2024 09:03:23 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 12d1d18d-fa2f-4bfb-be6c-0768b9192310 + status: 200 OK + code: 200 + duration: 42.959219ms + - id: 4 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/91ae2d20-f03b-4a81-aa4a-bda4c70d2a88 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 230 + uncompressed: false + body: '{"created_at":"2024-05-02T09:03:22.582967Z","description":"","id":"91ae2d20-f03b-4a81-aa4a-bda4c70d2a88","name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","updated_at":"2024-05-02T09:03:22.582967Z"}' + headers: + Content-Length: + - "230" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 02 May 2024 09:03:24 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 09bf983e-8e30-4919-ad69-638d69b7dcd6 + status: 200 OK + code: 200 + duration: 43.448644ms + - id: 5 + 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":"91ae2d20-f03b-4a81-aa4a-bda4c70d2a88"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/managed-alerts/disable + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 147 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":false,"region":"fr-par"}' + headers: + Content-Length: + - "147" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 02 May 2024 09:03:24 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a47f7176-bb68-499e-af07-ff01d58de0a9 + status: 200 OK + code: 200 + duration: 72.288361ms + - 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.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/91ae2d20-f03b-4a81-aa4a-bda4c70d2a88 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 230 + uncompressed: false + body: '{"created_at":"2024-05-02T09:03:22.582967Z","description":"","id":"91ae2d20-f03b-4a81-aa4a-bda4c70d2a88","name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","updated_at":"2024-05-02T09:03:22.582967Z"}' + headers: + Content-Length: + - "230" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 02 May 2024 09:03:25 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f191e734-5519-4a7f-8d25-f9e7b5adabed + status: 200 OK + code: 200 + duration: 35.583667ms + - id: 7 + 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":"91ae2d20-f03b-4a81-aa4a-bda4c70d2a88"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/managed-alerts/disable + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 147 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":false,"region":"fr-par"}' + headers: + Content-Length: + - "147" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 02 May 2024 09:03:26 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9e9410ab-43ce-47e2-8911-11ada7814820 + status: 200 OK + code: 200 + duration: 65.985614ms + - 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.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/91ae2d20-f03b-4a81-aa4a-bda4c70d2a88 + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 02 May 2024 09:03:27 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5e388c63-4622-49d4-8a9c-8eeb7f94c4b6 + status: 204 No Content + code: 204 + duration: 1.259455917s + - id: 9 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=91ae2d20-f03b-4a81-aa4a-bda4c70d2a88 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 117 + uncompressed: false + body: '{"details":[{"action":"read","resource":"cockpit"}],"message":"insufficient permissions","type":"permissions_denied"}' + headers: + Content-Length: + - "117" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 02 May 2024 09:03:27 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - eeb9cbb7-3d24-4b9f-98f2-a27ef98e43ef + status: 403 Forbidden + code: 403 + duration: 34.781677ms diff --git a/internal/services/cockpit/testdata/cockpit-alert-manager-create-with-multiple-contacts.cassette.yaml b/internal/services/cockpit/testdata/cockpit-alert-manager-create-with-multiple-contacts.cassette.yaml new file mode 100644 index 000000000..47cdb7ae7 --- /dev/null +++ b/internal/services/cockpit/testdata/cockpit-alert-manager-create-with-multiple-contacts.cassette.yaml @@ -0,0 +1,1587 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 100 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","description":""}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 235 + uncompressed: false + body: '{"created_at":"2024-05-22T12:42:14.055610Z","description":"","id":"bf545347-0895-4fc9-981b-c044669654eb","name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","updated_at":"2024-05-22T12:42:14.055610Z"}' + headers: + Content-Length: + - "235" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:14 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c7a95552-556c-4233-8704-501e72524694 + status: 200 OK + code: 200 + duration: 248.177802ms + - id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/bf545347-0895-4fc9-981b-c044669654eb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 235 + uncompressed: false + body: '{"created_at":"2024-05-22T12:42:14.055610Z","description":"","id":"bf545347-0895-4fc9-981b-c044669654eb","name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","updated_at":"2024-05-22T12:42:14.055610Z"}' + headers: + Content-Length: + - "235" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:14 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - eec9c287-450d-4d38-92db-92bb7b5e419e + status: 200 OK + code: 200 + duration: 58.577504ms + - id: 2 + 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":"bf545347-0895-4fc9-981b-c044669654eb"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/enable + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 150 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":false,"region":"fr-par"}' + headers: + Content-Length: + - "150" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:14 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d1537a14-15b2-4e94-9ee4-9d0e1791987a + status: 200 OK + code: 200 + duration: 94.366738ms + - id: 3 + 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":"bf545347-0895-4fc9-981b-c044669654eb"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) 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: 149 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' + headers: + Content-Length: + - "149" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:14 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2f9a5089-d11e-45f4-b79b-eee0968bfb6d + status: 200 OK + code: 200 + duration: 69.126972ms + - id: 4 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 91 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"bf545347-0895-4fc9-981b-c044669654eb","email":{"to":"initial1@example.com"}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 58 + uncompressed: false + body: '{"email":{"to":"initial1@example.com"},"region":"fr-par"}' + headers: + Content-Length: + - "58" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:14 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ff6eb53f-dc51-43ae-aa2b-21d8d28f34d3 + status: 200 OK + code: 200 + duration: 349.62061ms + - id: 5 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 91 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"bf545347-0895-4fc9-981b-c044669654eb","email":{"to":"initial2@example.com"}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 58 + uncompressed: false + body: '{"email":{"to":"initial2@example.com"},"region":"fr-par"}' + headers: + Content-Length: + - "58" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:15 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9c15e97d-6f92-4b16-a392-671f5599cce7 + status: 200 OK + code: 200 + duration: 255.049823ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=bf545347-0895-4fc9-981b-c044669654eb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 149 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' + headers: + Content-Length: + - "149" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:15 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 131f152e-73e1-444c-93fd-31db6468e0e7 + status: 200 OK + code: 200 + duration: 51.473412ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=bf545347-0895-4fc9-981b-c044669654eb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 229 + uncompressed: false + body: '{"contact_points":[{"email":{"to":"initial1@example.com"},"region":"fr-par"},{"email":{"to":"initial2@example.com"},"region":"fr-par"}],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":2}' + headers: + Content-Length: + - "229" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:15 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 26291fba-1618-450f-8454-8e17dd4336d3 + status: 200 OK + code: 200 + duration: 103.394235ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=bf545347-0895-4fc9-981b-c044669654eb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 229 + uncompressed: false + body: '{"contact_points":[{"email":{"to":"initial1@example.com"},"region":"fr-par"},{"email":{"to":"initial2@example.com"},"region":"fr-par"}],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":2}' + headers: + Content-Length: + - "229" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:15 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 46e4b93d-29b7-4f62-934f-e08c2225bcfa + status: 200 OK + code: 200 + duration: 163.443815ms + - id: 9 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/bf545347-0895-4fc9-981b-c044669654eb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 235 + uncompressed: false + body: '{"created_at":"2024-05-22T12:42:14.055610Z","description":"","id":"bf545347-0895-4fc9-981b-c044669654eb","name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","updated_at":"2024-05-22T12:42:14.055610Z"}' + headers: + Content-Length: + - "235" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:16 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f8d5ee90-2374-4032-8185-f934da171d61 + status: 200 OK + code: 200 + duration: 41.840674ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=bf545347-0895-4fc9-981b-c044669654eb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 149 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' + headers: + Content-Length: + - "149" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:16 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d3f2385b-d376-425d-9a76-b2b70614f430 + status: 200 OK + code: 200 + duration: 45.747748ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=bf545347-0895-4fc9-981b-c044669654eb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 229 + uncompressed: false + body: '{"contact_points":[{"email":{"to":"initial1@example.com"},"region":"fr-par"},{"email":{"to":"initial2@example.com"},"region":"fr-par"}],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":2}' + headers: + Content-Length: + - "229" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:16 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1a194ae7-ecdf-49bd-ad5d-33cbd06a4239 + status: 200 OK + code: 200 + duration: 121.904893ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/bf545347-0895-4fc9-981b-c044669654eb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 235 + uncompressed: false + body: '{"created_at":"2024-05-22T12:42:14.055610Z","description":"","id":"bf545347-0895-4fc9-981b-c044669654eb","name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","updated_at":"2024-05-22T12:42:14.055610Z"}' + headers: + Content-Length: + - "235" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:16 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8e3cfe9d-c77f-4c9d-a773-acac574523c5 + status: 200 OK + code: 200 + duration: 54.924232ms + - id: 13 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=bf545347-0895-4fc9-981b-c044669654eb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 149 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' + headers: + Content-Length: + - "149" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:16 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d04ab708-f68d-4aa2-9166-1a7ff34fd54d + status: 200 OK + code: 200 + duration: 46.670788ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=bf545347-0895-4fc9-981b-c044669654eb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 229 + uncompressed: false + body: '{"contact_points":[{"email":{"to":"initial1@example.com"},"region":"fr-par"},{"email":{"to":"initial2@example.com"},"region":"fr-par"}],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":2}' + headers: + Content-Length: + - "229" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:17 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f1e5bbaa-260e-42d8-a2c5-ff2f06c62f40 + status: 200 OK + code: 200 + duration: 80.613474ms + - id: 15 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 91 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"bf545347-0895-4fc9-981b-c044669654eb","email":{"to":"initial1@example.com"}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points/delete + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:18 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a3b69f0e-ccfe-464b-9542-2b47faf6b33f + status: 204 No Content + code: 204 + duration: 343.584531ms + - id: 16 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 91 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"bf545347-0895-4fc9-981b-c044669654eb","email":{"to":"initial2@example.com"}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points/delete + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:18 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bf64bc41-8c93-4b51-9ecc-e6a5ef336b0a + status: 204 No Content + code: 204 + duration: 257.618803ms + - id: 17 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 91 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"bf545347-0895-4fc9-981b-c044669654eb","email":{"to":"updated1@example.com"}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 58 + uncompressed: false + body: '{"email":{"to":"updated1@example.com"},"region":"fr-par"}' + headers: + Content-Length: + - "58" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:18 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6f3d71eb-d05b-4a91-aeae-e1318c12de45 + status: 200 OK + code: 200 + duration: 196.185104ms + - id: 18 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 91 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"bf545347-0895-4fc9-981b-c044669654eb","email":{"to":"updated2@example.com"}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 58 + uncompressed: false + body: '{"email":{"to":"updated2@example.com"},"region":"fr-par"}' + headers: + Content-Length: + - "58" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:18 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - fef78589-6916-4170-9ae9-f78a09982a56 + status: 200 OK + code: 200 + duration: 295.04332ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=bf545347-0895-4fc9-981b-c044669654eb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 149 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' + headers: + Content-Length: + - "149" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:18 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1d29efa7-1d30-4a70-8068-aba979bd6215 + status: 200 OK + code: 200 + duration: 55.431828ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=bf545347-0895-4fc9-981b-c044669654eb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 229 + uncompressed: false + body: '{"contact_points":[{"email":{"to":"updated1@example.com"},"region":"fr-par"},{"email":{"to":"updated2@example.com"},"region":"fr-par"}],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":2}' + headers: + Content-Length: + - "229" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:18 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - decd1597-394b-4cf5-b1b7-00cc0b17e3b5 + status: 200 OK + code: 200 + duration: 101.944361ms + - id: 21 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=bf545347-0895-4fc9-981b-c044669654eb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 229 + uncompressed: false + body: '{"contact_points":[{"email":{"to":"updated1@example.com"},"region":"fr-par"},{"email":{"to":"updated2@example.com"},"region":"fr-par"}],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":2}' + headers: + Content-Length: + - "229" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:19 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0dd62fda-a30a-4af7-9d24-e4ba95936694 + status: 200 OK + code: 200 + duration: 179.798711ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/bf545347-0895-4fc9-981b-c044669654eb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 235 + uncompressed: false + body: '{"created_at":"2024-05-22T12:42:14.055610Z","description":"","id":"bf545347-0895-4fc9-981b-c044669654eb","name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","updated_at":"2024-05-22T12:42:14.055610Z"}' + headers: + Content-Length: + - "235" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:19 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5b3de1f1-b4c5-42f1-93fe-a9121a6ff7b6 + status: 200 OK + code: 200 + duration: 41.189011ms + - id: 23 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=bf545347-0895-4fc9-981b-c044669654eb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 149 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' + headers: + Content-Length: + - "149" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:19 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f3c6b074-331b-4600-8de8-328bb11e04e0 + status: 200 OK + code: 200 + duration: 57.068035ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=bf545347-0895-4fc9-981b-c044669654eb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 229 + uncompressed: false + body: '{"contact_points":[{"email":{"to":"updated1@example.com"},"region":"fr-par"},{"email":{"to":"updated2@example.com"},"region":"fr-par"}],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":2}' + headers: + Content-Length: + - "229" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:20 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1e05405c-db65-43e2-be15-82653c2b3181 + status: 200 OK + code: 200 + duration: 77.630092ms + - id: 25 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=bf545347-0895-4fc9-981b-c044669654eb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 229 + uncompressed: false + body: '{"contact_points":[{"email":{"to":"updated1@example.com"},"region":"fr-par"},{"email":{"to":"updated2@example.com"},"region":"fr-par"}],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":2}' + headers: + Content-Length: + - "229" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:20 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c421a95f-749b-4721-82cb-65cb209b1e72 + status: 200 OK + code: 200 + duration: 114.071266ms + - id: 26 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 91 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"bf545347-0895-4fc9-981b-c044669654eb","email":{"to":"updated1@example.com"}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points/delete + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:21 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 27bbf7ec-86b3-41b4-b009-d11a70b766a6 + status: 204 No Content + code: 204 + duration: 522.483769ms + - id: 27 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 91 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"bf545347-0895-4fc9-981b-c044669654eb","email":{"to":"updated2@example.com"}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points/delete + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:21 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b9ae9ec9-dfbf-41a5-9e13-5927273dbca6 + status: 204 No Content + code: 204 + duration: 249.62806ms + - id: 28 + 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":"bf545347-0895-4fc9-981b-c044669654eb"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/managed-alerts/disable + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 150 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":false,"region":"fr-par"}' + headers: + Content-Length: + - "150" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:21 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 53456821-3d41-4c2d-b5b9-82a161c7006c + status: 200 OK + code: 200 + duration: 49.421699ms + - id: 29 + 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":"bf545347-0895-4fc9-981b-c044669654eb"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/disable + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 108 + uncompressed: false + body: '{"alert_manager_enabled":false,"alert_manager_url":null,"managed_alerts_enabled":false,"region":"fr-par"}' + headers: + Content-Length: + - "108" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:21 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 951c383d-e268-452b-9853-7aa3681c2700 + status: 200 OK + code: 200 + duration: 176.985388ms + - id: 30 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/bf545347-0895-4fc9-981b-c044669654eb + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:23 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5bd062f2-29d0-443e-96a0-51a9995cdcf4 + status: 204 No Content + code: 204 + duration: 1.189821195s + - id: 31 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=bf545347-0895-4fc9-981b-c044669654eb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 117 + uncompressed: false + body: '{"details":[{"action":"read","resource":"cockpit"}],"message":"insufficient permissions","type":"permissions_denied"}' + headers: + Content-Length: + - "117" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:23 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2825a4a2-6e95-4252-aa9e-6b5bfbcf67cb + status: 403 Forbidden + code: 403 + duration: 54.157505ms diff --git a/internal/services/cockpit/testdata/cockpit-alert-manager-create-with-single-contact.cassette.yaml b/internal/services/cockpit/testdata/cockpit-alert-manager-create-with-single-contact.cassette.yaml new file mode 100644 index 000000000..394172991 --- /dev/null +++ b/internal/services/cockpit/testdata/cockpit-alert-manager-create-with-single-contact.cassette.yaml @@ -0,0 +1,1387 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 100 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","description":""}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 235 + uncompressed: false + body: '{"created_at":"2024-05-22T12:40:51.626538Z","description":"","id":"0fe71b2c-e3ae-46b9-a9d4-e04e7733c23d","name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","updated_at":"2024-05-22T12:40:51.626538Z"}' + headers: + Content-Length: + - "235" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:40:51 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ae99895f-3e45-4999-b612-02ae07f83ed1 + status: 200 OK + code: 200 + duration: 272.246203ms + - id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/0fe71b2c-e3ae-46b9-a9d4-e04e7733c23d + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 235 + uncompressed: false + body: '{"created_at":"2024-05-22T12:40:51.626538Z","description":"","id":"0fe71b2c-e3ae-46b9-a9d4-e04e7733c23d","name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","updated_at":"2024-05-22T12:40:51.626538Z"}' + headers: + Content-Length: + - "235" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:40:51 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0d38ef0a-c047-4733-bee6-a0e08a7e952b + status: 200 OK + code: 200 + duration: 49.196723ms + - id: 2 + 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":"0fe71b2c-e3ae-46b9-a9d4-e04e7733c23d"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/enable + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 150 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":false,"region":"fr-par"}' + headers: + Content-Length: + - "150" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:40:52 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e0deb8dd-b6f3-42a6-9935-0d935c04b5b0 + status: 200 OK + code: 200 + duration: 91.938019ms + - id: 3 + 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":"0fe71b2c-e3ae-46b9-a9d4-e04e7733c23d"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) 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: 149 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' + headers: + Content-Length: + - "149" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:40:52 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6e389b7a-2fae-4c6a-a1bd-2dbf0efa1d23 + status: 200 OK + code: 200 + duration: 85.680071ms + - id: 4 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 90 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"0fe71b2c-e3ae-46b9-a9d4-e04e7733c23d","email":{"to":"initial@example.com"}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 57 + uncompressed: false + body: '{"email":{"to":"initial@example.com"},"region":"fr-par"}' + headers: + Content-Length: + - "57" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:40:52 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8e53cc03-620c-4352-948b-617aa098327c + status: 200 OK + code: 200 + duration: 549.735551ms + - id: 5 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=0fe71b2c-e3ae-46b9-a9d4-e04e7733c23d + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 149 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' + headers: + Content-Length: + - "149" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:40:52 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f995c199-6ceb-4e2f-8572-f31362c1422f + status: 200 OK + code: 200 + duration: 56.000168ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=0fe71b2c-e3ae-46b9-a9d4-e04e7733c23d + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 168 + uncompressed: false + body: '{"contact_points":[{"email":{"to":"initial@example.com"},"region":"fr-par"}],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":1}' + headers: + Content-Length: + - "168" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:40:52 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a98266c1-b952-4c79-b255-3c0838d7cd19 + status: 200 OK + code: 200 + duration: 166.947593ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=0fe71b2c-e3ae-46b9-a9d4-e04e7733c23d + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 168 + uncompressed: false + body: '{"contact_points":[{"email":{"to":"initial@example.com"},"region":"fr-par"}],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":1}' + headers: + Content-Length: + - "168" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:40:53 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 25ccf442-349f-484b-91bd-f6a5d103f110 + status: 200 OK + code: 200 + duration: 94.130354ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/0fe71b2c-e3ae-46b9-a9d4-e04e7733c23d + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 235 + uncompressed: false + body: '{"created_at":"2024-05-22T12:40:51.626538Z","description":"","id":"0fe71b2c-e3ae-46b9-a9d4-e04e7733c23d","name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","updated_at":"2024-05-22T12:40:51.626538Z"}' + headers: + Content-Length: + - "235" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:40:53 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6c5b722c-575f-4615-af01-6f1af4e19d13 + status: 200 OK + code: 200 + duration: 54.767063ms + - id: 9 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=0fe71b2c-e3ae-46b9-a9d4-e04e7733c23d + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 149 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' + headers: + Content-Length: + - "149" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:40:53 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4491f05b-d18d-487a-864f-27e8412acf5e + status: 200 OK + code: 200 + duration: 44.887707ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=0fe71b2c-e3ae-46b9-a9d4-e04e7733c23d + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 168 + uncompressed: false + body: '{"contact_points":[{"email":{"to":"initial@example.com"},"region":"fr-par"}],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":1}' + headers: + Content-Length: + - "168" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:40:53 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7a010943-a998-4b2f-81c9-b5caf4f00466 + status: 200 OK + code: 200 + duration: 149.60835ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/0fe71b2c-e3ae-46b9-a9d4-e04e7733c23d + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 235 + uncompressed: false + body: '{"created_at":"2024-05-22T12:40:51.626538Z","description":"","id":"0fe71b2c-e3ae-46b9-a9d4-e04e7733c23d","name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","updated_at":"2024-05-22T12:40:51.626538Z"}' + headers: + Content-Length: + - "235" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:40:54 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 45ff78cb-4c19-46dc-a59e-f8fc2fa090d8 + status: 200 OK + code: 200 + duration: 47.778448ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=0fe71b2c-e3ae-46b9-a9d4-e04e7733c23d + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 149 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' + headers: + Content-Length: + - "149" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:40:54 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 59cae494-ba07-401b-b4f8-9957972d14aa + status: 200 OK + code: 200 + duration: 35.920508ms + - id: 13 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=0fe71b2c-e3ae-46b9-a9d4-e04e7733c23d + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 168 + uncompressed: false + body: '{"contact_points":[{"email":{"to":"initial@example.com"},"region":"fr-par"}],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":1}' + headers: + Content-Length: + - "168" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:40:54 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ed24dff4-ac8c-417a-9b51-6f27165b6263 + status: 200 OK + code: 200 + duration: 101.506309ms + - id: 14 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 90 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"0fe71b2c-e3ae-46b9-a9d4-e04e7733c23d","email":{"to":"initial@example.com"}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points/delete + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:40:55 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e2160e60-dbb3-40cf-a285-e95bf1ef2e1c + status: 204 No Content + code: 204 + duration: 192.794078ms + - id: 15 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 90 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"0fe71b2c-e3ae-46b9-a9d4-e04e7733c23d","email":{"to":"updated@example.com"}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 57 + uncompressed: false + body: '{"email":{"to":"updated@example.com"},"region":"fr-par"}' + headers: + Content-Length: + - "57" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:40:56 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 28a1165a-900c-494f-94ec-a2941ad73a08 + status: 200 OK + code: 200 + duration: 403.659466ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=0fe71b2c-e3ae-46b9-a9d4-e04e7733c23d + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 149 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' + headers: + Content-Length: + - "149" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:40:56 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 243cea81-5d64-4247-a033-6a3c60835463 + status: 200 OK + code: 200 + duration: 54.88508ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=0fe71b2c-e3ae-46b9-a9d4-e04e7733c23d + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 168 + uncompressed: false + body: '{"contact_points":[{"email":{"to":"updated@example.com"},"region":"fr-par"}],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":1}' + headers: + Content-Length: + - "168" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:40:56 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9fb1bff3-8ea5-4d8f-b11e-cf7c2553b1e9 + status: 200 OK + code: 200 + duration: 101.939693ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=0fe71b2c-e3ae-46b9-a9d4-e04e7733c23d + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 168 + uncompressed: false + body: '{"contact_points":[{"email":{"to":"updated@example.com"},"region":"fr-par"}],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":1}' + headers: + Content-Length: + - "168" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:40:56 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0f4ba24d-ec0c-4f91-926d-b5d10be3ba46 + status: 200 OK + code: 200 + duration: 162.838196ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/0fe71b2c-e3ae-46b9-a9d4-e04e7733c23d + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 235 + uncompressed: false + body: '{"created_at":"2024-05-22T12:40:51.626538Z","description":"","id":"0fe71b2c-e3ae-46b9-a9d4-e04e7733c23d","name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","updated_at":"2024-05-22T12:40:51.626538Z"}' + headers: + Content-Length: + - "235" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:40:57 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a044861c-78e4-4509-96d6-71fb91c644ee + status: 200 OK + code: 200 + duration: 53.877364ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=0fe71b2c-e3ae-46b9-a9d4-e04e7733c23d + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 149 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' + headers: + Content-Length: + - "149" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:40:57 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f82cf205-24e3-470c-9388-f29115e34efe + status: 200 OK + code: 200 + duration: 46.663234ms + - id: 21 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=0fe71b2c-e3ae-46b9-a9d4-e04e7733c23d + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 168 + uncompressed: false + body: '{"contact_points":[{"email":{"to":"updated@example.com"},"region":"fr-par"}],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":1}' + headers: + Content-Length: + - "168" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:40:57 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6f2a11fc-74c4-474a-899b-e13ab10b3518 + status: 200 OK + code: 200 + duration: 149.342836ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=0fe71b2c-e3ae-46b9-a9d4-e04e7733c23d + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 168 + uncompressed: false + body: '{"contact_points":[{"email":{"to":"updated@example.com"},"region":"fr-par"}],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":1}' + headers: + Content-Length: + - "168" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:40:58 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2a670770-ff67-4eb9-be9c-8ac8d771c35c + status: 200 OK + code: 200 + duration: 133.911285ms + - id: 23 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 90 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"0fe71b2c-e3ae-46b9-a9d4-e04e7733c23d","email":{"to":"updated@example.com"}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points/delete + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:41:05 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4c5fef7b-6bef-4dee-803a-74e9c5d2ece5 + status: 204 No Content + code: 204 + duration: 7.149486853s + - id: 24 + 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":"0fe71b2c-e3ae-46b9-a9d4-e04e7733c23d"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/managed-alerts/disable + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 150 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":false,"region":"fr-par"}' + headers: + Content-Length: + - "150" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:41:05 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 48f09fc2-c3c1-47e9-ad72-f82be60c790e + status: 200 OK + code: 200 + duration: 55.357598ms + - id: 25 + 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":"0fe71b2c-e3ae-46b9-a9d4-e04e7733c23d"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/disable + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 108 + uncompressed: false + body: '{"alert_manager_enabled":false,"alert_manager_url":null,"managed_alerts_enabled":false,"region":"fr-par"}' + headers: + Content-Length: + - "108" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:41:05 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c523fc25-bf99-4f30-8606-80c8eebb7b23 + status: 200 OK + code: 200 + duration: 172.987254ms + - id: 26 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/0fe71b2c-e3ae-46b9-a9d4-e04e7733c23d + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:41:06 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b9d7a992-907a-4092-94a5-f660fac3ebc4 + status: 204 No Content + code: 204 + duration: 1.31203248s + - id: 27 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=0fe71b2c-e3ae-46b9-a9d4-e04e7733c23d + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 117 + uncompressed: false + body: '{"details":[{"action":"read","resource":"cockpit"}],"message":"insufficient permissions","type":"permissions_denied"}' + headers: + Content-Length: + - "117" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:41:06 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8bbb062c-7ae5-46af-9b47-a9c966ec36b8 + status: 403 Forbidden + code: 403 + duration: 48.303558ms diff --git a/internal/services/cockpit/testdata/cockpit-alert-manager-enable-disable.cassette.yaml b/internal/services/cockpit/testdata/cockpit-alert-manager-enable-disable.cassette.yaml new file mode 100644 index 000000000..5e3a34051 --- /dev/null +++ b/internal/services/cockpit/testdata/cockpit-alert-manager-enable-disable.cassette.yaml @@ -0,0 +1,1238 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 100 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","description":""}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 235 + uncompressed: false + body: '{"created_at":"2024-05-22T12:42:56.701438Z","description":"","id":"b409249b-233c-471f-9eca-e8489b2ac7d3","name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","updated_at":"2024-05-22T12:42:56.701438Z"}' + headers: + Content-Length: + - "235" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:56 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f88bb622-1538-4937-9cbf-c94df2411774 + status: 200 OK + code: 200 + duration: 240.599746ms + - id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/b409249b-233c-471f-9eca-e8489b2ac7d3 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 235 + uncompressed: false + body: '{"created_at":"2024-05-22T12:42:56.701438Z","description":"","id":"b409249b-233c-471f-9eca-e8489b2ac7d3","name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","updated_at":"2024-05-22T12:42:56.701438Z"}' + headers: + Content-Length: + - "235" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:56 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a1836db9-6948-4463-a570-a7c9cd170ff8 + status: 200 OK + code: 200 + duration: 32.592692ms + - id: 2 + 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":"b409249b-233c-471f-9eca-e8489b2ac7d3"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/enable + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 150 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":false,"region":"fr-par"}' + headers: + Content-Length: + - "150" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:57 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b07588bc-aabc-42ba-adc3-3e6828036f3f + status: 200 OK + code: 200 + duration: 91.692971ms + - id: 3 + 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":"b409249b-233c-471f-9eca-e8489b2ac7d3"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) 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: 149 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' + headers: + Content-Length: + - "149" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:57 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 57b355fc-6f94-4510-a988-6a818ae038e0 + status: 200 OK + code: 200 + duration: 53.638871ms + - id: 4 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=b409249b-233c-471f-9eca-e8489b2ac7d3 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 149 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' + headers: + Content-Length: + - "149" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:57 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9c438beb-6011-40d4-a791-5e213d094b61 + status: 200 OK + code: 200 + duration: 47.323107ms + - id: 5 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=b409249b-233c-471f-9eca-e8489b2ac7d3 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 111 + uncompressed: false + body: '{"contact_points":[],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":0}' + headers: + Content-Length: + - "111" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:57 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 11189d88-3070-4a94-96dd-f4d4dafd9215 + status: 200 OK + code: 200 + duration: 120.390369ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=b409249b-233c-471f-9eca-e8489b2ac7d3 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 149 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' + headers: + Content-Length: + - "149" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:57 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6108a3d6-cd0d-439d-9162-2d685055b61d + status: 200 OK + code: 200 + duration: 64.157756ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/b409249b-233c-471f-9eca-e8489b2ac7d3 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 235 + uncompressed: false + body: '{"created_at":"2024-05-22T12:42:56.701438Z","description":"","id":"b409249b-233c-471f-9eca-e8489b2ac7d3","name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","updated_at":"2024-05-22T12:42:56.701438Z"}' + headers: + Content-Length: + - "235" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:58 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - aa94c888-387f-463d-b5bb-0bb478ca7aa8 + status: 200 OK + code: 200 + duration: 38.901031ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=b409249b-233c-471f-9eca-e8489b2ac7d3 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 149 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' + headers: + Content-Length: + - "149" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:58 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 500d3aba-a726-4b00-b90e-7c699fa78bab + status: 200 OK + code: 200 + duration: 47.3001ms + - id: 9 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=b409249b-233c-471f-9eca-e8489b2ac7d3 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 111 + uncompressed: false + body: '{"contact_points":[],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":0}' + headers: + Content-Length: + - "111" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:58 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 46856ed3-0019-4f4c-8574-17133e3aeb57 + status: 200 OK + code: 200 + duration: 99.823326ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/b409249b-233c-471f-9eca-e8489b2ac7d3 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 235 + uncompressed: false + body: '{"created_at":"2024-05-22T12:42:56.701438Z","description":"","id":"b409249b-233c-471f-9eca-e8489b2ac7d3","name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","updated_at":"2024-05-22T12:42:56.701438Z"}' + headers: + Content-Length: + - "235" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:58 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5423b1ed-1caa-4203-8933-3255595d2a71 + status: 200 OK + code: 200 + duration: 42.885046ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=b409249b-233c-471f-9eca-e8489b2ac7d3 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 149 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' + headers: + Content-Length: + - "149" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:58 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 212a002e-e70e-422a-9d7f-7d26ad6714dc + status: 200 OK + code: 200 + duration: 50.078223ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=b409249b-233c-471f-9eca-e8489b2ac7d3 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 111 + uncompressed: false + body: '{"contact_points":[],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":0}' + headers: + Content-Length: + - "111" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:58 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - afdfc7f7-92cc-4ab6-ae26-86d9bbd47a98 + status: 200 OK + code: 200 + duration: 82.803505ms + - id: 13 + 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":"b409249b-233c-471f-9eca-e8489b2ac7d3"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/managed-alerts/disable + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 150 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":false,"region":"fr-par"}' + headers: + Content-Length: + - "150" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:59 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7720b4bc-8a4e-438c-90a6-788ca36e0c23 + status: 200 OK + code: 200 + duration: 66.011996ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=b409249b-233c-471f-9eca-e8489b2ac7d3 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 150 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":false,"region":"fr-par"}' + headers: + Content-Length: + - "150" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:59 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 63c0b56c-1a70-462b-8ee5-4057c76324c4 + status: 200 OK + code: 200 + duration: 49.427945ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=b409249b-233c-471f-9eca-e8489b2ac7d3 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 111 + uncompressed: false + body: '{"contact_points":[],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":0}' + headers: + Content-Length: + - "111" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:59 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2a06e928-03a5-48db-a2ba-31a6fa51790f + status: 200 OK + code: 200 + duration: 125.494456ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=b409249b-233c-471f-9eca-e8489b2ac7d3 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 150 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":false,"region":"fr-par"}' + headers: + Content-Length: + - "150" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:43:00 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 97b3a0e2-5399-4301-816b-f0ba04b4b3a2 + status: 200 OK + code: 200 + duration: 57.035052ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/b409249b-233c-471f-9eca-e8489b2ac7d3 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 235 + uncompressed: false + body: '{"created_at":"2024-05-22T12:42:56.701438Z","description":"","id":"b409249b-233c-471f-9eca-e8489b2ac7d3","name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","updated_at":"2024-05-22T12:42:56.701438Z"}' + headers: + Content-Length: + - "235" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:43:00 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - eb2a93c2-2704-4a82-b79a-b973b723b312 + status: 200 OK + code: 200 + duration: 40.430492ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=b409249b-233c-471f-9eca-e8489b2ac7d3 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 150 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":false,"region":"fr-par"}' + headers: + Content-Length: + - "150" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:43:00 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 64a69e8f-0491-4de0-b8cf-82701d669709 + status: 200 OK + code: 200 + duration: 39.385519ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=b409249b-233c-471f-9eca-e8489b2ac7d3 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 111 + uncompressed: false + body: '{"contact_points":[],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":0}' + headers: + Content-Length: + - "111" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:43:00 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bb5decd6-c213-4a0a-9844-ec8343b7b2c9 + status: 200 OK + code: 200 + duration: 79.195034ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=b409249b-233c-471f-9eca-e8489b2ac7d3 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 111 + uncompressed: false + body: '{"contact_points":[],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":0}' + headers: + Content-Length: + - "111" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:43:01 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d292b483-6550-46a1-a73e-af59c3a91f14 + status: 200 OK + code: 200 + duration: 110.75728ms + - id: 21 + 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":"b409249b-233c-471f-9eca-e8489b2ac7d3"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/managed-alerts/disable + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 150 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":false,"region":"fr-par"}' + headers: + Content-Length: + - "150" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:43:01 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b030ce7e-8efc-44f9-8b23-91de0004117a + status: 200 OK + code: 200 + duration: 55.039145ms + - id: 22 + 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":"b409249b-233c-471f-9eca-e8489b2ac7d3"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/disable + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 108 + uncompressed: false + body: '{"alert_manager_enabled":false,"alert_manager_url":null,"managed_alerts_enabled":false,"region":"fr-par"}' + headers: + Content-Length: + - "108" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:43:01 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - de076723-caf7-4d33-852c-62cbb534adcc + status: 200 OK + code: 200 + duration: 119.268293ms + - id: 23 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/b409249b-233c-471f-9eca-e8489b2ac7d3 + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:43:03 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7b125eab-edb1-4108-ada2-f30921db2218 + status: 204 No Content + code: 204 + duration: 1.207594709s + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=b409249b-233c-471f-9eca-e8489b2ac7d3 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 117 + uncompressed: false + body: '{"details":[{"action":"read","resource":"cockpit"}],"message":"insufficient permissions","type":"permissions_denied"}' + headers: + Content-Length: + - "117" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:43:03 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bae734bd-6eaf-45ad-99f9-5a59997eba10 + status: 403 Forbidden + code: 403 + duration: 43.551462ms diff --git a/internal/services/cockpit/testdata/cockpit-alert-manager-update-single-contact.cassette.yaml b/internal/services/cockpit/testdata/cockpit-alert-manager-update-single-contact.cassette.yaml new file mode 100644 index 000000000..1a3ec7e49 --- /dev/null +++ b/internal/services/cockpit/testdata/cockpit-alert-manager-update-single-contact.cassette.yaml @@ -0,0 +1,1487 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 100 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","description":""}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 235 + uncompressed: false + body: '{"created_at":"2024-05-22T12:42:34.282594Z","description":"","id":"719e7356-2929-485e-837b-934b92ff547b","name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","updated_at":"2024-05-22T12:42:34.282594Z"}' + headers: + Content-Length: + - "235" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:34 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 602d438b-ba70-4b00-9395-5ab71283fbe9 + status: 200 OK + code: 200 + duration: 240.062767ms + - id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/719e7356-2929-485e-837b-934b92ff547b + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 235 + uncompressed: false + body: '{"created_at":"2024-05-22T12:42:34.282594Z","description":"","id":"719e7356-2929-485e-837b-934b92ff547b","name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","updated_at":"2024-05-22T12:42:34.282594Z"}' + headers: + Content-Length: + - "235" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:34 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 63dd17b2-732e-4a35-8eb9-7deb4c1e9191 + status: 200 OK + code: 200 + duration: 43.54418ms + - id: 2 + 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":"719e7356-2929-485e-837b-934b92ff547b"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/enable + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 150 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":false,"region":"fr-par"}' + headers: + Content-Length: + - "150" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:34 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 39bf3465-eb77-494b-85bb-77c6ca6f7738 + status: 200 OK + code: 200 + duration: 107.158774ms + - id: 3 + 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":"719e7356-2929-485e-837b-934b92ff547b"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) 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: 149 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' + headers: + Content-Length: + - "149" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:34 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 060e8564-c7c2-484f-b3e6-d1dfae93e857 + status: 200 OK + code: 200 + duration: 65.589698ms + - id: 4 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 93 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"719e7356-2929-485e-837b-934b92ff547b","email":{"to":"notupdated@example.com"}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 60 + uncompressed: false + body: '{"email":{"to":"notupdated@example.com"},"region":"fr-par"}' + headers: + Content-Length: + - "60" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:35 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - fb136d4f-9c90-48d0-a28b-c7bd38c2faed + status: 200 OK + code: 200 + duration: 523.909412ms + - id: 5 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 91 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"719e7356-2929-485e-837b-934b92ff547b","email":{"to":"initial1@example.com"}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 58 + uncompressed: false + body: '{"email":{"to":"initial1@example.com"},"region":"fr-par"}' + headers: + Content-Length: + - "58" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:35 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f6611e43-2c07-4cad-a720-3d266b25ad25 + status: 200 OK + code: 200 + duration: 398.09631ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=719e7356-2929-485e-837b-934b92ff547b + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 149 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' + headers: + Content-Length: + - "149" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:35 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 22244f0c-8b6f-4d9a-85bc-d25ccc238b31 + status: 200 OK + code: 200 + duration: 48.392523ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=719e7356-2929-485e-837b-934b92ff547b + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 231 + uncompressed: false + body: '{"contact_points":[{"email":{"to":"notupdated@example.com"},"region":"fr-par"},{"email":{"to":"initial1@example.com"},"region":"fr-par"}],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":2}' + headers: + Content-Length: + - "231" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:35 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 276edd8a-3166-4076-944a-8c066347ae7a + status: 200 OK + code: 200 + duration: 77.52606ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=719e7356-2929-485e-837b-934b92ff547b + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 231 + uncompressed: false + body: '{"contact_points":[{"email":{"to":"notupdated@example.com"},"region":"fr-par"},{"email":{"to":"initial1@example.com"},"region":"fr-par"}],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":2}' + headers: + Content-Length: + - "231" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:35 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a4b2e109-126f-454c-ac9b-1afe7cab8517 + status: 200 OK + code: 200 + duration: 104.774926ms + - id: 9 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/719e7356-2929-485e-837b-934b92ff547b + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 235 + uncompressed: false + body: '{"created_at":"2024-05-22T12:42:34.282594Z","description":"","id":"719e7356-2929-485e-837b-934b92ff547b","name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","updated_at":"2024-05-22T12:42:34.282594Z"}' + headers: + Content-Length: + - "235" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:36 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0eef9243-8b79-454d-aa28-29670ff169d5 + status: 200 OK + code: 200 + duration: 46.051182ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=719e7356-2929-485e-837b-934b92ff547b + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 149 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' + headers: + Content-Length: + - "149" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:36 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 242b41cd-2e3d-40f7-b788-f2b37f176b92 + status: 200 OK + code: 200 + duration: 47.218657ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=719e7356-2929-485e-837b-934b92ff547b + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 231 + uncompressed: false + body: '{"contact_points":[{"email":{"to":"notupdated@example.com"},"region":"fr-par"},{"email":{"to":"initial1@example.com"},"region":"fr-par"}],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":2}' + headers: + Content-Length: + - "231" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:36 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2f234c9d-97c2-4a09-a23c-eaa1b76e4f1f + status: 200 OK + code: 200 + duration: 103.932675ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/719e7356-2929-485e-837b-934b92ff547b + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 235 + uncompressed: false + body: '{"created_at":"2024-05-22T12:42:34.282594Z","description":"","id":"719e7356-2929-485e-837b-934b92ff547b","name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","updated_at":"2024-05-22T12:42:34.282594Z"}' + headers: + Content-Length: + - "235" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:37 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7e5080ca-9add-4e41-b0ba-c823f677e18b + status: 200 OK + code: 200 + duration: 52.650654ms + - id: 13 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=719e7356-2929-485e-837b-934b92ff547b + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 149 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' + headers: + Content-Length: + - "149" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:37 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3ae7e02a-bb65-4e36-bfd2-f568b9021375 + status: 200 OK + code: 200 + duration: 46.010952ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=719e7356-2929-485e-837b-934b92ff547b + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 231 + uncompressed: false + body: '{"contact_points":[{"email":{"to":"notupdated@example.com"},"region":"fr-par"},{"email":{"to":"initial1@example.com"},"region":"fr-par"}],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":2}' + headers: + Content-Length: + - "231" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:37 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 890b965e-e8a6-44d6-9b04-0bc4f2cd708d + status: 200 OK + code: 200 + duration: 69.951681ms + - id: 15 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 91 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"719e7356-2929-485e-837b-934b92ff547b","email":{"to":"initial1@example.com"}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points/delete + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:38 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9e72769f-e3b4-4242-8179-f90f0d0801a0 + status: 204 No Content + code: 204 + duration: 242.698397ms + - id: 16 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 91 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"719e7356-2929-485e-837b-934b92ff547b","email":{"to":"updated1@example.com"}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 58 + uncompressed: false + body: '{"email":{"to":"updated1@example.com"},"region":"fr-par"}' + headers: + Content-Length: + - "58" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:41 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 270c85d3-adce-4cc7-a584-3ee96be85f1f + status: 200 OK + code: 200 + duration: 2.799652083s + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=719e7356-2929-485e-837b-934b92ff547b + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 149 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' + headers: + Content-Length: + - "149" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:41 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0a4701b9-a711-4261-8b2b-e42498797d0b + status: 200 OK + code: 200 + duration: 49.657002ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=719e7356-2929-485e-837b-934b92ff547b + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 231 + uncompressed: false + body: '{"contact_points":[{"email":{"to":"notupdated@example.com"},"region":"fr-par"},{"email":{"to":"updated1@example.com"},"region":"fr-par"}],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":2}' + headers: + Content-Length: + - "231" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:42 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 21190ae6-dabd-4474-8d8f-a4ca643a52fc + status: 200 OK + code: 200 + duration: 810.059377ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=719e7356-2929-485e-837b-934b92ff547b + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 231 + uncompressed: false + body: '{"contact_points":[{"email":{"to":"notupdated@example.com"},"region":"fr-par"},{"email":{"to":"updated1@example.com"},"region":"fr-par"}],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":2}' + headers: + Content-Length: + - "231" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:42 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8835a0c5-9378-4417-9ac8-4713f54a82d8 + status: 200 OK + code: 200 + duration: 107.427205ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/719e7356-2929-485e-837b-934b92ff547b + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 235 + uncompressed: false + body: '{"created_at":"2024-05-22T12:42:34.282594Z","description":"","id":"719e7356-2929-485e-837b-934b92ff547b","name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","updated_at":"2024-05-22T12:42:34.282594Z"}' + headers: + Content-Length: + - "235" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:42 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6c6ea3ce-efe0-4e29-8edd-90372afeeac0 + status: 200 OK + code: 200 + duration: 35.06513ms + - id: 21 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=719e7356-2929-485e-837b-934b92ff547b + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 149 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":true,"region":"fr-par"}' + headers: + Content-Length: + - "149" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:43 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2e5069d2-17d1-4d19-a642-adf11432f88a + status: 200 OK + code: 200 + duration: 44.501327ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=719e7356-2929-485e-837b-934b92ff547b + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 231 + uncompressed: false + body: '{"contact_points":[{"email":{"to":"notupdated@example.com"},"region":"fr-par"},{"email":{"to":"updated1@example.com"},"region":"fr-par"}],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":2}' + headers: + Content-Length: + - "231" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:43 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d8bf1d64-f60d-45e3-87cb-2e4204c89ad8 + status: 200 OK + code: 200 + duration: 118.175699ms + - id: 23 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=719e7356-2929-485e-837b-934b92ff547b + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 231 + uncompressed: false + body: '{"contact_points":[{"email":{"to":"notupdated@example.com"},"region":"fr-par"},{"email":{"to":"updated1@example.com"},"region":"fr-par"}],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":2}' + headers: + Content-Length: + - "231" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:44 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7708881d-a54d-4413-be68-549d0e17b020 + status: 200 OK + code: 200 + duration: 101.867184ms + - id: 24 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 93 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"719e7356-2929-485e-837b-934b92ff547b","email":{"to":"notupdated@example.com"}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points/delete + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:44 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 479464cc-1458-4620-861c-f6b10960320e + status: 204 No Content + code: 204 + duration: 336.7361ms + - id: 25 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 91 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"719e7356-2929-485e-837b-934b92ff547b","email":{"to":"updated1@example.com"}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points/delete + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:44 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 306981df-8b22-49ec-86a8-345db7200467 + status: 204 No Content + code: 204 + duration: 239.37662ms + - id: 26 + 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":"719e7356-2929-485e-837b-934b92ff547b"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/managed-alerts/disable + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 150 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":false,"region":"fr-par"}' + headers: + Content-Length: + - "150" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:44 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - eb3abc0a-e613-4a99-8d19-f40898fdad27 + status: 200 OK + code: 200 + duration: 74.586188ms + - id: 27 + 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":"719e7356-2929-485e-837b-934b92ff547b"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/disable + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 108 + uncompressed: false + body: '{"alert_manager_enabled":false,"alert_manager_url":null,"managed_alerts_enabled":false,"region":"fr-par"}' + headers: + Content-Length: + - "108" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:44 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 627d0821-4561-4f42-98c6-45dd7e176066 + status: 200 OK + code: 200 + duration: 167.975958ms + - 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.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/719e7356-2929-485e-837b-934b92ff547b + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:46 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7718e3e5-2cff-44ac-8e9b-798b9a69fd55 + status: 204 No Content + code: 204 + duration: 1.137323198s + - id: 29 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager?project_id=719e7356-2929-485e-837b-934b92ff547b + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 117 + uncompressed: false + body: '{"details":[{"action":"read","resource":"cockpit"}],"message":"insufficient permissions","type":"permissions_denied"}' + headers: + Content-Length: + - "117" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 22 May 2024 12:42:46 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7f65e41d-9482-448d-982e-0ba52e1a09c6 + status: 403 Forbidden + code: 403 + duration: 45.353813ms diff --git a/internal/services/cockpit/testdata/cockpit-contact-point-basic.cassette.yaml b/internal/services/cockpit/testdata/cockpit-contact-point-basic.cassette.yaml new file mode 100644 index 000000000..8a748b6bc --- /dev/null +++ b/internal/services/cockpit/testdata/cockpit-contact-point-basic.cassette.yaml @@ -0,0 +1,893 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 100 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","description":""}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 230 + uncompressed: false + body: '{"created_at":"2024-05-02T09:57:19.209154Z","description":"","id":"aad3980b-ba65-48b4-bf92-69a9a2287431","name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","updated_at":"2024-05-02T09:57:19.209154Z"}' + headers: + Content-Length: + - "230" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 02 May 2024 09:57:19 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 005a3af9-46d3-4a09-b080-a4b30fcf86e9 + status: 200 OK + code: 200 + duration: 279.42208ms + - id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/aad3980b-ba65-48b4-bf92-69a9a2287431 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 230 + uncompressed: false + body: '{"created_at":"2024-05-02T09:57:19.209154Z","description":"","id":"aad3980b-ba65-48b4-bf92-69a9a2287431","name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","updated_at":"2024-05-02T09:57:19.209154Z"}' + headers: + Content-Length: + - "230" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 02 May 2024 09:57:19 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6012dafd-0af4-4cb9-945c-36716c56869d + status: 200 OK + code: 200 + duration: 54.789367ms + - id: 2 + 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":"aad3980b-ba65-48b4-bf92-69a9a2287431"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/enable + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 147 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":false,"region":"fr-par"}' + headers: + Content-Length: + - "147" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 02 May 2024 09:57:19 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f1057ff7-72ee-4a08-ad09-12350c21e45a + status: 200 OK + code: 200 + duration: 130.04747ms + - id: 3 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 90 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"aad3980b-ba65-48b4-bf92-69a9a2287431","email":{"to":"initial@example.com"}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 56 + uncompressed: false + body: '{"email":{"to":"initial@example.com"},"region":"fr-par"}' + headers: + Content-Length: + - "56" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 02 May 2024 09:57:20 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6223d8b1-a1a0-4b0b-8d01-79c99a7f25d9 + status: 200 OK + code: 200 + duration: 398.774805ms + - id: 4 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=aad3980b-ba65-48b4-bf92-69a9a2287431 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 164 + uncompressed: false + body: '{"contact_points":[{"email":{"to":"initial@example.com"},"region":"fr-par"}],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":1}' + headers: + Content-Length: + - "164" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 02 May 2024 09:57:20 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c5f24c6c-73ac-472f-ad60-89d4ff669480 + status: 200 OK + code: 200 + duration: 118.487131ms + - id: 5 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/aad3980b-ba65-48b4-bf92-69a9a2287431 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 230 + uncompressed: false + body: '{"created_at":"2024-05-02T09:57:19.209154Z","description":"","id":"aad3980b-ba65-48b4-bf92-69a9a2287431","name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","updated_at":"2024-05-02T09:57:19.209154Z"}' + headers: + Content-Length: + - "230" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 02 May 2024 09:57:20 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3e2bc3b1-bde4-4285-b154-2d47d32aa378 + status: 200 OK + code: 200 + duration: 42.927837ms + - 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.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=aad3980b-ba65-48b4-bf92-69a9a2287431 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 164 + uncompressed: false + body: '{"contact_points":[{"email":{"to":"initial@example.com"},"region":"fr-par"}],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":1}' + headers: + Content-Length: + - "164" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 02 May 2024 09:57:21 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2cf027ac-33c4-454a-9bfa-c14e3de11ace + status: 200 OK + code: 200 + duration: 123.241305ms + - 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.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/aad3980b-ba65-48b4-bf92-69a9a2287431 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 230 + uncompressed: false + body: '{"created_at":"2024-05-02T09:57:19.209154Z","description":"","id":"aad3980b-ba65-48b4-bf92-69a9a2287431","name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","updated_at":"2024-05-02T09:57:19.209154Z"}' + headers: + Content-Length: + - "230" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 02 May 2024 09:57:21 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ffcca313-c3de-4b0d-b5b6-cf11166b2f41 + status: 200 OK + code: 200 + duration: 52.030201ms + - 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.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=aad3980b-ba65-48b4-bf92-69a9a2287431 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 164 + uncompressed: false + body: '{"contact_points":[{"email":{"to":"initial@example.com"},"region":"fr-par"}],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":1}' + headers: + Content-Length: + - "164" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 02 May 2024 09:57:22 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - da3fe3b8-0a98-4094-82b5-3f5864f0648d + status: 200 OK + code: 200 + duration: 95.396843ms + - id: 9 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 90 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"aad3980b-ba65-48b4-bf92-69a9a2287431","email":{"to":"initial@example.com"}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points/delete + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 02 May 2024 09:57:23 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5bd3018d-f0d1-417e-a883-c70101e7dce2 + status: 204 No Content + code: 204 + duration: 241.808182ms + - id: 10 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 90 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"aad3980b-ba65-48b4-bf92-69a9a2287431","email":{"to":"updated@example.com"}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 56 + uncompressed: false + body: '{"email":{"to":"updated@example.com"},"region":"fr-par"}' + headers: + Content-Length: + - "56" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 02 May 2024 09:57:23 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6b927f34-628a-4971-8f85-8904e60a27fc + status: 200 OK + code: 200 + duration: 399.053943ms + - 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.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=aad3980b-ba65-48b4-bf92-69a9a2287431 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 164 + uncompressed: false + body: '{"contact_points":[{"email":{"to":"updated@example.com"},"region":"fr-par"}],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":1}' + headers: + Content-Length: + - "164" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 02 May 2024 09:57:23 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a50ced05-e6d9-456a-aad7-5e76d9789ce9 + status: 200 OK + code: 200 + duration: 96.198425ms + - 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.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/aad3980b-ba65-48b4-bf92-69a9a2287431 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 230 + uncompressed: false + body: '{"created_at":"2024-05-02T09:57:19.209154Z","description":"","id":"aad3980b-ba65-48b4-bf92-69a9a2287431","name":"tf_test_project","organization_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","updated_at":"2024-05-02T09:57:19.209154Z"}' + headers: + Content-Length: + - "230" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 02 May 2024 09:57:24 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - cc9969ba-1428-4b3e-868a-d783373c79bd + status: 200 OK + code: 200 + duration: 51.260848ms + - id: 13 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=aad3980b-ba65-48b4-bf92-69a9a2287431 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 164 + uncompressed: false + body: '{"contact_points":[{"email":{"to":"updated@example.com"},"region":"fr-par"}],"has_additional_contact_points":false,"has_additional_receivers":false,"total_count":1}' + headers: + Content-Length: + - "164" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 02 May 2024 09:57:24 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 44bb8ba6-df5c-48e5-8aa0-374810280839 + status: 200 OK + code: 200 + duration: 131.713816ms + - id: 14 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 90 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"aad3980b-ba65-48b4-bf92-69a9a2287431","email":{"to":"updated@example.com"}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points/delete + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 02 May 2024 09:57:25 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7fbe51d7-f651-4de5-9e11-4c8240fd51d5 + status: 204 No Content + code: 204 + duration: 475.410563ms + - id: 15 + 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":"aad3980b-ba65-48b4-bf92-69a9a2287431"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/managed-alerts/disable + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 147 + uncompressed: false + body: '{"alert_manager_enabled":true,"alert_manager_url":"https://alertmanager.cockpit.fr-par.scw.cloud","managed_alerts_enabled":false,"region":"fr-par"}' + headers: + Content-Length: + - "147" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 02 May 2024 09:57:25 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4ba851f4-b5f9-432a-9a09-3c11604ffec1 + status: 200 OK + code: 200 + duration: 48.954275ms + - 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.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/aad3980b-ba65-48b4-bf92-69a9a2287431 + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 02 May 2024 09:57:27 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f1e9ca17-8179-4ceb-b4ce-1a02e09e3002 + status: 204 No Content + code: 204 + duration: 1.221647907s + - 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.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/cockpit/v1/regions/fr-par/alert-manager/contact-points?project_id=aad3980b-ba65-48b4-bf92-69a9a2287431 + 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: + - Thu, 02 May 2024 09:57:27 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2e95f96c-a21e-4fa1-93db-f9d83bb1eeed + status: 200 OK + code: 200 + duration: 109.578624ms diff --git a/internal/services/lb/ip.go b/internal/services/lb/ip.go index 62b424236..5a4dad42e 100644 --- a/internal/services/lb/ip.go +++ b/internal/services/lb/ip.go @@ -2,6 +2,7 @@ package lb import ( "context" + "net" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/retry" @@ -139,6 +140,15 @@ func resourceLbIPRead(ctx context.Context, d *schema.ResourceData, m interface{} _ = d.Set("reverse", ip.Reverse) _ = d.Set("lb_id", types.FlattenStringPtr(ip.LBID)) + isIPv6 := false + if ip.IPAddress != "" { + parsedIP := net.ParseIP(ip.IPAddress) + if parsedIP != nil && parsedIP.To4() == nil { + isIPv6 = true + } + } + _ = d.Set("is_ipv6", isIPv6) + return nil } diff --git a/internal/services/lb/ip_test.go b/internal/services/lb/ip_test.go index f8c33d2c0..143f6dd94 100644 --- a/internal/services/lb/ip_test.go +++ b/internal/services/lb/ip_test.go @@ -30,6 +30,7 @@ func TestAccIP_Basic(t *testing.T) { isIPPresent(tt, "scaleway_lb_ip.ipZone"), acctest.CheckResourceAttrIPv4("scaleway_lb_ip.ipZone", "ip_address"), resource.TestCheckResourceAttrSet("scaleway_lb_ip.ipZone", "reverse"), + resource.TestCheckResourceAttr("scaleway_lb_ip.ipZone", "is_ipv6", "false"), resource.TestCheckResourceAttr("scaleway_lb_ip.ipZone", "zone", "nl-ams-1"), ), }, @@ -95,6 +96,7 @@ func TestAccIP_IPv6(t *testing.T) { Check: resource.ComposeTestCheckFunc( isIPPresent(tt, "scaleway_lb_ip.ipv6"), acctest.CheckResourceAttrIPv6("scaleway_lb_ip.ipv6", "ip_address"), + resource.TestCheckResourceAttr("scaleway_lb_ip.ipv6", "is_ipv6", "true"), ), }, }, diff --git a/internal/services/lb/testdata/ip-basic.cassette.yaml b/internal/services/lb/testdata/ip-basic.cassette.yaml index 26b8f8251..9688b9d17 100644 --- a/internal/services/lb/testdata/ip-basic.cassette.yaml +++ b/internal/services/lb/testdata/ip-basic.cassette.yaml @@ -1,1221 +1,1867 @@ --- version: 2 interactions: -- request: - body: '{"project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","reverse":null}' - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips - method: POST - response: - body: '{"id":"0fffa2d4-1101-40ee-90c4-be280dda1db4","ip_address":"51.158.128.7","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","lb_id":null,"reverse":"51-158-128-7.lb.nl-ams.scw.cloud","region":"nl-ams","zone":"nl-ams-1"}' - headers: - Content-Length: - - "276" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:36:35 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - cdf2818e-2d46-4838-91fa-03d6cb001bf5 - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips/0fffa2d4-1101-40ee-90c4-be280dda1db4 - method: GET - response: - body: '{"id":"0fffa2d4-1101-40ee-90c4-be280dda1db4","ip_address":"51.158.128.7","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","lb_id":null,"reverse":"51-158-128-7.lb.nl-ams.scw.cloud","region":"nl-ams","zone":"nl-ams-1"}' - headers: - Content-Length: - - "276" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:36:35 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 8cbff6fe-c71e-40af-b496-9b1f16aad9bb - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips/0fffa2d4-1101-40ee-90c4-be280dda1db4 - method: GET - response: - body: '{"id":"0fffa2d4-1101-40ee-90c4-be280dda1db4","ip_address":"51.158.128.7","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","lb_id":null,"reverse":"51-158-128-7.lb.nl-ams.scw.cloud","region":"nl-ams","zone":"nl-ams-1"}' - headers: - Content-Length: - - "276" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:36:35 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 52e0822c-c2a4-48ac-913b-c609dde8ab9e - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips/0fffa2d4-1101-40ee-90c4-be280dda1db4 - method: GET - response: - body: '{"id":"0fffa2d4-1101-40ee-90c4-be280dda1db4","ip_address":"51.158.128.7","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","lb_id":null,"reverse":"51-158-128-7.lb.nl-ams.scw.cloud","region":"nl-ams","zone":"nl-ams-1"}' - headers: - Content-Length: - - "276" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:36:35 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 430dd840-80ac-4854-b2b5-269eb306c526 - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips/0fffa2d4-1101-40ee-90c4-be280dda1db4 - method: GET - response: - body: '{"id":"0fffa2d4-1101-40ee-90c4-be280dda1db4","ip_address":"51.158.128.7","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","lb_id":null,"reverse":"51-158-128-7.lb.nl-ams.scw.cloud","region":"nl-ams","zone":"nl-ams-1"}' - headers: - Content-Length: - - "276" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:36:36 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 3c53e0d7-bd42-4bf4-bdcb-5e6bf9c52fb5 - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips/0fffa2d4-1101-40ee-90c4-be280dda1db4 - method: GET - response: - body: '{"id":"0fffa2d4-1101-40ee-90c4-be280dda1db4","ip_address":"51.158.128.7","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","lb_id":null,"reverse":"51-158-128-7.lb.nl-ams.scw.cloud","region":"nl-ams","zone":"nl-ams-1"}' - headers: - Content-Length: - - "276" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:36:36 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 707774d2-c085-4c22-b934-fd7a16d99247 - status: 200 OK - code: 200 -- request: - body: '{"project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","reverse":null}' - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips - method: POST - response: - body: '{"id":"8232ffa9-9180-4d1f-9aed-fb95167b6063","ip_address":"195.154.70.65","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","lb_id":null,"reverse":"195-154-70-65.lb.fr-par.scw.cloud","region":"fr-par","zone":"fr-par-1"}' - headers: - Content-Length: - - "278" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:36:36 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 39621481-678c-438f-8c78-ca77fa908681 - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/8232ffa9-9180-4d1f-9aed-fb95167b6063 - method: GET - response: - body: '{"id":"8232ffa9-9180-4d1f-9aed-fb95167b6063","ip_address":"195.154.70.65","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","lb_id":null,"reverse":"195-154-70-65.lb.fr-par.scw.cloud","region":"fr-par","zone":"fr-par-1"}' - headers: - Content-Length: - - "278" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:36:36 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 193df8ac-97c1-4a1f-90ff-5aee78c204de - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips/0fffa2d4-1101-40ee-90c4-be280dda1db4 - method: DELETE - response: - body: "" - headers: - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:36:37 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - dc4c17f0-f66c-4e39-a339-5c9be9407016 - status: 204 No Content - code: 204 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/8232ffa9-9180-4d1f-9aed-fb95167b6063 - method: GET - response: - body: '{"id":"8232ffa9-9180-4d1f-9aed-fb95167b6063","ip_address":"195.154.70.65","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","lb_id":null,"reverse":"195-154-70-65.lb.fr-par.scw.cloud","region":"fr-par","zone":"fr-par-1"}' - headers: - Content-Length: - - "278" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:36:37 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - ceb21e06-38b8-4a37-b934-c7e7cfbf7d1b - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/8232ffa9-9180-4d1f-9aed-fb95167b6063 - method: GET - response: - body: '{"id":"8232ffa9-9180-4d1f-9aed-fb95167b6063","ip_address":"195.154.70.65","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","lb_id":null,"reverse":"195-154-70-65.lb.fr-par.scw.cloud","region":"fr-par","zone":"fr-par-1"}' - headers: - Content-Length: - - "278" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:36:37 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - a9d6e791-ab6a-405b-b0bb-2251502d8b30 - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/8232ffa9-9180-4d1f-9aed-fb95167b6063 - method: GET - response: - body: '{"id":"8232ffa9-9180-4d1f-9aed-fb95167b6063","ip_address":"195.154.70.65","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","lb_id":null,"reverse":"195-154-70-65.lb.fr-par.scw.cloud","region":"fr-par","zone":"fr-par-1"}' - headers: - Content-Length: - - "278" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:36:38 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - c3c5683b-68ad-414b-b2fc-b4f8306c1789 - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/8232ffa9-9180-4d1f-9aed-fb95167b6063 - method: GET - response: - body: '{"id":"8232ffa9-9180-4d1f-9aed-fb95167b6063","ip_address":"195.154.70.65","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","lb_id":null,"reverse":"195-154-70-65.lb.fr-par.scw.cloud","region":"fr-par","zone":"fr-par-1"}' - headers: - Content-Length: - - "278" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:36:38 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - a278b8ec-dad5-4b0c-af3c-94ecda4e6768 - status: 200 OK - code: 200 -- request: - body: '{"reverse":"myreverse.com"}' - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/8232ffa9-9180-4d1f-9aed-fb95167b6063 - method: PATCH - response: - body: '{"id":"8232ffa9-9180-4d1f-9aed-fb95167b6063","ip_address":"195.154.70.65","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","lb_id":null,"reverse":"myreverse.com","region":"fr-par","zone":"fr-par-1"}' - headers: - Content-Length: - - "258" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:36:38 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - e69642f0-e41f-4290-869c-aef45beae531 - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/8232ffa9-9180-4d1f-9aed-fb95167b6063 - method: GET - response: - body: '{"id":"8232ffa9-9180-4d1f-9aed-fb95167b6063","ip_address":"195.154.70.65","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","lb_id":null,"reverse":"myreverse.com","region":"fr-par","zone":"fr-par-1"}' - headers: - Content-Length: - - "258" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:36:39 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 5a7930df-1136-4e26-a5d1-a73dcc5ee4e8 - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/8232ffa9-9180-4d1f-9aed-fb95167b6063 - method: GET - response: - body: '{"id":"8232ffa9-9180-4d1f-9aed-fb95167b6063","ip_address":"195.154.70.65","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","lb_id":null,"reverse":"myreverse.com","region":"fr-par","zone":"fr-par-1"}' - headers: - Content-Length: - - "258" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:36:39 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 142beb14-6cf5-429a-bc85-29ad40b1d5a0 - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/8232ffa9-9180-4d1f-9aed-fb95167b6063 - method: GET - response: - body: '{"id":"8232ffa9-9180-4d1f-9aed-fb95167b6063","ip_address":"195.154.70.65","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","lb_id":null,"reverse":"myreverse.com","region":"fr-par","zone":"fr-par-1"}' - headers: - Content-Length: - - "258" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:36:39 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 922c81ee-0cdf-45e3-bb0e-ba60ac1b1c32 - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/8232ffa9-9180-4d1f-9aed-fb95167b6063 - method: GET - response: - body: '{"id":"8232ffa9-9180-4d1f-9aed-fb95167b6063","ip_address":"195.154.70.65","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","lb_id":null,"reverse":"myreverse.com","region":"fr-par","zone":"fr-par-1"}' - headers: - Content-Length: - - "258" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:36:39 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - e41c679c-c526-4b3c-9592-50af67066f92 - status: 200 OK - code: 200 -- request: - body: '{"project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"test-lb-with-release-ip","description":"","ip_id":"8232ffa9-9180-4d1f-9aed-fb95167b6063","tags":null,"type":"LB-S","ssl_compatibility_level":"ssl_compatibility_level_intermediate"}' - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs - method: POST - response: - body: '{"id":"b61563a1-8ee4-4e6e-b21c-fcfe419fbc21","name":"test-lb-with-release-ip","description":"","status":"to_create","instances":[],"organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","ip":[{"id":"8232ffa9-9180-4d1f-9aed-fb95167b6063","ip_address":"195.154.70.65","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","lb_id":"b61563a1-8ee4-4e6e-b21c-fcfe419fbc21","reverse":"myreverse.com","region":"fr-par","zone":"fr-par-1"}],"tags":[],"frontend_count":0,"backend_count":0,"type":"lb-s","subscriber":null,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","created_at":"2022-05-16T13:36:40.254214556Z","updated_at":"2022-05-16T13:36:40.254214556Z","private_network_count":0,"route_count":0,"region":"fr-par","zone":"fr-par-1"}' - headers: - Content-Length: - - "854" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:36:40 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 1bcaa580-bf70-4617-ab2a-10708e9ba824 - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/b61563a1-8ee4-4e6e-b21c-fcfe419fbc21 - method: GET - response: - body: '{"id":"b61563a1-8ee4-4e6e-b21c-fcfe419fbc21","name":"test-lb-with-release-ip","description":"","status":"creating","instances":[{"id":"372ae338-21ce-4d0c-8a80-9b3c880e0aa1","status":"unknown","ip_address":"10.71.14.31","created_at":"2022-05-16T13:34:38.074693Z","updated_at":"2022-05-16T13:36:40.414477Z","region":"fr-par","zone":"fr-par-1"}],"organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","ip":[{"id":"8232ffa9-9180-4d1f-9aed-fb95167b6063","ip_address":"195.154.70.65","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","lb_id":"b61563a1-8ee4-4e6e-b21c-fcfe419fbc21","reverse":"myreverse.com","region":"fr-par","zone":"fr-par-1"}],"tags":[],"frontend_count":0,"backend_count":0,"type":"lb-s","subscriber":null,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","created_at":"2022-05-16T13:36:40.254215Z","updated_at":"2022-05-16T13:36:40.424484Z","private_network_count":0,"route_count":0,"region":"fr-par","zone":"fr-par-1"}' - headers: - Content-Length: - - "1060" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:36:40 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 92342e22-04ae-4e5d-afd9-e591ba021db8 - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/b61563a1-8ee4-4e6e-b21c-fcfe419fbc21 - method: GET - response: - body: '{"id":"b61563a1-8ee4-4e6e-b21c-fcfe419fbc21","name":"test-lb-with-release-ip","description":"","status":"ready","instances":[{"id":"372ae338-21ce-4d0c-8a80-9b3c880e0aa1","status":"ready","ip_address":"10.71.14.31","created_at":"2022-05-16T13:34:38.074693Z","updated_at":"2022-05-16T13:36:40.668482Z","region":"fr-par","zone":"fr-par-1"}],"organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","ip":[{"id":"8232ffa9-9180-4d1f-9aed-fb95167b6063","ip_address":"195.154.70.65","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","lb_id":"b61563a1-8ee4-4e6e-b21c-fcfe419fbc21","reverse":"myreverse.com","region":"fr-par","zone":"fr-par-1"}],"tags":[],"frontend_count":0,"backend_count":0,"type":"lb-s","subscriber":null,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","created_at":"2022-05-16T13:36:40.254215Z","updated_at":"2022-05-16T13:36:40.958735Z","private_network_count":0,"route_count":0,"region":"fr-par","zone":"fr-par-1"}' - headers: - Content-Length: - - "1055" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:37:10 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - c20799a8-17e8-4b63-bad2-398c8d763e03 - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/b61563a1-8ee4-4e6e-b21c-fcfe419fbc21 - method: GET - response: - body: '{"id":"b61563a1-8ee4-4e6e-b21c-fcfe419fbc21","name":"test-lb-with-release-ip","description":"","status":"ready","instances":[{"id":"372ae338-21ce-4d0c-8a80-9b3c880e0aa1","status":"ready","ip_address":"10.71.14.31","created_at":"2022-05-16T13:34:38.074693Z","updated_at":"2022-05-16T13:36:40.668482Z","region":"fr-par","zone":"fr-par-1"}],"organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","ip":[{"id":"8232ffa9-9180-4d1f-9aed-fb95167b6063","ip_address":"195.154.70.65","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","lb_id":"b61563a1-8ee4-4e6e-b21c-fcfe419fbc21","reverse":"myreverse.com","region":"fr-par","zone":"fr-par-1"}],"tags":[],"frontend_count":0,"backend_count":0,"type":"lb-s","subscriber":null,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","created_at":"2022-05-16T13:36:40.254215Z","updated_at":"2022-05-16T13:36:40.958735Z","private_network_count":0,"route_count":0,"region":"fr-par","zone":"fr-par-1"}' - headers: - Content-Length: - - "1055" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:37:10 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 05ed0bf2-e6e7-44ad-afc0-76883f65c5d0 - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/b61563a1-8ee4-4e6e-b21c-fcfe419fbc21/private-networks?order_by=created_at_asc - method: GET - response: - body: '{"private_network":[],"total_count":0}' - headers: - Content-Length: - - "38" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:37:10 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - b0d14e6c-6638-4e27-9906-ed4bd9d8ee26 - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/b61563a1-8ee4-4e6e-b21c-fcfe419fbc21 - method: GET - response: - body: '{"id":"b61563a1-8ee4-4e6e-b21c-fcfe419fbc21","name":"test-lb-with-release-ip","description":"","status":"ready","instances":[{"id":"372ae338-21ce-4d0c-8a80-9b3c880e0aa1","status":"ready","ip_address":"10.71.14.31","created_at":"2022-05-16T13:34:38.074693Z","updated_at":"2022-05-16T13:36:40.668482Z","region":"fr-par","zone":"fr-par-1"}],"organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","ip":[{"id":"8232ffa9-9180-4d1f-9aed-fb95167b6063","ip_address":"195.154.70.65","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","lb_id":"b61563a1-8ee4-4e6e-b21c-fcfe419fbc21","reverse":"myreverse.com","region":"fr-par","zone":"fr-par-1"}],"tags":[],"frontend_count":0,"backend_count":0,"type":"lb-s","subscriber":null,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","created_at":"2022-05-16T13:36:40.254215Z","updated_at":"2022-05-16T13:36:40.958735Z","private_network_count":0,"route_count":0,"region":"fr-par","zone":"fr-par-1"}' - headers: - Content-Length: - - "1055" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:37:10 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 0fab620e-e4c7-4ee2-a8e0-aba80a9ab488 - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/8232ffa9-9180-4d1f-9aed-fb95167b6063 - method: GET - response: - body: '{"id":"8232ffa9-9180-4d1f-9aed-fb95167b6063","ip_address":"195.154.70.65","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","lb_id":"b61563a1-8ee4-4e6e-b21c-fcfe419fbc21","reverse":"myreverse.com","region":"fr-par","zone":"fr-par-1"}' - headers: - Content-Length: - - "292" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:37:10 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - ad19f6d4-421a-40e2-9982-3cff8b28641e - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/8232ffa9-9180-4d1f-9aed-fb95167b6063 - method: GET - response: - body: '{"id":"8232ffa9-9180-4d1f-9aed-fb95167b6063","ip_address":"195.154.70.65","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","lb_id":"b61563a1-8ee4-4e6e-b21c-fcfe419fbc21","reverse":"myreverse.com","region":"fr-par","zone":"fr-par-1"}' - headers: - Content-Length: - - "292" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:37:11 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 6903b9ce-8e67-43f1-984d-d92d973639bc - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/b61563a1-8ee4-4e6e-b21c-fcfe419fbc21 - method: GET - response: - body: '{"id":"b61563a1-8ee4-4e6e-b21c-fcfe419fbc21","name":"test-lb-with-release-ip","description":"","status":"ready","instances":[{"id":"372ae338-21ce-4d0c-8a80-9b3c880e0aa1","status":"ready","ip_address":"10.71.14.31","created_at":"2022-05-16T13:34:38.074693Z","updated_at":"2022-05-16T13:36:40.668482Z","region":"fr-par","zone":"fr-par-1"}],"organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","ip":[{"id":"8232ffa9-9180-4d1f-9aed-fb95167b6063","ip_address":"195.154.70.65","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","lb_id":"b61563a1-8ee4-4e6e-b21c-fcfe419fbc21","reverse":"myreverse.com","region":"fr-par","zone":"fr-par-1"}],"tags":[],"frontend_count":0,"backend_count":0,"type":"lb-s","subscriber":null,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","created_at":"2022-05-16T13:36:40.254215Z","updated_at":"2022-05-16T13:36:40.958735Z","private_network_count":0,"route_count":0,"region":"fr-par","zone":"fr-par-1"}' - headers: - Content-Length: - - "1055" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:37:11 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - d96a125e-ee34-44f6-9e38-a3da61d23d97 - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/b61563a1-8ee4-4e6e-b21c-fcfe419fbc21 - method: GET - response: - body: '{"id":"b61563a1-8ee4-4e6e-b21c-fcfe419fbc21","name":"test-lb-with-release-ip","description":"","status":"ready","instances":[{"id":"372ae338-21ce-4d0c-8a80-9b3c880e0aa1","status":"ready","ip_address":"10.71.14.31","created_at":"2022-05-16T13:34:38.074693Z","updated_at":"2022-05-16T13:36:40.668482Z","region":"fr-par","zone":"fr-par-1"}],"organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","ip":[{"id":"8232ffa9-9180-4d1f-9aed-fb95167b6063","ip_address":"195.154.70.65","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","lb_id":"b61563a1-8ee4-4e6e-b21c-fcfe419fbc21","reverse":"myreverse.com","region":"fr-par","zone":"fr-par-1"}],"tags":[],"frontend_count":0,"backend_count":0,"type":"lb-s","subscriber":null,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","created_at":"2022-05-16T13:36:40.254215Z","updated_at":"2022-05-16T13:36:40.958735Z","private_network_count":0,"route_count":0,"region":"fr-par","zone":"fr-par-1"}' - headers: - Content-Length: - - "1055" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:37:11 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 3bf00d40-3af4-4d20-9458-f9ea70e2ab10 - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/b61563a1-8ee4-4e6e-b21c-fcfe419fbc21/private-networks?order_by=created_at_asc - method: GET - response: - body: '{"private_network":[],"total_count":0}' - headers: - Content-Length: - - "38" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:37:11 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 6ed25998-eb54-4d7a-971b-272bf1ca1e5c - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/b61563a1-8ee4-4e6e-b21c-fcfe419fbc21 - method: GET - response: - body: '{"id":"b61563a1-8ee4-4e6e-b21c-fcfe419fbc21","name":"test-lb-with-release-ip","description":"","status":"ready","instances":[{"id":"372ae338-21ce-4d0c-8a80-9b3c880e0aa1","status":"ready","ip_address":"10.71.14.31","created_at":"2022-05-16T13:34:38.074693Z","updated_at":"2022-05-16T13:36:40.668482Z","region":"fr-par","zone":"fr-par-1"}],"organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","ip":[{"id":"8232ffa9-9180-4d1f-9aed-fb95167b6063","ip_address":"195.154.70.65","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","lb_id":"b61563a1-8ee4-4e6e-b21c-fcfe419fbc21","reverse":"myreverse.com","region":"fr-par","zone":"fr-par-1"}],"tags":[],"frontend_count":0,"backend_count":0,"type":"lb-s","subscriber":null,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","created_at":"2022-05-16T13:36:40.254215Z","updated_at":"2022-05-16T13:36:40.958735Z","private_network_count":0,"route_count":0,"region":"fr-par","zone":"fr-par-1"}' - headers: - Content-Length: - - "1055" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:37:11 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 6994f615-825d-48d1-ae67-3ff474476bc5 - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/b61563a1-8ee4-4e6e-b21c-fcfe419fbc21?release_ip=false - method: DELETE - response: - body: "" - headers: - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:37:12 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 3d5be5b6-7e76-4c64-8bb4-1236004ab5bb - status: 204 No Content - code: 204 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/b61563a1-8ee4-4e6e-b21c-fcfe419fbc21 - method: GET - response: - body: '{"id":"b61563a1-8ee4-4e6e-b21c-fcfe419fbc21","name":"test-lb-with-release-ip","description":"","status":"to_delete","instances":[{"id":"372ae338-21ce-4d0c-8a80-9b3c880e0aa1","status":"ready","ip_address":"10.71.14.31","created_at":"2022-05-16T13:34:38.074693Z","updated_at":"2022-05-16T13:36:40.668482Z","region":"fr-par","zone":"fr-par-1"}],"organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","ip":[{"id":"8232ffa9-9180-4d1f-9aed-fb95167b6063","ip_address":"195.154.70.65","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","lb_id":"b61563a1-8ee4-4e6e-b21c-fcfe419fbc21","reverse":"myreverse.com","region":"fr-par","zone":"fr-par-1"}],"tags":[],"frontend_count":0,"backend_count":0,"type":"lb-s","subscriber":null,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","created_at":"2022-05-16T13:36:40.254215Z","updated_at":"2022-05-16T13:37:11.959172Z","private_network_count":0,"route_count":0,"region":"fr-par","zone":"fr-par-1"}' - headers: - Content-Length: - - "1059" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:37:12 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 23d6829a-7221-4344-a94d-af5a8fbdbc24 - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/b61563a1-8ee4-4e6e-b21c-fcfe419fbc21 - method: GET - response: - body: '{"message":"lbs not Found"}' - headers: - Content-Length: - - "27" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:37:42 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 1d94a4a6-7c17-497f-8441-3872070f9774 - status: 404 Not Found - code: 404 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/b61563a1-8ee4-4e6e-b21c-fcfe419fbc21 - method: GET - response: - body: '{"message":"lbs not Found"}' - headers: - Content-Length: - - "27" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:37:42 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 00c8a634-7b47-4c2a-80cb-af10f3188d83 - status: 404 Not Found - code: 404 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/8232ffa9-9180-4d1f-9aed-fb95167b6063 - method: GET - response: - body: '{"id":"8232ffa9-9180-4d1f-9aed-fb95167b6063","ip_address":"195.154.70.65","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","lb_id":null,"reverse":"myreverse.com","region":"fr-par","zone":"fr-par-1"}' - headers: - Content-Length: - - "258" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:37:42 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - e5e1f201-45bb-40d1-b47e-119309f13dbf - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/8232ffa9-9180-4d1f-9aed-fb95167b6063 - method: DELETE - response: - body: "" - headers: - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:37:42 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - f0b162c9-78d5-43f5-bf63-bca035fdb1ea - status: 204 No Content - code: 204 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/b61563a1-8ee4-4e6e-b21c-fcfe419fbc21 - method: GET - response: - body: '{"message":"lbs not Found"}' - headers: - Content-Length: - - "27" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:37:42 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - d9def1d7-effb-4581-b4ef-59cbad030fb0 - status: 404 Not Found - code: 404 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.18.2; darwin; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/8232ffa9-9180-4d1f-9aed-fb95167b6063 - method: GET - response: - body: '{"message":"ips not Found"}' - headers: - Content-Length: - - "27" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 May 2022 13:37:42 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - f2619dc0-a58a-4235-a2c5-3d079793b920 - status: 404 Not Found - code: 404 + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 69 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","is_ipv6":false}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 296 + uncompressed: false + body: '{"id":"e46ccee6-1def-49ad-b357-17f121748e77","ip_address":"51.158.131.74","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"nl-ams","reverse":"51-158-131-74.lb.nl-ams.scw.cloud","tags":[],"zone":"nl-ams-1"}' + headers: + Content-Length: + - "296" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:11:12 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ef4139f6-70f1-49a0-bb61-bc3c723b6ea5 + status: 200 OK + code: 200 + duration: 137.700922ms + - id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips/e46ccee6-1def-49ad-b357-17f121748e77 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 296 + uncompressed: false + body: '{"id":"e46ccee6-1def-49ad-b357-17f121748e77","ip_address":"51.158.131.74","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"nl-ams","reverse":"51-158-131-74.lb.nl-ams.scw.cloud","tags":[],"zone":"nl-ams-1"}' + headers: + Content-Length: + - "296" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:11:12 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b2843273-9626-48a3-b69a-eb34b925ea63 + status: 200 OK + code: 200 + duration: 53.60089ms + - id: 2 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips/e46ccee6-1def-49ad-b357-17f121748e77 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 296 + uncompressed: false + body: '{"id":"e46ccee6-1def-49ad-b357-17f121748e77","ip_address":"51.158.131.74","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"nl-ams","reverse":"51-158-131-74.lb.nl-ams.scw.cloud","tags":[],"zone":"nl-ams-1"}' + headers: + Content-Length: + - "296" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:11:13 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 26fdfdc5-233b-4dc1-af76-37779135411e + status: 200 OK + code: 200 + duration: 63.968979ms + - 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.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips/e46ccee6-1def-49ad-b357-17f121748e77 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 296 + uncompressed: false + body: '{"id":"e46ccee6-1def-49ad-b357-17f121748e77","ip_address":"51.158.131.74","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"nl-ams","reverse":"51-158-131-74.lb.nl-ams.scw.cloud","tags":[],"zone":"nl-ams-1"}' + headers: + Content-Length: + - "296" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:11:13 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ce1434ed-35e6-4340-971c-5dfb76ad1aca + status: 200 OK + code: 200 + duration: 66.53341ms + - id: 4 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips/e46ccee6-1def-49ad-b357-17f121748e77 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 296 + uncompressed: false + body: '{"id":"e46ccee6-1def-49ad-b357-17f121748e77","ip_address":"51.158.131.74","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"nl-ams","reverse":"51-158-131-74.lb.nl-ams.scw.cloud","tags":[],"zone":"nl-ams-1"}' + headers: + Content-Length: + - "296" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:11:14 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4a74ec91-4405-4a85-9527-32657b1236fb + status: 200 OK + code: 200 + duration: 62.766966ms + - id: 5 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips/e46ccee6-1def-49ad-b357-17f121748e77 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 296 + uncompressed: false + body: '{"id":"e46ccee6-1def-49ad-b357-17f121748e77","ip_address":"51.158.131.74","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"nl-ams","reverse":"51-158-131-74.lb.nl-ams.scw.cloud","tags":[],"zone":"nl-ams-1"}' + headers: + Content-Length: + - "296" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:11:14 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 335d99e3-5f84-4351-97ac-41db82f491e4 + status: 200 OK + code: 200 + duration: 60.382822ms + - id: 6 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 69 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","is_ipv6":false}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 294 + uncompressed: false + body: '{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-9-236.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' + headers: + Content-Length: + - "294" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:11:14 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c7ccc54b-dca3-4beb-a5c2-21ebf0111f37 + status: 200 OK + code: 200 + duration: 94.029757ms + - 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.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/9646b738-4b5e-4153-be33-780e97bdbeff + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 294 + uncompressed: false + body: '{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-9-236.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' + headers: + Content-Length: + - "294" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:11:14 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e05f034e-b6b4-4d0a-8c58-2f1ebc7419b7 + status: 200 OK + code: 200 + duration: 47.373339ms + - 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.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips/e46ccee6-1def-49ad-b357-17f121748e77 + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:11:15 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - be4160c0-40c4-4e81-8142-98f39ca6b8cb + status: 204 No Content + code: 204 + duration: 405.00057ms + - id: 9 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/9646b738-4b5e-4153-be33-780e97bdbeff + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 294 + uncompressed: false + body: '{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-9-236.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' + headers: + Content-Length: + - "294" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:11:15 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5dc12b40-3146-435f-b9b5-abfb6d3e44c7 + status: 200 OK + code: 200 + duration: 79.962649ms + - 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.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/9646b738-4b5e-4153-be33-780e97bdbeff + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 294 + uncompressed: false + body: '{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-9-236.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' + headers: + Content-Length: + - "294" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:11:15 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5803a23b-ba84-4f5e-a228-f5fec2f7c07c + status: 200 OK + code: 200 + duration: 52.648646ms + - 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.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/9646b738-4b5e-4153-be33-780e97bdbeff + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 294 + uncompressed: false + body: '{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-9-236.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' + headers: + Content-Length: + - "294" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:11:16 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 707b8b30-3b0c-4041-98fb-6cc25d83064a + status: 200 OK + code: 200 + duration: 48.607196ms + - 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.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/9646b738-4b5e-4153-be33-780e97bdbeff + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 294 + uncompressed: false + body: '{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-9-236.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' + headers: + Content-Length: + - "294" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:11:16 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 59901f1b-fded-4f79-b408-658a71699f7d + status: 200 OK + code: 200 + duration: 48.525588ms + - id: 13 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 27 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"reverse":"myreverse.com"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/9646b738-4b5e-4153-be33-780e97bdbeff + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 275 + uncompressed: false + body: '{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"myreverse.com","tags":[],"zone":"fr-par-1"}' + headers: + Content-Length: + - "275" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:11:17 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ea17c0f5-1ad0-4a51-8f25-cc694795d983 + status: 200 OK + code: 200 + duration: 389.096123ms + - 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.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/9646b738-4b5e-4153-be33-780e97bdbeff + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 275 + uncompressed: false + body: '{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"myreverse.com","tags":[],"zone":"fr-par-1"}' + headers: + Content-Length: + - "275" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:11:17 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 66189a08-9803-42cc-9165-360897d56b73 + status: 200 OK + code: 200 + duration: 42.818252ms + - 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.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/9646b738-4b5e-4153-be33-780e97bdbeff + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 275 + uncompressed: false + body: '{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"myreverse.com","tags":[],"zone":"fr-par-1"}' + headers: + Content-Length: + - "275" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:11:17 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 563a6669-7d88-4945-b489-283a586e8b18 + status: 200 OK + code: 200 + duration: 51.528897ms + - 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.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/9646b738-4b5e-4153-be33-780e97bdbeff + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 275 + uncompressed: false + body: '{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"myreverse.com","tags":[],"zone":"fr-par-1"}' + headers: + Content-Length: + - "275" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:11:17 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 30c9afab-3635-49d0-ad88-63486df7e335 + status: 200 OK + code: 200 + duration: 49.794069ms + - 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.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/9646b738-4b5e-4153-be33-780e97bdbeff + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 275 + uncompressed: false + body: '{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"myreverse.com","tags":[],"zone":"fr-par-1"}' + headers: + Content-Length: + - "275" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:11:18 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1523872b-c653-45b5-b5d0-e921feedf7c3 + status: 200 OK + code: 200 + duration: 67.740408ms + - id: 18 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 253 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","name":"test-lb-with-release-ip","description":"","ip_id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_ids":[],"tags":null,"type":"LB-S","ssl_compatibility_level":"ssl_compatibility_level_intermediate"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 890 + uncompressed: false + body: '{"backend_count":0,"created_at":"2024-04-30T15:11:18.885446728Z","description":"","frontend_count":0,"id":"e994e206-cf6c-45a7-9c07-a31296f39d33","instances":[],"ip":[{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":"e994e206-cf6c-45a7-9c07-a31296f39d33","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"myreverse.com","tags":[],"zone":"fr-par-1"}],"name":"test-lb-with-release-ip","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"to_create","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2024-04-30T15:11:18.885446728Z","zone":"fr-par-1"}' + headers: + Content-Length: + - "890" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:11:19 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bb25f9de-3836-4c87-a0a2-c305314a5bfd + status: 200 OK + code: 200 + duration: 280.770928ms + - 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.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/e994e206-cf6c-45a7-9c07-a31296f39d33 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 884 + uncompressed: false + body: '{"backend_count":0,"created_at":"2024-04-30T15:11:18.885447Z","description":"","frontend_count":0,"id":"e994e206-cf6c-45a7-9c07-a31296f39d33","instances":[],"ip":[{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":"e994e206-cf6c-45a7-9c07-a31296f39d33","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"myreverse.com","tags":[],"zone":"fr-par-1"}],"name":"test-lb-with-release-ip","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"to_create","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2024-04-30T15:11:18.885447Z","zone":"fr-par-1"}' + headers: + Content-Length: + - "884" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:11:19 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3f285532-3226-4216-88db-a52bdf1376eb + status: 200 OK + code: 200 + duration: 60.835002ms + - 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.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/e994e206-cf6c-45a7-9c07-a31296f39d33 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1086 + uncompressed: false + body: '{"backend_count":0,"created_at":"2024-04-30T15:11:18.885447Z","description":"","frontend_count":0,"id":"e994e206-cf6c-45a7-9c07-a31296f39d33","instances":[{"created_at":"2024-04-30T15:08:48.917655Z","id":"aabc0797-aade-4ba9-ade2-724e23d40589","ip_address":"","region":"fr-par","status":"ready","updated_at":"2024-04-30T15:11:24.099904Z","zone":"fr-par-1"}],"ip":[{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":"e994e206-cf6c-45a7-9c07-a31296f39d33","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"myreverse.com","tags":[],"zone":"fr-par-1"}],"name":"test-lb-with-release-ip","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2024-04-30T15:11:25.420384Z","zone":"fr-par-1"}' + headers: + Content-Length: + - "1086" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:11:49 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bf52758e-8e7e-4e77-9875-717a8a1e330b + status: 200 OK + code: 200 + duration: 105.989071ms + - id: 21 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/e994e206-cf6c-45a7-9c07-a31296f39d33 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1086 + uncompressed: false + body: '{"backend_count":0,"created_at":"2024-04-30T15:11:18.885447Z","description":"","frontend_count":0,"id":"e994e206-cf6c-45a7-9c07-a31296f39d33","instances":[{"created_at":"2024-04-30T15:08:48.917655Z","id":"aabc0797-aade-4ba9-ade2-724e23d40589","ip_address":"","region":"fr-par","status":"ready","updated_at":"2024-04-30T15:11:24.099904Z","zone":"fr-par-1"}],"ip":[{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":"e994e206-cf6c-45a7-9c07-a31296f39d33","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"myreverse.com","tags":[],"zone":"fr-par-1"}],"name":"test-lb-with-release-ip","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2024-04-30T15:11:25.420384Z","zone":"fr-par-1"}' + headers: + Content-Length: + - "1086" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:11:49 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 48b3e62f-e000-477a-8acc-29ea4bc27eec + status: 200 OK + code: 200 + duration: 63.443369ms + - 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.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/e994e206-cf6c-45a7-9c07-a31296f39d33/private-networks?order_by=created_at_asc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 39 + uncompressed: false + body: '{"private_network":[],"total_count":0}' + headers: + Content-Length: + - "39" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:11:49 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 281d98ad-f90b-4866-9043-8613f8327ae6 + status: 200 OK + code: 200 + duration: 62.201224ms + - id: 23 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/e994e206-cf6c-45a7-9c07-a31296f39d33 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1086 + uncompressed: false + body: '{"backend_count":0,"created_at":"2024-04-30T15:11:18.885447Z","description":"","frontend_count":0,"id":"e994e206-cf6c-45a7-9c07-a31296f39d33","instances":[{"created_at":"2024-04-30T15:08:48.917655Z","id":"aabc0797-aade-4ba9-ade2-724e23d40589","ip_address":"","region":"fr-par","status":"ready","updated_at":"2024-04-30T15:11:24.099904Z","zone":"fr-par-1"}],"ip":[{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":"e994e206-cf6c-45a7-9c07-a31296f39d33","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"myreverse.com","tags":[],"zone":"fr-par-1"}],"name":"test-lb-with-release-ip","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2024-04-30T15:11:25.420384Z","zone":"fr-par-1"}' + headers: + Content-Length: + - "1086" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:11:49 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bbc4dae9-af2a-463e-8e7f-12c918e8ac43 + status: 200 OK + code: 200 + duration: 81.137058ms + - 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.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/9646b738-4b5e-4153-be33-780e97bdbeff + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 309 + uncompressed: false + body: '{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":"e994e206-cf6c-45a7-9c07-a31296f39d33","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"myreverse.com","tags":[],"zone":"fr-par-1"}' + headers: + Content-Length: + - "309" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:11:49 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 857425f0-9d3f-42e1-b9b0-f3ee943160cc + status: 200 OK + code: 200 + duration: 53.281756ms + - id: 25 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/9646b738-4b5e-4153-be33-780e97bdbeff + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 309 + uncompressed: false + body: '{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":"e994e206-cf6c-45a7-9c07-a31296f39d33","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"myreverse.com","tags":[],"zone":"fr-par-1"}' + headers: + Content-Length: + - "309" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:11:50 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 132435b6-60b4-4419-9160-6496b02f57ab + status: 200 OK + code: 200 + duration: 44.150883ms + - id: 26 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/e994e206-cf6c-45a7-9c07-a31296f39d33 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1086 + uncompressed: false + body: '{"backend_count":0,"created_at":"2024-04-30T15:11:18.885447Z","description":"","frontend_count":0,"id":"e994e206-cf6c-45a7-9c07-a31296f39d33","instances":[{"created_at":"2024-04-30T15:08:48.917655Z","id":"aabc0797-aade-4ba9-ade2-724e23d40589","ip_address":"","region":"fr-par","status":"ready","updated_at":"2024-04-30T15:11:24.099904Z","zone":"fr-par-1"}],"ip":[{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":"e994e206-cf6c-45a7-9c07-a31296f39d33","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"myreverse.com","tags":[],"zone":"fr-par-1"}],"name":"test-lb-with-release-ip","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2024-04-30T15:11:25.420384Z","zone":"fr-par-1"}' + headers: + Content-Length: + - "1086" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:11:50 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 87b93e9d-4821-487c-9868-6cd658760130 + status: 200 OK + code: 200 + duration: 71.119489ms + - id: 27 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/e994e206-cf6c-45a7-9c07-a31296f39d33 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1086 + uncompressed: false + body: '{"backend_count":0,"created_at":"2024-04-30T15:11:18.885447Z","description":"","frontend_count":0,"id":"e994e206-cf6c-45a7-9c07-a31296f39d33","instances":[{"created_at":"2024-04-30T15:08:48.917655Z","id":"aabc0797-aade-4ba9-ade2-724e23d40589","ip_address":"","region":"fr-par","status":"ready","updated_at":"2024-04-30T15:11:24.099904Z","zone":"fr-par-1"}],"ip":[{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":"e994e206-cf6c-45a7-9c07-a31296f39d33","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"myreverse.com","tags":[],"zone":"fr-par-1"}],"name":"test-lb-with-release-ip","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2024-04-30T15:11:25.420384Z","zone":"fr-par-1"}' + headers: + Content-Length: + - "1086" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:11:50 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 846fdaa1-724f-43d7-8d5b-1f07aeb347a1 + status: 200 OK + code: 200 + duration: 79.032574ms + - 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.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/e994e206-cf6c-45a7-9c07-a31296f39d33/private-networks?order_by=created_at_asc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 39 + uncompressed: false + body: '{"private_network":[],"total_count":0}' + headers: + Content-Length: + - "39" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:11:50 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b9dff35a-0115-4fd8-9fc5-8da17102a85c + status: 200 OK + code: 200 + duration: 46.926267ms + - id: 29 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/e994e206-cf6c-45a7-9c07-a31296f39d33 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1086 + uncompressed: false + body: '{"backend_count":0,"created_at":"2024-04-30T15:11:18.885447Z","description":"","frontend_count":0,"id":"e994e206-cf6c-45a7-9c07-a31296f39d33","instances":[{"created_at":"2024-04-30T15:08:48.917655Z","id":"aabc0797-aade-4ba9-ade2-724e23d40589","ip_address":"","region":"fr-par","status":"ready","updated_at":"2024-04-30T15:11:24.099904Z","zone":"fr-par-1"}],"ip":[{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":"e994e206-cf6c-45a7-9c07-a31296f39d33","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"myreverse.com","tags":[],"zone":"fr-par-1"}],"name":"test-lb-with-release-ip","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2024-04-30T15:11:25.420384Z","zone":"fr-par-1"}' + headers: + Content-Length: + - "1086" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:11:50 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3932e260-dbdd-4b1a-8ed3-ecdc1e9f9ce2 + status: 200 OK + code: 200 + duration: 63.268106ms + - id: 30 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/e994e206-cf6c-45a7-9c07-a31296f39d33?release_ip=false + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:11:51 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 292769a1-5f0a-4e3f-83fc-059890986f9d + status: 204 No Content + code: 204 + duration: 266.331563ms + - id: 31 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/e994e206-cf6c-45a7-9c07-a31296f39d33 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1090 + uncompressed: false + body: '{"backend_count":0,"created_at":"2024-04-30T15:11:18.885447Z","description":"","frontend_count":0,"id":"e994e206-cf6c-45a7-9c07-a31296f39d33","instances":[{"created_at":"2024-04-30T15:08:48.917655Z","id":"aabc0797-aade-4ba9-ade2-724e23d40589","ip_address":"","region":"fr-par","status":"ready","updated_at":"2024-04-30T15:11:24.099904Z","zone":"fr-par-1"}],"ip":[{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":"e994e206-cf6c-45a7-9c07-a31296f39d33","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"myreverse.com","tags":[],"zone":"fr-par-1"}],"name":"test-lb-with-release-ip","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"to_delete","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2024-04-30T15:11:50.895733Z","zone":"fr-par-1"}' + headers: + Content-Length: + - "1090" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:11:51 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d6bfb0de-deb1-41a2-b465-3311a4ad119d + status: 200 OK + code: 200 + duration: 72.071374ms + - id: 32 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/e994e206-cf6c-45a7-9c07-a31296f39d33 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 27 + uncompressed: false + body: '{"message":"lbs not Found"}' + headers: + Content-Length: + - "27" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:12:21 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7c248a41-efb1-434a-8e83-3752df7589c8 + status: 404 Not Found + code: 404 + duration: 45.407068ms + - id: 33 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/e994e206-cf6c-45a7-9c07-a31296f39d33 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 27 + uncompressed: false + body: '{"message":"lbs not Found"}' + headers: + Content-Length: + - "27" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:12:21 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d746a242-064e-432a-b505-bc68494fc98c + status: 404 Not Found + code: 404 + duration: 30.33079ms + - id: 34 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/9646b738-4b5e-4153-be33-780e97bdbeff + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 275 + uncompressed: false + body: '{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"myreverse.com","tags":[],"zone":"fr-par-1"}' + headers: + Content-Length: + - "275" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:12:21 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8c668f16-8419-42b2-a81b-9393a112a52c + status: 200 OK + code: 200 + duration: 45.257126ms + - id: 35 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/9646b738-4b5e-4153-be33-780e97bdbeff + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:12:21 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1479643e-1a0c-43b5-9e94-c06a188584b5 + status: 204 No Content + code: 204 + duration: 424.255485ms + - id: 36 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/e994e206-cf6c-45a7-9c07-a31296f39d33 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 27 + uncompressed: false + body: '{"message":"lbs not Found"}' + headers: + Content-Length: + - "27" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:12:21 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ed835765-9a47-4280-ba2a-2ca8110b25e8 + status: 404 Not Found + code: 404 + duration: 59.53654ms + - id: 37 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/9646b738-4b5e-4153-be33-780e97bdbeff + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 27 + uncompressed: false + body: '{"message":"ips not Found"}' + headers: + Content-Length: + - "27" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 30 Apr 2024 15:12:21 GMT + Server: + - Scaleway API Gateway (fr-par-3;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1e240320-cfe8-4e9d-9ff3-fa622d2e0481 + status: 404 Not Found + code: 404 + duration: 21.205692ms diff --git a/internal/services/lb/testdata/ip-ipv6.cassette.yaml b/internal/services/lb/testdata/ip-ipv6.cassette.yaml index a499c2944..1d8e85244 100644 --- a/internal/services/lb/testdata/ip-ipv6.cassette.yaml +++ b/internal/services/lb/testdata/ip-ipv6.cassette.yaml @@ -18,7 +18,7 @@ interactions: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips method: POST response: @@ -27,20 +27,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 332 + content_length: 350 uncompressed: false - body: '{"id":"3c2abc10-c9b9-43c1-9c42-6ace1b41a137","ip_address":"2001:bc8:710:37::","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.7.3.0.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","zone":"fr-par-1"}' + body: '{"id":"49f7d560-789b-472d-966b-8e2441a08693","ip_address":"2001:bc8:710:7c::","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.c.7.0.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' headers: Content-Length: - - "332" + - "350" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 04 Apr 2024 15:32:08 GMT + - Tue, 30 Apr 2024 15:12:28 GMT Server: - - Scaleway API Gateway (fr-par-1;edge02) + - 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: - - 6653556b-baec-47b0-ac01-ce66291600d3 + - 689459ed-0dc3-47e5-b32e-dd554d609b3a status: 200 OK code: 200 - duration: 115.408063ms + duration: 102.131955ms - 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.22.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/3c2abc10-c9b9-43c1-9c42-6ace1b41a137 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/49f7d560-789b-472d-966b-8e2441a08693 method: GET response: proto: HTTP/2.0 @@ -76,20 +76,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 332 + content_length: 350 uncompressed: false - body: '{"id":"3c2abc10-c9b9-43c1-9c42-6ace1b41a137","ip_address":"2001:bc8:710:37::","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.7.3.0.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","zone":"fr-par-1"}' + body: '{"id":"49f7d560-789b-472d-966b-8e2441a08693","ip_address":"2001:bc8:710:7c::","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.c.7.0.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' headers: Content-Length: - - "332" + - "350" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 04 Apr 2024 15:32:08 GMT + - Tue, 30 Apr 2024 15:12:28 GMT Server: - - Scaleway API Gateway (fr-par-1;edge02) + - 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: - - e2b0a771-cf4b-412e-a8a1-37a33fd376fe + - 7c3b3cbe-e6e2-4296-88dc-0facea1b5d6d status: 200 OK code: 200 - duration: 49.476565ms + duration: 58.249984ms - id: 2 request: proto: HTTP/1.1 @@ -116,8 +116,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/3c2abc10-c9b9-43c1-9c42-6ace1b41a137 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/49f7d560-789b-472d-966b-8e2441a08693 method: GET response: proto: HTTP/2.0 @@ -125,20 +125,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 332 + content_length: 350 uncompressed: false - body: '{"id":"3c2abc10-c9b9-43c1-9c42-6ace1b41a137","ip_address":"2001:bc8:710:37::","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.7.3.0.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","zone":"fr-par-1"}' + body: '{"id":"49f7d560-789b-472d-966b-8e2441a08693","ip_address":"2001:bc8:710:7c::","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.c.7.0.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' headers: Content-Length: - - "332" + - "350" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 04 Apr 2024 15:32:09 GMT + - Tue, 30 Apr 2024 15:12:28 GMT Server: - - Scaleway API Gateway (fr-par-1;edge02) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -146,10 +146,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 280dc8cc-aed5-47d0-87da-4dd7582fc2d9 + - ae4cfd69-a276-48e3-86e0-6a940feb5e4d status: 200 OK code: 200 - duration: 49.091325ms + duration: 47.791082ms - id: 3 request: proto: HTTP/1.1 @@ -165,8 +165,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/3c2abc10-c9b9-43c1-9c42-6ace1b41a137 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/49f7d560-789b-472d-966b-8e2441a08693 method: GET response: proto: HTTP/2.0 @@ -174,20 +174,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 332 + content_length: 350 uncompressed: false - body: '{"id":"3c2abc10-c9b9-43c1-9c42-6ace1b41a137","ip_address":"2001:bc8:710:37::","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.7.3.0.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","zone":"fr-par-1"}' + body: '{"id":"49f7d560-789b-472d-966b-8e2441a08693","ip_address":"2001:bc8:710:7c::","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.c.7.0.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' headers: Content-Length: - - "332" + - "350" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 04 Apr 2024 15:32:09 GMT + - Tue, 30 Apr 2024 15:12:28 GMT Server: - - Scaleway API Gateway (fr-par-1;edge02) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -195,10 +195,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - fe0279b2-53eb-4193-a773-1af732023c84 + - 39bcbee3-5c34-4f0f-988c-89a4bf2eaf64 status: 200 OK code: 200 - duration: 51.062884ms + duration: 44.563236ms - id: 4 request: proto: HTTP/1.1 @@ -214,8 +214,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/3c2abc10-c9b9-43c1-9c42-6ace1b41a137 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/49f7d560-789b-472d-966b-8e2441a08693 method: GET response: proto: HTTP/2.0 @@ -223,20 +223,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 332 + content_length: 350 uncompressed: false - body: '{"id":"3c2abc10-c9b9-43c1-9c42-6ace1b41a137","ip_address":"2001:bc8:710:37::","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.7.3.0.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","zone":"fr-par-1"}' + body: '{"id":"49f7d560-789b-472d-966b-8e2441a08693","ip_address":"2001:bc8:710:7c::","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.c.7.0.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' headers: Content-Length: - - "332" + - "350" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 04 Apr 2024 15:32:09 GMT + - Tue, 30 Apr 2024 15:12:29 GMT Server: - - Scaleway API Gateway (fr-par-1;edge02) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -244,10 +244,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 8f68a08e-7b41-4cbc-b8b9-1534398033a3 + - 526db606-21a7-442d-b854-b532bc84229a status: 200 OK code: 200 - duration: 73.86316ms + duration: 41.765988ms - id: 5 request: proto: HTTP/1.1 @@ -263,8 +263,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/3c2abc10-c9b9-43c1-9c42-6ace1b41a137 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/49f7d560-789b-472d-966b-8e2441a08693 method: DELETE response: proto: HTTP/2.0 @@ -281,9 +281,9 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Apr 2024 15:32:10 GMT + - Tue, 30 Apr 2024 15:12:29 GMT Server: - - Scaleway API Gateway (fr-par-1;edge02) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -291,10 +291,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 24a1f764-ff81-4aa0-9281-fb2cc59a7e3e + - f7302474-0451-45c0-926d-a7786faf7697 status: 204 No Content code: 204 - duration: 355.236866ms + duration: 321.729667ms - id: 6 request: proto: HTTP/1.1 @@ -310,8 +310,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/3c2abc10-c9b9-43c1-9c42-6ace1b41a137 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/49f7d560-789b-472d-966b-8e2441a08693 method: GET response: proto: HTTP/2.0 @@ -330,9 +330,9 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Apr 2024 15:32:10 GMT + - Tue, 30 Apr 2024 15:12:29 GMT Server: - - Scaleway API Gateway (fr-par-1;edge02) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -340,7 +340,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - beff0126-9f58-40fb-91fc-fbab58bb17e1 + - ae465e49-2a74-4ae6-bbf2-dd8297930643 status: 404 Not Found code: 404 - duration: 28.029373ms + duration: 19.254794ms diff --git a/internal/services/lb/testdata/lb-with-ipv6.cassette.yaml b/internal/services/lb/testdata/lb-with-ipv6.cassette.yaml index 92754bc59..439228b07 100644 --- a/internal/services/lb/testdata/lb-with-ipv6.cassette.yaml +++ b/internal/services/lb/testdata/lb-with-ipv6.cassette.yaml @@ -18,7 +18,7 @@ interactions: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips method: POST response: @@ -27,20 +27,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 332 + content_length: 351 uncompressed: false - body: '{"id":"3c2abc10-c9b9-43c1-9c42-6ace1b41a137","ip_address":"2001:bc8:710:37::","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.7.3.0.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","zone":"fr-par-1"}' + body: '{"id":"4b629553-a240-4d75-abd7-3e774b4767a3","ip_address":"2001:bc8:710:1ce::","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.e.c.1.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' headers: Content-Length: - - "332" + - "351" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 04 Apr 2024 15:26:55 GMT + - Tue, 30 Apr 2024 15:28:31 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-3;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -48,10 +48,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - a5bfcb59-ab86-4554-8519-4fa069930057 + - a323f520-8caf-44a1-b404-b91c9b174358 status: 200 OK code: 200 - duration: 114.712972ms + duration: 104.703288ms - id: 1 request: proto: HTTP/1.1 @@ -69,7 +69,7 @@ interactions: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips method: POST response: @@ -78,20 +78,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 280 + content_length: 294 uncompressed: false - body: '{"id":"75d078b0-e55c-4cbd-b990-8f66617431e7","ip_address":"195.154.75.191","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"195-154-75-191.lb.fr-par.scw.cloud","zone":"fr-par-1"}' + body: '{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-9-236.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' headers: Content-Length: - - "280" + - "294" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 04 Apr 2024 15:26:55 GMT + - Tue, 30 Apr 2024 15:28:31 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-3;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -99,10 +99,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 169709b1-92b0-455e-8c3d-0085987dffea + - cfac4ab7-2b12-4046-93ec-9f8b3d5bdf9c status: 200 OK code: 200 - duration: 137.557313ms + duration: 121.69435ms - id: 2 request: proto: HTTP/1.1 @@ -118,8 +118,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/3c2abc10-c9b9-43c1-9c42-6ace1b41a137 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/4b629553-a240-4d75-abd7-3e774b4767a3 method: GET response: proto: HTTP/2.0 @@ -127,20 +127,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 332 + content_length: 351 uncompressed: false - body: '{"id":"3c2abc10-c9b9-43c1-9c42-6ace1b41a137","ip_address":"2001:bc8:710:37::","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.7.3.0.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","zone":"fr-par-1"}' + body: '{"id":"4b629553-a240-4d75-abd7-3e774b4767a3","ip_address":"2001:bc8:710:1ce::","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.e.c.1.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' headers: Content-Length: - - "332" + - "351" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 04 Apr 2024 15:26:55 GMT + - Tue, 30 Apr 2024 15:28:31 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-3;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -148,10 +148,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - e9890e07-0c58-4f9b-b007-5652a1cbde91 + - 2e9ef646-0722-4bf7-9fa4-fd304e9e4c28 status: 200 OK code: 200 - duration: 72.57573ms + duration: 47.332489ms - id: 3 request: proto: HTTP/1.1 @@ -167,8 +167,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/75d078b0-e55c-4cbd-b990-8f66617431e7 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/9646b738-4b5e-4153-be33-780e97bdbeff method: GET response: proto: HTTP/2.0 @@ -176,20 +176,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 280 + content_length: 294 uncompressed: false - body: '{"id":"75d078b0-e55c-4cbd-b990-8f66617431e7","ip_address":"195.154.75.191","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"195-154-75-191.lb.fr-par.scw.cloud","zone":"fr-par-1"}' + body: '{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-9-236.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' headers: Content-Length: - - "280" + - "294" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 04 Apr 2024 15:26:55 GMT + - Tue, 30 Apr 2024 15:28:31 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-3;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -197,10 +197,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - a9a43e9a-6ea5-47f2-90fe-a0e6a724624e + - 0c7fb053-5a89-472c-aa37-95ab95a1fbea status: 200 OK code: 200 - duration: 49.966ms + duration: 59.992855ms - id: 4 request: proto: HTTP/1.1 @@ -212,13 +212,13 @@ interactions: host: api.scaleway.com remote_addr: "" request_uri: "" - body: '{"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","name":"test-lb-ip-ids","description":"","ip_ids":["75d078b0-e55c-4cbd-b990-8f66617431e7","3c2abc10-c9b9-43c1-9c42-6ace1b41a137"],"tags":null,"type":"LB-S","ssl_compatibility_level":"ssl_compatibility_level_intermediate"}' + body: '{"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","name":"test-lb-ip-ids","description":"","ip_ids":["9646b738-4b5e-4153-be33-780e97bdbeff","4b629553-a240-4d75-abd7-3e774b4767a3"],"tags":null,"type":"LB-S","ssl_compatibility_level":"ssl_compatibility_level_intermediate"}' form: {} headers: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs method: POST response: @@ -227,20 +227,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 1234 + content_length: 1287 uncompressed: false - body: '{"backend_count":0,"created_at":"2024-04-04T15:26:55.868368033Z","description":"","frontend_count":0,"id":"9878f57a-2553-4240-8b1a-3e7a5b73624e","instances":[],"ip":[{"id":"75d078b0-e55c-4cbd-b990-8f66617431e7","ip_address":"195.154.75.191","lb_id":"9878f57a-2553-4240-8b1a-3e7a5b73624e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"195-154-75-191.lb.fr-par.scw.cloud","zone":"fr-par-1"},{"id":"3c2abc10-c9b9-43c1-9c42-6ace1b41a137","ip_address":"2001:bc8:710:37::","lb_id":"9878f57a-2553-4240-8b1a-3e7a5b73624e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.7.3.0.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","zone":"fr-par-1"}],"name":"test-lb-ip-ids","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"to_create","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2024-04-04T15:26:55.868368033Z","zone":"fr-par-1"}' + body: '{"backend_count":0,"created_at":"2024-04-30T15:28:31.480142538Z","description":"","frontend_count":0,"id":"294cef9f-09c7-4076-8456-46d7ff9e5cc5","instances":[],"ip":[{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":"294cef9f-09c7-4076-8456-46d7ff9e5cc5","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-9-236.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"},{"id":"4b629553-a240-4d75-abd7-3e774b4767a3","ip_address":"2001:bc8:710:1ce::","lb_id":"294cef9f-09c7-4076-8456-46d7ff9e5cc5","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.e.c.1.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"test-lb-ip-ids","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"to_create","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2024-04-30T15:28:31.480142538Z","zone":"fr-par-1"}' headers: Content-Length: - - "1234" + - "1287" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 04 Apr 2024 15:26:56 GMT + - Tue, 30 Apr 2024 15:28:31 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-3;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -248,10 +248,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 1223135a-2636-4417-8795-85782527abfc + - 59ae1718-eca6-4d66-a9e3-c7f46297c40b status: 200 OK code: 200 - duration: 400.772829ms + duration: 269.330627ms - id: 5 request: proto: HTTP/1.1 @@ -267,8 +267,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/9878f57a-2553-4240-8b1a-3e7a5b73624e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/294cef9f-09c7-4076-8456-46d7ff9e5cc5 method: GET response: proto: HTTP/2.0 @@ -276,20 +276,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 1228 + content_length: 1281 uncompressed: false - body: '{"backend_count":0,"created_at":"2024-04-04T15:26:55.868368Z","description":"","frontend_count":0,"id":"9878f57a-2553-4240-8b1a-3e7a5b73624e","instances":[],"ip":[{"id":"75d078b0-e55c-4cbd-b990-8f66617431e7","ip_address":"195.154.75.191","lb_id":"9878f57a-2553-4240-8b1a-3e7a5b73624e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"195-154-75-191.lb.fr-par.scw.cloud","zone":"fr-par-1"},{"id":"3c2abc10-c9b9-43c1-9c42-6ace1b41a137","ip_address":"2001:bc8:710:37::","lb_id":"9878f57a-2553-4240-8b1a-3e7a5b73624e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.7.3.0.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","zone":"fr-par-1"}],"name":"test-lb-ip-ids","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"to_create","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2024-04-04T15:26:55.868368Z","zone":"fr-par-1"}' + body: '{"backend_count":0,"created_at":"2024-04-30T15:28:31.480143Z","description":"","frontend_count":0,"id":"294cef9f-09c7-4076-8456-46d7ff9e5cc5","instances":[],"ip":[{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":"294cef9f-09c7-4076-8456-46d7ff9e5cc5","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-9-236.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"},{"id":"4b629553-a240-4d75-abd7-3e774b4767a3","ip_address":"2001:bc8:710:1ce::","lb_id":"294cef9f-09c7-4076-8456-46d7ff9e5cc5","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.e.c.1.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"test-lb-ip-ids","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"to_create","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2024-04-30T15:28:31.480143Z","zone":"fr-par-1"}' headers: Content-Length: - - "1228" + - "1281" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 04 Apr 2024 15:26:56 GMT + - Tue, 30 Apr 2024 15:28:31 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-3;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -297,10 +297,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 2a4619c8-85ae-4c78-bc08-2449b8e16ca7 + - 8d13e1d2-99ae-486a-834a-3872761ea2e6 status: 200 OK code: 200 - duration: 149.2335ms + duration: 67.484819ms - id: 6 request: proto: HTTP/1.1 @@ -316,8 +316,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/9878f57a-2553-4240-8b1a-3e7a5b73624e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/294cef9f-09c7-4076-8456-46d7ff9e5cc5 method: GET response: proto: HTTP/2.0 @@ -325,20 +325,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 1424 + content_length: 1483 uncompressed: false - body: '{"backend_count":0,"created_at":"2024-04-04T15:26:55.868368Z","description":"","frontend_count":0,"id":"9878f57a-2553-4240-8b1a-3e7a5b73624e","instances":[{"created_at":"2024-04-04T15:25:11.115455Z","id":"817d243e-5723-45c4-a9a7-9804a933b193","ip_address":"","region":"fr-par","status":"ready","updated_at":"2024-04-04T15:27:08.972820Z","zone":"fr-par-1"}],"ip":[{"id":"75d078b0-e55c-4cbd-b990-8f66617431e7","ip_address":"195.154.75.191","lb_id":"9878f57a-2553-4240-8b1a-3e7a5b73624e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"195-154-75-191.lb.fr-par.scw.cloud","zone":"fr-par-1"},{"id":"3c2abc10-c9b9-43c1-9c42-6ace1b41a137","ip_address":"2001:bc8:710:37::","lb_id":"9878f57a-2553-4240-8b1a-3e7a5b73624e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.7.3.0.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","zone":"fr-par-1"}],"name":"test-lb-ip-ids","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2024-04-04T15:27:10.420559Z","zone":"fr-par-1"}' + body: '{"backend_count":0,"created_at":"2024-04-30T15:28:31.480143Z","description":"","frontend_count":0,"id":"294cef9f-09c7-4076-8456-46d7ff9e5cc5","instances":[{"created_at":"2024-04-30T15:23:40.206171Z","id":"052bbb75-466b-46a8-b38e-bfbcba08745c","ip_address":"","region":"fr-par","status":"ready","updated_at":"2024-04-30T15:28:45.411212Z","zone":"fr-par-1"}],"ip":[{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":"294cef9f-09c7-4076-8456-46d7ff9e5cc5","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-9-236.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"},{"id":"4b629553-a240-4d75-abd7-3e774b4767a3","ip_address":"2001:bc8:710:1ce::","lb_id":"294cef9f-09c7-4076-8456-46d7ff9e5cc5","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.e.c.1.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"test-lb-ip-ids","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2024-04-30T15:28:46.605816Z","zone":"fr-par-1"}' headers: Content-Length: - - "1424" + - "1483" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 04 Apr 2024 15:27:26 GMT + - Tue, 30 Apr 2024 15:29:01 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -346,10 +346,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 9e46263d-1440-45f4-b57a-c02584ea9acb + - 527a35a1-7fd9-4ad1-9823-a9fda4327122 status: 200 OK code: 200 - duration: 104.23425ms + duration: 93.998768ms - id: 7 request: proto: HTTP/1.1 @@ -365,8 +365,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/9878f57a-2553-4240-8b1a-3e7a5b73624e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/294cef9f-09c7-4076-8456-46d7ff9e5cc5 method: GET response: proto: HTTP/2.0 @@ -374,20 +374,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 1424 + content_length: 1483 uncompressed: false - body: '{"backend_count":0,"created_at":"2024-04-04T15:26:55.868368Z","description":"","frontend_count":0,"id":"9878f57a-2553-4240-8b1a-3e7a5b73624e","instances":[{"created_at":"2024-04-04T15:25:11.115455Z","id":"817d243e-5723-45c4-a9a7-9804a933b193","ip_address":"","region":"fr-par","status":"ready","updated_at":"2024-04-04T15:27:08.972820Z","zone":"fr-par-1"}],"ip":[{"id":"75d078b0-e55c-4cbd-b990-8f66617431e7","ip_address":"195.154.75.191","lb_id":"9878f57a-2553-4240-8b1a-3e7a5b73624e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"195-154-75-191.lb.fr-par.scw.cloud","zone":"fr-par-1"},{"id":"3c2abc10-c9b9-43c1-9c42-6ace1b41a137","ip_address":"2001:bc8:710:37::","lb_id":"9878f57a-2553-4240-8b1a-3e7a5b73624e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.7.3.0.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","zone":"fr-par-1"}],"name":"test-lb-ip-ids","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2024-04-04T15:27:10.420559Z","zone":"fr-par-1"}' + body: '{"backend_count":0,"created_at":"2024-04-30T15:28:31.480143Z","description":"","frontend_count":0,"id":"294cef9f-09c7-4076-8456-46d7ff9e5cc5","instances":[{"created_at":"2024-04-30T15:23:40.206171Z","id":"052bbb75-466b-46a8-b38e-bfbcba08745c","ip_address":"","region":"fr-par","status":"ready","updated_at":"2024-04-30T15:28:45.411212Z","zone":"fr-par-1"}],"ip":[{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":"294cef9f-09c7-4076-8456-46d7ff9e5cc5","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-9-236.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"},{"id":"4b629553-a240-4d75-abd7-3e774b4767a3","ip_address":"2001:bc8:710:1ce::","lb_id":"294cef9f-09c7-4076-8456-46d7ff9e5cc5","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.e.c.1.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"test-lb-ip-ids","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2024-04-30T15:28:46.605816Z","zone":"fr-par-1"}' headers: Content-Length: - - "1424" + - "1483" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 04 Apr 2024 15:27:26 GMT + - Tue, 30 Apr 2024 15:29:01 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -395,10 +395,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 850fe9f8-eb86-4d0f-b33f-c8f2122116a0 + - 9a128d2e-f5ae-4103-96a1-d20c3ef6a88f status: 200 OK code: 200 - duration: 94.83992ms + duration: 73.09404ms - id: 8 request: proto: HTTP/1.1 @@ -414,8 +414,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/9878f57a-2553-4240-8b1a-3e7a5b73624e/private-networks?order_by=created_at_asc + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/294cef9f-09c7-4076-8456-46d7ff9e5cc5/private-networks?order_by=created_at_asc method: GET response: proto: HTTP/2.0 @@ -423,20 +423,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 38 + content_length: 39 uncompressed: false body: '{"private_network":[],"total_count":0}' headers: Content-Length: - - "38" + - "39" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 04 Apr 2024 15:27:26 GMT + - Tue, 30 Apr 2024 15:29:01 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -444,10 +444,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 1bf89bab-7b85-43c6-8302-05741d8f1616 + - 7c30044c-13c9-4afa-b93c-20b814acd839 status: 200 OK code: 200 - duration: 81.745864ms + duration: 55.549252ms - id: 9 request: proto: HTTP/1.1 @@ -463,8 +463,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/9878f57a-2553-4240-8b1a-3e7a5b73624e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/294cef9f-09c7-4076-8456-46d7ff9e5cc5 method: GET response: proto: HTTP/2.0 @@ -472,20 +472,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 1424 + content_length: 1483 uncompressed: false - body: '{"backend_count":0,"created_at":"2024-04-04T15:26:55.868368Z","description":"","frontend_count":0,"id":"9878f57a-2553-4240-8b1a-3e7a5b73624e","instances":[{"created_at":"2024-04-04T15:25:11.115455Z","id":"817d243e-5723-45c4-a9a7-9804a933b193","ip_address":"","region":"fr-par","status":"ready","updated_at":"2024-04-04T15:27:08.972820Z","zone":"fr-par-1"}],"ip":[{"id":"75d078b0-e55c-4cbd-b990-8f66617431e7","ip_address":"195.154.75.191","lb_id":"9878f57a-2553-4240-8b1a-3e7a5b73624e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"195-154-75-191.lb.fr-par.scw.cloud","zone":"fr-par-1"},{"id":"3c2abc10-c9b9-43c1-9c42-6ace1b41a137","ip_address":"2001:bc8:710:37::","lb_id":"9878f57a-2553-4240-8b1a-3e7a5b73624e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.7.3.0.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","zone":"fr-par-1"}],"name":"test-lb-ip-ids","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2024-04-04T15:27:10.420559Z","zone":"fr-par-1"}' + body: '{"backend_count":0,"created_at":"2024-04-30T15:28:31.480143Z","description":"","frontend_count":0,"id":"294cef9f-09c7-4076-8456-46d7ff9e5cc5","instances":[{"created_at":"2024-04-30T15:23:40.206171Z","id":"052bbb75-466b-46a8-b38e-bfbcba08745c","ip_address":"","region":"fr-par","status":"ready","updated_at":"2024-04-30T15:28:45.411212Z","zone":"fr-par-1"}],"ip":[{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":"294cef9f-09c7-4076-8456-46d7ff9e5cc5","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-9-236.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"},{"id":"4b629553-a240-4d75-abd7-3e774b4767a3","ip_address":"2001:bc8:710:1ce::","lb_id":"294cef9f-09c7-4076-8456-46d7ff9e5cc5","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.e.c.1.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"test-lb-ip-ids","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2024-04-30T15:28:46.605816Z","zone":"fr-par-1"}' headers: Content-Length: - - "1424" + - "1483" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 04 Apr 2024 15:27:26 GMT + - Tue, 30 Apr 2024 15:29:02 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -493,10 +493,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - fcfe5c48-f09a-44c0-adaa-29e2d8a63c30 + - 690f91eb-5943-4405-8388-c937ffd72f46 status: 200 OK code: 200 - duration: 90.956571ms + duration: 98.483954ms - id: 10 request: proto: HTTP/1.1 @@ -512,8 +512,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/3c2abc10-c9b9-43c1-9c42-6ace1b41a137 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/9646b738-4b5e-4153-be33-780e97bdbeff method: GET response: proto: HTTP/2.0 @@ -521,20 +521,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 366 + content_length: 328 uncompressed: false - body: '{"id":"3c2abc10-c9b9-43c1-9c42-6ace1b41a137","ip_address":"2001:bc8:710:37::","lb_id":"9878f57a-2553-4240-8b1a-3e7a5b73624e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.7.3.0.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","zone":"fr-par-1"}' + body: '{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":"294cef9f-09c7-4076-8456-46d7ff9e5cc5","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-9-236.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' headers: Content-Length: - - "366" + - "328" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 04 Apr 2024 15:27:27 GMT + - Tue, 30 Apr 2024 15:29:02 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -542,10 +542,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - aafb56f8-a562-420b-81c2-02fbfa30805a + - e28844fa-ece4-413b-bbea-71970922a20b status: 200 OK code: 200 - duration: 57.324595ms + duration: 48.011475ms - id: 11 request: proto: HTTP/1.1 @@ -561,8 +561,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/75d078b0-e55c-4cbd-b990-8f66617431e7 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/4b629553-a240-4d75-abd7-3e774b4767a3 method: GET response: proto: HTTP/2.0 @@ -570,20 +570,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 314 + content_length: 385 uncompressed: false - body: '{"id":"75d078b0-e55c-4cbd-b990-8f66617431e7","ip_address":"195.154.75.191","lb_id":"9878f57a-2553-4240-8b1a-3e7a5b73624e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"195-154-75-191.lb.fr-par.scw.cloud","zone":"fr-par-1"}' + body: '{"id":"4b629553-a240-4d75-abd7-3e774b4767a3","ip_address":"2001:bc8:710:1ce::","lb_id":"294cef9f-09c7-4076-8456-46d7ff9e5cc5","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.e.c.1.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' headers: Content-Length: - - "314" + - "385" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 04 Apr 2024 15:27:27 GMT + - Tue, 30 Apr 2024 15:29:02 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -591,10 +591,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 3b101e2c-eafe-462e-8b87-32d0188c6d49 + - 99a94853-13ab-49cb-9f99-67d18dbe6754 status: 200 OK code: 200 - duration: 57.229662ms + duration: 47.981613ms - id: 12 request: proto: HTTP/1.1 @@ -610,8 +610,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/9878f57a-2553-4240-8b1a-3e7a5b73624e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/294cef9f-09c7-4076-8456-46d7ff9e5cc5 method: GET response: proto: HTTP/2.0 @@ -619,20 +619,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 1424 + content_length: 1483 uncompressed: false - body: '{"backend_count":0,"created_at":"2024-04-04T15:26:55.868368Z","description":"","frontend_count":0,"id":"9878f57a-2553-4240-8b1a-3e7a5b73624e","instances":[{"created_at":"2024-04-04T15:25:11.115455Z","id":"817d243e-5723-45c4-a9a7-9804a933b193","ip_address":"","region":"fr-par","status":"ready","updated_at":"2024-04-04T15:27:08.972820Z","zone":"fr-par-1"}],"ip":[{"id":"75d078b0-e55c-4cbd-b990-8f66617431e7","ip_address":"195.154.75.191","lb_id":"9878f57a-2553-4240-8b1a-3e7a5b73624e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"195-154-75-191.lb.fr-par.scw.cloud","zone":"fr-par-1"},{"id":"3c2abc10-c9b9-43c1-9c42-6ace1b41a137","ip_address":"2001:bc8:710:37::","lb_id":"9878f57a-2553-4240-8b1a-3e7a5b73624e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.7.3.0.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","zone":"fr-par-1"}],"name":"test-lb-ip-ids","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2024-04-04T15:27:10.420559Z","zone":"fr-par-1"}' + body: '{"backend_count":0,"created_at":"2024-04-30T15:28:31.480143Z","description":"","frontend_count":0,"id":"294cef9f-09c7-4076-8456-46d7ff9e5cc5","instances":[{"created_at":"2024-04-30T15:23:40.206171Z","id":"052bbb75-466b-46a8-b38e-bfbcba08745c","ip_address":"","region":"fr-par","status":"ready","updated_at":"2024-04-30T15:28:45.411212Z","zone":"fr-par-1"}],"ip":[{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":"294cef9f-09c7-4076-8456-46d7ff9e5cc5","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-9-236.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"},{"id":"4b629553-a240-4d75-abd7-3e774b4767a3","ip_address":"2001:bc8:710:1ce::","lb_id":"294cef9f-09c7-4076-8456-46d7ff9e5cc5","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.e.c.1.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"test-lb-ip-ids","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2024-04-30T15:28:46.605816Z","zone":"fr-par-1"}' headers: Content-Length: - - "1424" + - "1483" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 04 Apr 2024 15:27:27 GMT + - Tue, 30 Apr 2024 15:29:02 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -640,10 +640,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 1ffe74b3-8b0a-44ec-aaac-a7939c73d6f1 + - 868bf037-810e-44be-91cb-35b37d9c1666 status: 200 OK code: 200 - duration: 99.778991ms + duration: 76.286142ms - id: 13 request: proto: HTTP/1.1 @@ -659,8 +659,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/9878f57a-2553-4240-8b1a-3e7a5b73624e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/294cef9f-09c7-4076-8456-46d7ff9e5cc5 method: GET response: proto: HTTP/2.0 @@ -668,20 +668,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 1424 + content_length: 1483 uncompressed: false - body: '{"backend_count":0,"created_at":"2024-04-04T15:26:55.868368Z","description":"","frontend_count":0,"id":"9878f57a-2553-4240-8b1a-3e7a5b73624e","instances":[{"created_at":"2024-04-04T15:25:11.115455Z","id":"817d243e-5723-45c4-a9a7-9804a933b193","ip_address":"","region":"fr-par","status":"ready","updated_at":"2024-04-04T15:27:08.972820Z","zone":"fr-par-1"}],"ip":[{"id":"75d078b0-e55c-4cbd-b990-8f66617431e7","ip_address":"195.154.75.191","lb_id":"9878f57a-2553-4240-8b1a-3e7a5b73624e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"195-154-75-191.lb.fr-par.scw.cloud","zone":"fr-par-1"},{"id":"3c2abc10-c9b9-43c1-9c42-6ace1b41a137","ip_address":"2001:bc8:710:37::","lb_id":"9878f57a-2553-4240-8b1a-3e7a5b73624e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.7.3.0.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","zone":"fr-par-1"}],"name":"test-lb-ip-ids","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2024-04-04T15:27:10.420559Z","zone":"fr-par-1"}' + body: '{"backend_count":0,"created_at":"2024-04-30T15:28:31.480143Z","description":"","frontend_count":0,"id":"294cef9f-09c7-4076-8456-46d7ff9e5cc5","instances":[{"created_at":"2024-04-30T15:23:40.206171Z","id":"052bbb75-466b-46a8-b38e-bfbcba08745c","ip_address":"","region":"fr-par","status":"ready","updated_at":"2024-04-30T15:28:45.411212Z","zone":"fr-par-1"}],"ip":[{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":"294cef9f-09c7-4076-8456-46d7ff9e5cc5","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-9-236.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"},{"id":"4b629553-a240-4d75-abd7-3e774b4767a3","ip_address":"2001:bc8:710:1ce::","lb_id":"294cef9f-09c7-4076-8456-46d7ff9e5cc5","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.e.c.1.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"test-lb-ip-ids","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2024-04-30T15:28:46.605816Z","zone":"fr-par-1"}' headers: Content-Length: - - "1424" + - "1483" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 04 Apr 2024 15:27:27 GMT + - Tue, 30 Apr 2024 15:29:02 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -689,10 +689,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - a3824f23-dc43-408b-87a7-6e9f0fe9d4b0 + - 841d5961-5a6c-4fd0-aed4-78a57e60c1f8 status: 200 OK code: 200 - duration: 102.111287ms + duration: 84.679095ms - id: 14 request: proto: HTTP/1.1 @@ -708,8 +708,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/9878f57a-2553-4240-8b1a-3e7a5b73624e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/294cef9f-09c7-4076-8456-46d7ff9e5cc5 method: GET response: proto: HTTP/2.0 @@ -717,20 +717,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 1424 + content_length: 1483 uncompressed: false - body: '{"backend_count":0,"created_at":"2024-04-04T15:26:55.868368Z","description":"","frontend_count":0,"id":"9878f57a-2553-4240-8b1a-3e7a5b73624e","instances":[{"created_at":"2024-04-04T15:25:11.115455Z","id":"817d243e-5723-45c4-a9a7-9804a933b193","ip_address":"","region":"fr-par","status":"ready","updated_at":"2024-04-04T15:27:08.972820Z","zone":"fr-par-1"}],"ip":[{"id":"75d078b0-e55c-4cbd-b990-8f66617431e7","ip_address":"195.154.75.191","lb_id":"9878f57a-2553-4240-8b1a-3e7a5b73624e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"195-154-75-191.lb.fr-par.scw.cloud","zone":"fr-par-1"},{"id":"3c2abc10-c9b9-43c1-9c42-6ace1b41a137","ip_address":"2001:bc8:710:37::","lb_id":"9878f57a-2553-4240-8b1a-3e7a5b73624e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.7.3.0.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","zone":"fr-par-1"}],"name":"test-lb-ip-ids","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2024-04-04T15:27:10.420559Z","zone":"fr-par-1"}' + body: '{"backend_count":0,"created_at":"2024-04-30T15:28:31.480143Z","description":"","frontend_count":0,"id":"294cef9f-09c7-4076-8456-46d7ff9e5cc5","instances":[{"created_at":"2024-04-30T15:23:40.206171Z","id":"052bbb75-466b-46a8-b38e-bfbcba08745c","ip_address":"","region":"fr-par","status":"ready","updated_at":"2024-04-30T15:28:45.411212Z","zone":"fr-par-1"}],"ip":[{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":"294cef9f-09c7-4076-8456-46d7ff9e5cc5","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-9-236.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"},{"id":"4b629553-a240-4d75-abd7-3e774b4767a3","ip_address":"2001:bc8:710:1ce::","lb_id":"294cef9f-09c7-4076-8456-46d7ff9e5cc5","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.e.c.1.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"test-lb-ip-ids","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2024-04-30T15:28:46.605816Z","zone":"fr-par-1"}' headers: Content-Length: - - "1424" + - "1483" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 04 Apr 2024 15:27:27 GMT + - Tue, 30 Apr 2024 15:29:02 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -738,10 +738,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 3975d5b8-1825-49e4-be9b-44ae3a4a5f07 + - 9a0392d6-014b-4e10-8110-327cfda6b9d0 status: 200 OK code: 200 - duration: 73.042988ms + duration: 61.38117ms - id: 15 request: proto: HTTP/1.1 @@ -757,8 +757,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/9878f57a-2553-4240-8b1a-3e7a5b73624e/private-networks?order_by=created_at_asc + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/294cef9f-09c7-4076-8456-46d7ff9e5cc5/private-networks?order_by=created_at_asc method: GET response: proto: HTTP/2.0 @@ -766,20 +766,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 38 + content_length: 39 uncompressed: false body: '{"private_network":[],"total_count":0}' headers: Content-Length: - - "38" + - "39" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 04 Apr 2024 15:27:27 GMT + - Tue, 30 Apr 2024 15:29:02 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -787,10 +787,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - d00d165e-386a-4f47-bf63-d56d357c3a02 + - 0fb9572e-c4ba-4fcc-9371-0166a955a20d status: 200 OK code: 200 - duration: 69.966961ms + duration: 68.792655ms - id: 16 request: proto: HTTP/1.1 @@ -806,8 +806,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/9878f57a-2553-4240-8b1a-3e7a5b73624e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/294cef9f-09c7-4076-8456-46d7ff9e5cc5 method: GET response: proto: HTTP/2.0 @@ -815,20 +815,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 1424 + content_length: 1483 uncompressed: false - body: '{"backend_count":0,"created_at":"2024-04-04T15:26:55.868368Z","description":"","frontend_count":0,"id":"9878f57a-2553-4240-8b1a-3e7a5b73624e","instances":[{"created_at":"2024-04-04T15:25:11.115455Z","id":"817d243e-5723-45c4-a9a7-9804a933b193","ip_address":"","region":"fr-par","status":"ready","updated_at":"2024-04-04T15:27:08.972820Z","zone":"fr-par-1"}],"ip":[{"id":"75d078b0-e55c-4cbd-b990-8f66617431e7","ip_address":"195.154.75.191","lb_id":"9878f57a-2553-4240-8b1a-3e7a5b73624e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"195-154-75-191.lb.fr-par.scw.cloud","zone":"fr-par-1"},{"id":"3c2abc10-c9b9-43c1-9c42-6ace1b41a137","ip_address":"2001:bc8:710:37::","lb_id":"9878f57a-2553-4240-8b1a-3e7a5b73624e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.7.3.0.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","zone":"fr-par-1"}],"name":"test-lb-ip-ids","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2024-04-04T15:27:10.420559Z","zone":"fr-par-1"}' + body: '{"backend_count":0,"created_at":"2024-04-30T15:28:31.480143Z","description":"","frontend_count":0,"id":"294cef9f-09c7-4076-8456-46d7ff9e5cc5","instances":[{"created_at":"2024-04-30T15:23:40.206171Z","id":"052bbb75-466b-46a8-b38e-bfbcba08745c","ip_address":"","region":"fr-par","status":"ready","updated_at":"2024-04-30T15:28:45.411212Z","zone":"fr-par-1"}],"ip":[{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":"294cef9f-09c7-4076-8456-46d7ff9e5cc5","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-9-236.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"},{"id":"4b629553-a240-4d75-abd7-3e774b4767a3","ip_address":"2001:bc8:710:1ce::","lb_id":"294cef9f-09c7-4076-8456-46d7ff9e5cc5","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.e.c.1.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"test-lb-ip-ids","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"ready","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2024-04-30T15:28:46.605816Z","zone":"fr-par-1"}' headers: Content-Length: - - "1424" + - "1483" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 04 Apr 2024 15:27:27 GMT + - Tue, 30 Apr 2024 15:29:03 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -836,10 +836,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - b0b9401e-f38b-4d94-a8b3-039ead90668c + - 4377c609-36aa-4fd0-bb66-b3e70200b8ac status: 200 OK code: 200 - duration: 99.35448ms + duration: 124.892943ms - id: 17 request: proto: HTTP/1.1 @@ -855,8 +855,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/9878f57a-2553-4240-8b1a-3e7a5b73624e?release_ip=false + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/294cef9f-09c7-4076-8456-46d7ff9e5cc5?release_ip=false method: DELETE response: proto: HTTP/2.0 @@ -873,9 +873,9 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Apr 2024 15:27:28 GMT + - Tue, 30 Apr 2024 15:29:03 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -883,10 +883,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 21976378-a8a1-4901-83b7-2330c2d2fcca + - 62b8c423-1902-451b-a2c6-7522c35ede69 status: 204 No Content code: 204 - duration: 249.634601ms + duration: 255.87352ms - id: 18 request: proto: HTTP/1.1 @@ -902,8 +902,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/9878f57a-2553-4240-8b1a-3e7a5b73624e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/294cef9f-09c7-4076-8456-46d7ff9e5cc5 method: GET response: proto: HTTP/2.0 @@ -911,20 +911,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 1428 + content_length: 1487 uncompressed: false - body: '{"backend_count":0,"created_at":"2024-04-04T15:26:55.868368Z","description":"","frontend_count":0,"id":"9878f57a-2553-4240-8b1a-3e7a5b73624e","instances":[{"created_at":"2024-04-04T15:25:11.115455Z","id":"817d243e-5723-45c4-a9a7-9804a933b193","ip_address":"","region":"fr-par","status":"ready","updated_at":"2024-04-04T15:27:08.972820Z","zone":"fr-par-1"}],"ip":[{"id":"75d078b0-e55c-4cbd-b990-8f66617431e7","ip_address":"195.154.75.191","lb_id":"9878f57a-2553-4240-8b1a-3e7a5b73624e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"195-154-75-191.lb.fr-par.scw.cloud","zone":"fr-par-1"},{"id":"3c2abc10-c9b9-43c1-9c42-6ace1b41a137","ip_address":"2001:bc8:710:37::","lb_id":"9878f57a-2553-4240-8b1a-3e7a5b73624e","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.7.3.0.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","zone":"fr-par-1"}],"name":"test-lb-ip-ids","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"to_delete","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2024-04-04T15:27:27.966313Z","zone":"fr-par-1"}' + body: '{"backend_count":0,"created_at":"2024-04-30T15:28:31.480143Z","description":"","frontend_count":0,"id":"294cef9f-09c7-4076-8456-46d7ff9e5cc5","instances":[{"created_at":"2024-04-30T15:23:40.206171Z","id":"052bbb75-466b-46a8-b38e-bfbcba08745c","ip_address":"","region":"fr-par","status":"ready","updated_at":"2024-04-30T15:28:45.411212Z","zone":"fr-par-1"}],"ip":[{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":"294cef9f-09c7-4076-8456-46d7ff9e5cc5","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-9-236.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"},{"id":"4b629553-a240-4d75-abd7-3e774b4767a3","ip_address":"2001:bc8:710:1ce::","lb_id":"294cef9f-09c7-4076-8456-46d7ff9e5cc5","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.e.c.1.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"name":"test-lb-ip-ids","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","route_count":0,"ssl_compatibility_level":"ssl_compatibility_level_intermediate","status":"to_delete","subscriber":null,"tags":[],"type":"lb-s","updated_at":"2024-04-30T15:29:03.493451Z","zone":"fr-par-1"}' headers: Content-Length: - - "1428" + - "1487" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 04 Apr 2024 15:27:28 GMT + - Tue, 30 Apr 2024 15:29:03 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -932,10 +932,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 5453c3e9-b4ae-43cd-b9fb-78585b195800 + - 9fedeed9-98c0-4e6c-90f2-39ab3f87fac4 status: 200 OK code: 200 - duration: 82.646033ms + duration: 69.95842ms - id: 19 request: proto: HTTP/1.1 @@ -951,8 +951,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/9878f57a-2553-4240-8b1a-3e7a5b73624e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/294cef9f-09c7-4076-8456-46d7ff9e5cc5 method: GET response: proto: HTTP/2.0 @@ -971,9 +971,9 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Apr 2024 15:27:58 GMT + - Tue, 30 Apr 2024 15:29:33 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-3;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -981,10 +981,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 1537b7f1-5823-4e05-a409-be24c73bbc7d + - 29ea2912-5c68-4002-b72d-f6135ffb9ef7 status: 404 Not Found code: 404 - duration: 70.090106ms + duration: 51.611853ms - id: 20 request: proto: HTTP/1.1 @@ -1000,8 +1000,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/9878f57a-2553-4240-8b1a-3e7a5b73624e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/294cef9f-09c7-4076-8456-46d7ff9e5cc5 method: GET response: proto: HTTP/2.0 @@ -1020,9 +1020,9 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Apr 2024 15:27:58 GMT + - Tue, 30 Apr 2024 15:29:33 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-3;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1030,10 +1030,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 4f83fd71-4c0c-4f9e-979c-2b6f064f9126 + - 7113d252-1715-40f1-bc73-6c30413cc5f6 status: 404 Not Found code: 404 - duration: 20.657503ms + duration: 23.667956ms - id: 21 request: proto: HTTP/1.1 @@ -1049,8 +1049,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/3c2abc10-c9b9-43c1-9c42-6ace1b41a137 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/9646b738-4b5e-4153-be33-780e97bdbeff method: GET response: proto: HTTP/2.0 @@ -1058,20 +1058,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 332 + content_length: 294 uncompressed: false - body: '{"id":"3c2abc10-c9b9-43c1-9c42-6ace1b41a137","ip_address":"2001:bc8:710:37::","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.7.3.0.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","zone":"fr-par-1"}' + body: '{"id":"9646b738-4b5e-4153-be33-780e97bdbeff","ip_address":"51.159.9.236","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-9-236.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' headers: Content-Length: - - "332" + - "294" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 04 Apr 2024 15:27:58 GMT + - Tue, 30 Apr 2024 15:29:33 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-3;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1079,10 +1079,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 7e08d07c-0ea0-44b0-b323-c5768e605d17 + - e6613f88-7acb-46f7-abca-f4d4c3bc6699 status: 200 OK code: 200 - duration: 58.929552ms + duration: 41.808547ms - id: 22 request: proto: HTTP/1.1 @@ -1098,8 +1098,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/75d078b0-e55c-4cbd-b990-8f66617431e7 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/4b629553-a240-4d75-abd7-3e774b4767a3 method: GET response: proto: HTTP/2.0 @@ -1107,20 +1107,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 280 + content_length: 351 uncompressed: false - body: '{"id":"75d078b0-e55c-4cbd-b990-8f66617431e7","ip_address":"195.154.75.191","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"195-154-75-191.lb.fr-par.scw.cloud","zone":"fr-par-1"}' + body: '{"id":"4b629553-a240-4d75-abd7-3e774b4767a3","ip_address":"2001:bc8:710:1ce::","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.e.c.1.0.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' headers: Content-Length: - - "280" + - "351" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 04 Apr 2024 15:27:58 GMT + - Tue, 30 Apr 2024 15:29:33 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-3;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1128,10 +1128,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 3a244b67-7cbc-44ef-bd54-059da4e47b09 + - 3d0d9640-4eaa-4b72-9324-2a863630aa70 status: 200 OK code: 200 - duration: 58.829048ms + duration: 44.080272ms - id: 23 request: proto: HTTP/1.1 @@ -1147,8 +1147,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/3c2abc10-c9b9-43c1-9c42-6ace1b41a137 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/4b629553-a240-4d75-abd7-3e774b4767a3 method: DELETE response: proto: HTTP/2.0 @@ -1165,9 +1165,9 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Apr 2024 15:27:58 GMT + - Tue, 30 Apr 2024 15:29:34 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-3;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1175,10 +1175,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 3be92fd8-13a3-47f1-92b9-55a5fd6c3ce2 + - b6867909-4942-424d-82c5-2cec56b754a4 status: 204 No Content code: 204 - duration: 388.145463ms + duration: 539.063678ms - id: 24 request: proto: HTTP/1.1 @@ -1194,8 +1194,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/75d078b0-e55c-4cbd-b990-8f66617431e7 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/9646b738-4b5e-4153-be33-780e97bdbeff method: DELETE response: proto: HTTP/2.0 @@ -1212,9 +1212,9 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Apr 2024 15:27:58 GMT + - Tue, 30 Apr 2024 15:29:34 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-3;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1222,10 +1222,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 51a3ceea-cfdd-413b-b790-07821718df9a + - 4e9c5239-2df7-49ff-8161-15054b6cca4c status: 204 No Content code: 204 - duration: 397.995741ms + duration: 745.908405ms - id: 25 request: proto: HTTP/1.1 @@ -1241,8 +1241,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/9878f57a-2553-4240-8b1a-3e7a5b73624e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/lb/v1/zones/fr-par-1/lbs/294cef9f-09c7-4076-8456-46d7ff9e5cc5 method: GET response: proto: HTTP/2.0 @@ -1261,9 +1261,9 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Apr 2024 15:27:58 GMT + - Tue, 30 Apr 2024 15:29:34 GMT Server: - - Scaleway API Gateway (fr-par-1;edge01) + - Scaleway API Gateway (fr-par-3;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1271,7 +1271,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - a348b352-335f-4d56-a9e0-c4d07a0445d9 + - 21a86595-ca42-4e21-b4e3-7914e244be14 status: 404 Not Found code: 404 - duration: 30.185532ms + duration: 23.840393ms diff --git a/internal/verify/email.go b/internal/verify/email.go index bc6ebbde6..02bf44bc1 100644 --- a/internal/verify/email.go +++ b/internal/verify/email.go @@ -21,3 +21,25 @@ func IsEmail() schema.SchemaValidateFunc { return } } + +func IsEmailList() schema.SchemaValidateFunc { + return func(i interface{}, k string) (warnings []string, errors []error) { + list, ok := i.([]interface{}) + if !ok { + errors = append(errors, fmt.Errorf("invalid type for key '%s': expected a list of strings", k)) + return warnings, errors + } + + for _, li := range list { + email, isString := li.(string) + if !isString { + errors = append(errors, fmt.Errorf("invalid type for key '%s': each item must be a string", k)) + continue + } + if _, err := IsEmail()(email, k); len(err) > 0 { + errors = append(errors, err...) + } + } + return warnings, errors + } +} diff --git a/internal/verify/email_test.go b/internal/verify/email_test.go new file mode 100644 index 000000000..84ca5b431 --- /dev/null +++ b/internal/verify/email_test.go @@ -0,0 +1,48 @@ +package verify_test + +import ( + "testing" + + "github.com/scaleway/terraform-provider-scaleway/v2/internal/verify" +) + +func TestIsEmail(t *testing.T) { + validateFunc := verify.IsEmail() + + tests := []struct { + email string + valid bool + }{ + {"test@example.com", true}, + {"invalid-email", false}, + {"", false}, + } + + for _, test := range tests { + _, errors := validateFunc(test.email, "email") + if (len(errors) == 0) != test.valid { + t.Errorf("IsEmail() test failed for input %s, expected valid: %v, got errors: %v", test.email, test.valid, errors) + } + } +} + +func TestIsEmailList(t *testing.T) { + validateFunc := verify.IsEmailList() + + tests := []struct { + emails []interface{} + valid bool + }{ + {[]interface{}{"test@example.com", "test2@example.com"}, true}, + {[]interface{}{"test@example.com", "invalid-email"}, false}, + {[]interface{}{123, "test@example.com"}, false}, + {[]interface{}{}, true}, + } + + for _, test := range tests { + _, errors := validateFunc(test.emails, "emails") + if (len(errors) == 0) != test.valid { + t.Errorf("IsEmailList() test failed for input %v, expected valid: %v, got errors: %v", test.emails, test.valid, errors) + } + } +}