diff --git a/docs/actions/rdb_database_backup_export_action.md b/docs/actions/rdb_database_backup_export_action.md new file mode 100644 index 000000000..2c52cbc83 --- /dev/null +++ b/docs/actions/rdb_database_backup_export_action.md @@ -0,0 +1,21 @@ +--- +subcategory: "RDB" +page_title: "Scaleway: scaleway_rdb_database_backup_export_action" +--- + +# scaleway_rdb_database_backup_export_action (Action) + + +## Schema + +### Required + +- `backup_id` (String) Database backup ID to export. Can be a plain UUID or a regional ID. + +### Optional + +- `region` (String) The region you want to attach the resource to +- `wait` (Boolean) Wait for the export operation to complete before returning. + + + diff --git a/docs/actions/rdb_database_backup_restore_action.md b/docs/actions/rdb_database_backup_restore_action.md new file mode 100644 index 000000000..3f6f7d62b --- /dev/null +++ b/docs/actions/rdb_database_backup_restore_action.md @@ -0,0 +1,23 @@ +--- +subcategory: "RDB" +page_title: "Scaleway: scaleway_rdb_database_backup_restore_action" +--- + +# scaleway_rdb_database_backup_restore_action (Action) + + +## Schema + +### Required + +- `backup_id` (String) Database backup ID to restore. Can be a plain UUID or a regional ID. +- `instance_id` (String) RDB instance ID to restore the backup to. Can be a plain UUID or a regional ID. + +### Optional + +- `database_name` (String) Name of the database to restore. If not set, the original database name will be used. +- `region` (String) The region you want to attach the resource to +- `wait` (Boolean) Wait for the restore operation to complete before returning. + + + diff --git a/docs/actions/rdb_instance_certificate_renew_action.md b/docs/actions/rdb_instance_certificate_renew_action.md new file mode 100644 index 000000000..c842a708a --- /dev/null +++ b/docs/actions/rdb_instance_certificate_renew_action.md @@ -0,0 +1,21 @@ +--- +subcategory: "RDB" +page_title: "Scaleway: scaleway_rdb_instance_certificate_renew_action" +--- + +# scaleway_rdb_instance_certificate_renew_action (Action) + + +## Schema + +### Required + +- `instance_id` (String) RDB instance ID to renew certificate for. Can be a plain UUID or a regional ID. + +### Optional + +- `region` (String) The region you want to attach the resource to +- `wait` (Boolean) Wait for the certificate renewal to complete before returning. + + + diff --git a/docs/actions/rdb_instance_log_prepare_action.md b/docs/actions/rdb_instance_log_prepare_action.md new file mode 100644 index 000000000..3028ffe86 --- /dev/null +++ b/docs/actions/rdb_instance_log_prepare_action.md @@ -0,0 +1,23 @@ +--- +subcategory: "RDB" +page_title: "Scaleway: scaleway_rdb_instance_log_prepare_action" +--- + +# scaleway_rdb_instance_log_prepare_action (Action) + + +## Schema + +### Required + +- `instance_id` (String) RDB instance ID to prepare log for. Can be a plain UUID or a regional ID. + +### Optional + +- `end_date` (String) End datetime of the log in RFC3339 format (ISO 8601). +- `region` (String) The region you want to attach the resource to +- `start_date` (String) Start datetime of the log in RFC3339 format (ISO 8601). +- `wait` (Boolean) Wait for the log preparation to complete before returning. + + + diff --git a/docs/actions/rdb_instance_logs_purge_action.md b/docs/actions/rdb_instance_logs_purge_action.md new file mode 100644 index 000000000..897a629a7 --- /dev/null +++ b/docs/actions/rdb_instance_logs_purge_action.md @@ -0,0 +1,20 @@ +--- +subcategory: "RDB" +page_title: "Scaleway: scaleway_rdb_instance_logs_purge_action" +--- + +# scaleway_rdb_instance_logs_purge_action (Action) + + +## Schema + +### Required + +- `instance_id` (String) RDB instance ID to purge logs for. Can be a plain UUID or a regional ID. + +### Optional + +- `region` (String) The region you want to attach the resource to + + + diff --git a/docs/actions/rdb_instance_snapshot_action.md b/docs/actions/rdb_instance_snapshot_action.md new file mode 100644 index 000000000..010c26c48 --- /dev/null +++ b/docs/actions/rdb_instance_snapshot_action.md @@ -0,0 +1,23 @@ +--- +subcategory: "RDB" +page_title: "Scaleway: scaleway_rdb_instance_snapshot_action" +--- + +# scaleway_rdb_instance_snapshot_action (Action) + + +## Schema + +### Required + +- `instance_id` (String) RDB instance ID to snapshot. Can be a plain UUID or a regional ID. + +### Optional + +- `expires_at` (String) Expiration date of the snapshot in RFC3339 format (ISO 8601). If not set, the snapshot will not expire. +- `name` (String) Name of the snapshot. If not set, a name will be generated. +- `region` (String) The region you want to attach the resource to +- `wait` (Boolean) Wait for the snapshot to reach a terminal state before returning. + + + diff --git a/docs/actions/rdb_read_replica_promote_action.md b/docs/actions/rdb_read_replica_promote_action.md new file mode 100644 index 000000000..95945874f --- /dev/null +++ b/docs/actions/rdb_read_replica_promote_action.md @@ -0,0 +1,21 @@ +--- +subcategory: "RDB" +page_title: "Scaleway: scaleway_rdb_read_replica_promote_action" +--- + +# scaleway_rdb_read_replica_promote_action (Action) + + +## Schema + +### Required + +- `read_replica_id` (String) RDB read replica ID to promote. Can be a plain UUID or a regional ID. + +### Optional + +- `region` (String) The region you want to attach the resource to +- `wait` (Boolean) Wait for the read replica promotion to complete before returning. + + + diff --git a/docs/actions/rdb_read_replica_reset_action.md b/docs/actions/rdb_read_replica_reset_action.md new file mode 100644 index 000000000..7ceb82b50 --- /dev/null +++ b/docs/actions/rdb_read_replica_reset_action.md @@ -0,0 +1,21 @@ +--- +subcategory: "RDB" +page_title: "Scaleway: scaleway_rdb_read_replica_reset_action" +--- + +# scaleway_rdb_read_replica_reset_action (Action) + + +## Schema + +### Required + +- `read_replica_id` (String) RDB read replica ID to reset. Can be a plain UUID or a regional ID. + +### Optional + +- `region` (String) The region you want to attach the resource to +- `wait` (Boolean) Wait for the read replica to reach a terminal state before returning. + + + diff --git a/internal/services/rdb/action_database_backup_export_action.go b/internal/services/rdb/action_database_backup_export_action.go new file mode 100644 index 000000000..e76c6a627 --- /dev/null +++ b/internal/services/rdb/action_database_backup_export_action.go @@ -0,0 +1,176 @@ +package rdb + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-framework/action" + "github.com/hashicorp/terraform-plugin-framework/action/schema" + "github.com/hashicorp/terraform-plugin-framework/types" + rdb "github.com/scaleway/scaleway-sdk-go/api/rdb/v1" + "github.com/scaleway/scaleway-sdk-go/scw" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/locality" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/locality/regional" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/meta" +) + +var ( + _ action.Action = (*DatabaseBackupExportAction)(nil) + _ action.ActionWithConfigure = (*DatabaseBackupExportAction)(nil) +) + +// DatabaseBackupExportAction exports a database backup. +type DatabaseBackupExportAction struct { + rdbAPI *rdb.API + meta *meta.Meta +} + +func (a *DatabaseBackupExportAction) Configure(_ context.Context, req action.ConfigureRequest, resp *action.ConfigureResponse) { + if req.ProviderData == nil { + return + } + + m, ok := req.ProviderData.(*meta.Meta) + if !ok { + resp.Diagnostics.AddError( + "Unexpected Action Configure Type", + fmt.Sprintf("Expected *meta.Meta, got: %T. Please report this issue to the provider developers.", req.ProviderData), + ) + + return + } + + a.meta = m + a.rdbAPI = newAPI(m) +} + +func (a *DatabaseBackupExportAction) Metadata(_ context.Context, req action.MetadataRequest, resp *action.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_rdb_database_backup_export_action" +} + +type DatabaseBackupExportActionModel struct { + BackupID types.String `tfsdk:"backup_id"` + Region types.String `tfsdk:"region"` + Wait types.Bool `tfsdk:"wait"` +} + +// NewDatabaseBackupExportAction returns a new RDB database backup export action. +func NewDatabaseBackupExportAction() action.Action { + return &DatabaseBackupExportAction{} +} + +func (a *DatabaseBackupExportAction) Schema(_ context.Context, _ action.SchemaRequest, resp *action.SchemaResponse) { + resp.Schema = schema.Schema{ + Attributes: map[string]schema.Attribute{ + "backup_id": schema.StringAttribute{ + Required: true, + Description: "Database backup ID to export. Can be a plain UUID or a regional ID.", + }, + "region": regional.SchemaAttribute(), + "wait": schema.BoolAttribute{ + Optional: true, + Description: "Wait for the export operation to complete before returning.", + }, + }, + } +} + +func (a *DatabaseBackupExportAction) Invoke(ctx context.Context, req action.InvokeRequest, resp *action.InvokeResponse) { + var data DatabaseBackupExportActionModel + + resp.Diagnostics.Append(req.Config.Get(ctx, &data)...) + + if resp.Diagnostics.HasError() { + return + } + + if a.rdbAPI == nil { + resp.Diagnostics.AddError( + "Unconfigured rdbAPI", + "The action was not properly configured. The Scaleway client is missing. "+ + "This is usually a bug in the provider. Please report it to the maintainers.", + ) + + return + } + + if data.BackupID.IsNull() || data.BackupID.IsUnknown() || data.BackupID.ValueString() == "" { + resp.Diagnostics.AddError( + "Missing backup_id", + "The backup_id attribute is required to export a database backup.", + ) + + return + } + + backupID := locality.ExpandID(data.BackupID.ValueString()) + + var region scw.Region + + if !data.Region.IsNull() && !data.Region.IsUnknown() && data.Region.ValueString() != "" { + parsedRegion, err := scw.ParseRegion(data.Region.ValueString()) + if err != nil { + resp.Diagnostics.AddError( + "Invalid region value", + fmt.Sprintf("The region attribute must be a valid Scaleway region. Got %q: %s", data.Region.ValueString(), err), + ) + + return + } + + region = parsedRegion + } else { + if derivedRegion, id, parseErr := regional.ParseID(data.BackupID.ValueString()); parseErr == nil { + region = derivedRegion + backupID = id + } else if a.meta != nil { + defaultRegion, exists := a.meta.ScwClient().GetDefaultRegion() + if !exists { + resp.Diagnostics.AddError( + "Unable to determine region", + "Failed to get default region from provider configuration. Please set the region attribute, use a regional backup_id, or configure a default region in the provider.", + ) + + return + } + + region = defaultRegion + } + } + + if region == "" { + resp.Diagnostics.AddError( + "Missing region", + "Could not determine region for RDB database backup export. Please set the region attribute, use a regional backup_id, or configure a default region in the provider.", + ) + + return + } + + exportReq := &rdb.ExportDatabaseBackupRequest{ + Region: region, + DatabaseBackupID: backupID, + } + + _, err := a.rdbAPI.ExportDatabaseBackup(exportReq, scw.WithContext(ctx)) + if err != nil { + resp.Diagnostics.AddError( + "Error executing RDB ExportDatabaseBackup action", + fmt.Sprintf("Failed to export backup %s: %s", backupID, err), + ) + + return + } + + if data.Wait.ValueBool() { + _, err = waitForRDBDatabaseBackup(ctx, a.rdbAPI, region, backupID, defaultInstanceTimeout) + if err != nil { + resp.Diagnostics.AddError( + "Error waiting for RDB database backup export completion", + fmt.Sprintf("Export operation for backup %s did not complete: %s", backupID, err), + ) + + return + } + } +} diff --git a/internal/services/rdb/action_database_backup_export_action_test.go b/internal/services/rdb/action_database_backup_export_action_test.go new file mode 100644 index 000000000..9226b029f --- /dev/null +++ b/internal/services/rdb/action_database_backup_export_action_test.go @@ -0,0 +1,107 @@ +package rdb_test + +import ( + "context" + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-testing/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/terraform" + rdbSDK "github.com/scaleway/scaleway-sdk-go/api/rdb/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/locality/regional" +) + +func TestAccActionRDBDatabaseBackupExport_Basic(t *testing.T) { + if acctest.IsRunningOpenTofu() { + t.Skip("Skipping TestAccActionRDBDatabaseBackupExport_Basic because action are not yet supported on OpenTofu") + } + + tt := acctest.NewTestTools(t) + defer tt.Cleanup() + + resource.ParallelTest(t, resource.TestCase{ + ProtoV6ProviderFactories: tt.ProviderFactories, + Steps: []resource.TestStep{ + { + Config: ` + resource "scaleway_rdb_instance" "main" { + name = "test-rdb-action-backup-export" + node_type = "db-dev-s" + engine = "PostgreSQL-15" + is_ha_cluster = false + disable_backup = true + user_name = "my_initial_user" + password = "thiZ_is_v&ry_s3cret" + volume_type = "sbs_5k" + volume_size_in_gb = 10 + } + + resource "scaleway_rdb_database" "main" { + instance_id = scaleway_rdb_instance.main.id + name = "test_db" + } + + resource "scaleway_rdb_database_backup" "main" { + instance_id = scaleway_rdb_instance.main.id + database_name = scaleway_rdb_database.main.name + name = "test-backup-export" + depends_on = [scaleway_rdb_database.main] + + lifecycle { + action_trigger { + events = [after_create] + actions = [action.scaleway_rdb_database_backup_export_action.main] + } + } + } + + action "scaleway_rdb_database_backup_export_action" "main" { + config { + backup_id = scaleway_rdb_database_backup.main.id + wait = true + } + } + `, + Check: resource.ComposeTestCheckFunc( + isBackupExported(tt, "scaleway_rdb_database_backup.main"), + ), + }, + }, + }) +} + +func isBackupExported(tt *acctest.TestTools, resourceName string) resource.TestCheckFunc { + return func(state *terraform.State) error { + rs, ok := state.RootModule().Resources[resourceName] + if !ok { + return fmt.Errorf("not found: %s", resourceName) + } + + region, id, err := regional.ParseID(rs.Primary.ID) + if err != nil { + return fmt.Errorf("failed to parse backup ID: %w", err) + } + + api := rdbSDK.NewAPI(tt.Meta.ScwClient()) + + backup, err := api.GetDatabaseBackup(&rdbSDK.GetDatabaseBackupRequest{ + Region: region, + DatabaseBackupID: id, + }, scw.WithContext(context.Background())) + if err != nil { + return fmt.Errorf("failed to get backup: %w", err) + } + + if backup == nil { + return fmt.Errorf("backup %s not found", id) + } + + if backup.Status != rdbSDK.DatabaseBackupStatusReady { + return fmt.Errorf("backup %s is not ready, status: %s", id, backup.Status) + } + + return nil + } +} diff --git a/internal/services/rdb/action_database_backup_restore_action.go b/internal/services/rdb/action_database_backup_restore_action.go new file mode 100644 index 000000000..870d95a3a --- /dev/null +++ b/internal/services/rdb/action_database_backup_restore_action.go @@ -0,0 +1,204 @@ +package rdb + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-framework/action" + "github.com/hashicorp/terraform-plugin-framework/action/schema" + "github.com/hashicorp/terraform-plugin-framework/types" + rdb "github.com/scaleway/scaleway-sdk-go/api/rdb/v1" + "github.com/scaleway/scaleway-sdk-go/scw" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/locality" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/locality/regional" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/meta" +) + +var ( + _ action.Action = (*DatabaseBackupRestoreAction)(nil) + _ action.ActionWithConfigure = (*DatabaseBackupRestoreAction)(nil) +) + +// DatabaseBackupRestoreAction restores a database backup. +type DatabaseBackupRestoreAction struct { + rdbAPI *rdb.API + meta *meta.Meta +} + +func (a *DatabaseBackupRestoreAction) Configure(_ context.Context, req action.ConfigureRequest, resp *action.ConfigureResponse) { + if req.ProviderData == nil { + return + } + + m, ok := req.ProviderData.(*meta.Meta) + if !ok { + resp.Diagnostics.AddError( + "Unexpected Action Configure Type", + fmt.Sprintf("Expected *meta.Meta, got: %T. Please report this issue to the provider developers.", req.ProviderData), + ) + + return + } + + a.meta = m + a.rdbAPI = newAPI(m) +} + +func (a *DatabaseBackupRestoreAction) Metadata(_ context.Context, req action.MetadataRequest, resp *action.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_rdb_database_backup_restore_action" +} + +type DatabaseBackupRestoreActionModel struct { + BackupID types.String `tfsdk:"backup_id"` + InstanceID types.String `tfsdk:"instance_id"` + DatabaseName types.String `tfsdk:"database_name"` + Region types.String `tfsdk:"region"` + Wait types.Bool `tfsdk:"wait"` +} + +// NewDatabaseBackupRestoreAction returns a new RDB database backup restore action. +func NewDatabaseBackupRestoreAction() action.Action { + return &DatabaseBackupRestoreAction{} +} + +func (a *DatabaseBackupRestoreAction) Schema(_ context.Context, _ action.SchemaRequest, resp *action.SchemaResponse) { + resp.Schema = schema.Schema{ + Attributes: map[string]schema.Attribute{ + "backup_id": schema.StringAttribute{ + Required: true, + Description: "Database backup ID to restore. Can be a plain UUID or a regional ID.", + }, + "instance_id": schema.StringAttribute{ + Required: true, + Description: "RDB instance ID to restore the backup to. Can be a plain UUID or a regional ID.", + }, + "database_name": schema.StringAttribute{ + Optional: true, + Description: "Name of the database to restore. If not set, the original database name will be used.", + }, + "region": regional.SchemaAttribute(), + "wait": schema.BoolAttribute{ + Optional: true, + Description: "Wait for the restore operation to complete before returning.", + }, + }, + } +} + +func (a *DatabaseBackupRestoreAction) Invoke(ctx context.Context, req action.InvokeRequest, resp *action.InvokeResponse) { + var data DatabaseBackupRestoreActionModel + + resp.Diagnostics.Append(req.Config.Get(ctx, &data)...) + + if resp.Diagnostics.HasError() { + return + } + + if a.rdbAPI == nil { + resp.Diagnostics.AddError( + "Unconfigured rdbAPI", + "The action was not properly configured. The Scaleway client is missing. "+ + "This is usually a bug in the provider. Please report it to the maintainers.", + ) + + return + } + + if data.BackupID.IsNull() || data.BackupID.IsUnknown() || data.BackupID.ValueString() == "" { + resp.Diagnostics.AddError( + "Missing backup_id", + "The backup_id attribute is required to restore a database backup.", + ) + + return + } + + if data.InstanceID.IsNull() || data.InstanceID.IsUnknown() || data.InstanceID.ValueString() == "" { + resp.Diagnostics.AddError( + "Missing instance_id", + "The instance_id attribute is required to restore a database backup.", + ) + + return + } + + backupID := locality.ExpandID(data.BackupID.ValueString()) + instanceID := locality.ExpandID(data.InstanceID.ValueString()) + + var region scw.Region + + if !data.Region.IsNull() && !data.Region.IsUnknown() && data.Region.ValueString() != "" { + parsedRegion, err := scw.ParseRegion(data.Region.ValueString()) + if err != nil { + resp.Diagnostics.AddError( + "Invalid region value", + fmt.Sprintf("The region attribute must be a valid Scaleway region. Got %q: %s", data.Region.ValueString(), err), + ) + + return + } + + region = parsedRegion + } else { + if derivedRegion, id, parseErr := regional.ParseID(data.BackupID.ValueString()); parseErr == nil { + region = derivedRegion + backupID = id + } else if derivedRegion, id, parseErr := regional.ParseID(data.InstanceID.ValueString()); parseErr == nil { + region = derivedRegion + instanceID = id + } else if a.meta != nil { + defaultRegion, exists := a.meta.ScwClient().GetDefaultRegion() + if !exists { + resp.Diagnostics.AddError( + "Unable to determine region", + "Failed to get default region from provider configuration. Please set the region attribute, use a regional backup_id or instance_id, or configure a default region in the provider.", + ) + + return + } + + region = defaultRegion + } + } + + if region == "" { + resp.Diagnostics.AddError( + "Missing region", + "Could not determine region for RDB database backup restore. Please set the region attribute, use a regional backup_id or instance_id, or configure a default region in the provider.", + ) + + return + } + + restoreReq := &rdb.RestoreDatabaseBackupRequest{ + Region: region, + DatabaseBackupID: backupID, + InstanceID: instanceID, + } + + if !data.DatabaseName.IsNull() && !data.DatabaseName.IsUnknown() && data.DatabaseName.ValueString() != "" { + restoreReq.DatabaseName = scw.StringPtr(data.DatabaseName.ValueString()) + } + + _, err := a.rdbAPI.RestoreDatabaseBackup(restoreReq, scw.WithContext(ctx)) + if err != nil { + resp.Diagnostics.AddError( + "Error executing RDB RestoreDatabaseBackup action", + fmt.Sprintf("Failed to restore backup %s to instance %s: %s", backupID, instanceID, err), + ) + + return + } + + if data.Wait.ValueBool() { + _, err = waitForRDBInstance(ctx, a.rdbAPI, region, instanceID, defaultInstanceTimeout) + if err != nil { + resp.Diagnostics.AddError( + "Error waiting for RDB database backup restore completion", + fmt.Sprintf("Restore operation for instance %s did not complete: %s", instanceID, err), + ) + + return + } + } +} diff --git a/internal/services/rdb/action_database_backup_restore_action_test.go b/internal/services/rdb/action_database_backup_restore_action_test.go new file mode 100644 index 000000000..93a528a06 --- /dev/null +++ b/internal/services/rdb/action_database_backup_restore_action_test.go @@ -0,0 +1,118 @@ +package rdb_test + +import ( + "context" + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-testing/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/terraform" + rdbSDK "github.com/scaleway/scaleway-sdk-go/api/rdb/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/locality/regional" +) + +func TestAccActionRDBDatabaseBackupRestore_Basic(t *testing.T) { + if acctest.IsRunningOpenTofu() { + t.Skip("Skipping TestAccActionRDBDatabaseBackupRestore_Basic because action are not yet supported on OpenTofu") + } + + tt := acctest.NewTestTools(t) + defer tt.Cleanup() + + resource.ParallelTest(t, resource.TestCase{ + ProtoV6ProviderFactories: tt.ProviderFactories, + Steps: []resource.TestStep{ + { + Config: ` + resource "scaleway_rdb_instance" "main" { + name = "test-rdb-action-backup-restore" + node_type = "db-dev-s" + engine = "PostgreSQL-15" + is_ha_cluster = false + disable_backup = true + user_name = "my_initial_user" + password = "thiZ_is_v&ry_s3cret" + volume_type = "sbs_5k" + volume_size_in_gb = 10 + } + + resource "scaleway_rdb_database" "main" { + instance_id = scaleway_rdb_instance.main.id + name = "test_db" + } + + resource "scaleway_rdb_database_backup" "main" { + instance_id = scaleway_rdb_instance.main.id + database_name = scaleway_rdb_database.main.name + name = "test-backup" + depends_on = [scaleway_rdb_database.main] + } + + resource "scaleway_rdb_instance" "restore_target" { + name = "test-rdb-action-backup-restore-target" + node_type = "db-dev-s" + engine = "PostgreSQL-15" + is_ha_cluster = false + disable_backup = true + user_name = "my_initial_user" + password = "thiZ_is_v&ry_s3cret" + volume_type = "sbs_5k" + volume_size_in_gb = 10 + + lifecycle { + action_trigger { + events = [after_create] + actions = [action.scaleway_rdb_database_backup_restore_action.main] + } + } + } + + action "scaleway_rdb_database_backup_restore_action" "main" { + config { + backup_id = scaleway_rdb_database_backup.main.id + instance_id = scaleway_rdb_instance.restore_target.id + database_name = "test_db" + wait = true + } + } + `, + Check: resource.ComposeTestCheckFunc( + isDatabaseRestored(tt, "scaleway_rdb_instance.restore_target", "test_db"), + ), + }, + }, + }) +} + +func isDatabaseRestored(tt *acctest.TestTools, instanceResourceName, databaseName string) resource.TestCheckFunc { + return func(state *terraform.State) error { + rs, ok := state.RootModule().Resources[instanceResourceName] + if !ok { + return fmt.Errorf("not found: %s", instanceResourceName) + } + + region, id, err := regional.ParseID(rs.Primary.ID) + if err != nil { + return fmt.Errorf("failed to parse instance ID: %w", err) + } + + api := rdbSDK.NewAPI(tt.Meta.ScwClient()) + + databases, err := api.ListDatabases(&rdbSDK.ListDatabasesRequest{ + Region: region, + InstanceID: id, + Name: scw.StringPtr(databaseName), + }, scw.WithContext(context.Background())) + if err != nil { + return fmt.Errorf("failed to list databases: %w", err) + } + + if len(databases.Databases) == 0 { + return fmt.Errorf("database %s not found in instance %s", databaseName, id) + } + + return nil + } +} diff --git a/internal/services/rdb/action_instance_certificate_renew_action.go b/internal/services/rdb/action_instance_certificate_renew_action.go new file mode 100644 index 000000000..b761e0719 --- /dev/null +++ b/internal/services/rdb/action_instance_certificate_renew_action.go @@ -0,0 +1,176 @@ +package rdb + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-framework/action" + "github.com/hashicorp/terraform-plugin-framework/action/schema" + "github.com/hashicorp/terraform-plugin-framework/types" + rdb "github.com/scaleway/scaleway-sdk-go/api/rdb/v1" + "github.com/scaleway/scaleway-sdk-go/scw" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/locality" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/locality/regional" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/meta" +) + +var ( + _ action.Action = (*InstanceCertificateRenewAction)(nil) + _ action.ActionWithConfigure = (*InstanceCertificateRenewAction)(nil) +) + +// InstanceCertificateRenewAction renews the certificate of an RDB instance. +type InstanceCertificateRenewAction struct { + rdbAPI *rdb.API + meta *meta.Meta +} + +func (a *InstanceCertificateRenewAction) Configure(_ context.Context, req action.ConfigureRequest, resp *action.ConfigureResponse) { + if req.ProviderData == nil { + return + } + + m, ok := req.ProviderData.(*meta.Meta) + if !ok { + resp.Diagnostics.AddError( + "Unexpected Action Configure Type", + fmt.Sprintf("Expected *meta.Meta, got: %T. Please report this issue to the provider developers.", req.ProviderData), + ) + + return + } + + a.meta = m + a.rdbAPI = newAPI(m) +} + +func (a *InstanceCertificateRenewAction) Metadata(_ context.Context, req action.MetadataRequest, resp *action.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_rdb_instance_certificate_renew_action" +} + +type InstanceCertificateRenewActionModel struct { + InstanceID types.String `tfsdk:"instance_id"` + Region types.String `tfsdk:"region"` + Wait types.Bool `tfsdk:"wait"` +} + +// NewInstanceCertificateRenewAction returns a new RDB instance certificate renew action. +func NewInstanceCertificateRenewAction() action.Action { + return &InstanceCertificateRenewAction{} +} + +func (a *InstanceCertificateRenewAction) Schema(_ context.Context, _ action.SchemaRequest, resp *action.SchemaResponse) { + resp.Schema = schema.Schema{ + Attributes: map[string]schema.Attribute{ + "instance_id": schema.StringAttribute{ + Required: true, + Description: "RDB instance ID to renew certificate for. Can be a plain UUID or a regional ID.", + }, + "region": regional.SchemaAttribute(), + "wait": schema.BoolAttribute{ + Optional: true, + Description: "Wait for the certificate renewal to complete before returning.", + }, + }, + } +} + +func (a *InstanceCertificateRenewAction) Invoke(ctx context.Context, req action.InvokeRequest, resp *action.InvokeResponse) { + var data InstanceCertificateRenewActionModel + + resp.Diagnostics.Append(req.Config.Get(ctx, &data)...) + + if resp.Diagnostics.HasError() { + return + } + + if a.rdbAPI == nil { + resp.Diagnostics.AddError( + "Unconfigured rdbAPI", + "The action was not properly configured. The Scaleway client is missing. "+ + "This is usually a bug in the provider. Please report it to the maintainers.", + ) + + return + } + + if data.InstanceID.IsNull() || data.InstanceID.IsUnknown() || data.InstanceID.ValueString() == "" { + resp.Diagnostics.AddError( + "Missing instance_id", + "The instance_id attribute is required to renew an RDB instance certificate.", + ) + + return + } + + instanceID := locality.ExpandID(data.InstanceID.ValueString()) + + var region scw.Region + + if !data.Region.IsNull() && !data.Region.IsUnknown() && data.Region.ValueString() != "" { + parsedRegion, err := scw.ParseRegion(data.Region.ValueString()) + if err != nil { + resp.Diagnostics.AddError( + "Invalid region value", + fmt.Sprintf("The region attribute must be a valid Scaleway region. Got %q: %s", data.Region.ValueString(), err), + ) + + return + } + + region = parsedRegion + } else { + if derivedRegion, id, parseErr := regional.ParseID(data.InstanceID.ValueString()); parseErr == nil { + region = derivedRegion + instanceID = id + } else if a.meta != nil { + defaultRegion, exists := a.meta.ScwClient().GetDefaultRegion() + if !exists { + resp.Diagnostics.AddError( + "Unable to determine region", + "Failed to get default region from provider configuration. Please set the region attribute, use a regional instance_id, or configure a default region in the provider.", + ) + + return + } + + region = defaultRegion + } + } + + if region == "" { + resp.Diagnostics.AddError( + "Missing region", + "Could not determine region for RDB instance certificate renewal. Please set the region attribute, use a regional instance_id, or configure a default region in the provider.", + ) + + return + } + + renewReq := &rdb.RenewInstanceCertificateRequest{ + Region: region, + InstanceID: instanceID, + } + + err := a.rdbAPI.RenewInstanceCertificate(renewReq, scw.WithContext(ctx)) + if err != nil { + resp.Diagnostics.AddError( + "Error executing RDB RenewInstanceCertificate action", + fmt.Sprintf("Failed to renew certificate for instance %s: %s", instanceID, err), + ) + + return + } + + if data.Wait.ValueBool() { + _, err = waitForRDBInstance(ctx, a.rdbAPI, region, instanceID, defaultInstanceTimeout) + if err != nil { + resp.Diagnostics.AddError( + "Error waiting for RDB certificate renewal completion", + fmt.Sprintf("Certificate renewal for instance %s did not complete: %s", instanceID, err), + ) + + return + } + } +} diff --git a/internal/services/rdb/action_instance_certificate_renew_action_test.go b/internal/services/rdb/action_instance_certificate_renew_action_test.go new file mode 100644 index 000000000..a7d77c15f --- /dev/null +++ b/internal/services/rdb/action_instance_certificate_renew_action_test.go @@ -0,0 +1,93 @@ +package rdb_test + +import ( + "context" + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-testing/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/terraform" + rdbSDK "github.com/scaleway/scaleway-sdk-go/api/rdb/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/locality/regional" +) + +func TestAccActionRDBInstanceCertificateRenew_Basic(t *testing.T) { + if acctest.IsRunningOpenTofu() { + t.Skip("Skipping TestAccActionRDBInstanceCertificateRenew_Basic because action are not yet supported on OpenTofu") + } + + tt := acctest.NewTestTools(t) + defer tt.Cleanup() + + resource.ParallelTest(t, resource.TestCase{ + ProtoV6ProviderFactories: tt.ProviderFactories, + Steps: []resource.TestStep{ + { + Config: ` + resource "scaleway_rdb_instance" "main" { + name = "test-rdb-action-certificate-renew" + node_type = "db-dev-s" + engine = "PostgreSQL-15" + is_ha_cluster = false + disable_backup = true + user_name = "my_initial_user" + password = "thiZ_is_v&ry_s3cret" + + lifecycle { + action_trigger { + events = [after_create] + actions = [action.scaleway_rdb_instance_certificate_renew_action.main] + } + } + } + + action "scaleway_rdb_instance_certificate_renew_action" "main" { + config { + instance_id = scaleway_rdb_instance.main.id + wait = true + } + } + `, + Check: resource.ComposeTestCheckFunc( + isInstanceCertificateRenewed(tt, "scaleway_rdb_instance.main"), + ), + }, + }, + }) +} + +func isInstanceCertificateRenewed(tt *acctest.TestTools, instanceResourceName string) resource.TestCheckFunc { + return func(state *terraform.State) error { + rs, ok := state.RootModule().Resources[instanceResourceName] + if !ok { + return fmt.Errorf("not found: %s", instanceResourceName) + } + + region, id, err := regional.ParseID(rs.Primary.ID) + if err != nil { + return fmt.Errorf("failed to parse instance ID: %w", err) + } + + api := rdbSDK.NewAPI(tt.Meta.ScwClient()) + + instance, err := api.GetInstance(&rdbSDK.GetInstanceRequest{ + Region: region, + InstanceID: id, + }, scw.WithContext(context.Background())) + if err != nil { + return fmt.Errorf("failed to get instance: %w", err) + } + + if instance == nil { + return fmt.Errorf("instance %s not found", id) + } + + if instance.Status != rdbSDK.InstanceStatusReady { + return fmt.Errorf("instance %s is not ready, status: %s", id, instance.Status) + } + + return nil + } +} diff --git a/internal/services/rdb/action_instance_log_prepare_action.go b/internal/services/rdb/action_instance_log_prepare_action.go new file mode 100644 index 000000000..e56117775 --- /dev/null +++ b/internal/services/rdb/action_instance_log_prepare_action.go @@ -0,0 +1,215 @@ +package rdb + +import ( + "context" + "fmt" + "time" + + "github.com/hashicorp/terraform-plugin-framework/action" + "github.com/hashicorp/terraform-plugin-framework/action/schema" + "github.com/hashicorp/terraform-plugin-framework/types" + rdb "github.com/scaleway/scaleway-sdk-go/api/rdb/v1" + "github.com/scaleway/scaleway-sdk-go/scw" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/locality" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/locality/regional" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/meta" +) + +var ( + _ action.Action = (*InstanceLogPrepareAction)(nil) + _ action.ActionWithConfigure = (*InstanceLogPrepareAction)(nil) +) + +// InstanceLogPrepareAction prepares a log for an RDB instance. +type InstanceLogPrepareAction struct { + rdbAPI *rdb.API + meta *meta.Meta +} + +func (a *InstanceLogPrepareAction) Configure(_ context.Context, req action.ConfigureRequest, resp *action.ConfigureResponse) { + if req.ProviderData == nil { + return + } + + m, ok := req.ProviderData.(*meta.Meta) + if !ok { + resp.Diagnostics.AddError( + "Unexpected Action Configure Type", + fmt.Sprintf("Expected *meta.Meta, got: %T. Please report this issue to the provider developers.", req.ProviderData), + ) + + return + } + + a.meta = m + a.rdbAPI = newAPI(m) +} + +func (a *InstanceLogPrepareAction) Metadata(_ context.Context, req action.MetadataRequest, resp *action.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_rdb_instance_log_prepare_action" +} + +type InstanceLogPrepareActionModel struct { + InstanceID types.String `tfsdk:"instance_id"` + Region types.String `tfsdk:"region"` + StartDate types.String `tfsdk:"start_date"` + EndDate types.String `tfsdk:"end_date"` + Wait types.Bool `tfsdk:"wait"` +} + +// NewInstanceLogPrepareAction returns a new RDB instance log prepare action. +func NewInstanceLogPrepareAction() action.Action { + return &InstanceLogPrepareAction{} +} + +func (a *InstanceLogPrepareAction) Schema(_ context.Context, _ action.SchemaRequest, resp *action.SchemaResponse) { + resp.Schema = schema.Schema{ + Attributes: map[string]schema.Attribute{ + "instance_id": schema.StringAttribute{ + Required: true, + Description: "RDB instance ID to prepare log for. Can be a plain UUID or a regional ID.", + }, + "region": regional.SchemaAttribute(), + "start_date": schema.StringAttribute{ + Optional: true, + Description: "Start datetime of the log in RFC3339 format (ISO 8601).", + }, + "end_date": schema.StringAttribute{ + Optional: true, + Description: "End datetime of the log in RFC3339 format (ISO 8601).", + }, + "wait": schema.BoolAttribute{ + Optional: true, + Description: "Wait for the log preparation to complete before returning.", + }, + }, + } +} + +func (a *InstanceLogPrepareAction) Invoke(ctx context.Context, req action.InvokeRequest, resp *action.InvokeResponse) { + var data InstanceLogPrepareActionModel + + resp.Diagnostics.Append(req.Config.Get(ctx, &data)...) + + if resp.Diagnostics.HasError() { + return + } + + if a.rdbAPI == nil { + resp.Diagnostics.AddError( + "Unconfigured rdbAPI", + "The action was not properly configured. The Scaleway client is missing. "+ + "This is usually a bug in the provider. Please report it to the maintainers.", + ) + + return + } + + if data.InstanceID.IsNull() || data.InstanceID.IsUnknown() || data.InstanceID.ValueString() == "" { + resp.Diagnostics.AddError( + "Missing instance_id", + "The instance_id attribute is required to prepare an RDB instance log.", + ) + + return + } + + instanceID := locality.ExpandID(data.InstanceID.ValueString()) + + var region scw.Region + + if !data.Region.IsNull() && !data.Region.IsUnknown() && data.Region.ValueString() != "" { + parsedRegion, err := scw.ParseRegion(data.Region.ValueString()) + if err != nil { + resp.Diagnostics.AddError( + "Invalid region value", + fmt.Sprintf("The region attribute must be a valid Scaleway region. Got %q: %s", data.Region.ValueString(), err), + ) + + return + } + + region = parsedRegion + } else { + if derivedRegion, id, parseErr := regional.ParseID(data.InstanceID.ValueString()); parseErr == nil { + region = derivedRegion + instanceID = id + } else if a.meta != nil { + defaultRegion, exists := a.meta.ScwClient().GetDefaultRegion() + if !exists { + resp.Diagnostics.AddError( + "Unable to determine region", + "Failed to get default region from provider configuration. Please set the region attribute, use a regional instance_id, or configure a default region in the provider.", + ) + + return + } + + region = defaultRegion + } + } + + if region == "" { + resp.Diagnostics.AddError( + "Missing region", + "Could not determine region for RDB instance log preparation. Please set the region attribute, use a regional instance_id, or configure a default region in the provider.", + ) + + return + } + + prepareReq := &rdb.PrepareInstanceLogsRequest{ + Region: region, + InstanceID: instanceID, + } + + if !data.StartDate.IsNull() && !data.StartDate.IsUnknown() && data.StartDate.ValueString() != "" { + parsedStartDate, err := time.Parse(time.RFC3339, data.StartDate.ValueString()) + if err != nil { + resp.Diagnostics.AddError( + "Invalid start_date value", + fmt.Sprintf("The start_date attribute must be a valid RFC3339 timestamp. Got %q: %s", data.StartDate.ValueString(), err), + ) + + return + } + + prepareReq.StartDate = &parsedStartDate + } + + if !data.EndDate.IsNull() && !data.EndDate.IsUnknown() && data.EndDate.ValueString() != "" { + parsedEndDate, err := time.Parse(time.RFC3339, data.EndDate.ValueString()) + if err != nil { + resp.Diagnostics.AddError( + "Invalid end_date value", + fmt.Sprintf("The end_date attribute must be a valid RFC3339 timestamp. Got %q: %s", data.EndDate.ValueString(), err), + ) + + return + } + + prepareReq.EndDate = &parsedEndDate + } + + _, err := a.rdbAPI.PrepareInstanceLogs(prepareReq, scw.WithContext(ctx)) + if err != nil { + resp.Diagnostics.AddError( + "Error executing RDB PrepareInstanceLogs action", + fmt.Sprintf("Failed to prepare logs for instance %s: %s", instanceID, err), + ) + + return + } + + if data.Wait.ValueBool() { + _, err = waitForRDBInstance(ctx, a.rdbAPI, region, instanceID, defaultInstanceTimeout) + if err != nil { + resp.Diagnostics.AddError( + "Error waiting for RDB log preparation completion", + fmt.Sprintf("Log preparation for instance %s did not complete: %s", instanceID, err), + ) + + return + } + } +} diff --git a/internal/services/rdb/action_instance_log_prepare_action_test.go b/internal/services/rdb/action_instance_log_prepare_action_test.go new file mode 100644 index 000000000..8bbdcde80 --- /dev/null +++ b/internal/services/rdb/action_instance_log_prepare_action_test.go @@ -0,0 +1,93 @@ +package rdb_test + +import ( + "context" + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-testing/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/terraform" + rdbSDK "github.com/scaleway/scaleway-sdk-go/api/rdb/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/locality/regional" +) + +func TestAccActionRDBInstanceLogPrepare_Basic(t *testing.T) { + if acctest.IsRunningOpenTofu() { + t.Skip("Skipping TestAccActionRDBInstanceLogPrepare_Basic because action are not yet supported on OpenTofu") + } + + tt := acctest.NewTestTools(t) + defer tt.Cleanup() + + resource.ParallelTest(t, resource.TestCase{ + ProtoV6ProviderFactories: tt.ProviderFactories, + Steps: []resource.TestStep{ + { + Config: ` + resource "scaleway_rdb_instance" "main" { + name = "test-rdb-action-log-prepare" + node_type = "db-dev-s" + engine = "PostgreSQL-15" + is_ha_cluster = false + disable_backup = true + user_name = "my_initial_user" + password = "thiZ_is_v&ry_s3cret" + + lifecycle { + action_trigger { + events = [after_create] + actions = [action.scaleway_rdb_instance_log_prepare_action.main] + } + } + } + + action "scaleway_rdb_instance_log_prepare_action" "main" { + config { + instance_id = scaleway_rdb_instance.main.id + wait = true + } + } + `, + Check: resource.ComposeTestCheckFunc( + isInstanceLogPrepared(tt, "scaleway_rdb_instance.main"), + ), + }, + }, + }) +} + +func isInstanceLogPrepared(tt *acctest.TestTools, instanceResourceName string) resource.TestCheckFunc { + return func(state *terraform.State) error { + rs, ok := state.RootModule().Resources[instanceResourceName] + if !ok { + return fmt.Errorf("not found: %s", instanceResourceName) + } + + region, id, err := regional.ParseID(rs.Primary.ID) + if err != nil { + return fmt.Errorf("failed to parse instance ID: %w", err) + } + + api := rdbSDK.NewAPI(tt.Meta.ScwClient()) + + instance, err := api.GetInstance(&rdbSDK.GetInstanceRequest{ + Region: region, + InstanceID: id, + }, scw.WithContext(context.Background())) + if err != nil { + return fmt.Errorf("failed to get instance: %w", err) + } + + if instance == nil { + return fmt.Errorf("instance %s not found", id) + } + + if instance.Status != rdbSDK.InstanceStatusReady { + return fmt.Errorf("instance %s is not ready, status: %s", id, instance.Status) + } + + return nil + } +} diff --git a/internal/services/rdb/action_instance_logs_purge_action.go b/internal/services/rdb/action_instance_logs_purge_action.go new file mode 100644 index 000000000..3dd749416 --- /dev/null +++ b/internal/services/rdb/action_instance_logs_purge_action.go @@ -0,0 +1,159 @@ +package rdb + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-framework/action" + "github.com/hashicorp/terraform-plugin-framework/action/schema" + "github.com/hashicorp/terraform-plugin-framework/types" + rdb "github.com/scaleway/scaleway-sdk-go/api/rdb/v1" + "github.com/scaleway/scaleway-sdk-go/scw" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/locality" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/locality/regional" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/meta" +) + +var ( + _ action.Action = (*InstanceLogsPurgeAction)(nil) + _ action.ActionWithConfigure = (*InstanceLogsPurgeAction)(nil) +) + +// InstanceLogsPurgeAction purges logs for an RDB instance. +type InstanceLogsPurgeAction struct { + rdbAPI *rdb.API + meta *meta.Meta +} + +func (a *InstanceLogsPurgeAction) Configure(_ context.Context, req action.ConfigureRequest, resp *action.ConfigureResponse) { + if req.ProviderData == nil { + return + } + + m, ok := req.ProviderData.(*meta.Meta) + if !ok { + resp.Diagnostics.AddError( + "Unexpected Action Configure Type", + fmt.Sprintf("Expected *meta.Meta, got: %T. Please report this issue to the provider developers.", req.ProviderData), + ) + + return + } + + a.meta = m + a.rdbAPI = newAPI(m) +} + +func (a *InstanceLogsPurgeAction) Metadata(_ context.Context, req action.MetadataRequest, resp *action.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_rdb_instance_logs_purge_action" +} + +type InstanceLogsPurgeActionModel struct { + InstanceID types.String `tfsdk:"instance_id"` + Region types.String `tfsdk:"region"` +} + +// NewInstanceLogsPurgeAction returns a new RDB instance logs purge action. +func NewInstanceLogsPurgeAction() action.Action { + return &InstanceLogsPurgeAction{} +} + +func (a *InstanceLogsPurgeAction) Schema(_ context.Context, _ action.SchemaRequest, resp *action.SchemaResponse) { + resp.Schema = schema.Schema{ + Attributes: map[string]schema.Attribute{ + "instance_id": schema.StringAttribute{ + Required: true, + Description: "RDB instance ID to purge logs for. Can be a plain UUID or a regional ID.", + }, + "region": regional.SchemaAttribute(), + }, + } +} + +func (a *InstanceLogsPurgeAction) Invoke(ctx context.Context, req action.InvokeRequest, resp *action.InvokeResponse) { + var data InstanceLogsPurgeActionModel + + resp.Diagnostics.Append(req.Config.Get(ctx, &data)...) + + if resp.Diagnostics.HasError() { + return + } + + if a.rdbAPI == nil { + resp.Diagnostics.AddError( + "Unconfigured rdbAPI", + "The action was not properly configured. The Scaleway client is missing. "+ + "This is usually a bug in the provider. Please report it to the maintainers.", + ) + + return + } + + if data.InstanceID.IsNull() || data.InstanceID.IsUnknown() || data.InstanceID.ValueString() == "" { + resp.Diagnostics.AddError( + "Missing instance_id", + "The instance_id attribute is required to purge RDB instance logs.", + ) + + return + } + + instanceID := locality.ExpandID(data.InstanceID.ValueString()) + + var region scw.Region + + if !data.Region.IsNull() && !data.Region.IsUnknown() && data.Region.ValueString() != "" { + parsedRegion, err := scw.ParseRegion(data.Region.ValueString()) + if err != nil { + resp.Diagnostics.AddError( + "Invalid region value", + fmt.Sprintf("The region attribute must be a valid Scaleway region. Got %q: %s", data.Region.ValueString(), err), + ) + + return + } + + region = parsedRegion + } else { + if derivedRegion, id, parseErr := regional.ParseID(data.InstanceID.ValueString()); parseErr == nil { + region = derivedRegion + instanceID = id + } else if a.meta != nil { + defaultRegion, exists := a.meta.ScwClient().GetDefaultRegion() + if !exists { + resp.Diagnostics.AddError( + "Unable to determine region", + "Failed to get default region from provider configuration. Please set the region attribute, use a regional instance_id, or configure a default region in the provider.", + ) + + return + } + + region = defaultRegion + } + } + + if region == "" { + resp.Diagnostics.AddError( + "Missing region", + "Could not determine region for RDB instance logs purge. Please set the region attribute, use a regional instance_id, or configure a default region in the provider.", + ) + + return + } + + purgeReq := &rdb.PurgeInstanceLogsRequest{ + Region: region, + InstanceID: instanceID, + } + + err := a.rdbAPI.PurgeInstanceLogs(purgeReq, scw.WithContext(ctx)) + if err != nil { + resp.Diagnostics.AddError( + "Error executing RDB PurgeInstanceLogs action", + fmt.Sprintf("Failed to purge logs for instance %s: %s", instanceID, err), + ) + + return + } +} diff --git a/internal/services/rdb/action_instance_logs_purge_action_test.go b/internal/services/rdb/action_instance_logs_purge_action_test.go new file mode 100644 index 000000000..a8782b0e5 --- /dev/null +++ b/internal/services/rdb/action_instance_logs_purge_action_test.go @@ -0,0 +1,92 @@ +package rdb_test + +import ( + "context" + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-testing/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/terraform" + rdbSDK "github.com/scaleway/scaleway-sdk-go/api/rdb/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/locality/regional" +) + +func TestAccActionRDBInstanceLogsPurge_Basic(t *testing.T) { + if acctest.IsRunningOpenTofu() { + t.Skip("Skipping TestAccActionRDBInstanceLogsPurge_Basic because action are not yet supported on OpenTofu") + } + + tt := acctest.NewTestTools(t) + defer tt.Cleanup() + + resource.ParallelTest(t, resource.TestCase{ + ProtoV6ProviderFactories: tt.ProviderFactories, + Steps: []resource.TestStep{ + { + Config: ` + resource "scaleway_rdb_instance" "main" { + name = "test-rdb-action-logs-purge" + node_type = "db-dev-s" + engine = "PostgreSQL-15" + is_ha_cluster = false + disable_backup = true + user_name = "my_initial_user" + password = "thiZ_is_v&ry_s3cret" + + lifecycle { + action_trigger { + events = [after_create] + actions = [action.scaleway_rdb_instance_logs_purge_action.main] + } + } + } + + action "scaleway_rdb_instance_logs_purge_action" "main" { + config { + instance_id = scaleway_rdb_instance.main.id + } + } + `, + Check: resource.ComposeTestCheckFunc( + isInstanceLogsPurged(tt, "scaleway_rdb_instance.main"), + ), + }, + }, + }) +} + +func isInstanceLogsPurged(tt *acctest.TestTools, instanceResourceName string) resource.TestCheckFunc { + return func(state *terraform.State) error { + rs, ok := state.RootModule().Resources[instanceResourceName] + if !ok { + return fmt.Errorf("not found: %s", instanceResourceName) + } + + region, id, err := regional.ParseID(rs.Primary.ID) + if err != nil { + return fmt.Errorf("failed to parse instance ID: %w", err) + } + + api := rdbSDK.NewAPI(tt.Meta.ScwClient()) + + instance, err := api.GetInstance(&rdbSDK.GetInstanceRequest{ + Region: region, + InstanceID: id, + }, scw.WithContext(context.Background())) + if err != nil { + return fmt.Errorf("failed to get instance: %w", err) + } + + if instance == nil { + return fmt.Errorf("instance %s not found", id) + } + + if instance.Status != rdbSDK.InstanceStatusReady { + return fmt.Errorf("instance %s is not ready, status: %s", id, instance.Status) + } + + return nil + } +} diff --git a/internal/services/rdb/action_instance_snapshot_action.go b/internal/services/rdb/action_instance_snapshot_action.go new file mode 100644 index 000000000..a64fde37b --- /dev/null +++ b/internal/services/rdb/action_instance_snapshot_action.go @@ -0,0 +1,226 @@ +package rdb + +import ( + "context" + "fmt" + "time" + + "github.com/hashicorp/terraform-plugin-framework/action" + "github.com/hashicorp/terraform-plugin-framework/action/schema" + "github.com/hashicorp/terraform-plugin-framework/types" + rdb "github.com/scaleway/scaleway-sdk-go/api/rdb/v1" + "github.com/scaleway/scaleway-sdk-go/scw" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/locality" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/locality/regional" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/meta" +) + +var ( + _ action.Action = (*InstanceSnapshotAction)(nil) + _ action.ActionWithConfigure = (*InstanceSnapshotAction)(nil) +) + +// InstanceSnapshotAction creates a snapshot for an RDB instance. +type InstanceSnapshotAction struct { + rdbAPI *rdb.API + meta *meta.Meta +} + +func (a *InstanceSnapshotAction) Configure(_ context.Context, req action.ConfigureRequest, resp *action.ConfigureResponse) { + if req.ProviderData == nil { + return + } + + m, ok := req.ProviderData.(*meta.Meta) + if !ok { + resp.Diagnostics.AddError( + "Unexpected Action Configure Type", + fmt.Sprintf("Expected *meta.Meta, got: %T. Please report this issue to the provider developers.", req.ProviderData), + ) + + return + } + + a.meta = m + a.rdbAPI = newAPI(m) +} + +func (a *InstanceSnapshotAction) Metadata(_ context.Context, req action.MetadataRequest, resp *action.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_rdb_instance_snapshot_action" +} + +type InstanceSnapshotActionModel struct { + InstanceID types.String `tfsdk:"instance_id"` + Region types.String `tfsdk:"region"` + Name types.String `tfsdk:"name"` + ExpiresAt types.String `tfsdk:"expires_at"` + Wait types.Bool `tfsdk:"wait"` +} + +// NewInstanceSnapshotAction returns a new RDB instance snapshot action. +func NewInstanceSnapshotAction() action.Action { + return &InstanceSnapshotAction{} +} + +func (a *InstanceSnapshotAction) Schema(_ context.Context, _ action.SchemaRequest, resp *action.SchemaResponse) { + resp.Schema = schema.Schema{ + Attributes: map[string]schema.Attribute{ + "instance_id": schema.StringAttribute{ + Required: true, + Description: "RDB instance ID to snapshot. Can be a plain UUID or a regional ID.", + }, + "region": regional.SchemaAttribute(), + "name": schema.StringAttribute{ + Optional: true, + Description: "Name of the snapshot. If not set, a name will be generated.", + }, + "expires_at": schema.StringAttribute{ + Optional: true, + Description: "Expiration date of the snapshot in RFC3339 format (ISO 8601). If not set, the snapshot will not expire.", + }, + "wait": schema.BoolAttribute{ + Optional: true, + Description: "Wait for the snapshot to reach a terminal state before returning.", + }, + }, + } +} + +func (a *InstanceSnapshotAction) Invoke(ctx context.Context, req action.InvokeRequest, resp *action.InvokeResponse) { + var data InstanceSnapshotActionModel + + resp.Diagnostics.Append(req.Config.Get(ctx, &data)...) + + if resp.Diagnostics.HasError() { + return + } + + if a.rdbAPI == nil { + resp.Diagnostics.AddError( + "Unconfigured rdbAPI", + "The action was not properly configured. The Scaleway client is missing. "+ + "This is usually a bug in the provider. Please report it to the maintainers.", + ) + + return + } + + if data.InstanceID.IsNull() || data.InstanceID.IsUnknown() || data.InstanceID.ValueString() == "" { + resp.Diagnostics.AddError( + "Missing instance_id", + "The instance_id attribute is required to create an RDB snapshot.", + ) + + return + } + + instanceID := locality.ExpandID(data.InstanceID.ValueString()) + + var region scw.Region + + if !data.Region.IsNull() && !data.Region.IsUnknown() && data.Region.ValueString() != "" { + parsedRegion, err := scw.ParseRegion(data.Region.ValueString()) + if err != nil { + resp.Diagnostics.AddError( + "Invalid region value", + fmt.Sprintf("The region attribute must be a valid Scaleway region. Got %q: %s", data.Region.ValueString(), err), + ) + + return + } + + region = parsedRegion + } else { + if derivedRegion, id, parseErr := regional.ParseID(data.InstanceID.ValueString()); parseErr == nil { + region = derivedRegion + instanceID = id + } else if a.meta != nil { + defaultRegion, exists := a.meta.ScwClient().GetDefaultRegion() + if !exists { + resp.Diagnostics.AddError( + "Unable to determine region", + "Failed to get default region from provider configuration. Please set the region attribute, use a regional instance_id, or configure a default region in the provider.", + ) + + return + } + + region = defaultRegion + } + } + + if region == "" { + resp.Diagnostics.AddError( + "Missing region", + "Could not determine region for RDB snapshot. Please set the region attribute, use a regional instance_id, or configure a default region in the provider.", + ) + + return + } + + snapshotName := data.Name.ValueString() + + var expirationTime *time.Time + + if !data.ExpiresAt.IsNull() && !data.ExpiresAt.IsUnknown() && data.ExpiresAt.ValueString() != "" { + expirationRaw := data.ExpiresAt.ValueString() + + parsedTime, err := time.Parse(time.RFC3339, expirationRaw) + if err != nil { + resp.Diagnostics.AddError( + "Invalid expires_at value", + fmt.Sprintf("The expires_at attribute must be a valid RFC3339 timestamp. Got %q: %s", expirationRaw, err), + ) + + return + } + + expirationTime = &parsedTime + } + + createReq := &rdb.CreateSnapshotRequest{ + Region: region, + InstanceID: instanceID, + ExpiresAt: expirationTime, + } + + if snapshotName != "" { + createReq.Name = snapshotName + } + + snapshot, err := a.rdbAPI.CreateSnapshot(createReq, scw.WithContext(ctx)) + if err != nil { + resp.Diagnostics.AddError( + "Error executing RDB CreateSnapshot action", + fmt.Sprintf("Failed to create snapshot for instance %s: %s", instanceID, err), + ) + + return + } + + if data.Wait.ValueBool() { + waitRegion := snapshot.Region + if waitRegion == "" && region != "" { + waitRegion = region + } + + if waitRegion == "" { + resp.Diagnostics.AddError( + "Missing region for wait operation", + "Could not determine region to wait for RDB snapshot completion.", + ) + + return + } + + _, err = waitForRDBSnapshot(ctx, a.rdbAPI, waitRegion, snapshot.ID, defaultInstanceTimeout) + if err != nil { + resp.Diagnostics.AddError( + "Error waiting for RDB snapshot completion", + fmt.Sprintf("Snapshot %s for instance %s did not reach a terminal state: %s", snapshot.ID, instanceID, err), + ) + + return + } + } +} diff --git a/internal/services/rdb/action_instance_snapshot_action_test.go b/internal/services/rdb/action_instance_snapshot_action_test.go new file mode 100644 index 000000000..e577b5a08 --- /dev/null +++ b/internal/services/rdb/action_instance_snapshot_action_test.go @@ -0,0 +1,98 @@ +package rdb_test + +import ( + "context" + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-testing/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/terraform" + rdbSDK "github.com/scaleway/scaleway-sdk-go/api/rdb/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/locality/regional" +) + +func TestAccActionRDBInstanceSnapshot_Basic(t *testing.T) { + if acctest.IsRunningOpenTofu() { + t.Skip("Skipping TestAccActionRDBInstanceSnapshot_Basic because action are not yet supported on OpenTofu") + } + + tt := acctest.NewTestTools(t) + defer tt.Cleanup() + + resource.ParallelTest(t, resource.TestCase{ + ProtoV6ProviderFactories: tt.ProviderFactories, + Steps: []resource.TestStep{ + { + Config: ` + resource "scaleway_rdb_instance" "main" { + name = "test-rdb-action-snapshot" + node_type = "db-dev-s" + engine = "PostgreSQL-15" + is_ha_cluster = false + disable_backup = true + user_name = "my_initial_user" + password = "thiZ_is_v&ry_s3cret" + volume_type = "sbs_5k" + volume_size_in_gb = 10 + + lifecycle { + action_trigger { + events = [after_create] + actions = [action.scaleway_rdb_instance_snapshot_action.main] + } + } + } + + action "scaleway_rdb_instance_snapshot_action" "main" { + config { + instance_id = scaleway_rdb_instance.main.id + name = "tf-rdb-snapshot" + wait = true + } + } + `, + Check: resource.ComposeTestCheckFunc( + isSnapshotCreated(tt, "scaleway_rdb_instance.main", "tf-rdb-snapshot"), + ), + }, + }, + }) +} + +func isSnapshotCreated(tt *acctest.TestTools, instanceResourceName, snapshotName string) resource.TestCheckFunc { + return func(state *terraform.State) error { + rs, ok := state.RootModule().Resources[instanceResourceName] + if !ok { + return fmt.Errorf("not found: %s", instanceResourceName) + } + + region, id, err := regional.ParseID(rs.Primary.ID) + if err != nil { + return fmt.Errorf("failed to parse instance ID: %w", err) + } + + api := rdbSDK.NewAPI(tt.Meta.ScwClient()) + + snapshots, err := api.ListSnapshots(&rdbSDK.ListSnapshotsRequest{ + Region: region, + InstanceID: scw.StringPtr(id), + Name: scw.StringPtr(snapshotName), + }, scw.WithContext(context.Background())) + if err != nil { + return fmt.Errorf("failed to list snapshots: %w", err) + } + + if len(snapshots.Snapshots) == 0 { + return fmt.Errorf("snapshot %s not found for instance %s", snapshotName, id) + } + + snapshot := snapshots.Snapshots[0] + if snapshot.Status != rdbSDK.SnapshotStatusReady && snapshot.Status != rdbSDK.SnapshotStatusCreating { + return fmt.Errorf("snapshot %s is not in a valid state, status: %s", snapshotName, snapshot.Status) + } + + return nil + } +} diff --git a/internal/services/rdb/action_read_replica_promote_action.go b/internal/services/rdb/action_read_replica_promote_action.go new file mode 100644 index 000000000..d7a8500ee --- /dev/null +++ b/internal/services/rdb/action_read_replica_promote_action.go @@ -0,0 +1,178 @@ +package rdb + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-framework/action" + "github.com/hashicorp/terraform-plugin-framework/action/schema" + "github.com/hashicorp/terraform-plugin-framework/types" + rdb "github.com/scaleway/scaleway-sdk-go/api/rdb/v1" + "github.com/scaleway/scaleway-sdk-go/scw" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/locality" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/locality/regional" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/meta" +) + +var ( + _ action.Action = (*ReadReplicaPromoteAction)(nil) + _ action.ActionWithConfigure = (*ReadReplicaPromoteAction)(nil) +) + +// ReadReplicaPromoteAction promotes a read replica to a standalone instance. +type ReadReplicaPromoteAction struct { + rdbAPI *rdb.API + meta *meta.Meta +} + +func (a *ReadReplicaPromoteAction) Configure(_ context.Context, req action.ConfigureRequest, resp *action.ConfigureResponse) { + if req.ProviderData == nil { + return + } + + m, ok := req.ProviderData.(*meta.Meta) + if !ok { + resp.Diagnostics.AddError( + "Unexpected Action Configure Type", + fmt.Sprintf("Expected *meta.Meta, got: %T. Please report this issue to the provider developers.", req.ProviderData), + ) + + return + } + + a.meta = m + a.rdbAPI = newAPI(m) +} + +func (a *ReadReplicaPromoteAction) Metadata(_ context.Context, req action.MetadataRequest, resp *action.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_rdb_read_replica_promote_action" +} + +type ReadReplicaPromoteActionModel struct { + ReadReplicaID types.String `tfsdk:"read_replica_id"` + Region types.String `tfsdk:"region"` + Wait types.Bool `tfsdk:"wait"` +} + +// NewReadReplicaPromoteAction returns a new RDB read replica promote action. +func NewReadReplicaPromoteAction() action.Action { + return &ReadReplicaPromoteAction{} +} + +func (a *ReadReplicaPromoteAction) Schema(_ context.Context, _ action.SchemaRequest, resp *action.SchemaResponse) { + resp.Schema = schema.Schema{ + Attributes: map[string]schema.Attribute{ + "read_replica_id": schema.StringAttribute{ + Required: true, + Description: "RDB read replica ID to promote. Can be a plain UUID or a regional ID.", + }, + "region": regional.SchemaAttribute(), + "wait": schema.BoolAttribute{ + Optional: true, + Description: "Wait for the read replica promotion to complete before returning.", + }, + }, + } +} + +func (a *ReadReplicaPromoteAction) Invoke(ctx context.Context, req action.InvokeRequest, resp *action.InvokeResponse) { + var data ReadReplicaPromoteActionModel + + resp.Diagnostics.Append(req.Config.Get(ctx, &data)...) + + if resp.Diagnostics.HasError() { + return + } + + if a.rdbAPI == nil { + resp.Diagnostics.AddError( + "Unconfigured rdbAPI", + "The action was not properly configured. The Scaleway client is missing. "+ + "This is usually a bug in the provider. Please report it to the maintainers.", + ) + + return + } + + if data.ReadReplicaID.IsNull() || data.ReadReplicaID.IsUnknown() || data.ReadReplicaID.ValueString() == "" { + resp.Diagnostics.AddError( + "Missing read_replica_id", + "The read_replica_id attribute is required to promote a read replica.", + ) + + return + } + + readReplicaID := locality.ExpandID(data.ReadReplicaID.ValueString()) + + var region scw.Region + + if !data.Region.IsNull() && !data.Region.IsUnknown() && data.Region.ValueString() != "" { + parsedRegion, err := scw.ParseRegion(data.Region.ValueString()) + if err != nil { + resp.Diagnostics.AddError( + "Invalid region value", + fmt.Sprintf("The region attribute must be a valid Scaleway region. Got %q: %s", data.Region.ValueString(), err), + ) + + return + } + + region = parsedRegion + } else { + if derivedRegion, id, parseErr := regional.ParseID(data.ReadReplicaID.ValueString()); parseErr == nil { + region = derivedRegion + readReplicaID = id + } else if a.meta != nil { + defaultRegion, exists := a.meta.ScwClient().GetDefaultRegion() + if !exists { + resp.Diagnostics.AddError( + "Unable to determine region", + "Failed to get default region from provider configuration. Please set the region attribute, use a regional read_replica_id, or configure a default region in the provider.", + ) + + return + } + + region = defaultRegion + } + } + + if region == "" { + resp.Diagnostics.AddError( + "Missing region", + "Could not determine region for RDB read replica promotion. Please set the region attribute, use a regional read_replica_id, or configure a default region in the provider.", + ) + + return + } + + promoteReq := &rdb.PromoteReadReplicaRequest{ + Region: region, + ReadReplicaID: readReplicaID, + } + + promotedInstance, err := a.rdbAPI.PromoteReadReplica(promoteReq, scw.WithContext(ctx)) + if err != nil { + resp.Diagnostics.AddError( + "Error executing RDB PromoteReadReplica action", + fmt.Sprintf("Failed to promote read replica %s: %s", readReplicaID, err), + ) + + return + } + + if data.Wait.ValueBool() { + newInstanceID := promotedInstance.ID + + _, err = waitForRDBInstance(ctx, a.rdbAPI, region, newInstanceID, defaultInstanceTimeout) + if err != nil { + resp.Diagnostics.AddError( + "Error waiting for RDB read replica promotion completion", + fmt.Sprintf("Read replica %s promotion did not complete: %s", readReplicaID, err), + ) + + return + } + } +} diff --git a/internal/services/rdb/action_read_replica_promote_action_test.go b/internal/services/rdb/action_read_replica_promote_action_test.go new file mode 100644 index 000000000..a0f8f1adf --- /dev/null +++ b/internal/services/rdb/action_read_replica_promote_action_test.go @@ -0,0 +1,80 @@ +package rdb_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-testing/helper/resource" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/acctest" +) + +func TestAccActionRDBReadReplicaPromote_Basic(t *testing.T) { + if acctest.IsRunningOpenTofu() { + t.Skip("Skipping TestAccActionRDBReadReplicaPromote_Basic because action are not yet supported on OpenTofu") + } + + tt := acctest.NewTestTools(t) + defer tt.Cleanup() + + resource.ParallelTest(t, resource.TestCase{ + ProtoV6ProviderFactories: tt.ProviderFactories, + Steps: []resource.TestStep{ + // Step 1: Create instance + read replica, action promotes it + { + Config: ` + resource "scaleway_rdb_instance" "main" { + name = "test-rdb-action-read-replica-promote" + node_type = "db-dev-s" + engine = "PostgreSQL-15" + is_ha_cluster = false + disable_backup = true + user_name = "my_initial_user" + password = "thiZ_is_v&ry_s3cret" + } + + resource "scaleway_rdb_read_replica" "main" { + instance_id = scaleway_rdb_instance.main.id + direct_access {} + + lifecycle { + action_trigger { + events = [after_create] + actions = [action.scaleway_rdb_read_replica_promote_action.main] + } + } + } + + action "scaleway_rdb_read_replica_promote_action" "main" { + config { + read_replica_id = scaleway_rdb_read_replica.main.id + wait = true + } + } + `, + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("scaleway_rdb_instance.main", "id"), + ), + // ExpectNonEmptyPlan is required because the promote action destroys the read replica, + // causing Terraform to detect drift and plan to recreate it. + ExpectNonEmptyPlan: true, + }, + // Step 2: Read replica has been promoted and removed from config + { + Config: ` + resource "scaleway_rdb_instance" "main" { + name = "test-rdb-action-read-replica-promote" + node_type = "db-dev-s" + engine = "PostgreSQL-15" + is_ha_cluster = false + disable_backup = true + user_name = "my_initial_user" + password = "thiZ_is_v&ry_s3cret" + } + `, + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("scaleway_rdb_instance.main", "name", "test-rdb-action-read-replica-promote"), + resource.TestCheckResourceAttr("scaleway_rdb_instance.main", "engine", "PostgreSQL-15"), + ), + }, + }, + }) +} diff --git a/internal/services/rdb/action_read_replica_reset_action.go b/internal/services/rdb/action_read_replica_reset_action.go new file mode 100644 index 000000000..c6c034765 --- /dev/null +++ b/internal/services/rdb/action_read_replica_reset_action.go @@ -0,0 +1,176 @@ +package rdb + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-framework/action" + "github.com/hashicorp/terraform-plugin-framework/action/schema" + "github.com/hashicorp/terraform-plugin-framework/types" + rdb "github.com/scaleway/scaleway-sdk-go/api/rdb/v1" + "github.com/scaleway/scaleway-sdk-go/scw" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/locality" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/locality/regional" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/meta" +) + +var ( + _ action.Action = (*ReadReplicaResetAction)(nil) + _ action.ActionWithConfigure = (*ReadReplicaResetAction)(nil) +) + +// ReadReplicaResetAction resets a read replica. +type ReadReplicaResetAction struct { + rdbAPI *rdb.API + meta *meta.Meta +} + +func (a *ReadReplicaResetAction) Configure(_ context.Context, req action.ConfigureRequest, resp *action.ConfigureResponse) { + if req.ProviderData == nil { + return + } + + m, ok := req.ProviderData.(*meta.Meta) + if !ok { + resp.Diagnostics.AddError( + "Unexpected Action Configure Type", + fmt.Sprintf("Expected *meta.Meta, got: %T. Please report this issue to the provider developers.", req.ProviderData), + ) + + return + } + + a.meta = m + a.rdbAPI = newAPI(m) +} + +func (a *ReadReplicaResetAction) Metadata(_ context.Context, req action.MetadataRequest, resp *action.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_rdb_read_replica_reset_action" +} + +type ReadReplicaResetActionModel struct { + ReadReplicaID types.String `tfsdk:"read_replica_id"` + Region types.String `tfsdk:"region"` + Wait types.Bool `tfsdk:"wait"` +} + +// NewReadReplicaResetAction returns a new RDB read replica reset action. +func NewReadReplicaResetAction() action.Action { + return &ReadReplicaResetAction{} +} + +func (a *ReadReplicaResetAction) Schema(_ context.Context, _ action.SchemaRequest, resp *action.SchemaResponse) { + resp.Schema = schema.Schema{ + Attributes: map[string]schema.Attribute{ + "read_replica_id": schema.StringAttribute{ + Required: true, + Description: "RDB read replica ID to reset. Can be a plain UUID or a regional ID.", + }, + "region": regional.SchemaAttribute(), + "wait": schema.BoolAttribute{ + Optional: true, + Description: "Wait for the read replica to reach a terminal state before returning.", + }, + }, + } +} + +func (a *ReadReplicaResetAction) Invoke(ctx context.Context, req action.InvokeRequest, resp *action.InvokeResponse) { + var data ReadReplicaResetActionModel + + resp.Diagnostics.Append(req.Config.Get(ctx, &data)...) + + if resp.Diagnostics.HasError() { + return + } + + if a.rdbAPI == nil { + resp.Diagnostics.AddError( + "Unconfigured rdbAPI", + "The action was not properly configured. The Scaleway client is missing. "+ + "This is usually a bug in the provider. Please report it to the maintainers.", + ) + + return + } + + if data.ReadReplicaID.IsNull() || data.ReadReplicaID.IsUnknown() || data.ReadReplicaID.ValueString() == "" { + resp.Diagnostics.AddError( + "Missing read_replica_id", + "The read_replica_id attribute is required to reset a read replica.", + ) + + return + } + + readReplicaID := locality.ExpandID(data.ReadReplicaID.ValueString()) + + var region scw.Region + + if !data.Region.IsNull() && !data.Region.IsUnknown() && data.Region.ValueString() != "" { + parsedRegion, err := scw.ParseRegion(data.Region.ValueString()) + if err != nil { + resp.Diagnostics.AddError( + "Invalid region value", + fmt.Sprintf("The region attribute must be a valid Scaleway region. Got %q: %s", data.Region.ValueString(), err), + ) + + return + } + + region = parsedRegion + } else { + if derivedRegion, id, parseErr := regional.ParseID(data.ReadReplicaID.ValueString()); parseErr == nil { + region = derivedRegion + readReplicaID = id + } else if a.meta != nil { + defaultRegion, exists := a.meta.ScwClient().GetDefaultRegion() + if !exists { + resp.Diagnostics.AddError( + "Unable to determine region", + "Failed to get default region from provider configuration. Please set the region attribute, use a regional read_replica_id, or configure a default region in the provider.", + ) + + return + } + + region = defaultRegion + } + } + + if region == "" { + resp.Diagnostics.AddError( + "Missing region", + "Could not determine region for RDB read replica reset. Please set the region attribute, use a regional read_replica_id, or configure a default region in the provider.", + ) + + return + } + + resetReq := &rdb.ResetReadReplicaRequest{ + Region: region, + ReadReplicaID: readReplicaID, + } + + _, err := a.rdbAPI.ResetReadReplica(resetReq, scw.WithContext(ctx)) + if err != nil { + resp.Diagnostics.AddError( + "Error executing RDB ResetReadReplica action", + fmt.Sprintf("Failed to reset read replica %s: %s", readReplicaID, err), + ) + + return + } + + if data.Wait.ValueBool() { + _, err = waitForRDBReadReplica(ctx, a.rdbAPI, region, readReplicaID, defaultInstanceTimeout) + if err != nil { + resp.Diagnostics.AddError( + "Error waiting for RDB read replica reset completion", + fmt.Sprintf("Read replica %s did not reach a terminal state: %s", readReplicaID, err), + ) + + return + } + } +} diff --git a/internal/services/rdb/action_read_replica_reset_action_test.go b/internal/services/rdb/action_read_replica_reset_action_test.go new file mode 100644 index 000000000..6e7614340 --- /dev/null +++ b/internal/services/rdb/action_read_replica_reset_action_test.go @@ -0,0 +1,98 @@ +package rdb_test + +import ( + "context" + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-testing/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/terraform" + rdbSDK "github.com/scaleway/scaleway-sdk-go/api/rdb/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/locality/regional" +) + +func TestAccActionRDBReadReplicaReset_Basic(t *testing.T) { + if acctest.IsRunningOpenTofu() { + t.Skip("Skipping TestAccActionRDBReadReplicaReset_Basic because action are not yet supported on OpenTofu") + } + + tt := acctest.NewTestTools(t) + defer tt.Cleanup() + + resource.ParallelTest(t, resource.TestCase{ + ProtoV6ProviderFactories: tt.ProviderFactories, + Steps: []resource.TestStep{ + { + Config: ` + resource "scaleway_rdb_instance" "main" { + name = "test-rdb-action-read-replica-reset" + node_type = "db-dev-s" + engine = "PostgreSQL-15" + is_ha_cluster = false + disable_backup = true + user_name = "my_initial_user" + password = "thiZ_is_v&ry_s3cret" + } + + resource "scaleway_rdb_read_replica" "main" { + instance_id = scaleway_rdb_instance.main.id + direct_access {} + + lifecycle { + action_trigger { + events = [after_create] + actions = [action.scaleway_rdb_read_replica_reset_action.main] + } + } + } + + action "scaleway_rdb_read_replica_reset_action" "main" { + config { + read_replica_id = scaleway_rdb_read_replica.main.id + wait = true + } + } + `, + Check: resource.ComposeTestCheckFunc( + isReadReplicaReset(tt, "scaleway_rdb_read_replica.main"), + ), + }, + }, + }) +} + +func isReadReplicaReset(tt *acctest.TestTools, readReplicaResourceName string) resource.TestCheckFunc { + return func(state *terraform.State) error { + rs, ok := state.RootModule().Resources[readReplicaResourceName] + if !ok { + return fmt.Errorf("not found: %s", readReplicaResourceName) + } + + region, id, err := regional.ParseID(rs.Primary.ID) + if err != nil { + return fmt.Errorf("failed to parse read replica ID: %w", err) + } + + api := rdbSDK.NewAPI(tt.Meta.ScwClient()) + + readReplica, err := api.GetReadReplica(&rdbSDK.GetReadReplicaRequest{ + Region: region, + ReadReplicaID: id, + }, scw.WithContext(context.Background())) + if err != nil { + return fmt.Errorf("failed to get read replica: %w", err) + } + + if readReplica == nil { + return fmt.Errorf("read replica %s not found", id) + } + + if readReplica.Status != rdbSDK.ReadReplicaStatusReady && readReplica.Status != rdbSDK.ReadReplicaStatusProvisioning { + return fmt.Errorf("read replica %s is not in a valid state, status: %s", id, readReplica.Status) + } + + return nil + } +} diff --git a/internal/services/rdb/testdata/action-rdb-database-backup-export-basic.cassette.yaml b/internal/services/rdb/testdata/action-rdb-database-backup-export-basic.cassette.yaml new file mode 100644 index 000000000..587253731 --- /dev/null +++ b/internal/services/rdb/testdata/action-rdb-database-backup-export-basic.cassette.yaml @@ -0,0 +1,1871 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 414 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","name":"test-rdb-action-backup-export","engine":"PostgreSQL-15","user_name":"my_initial_user","password":"thiZ_is_v\u0026ry_s3cret","node_type":"db-dev-s","is_ha_cluster":false,"disable_backup":true,"tags":null,"init_settings":null,"volume_type":"sbs_5k","volume_size":10000000000,"init_endpoints":null,"backup_same_region":false,"encryption":{"enabled":false}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 966 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:02:19.853827Z","encryption":{"enabled":false},"endpoint":null,"endpoints":[],"engine":"PostgreSQL-15","id":"c7a95b39-a057-4188-a1e9-183b7ff6acf8","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-export","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "966" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:02:20 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7e717b66-de7e-4b78-9356-573880753b30 + status: 200 OK + code: 200 + duration: 939.113666ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7a95b39-a057-4188-a1e9-183b7ff6acf8 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 966 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:02:19.853827Z","encryption":{"enabled":false},"endpoint":null,"endpoints":[],"engine":"PostgreSQL-15","id":"c7a95b39-a057-4188-a1e9-183b7ff6acf8","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-export","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "966" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:02:20 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b9b494ea-146d-42c8-b3e6-4fab6db1cf3d + status: 200 OK + code: 200 + duration: 192.070458ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7a95b39-a057-4188-a1e9-183b7ff6acf8 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1439 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:02:19.853827Z","encryption":{"enabled":false},"endpoint":{"id":"91583aa8-d355-4112-b5f0-bb3d2c41bece","ip":"163.172.171.16","load_balancer":{},"name":null,"port":4433},"endpoints":[{"id":"91583aa8-d355-4112-b5f0-bb3d2c41bece","ip":"163.172.171.16","load_balancer":{},"name":null,"port":4433}],"engine":"PostgreSQL-15","id":"c7a95b39-a057-4188-a1e9-183b7ff6acf8","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-export","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1439" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:06:22 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6bdcc45f-2c84-4969-8d29-8aedd4b22f0d + status: 200 OK + code: 200 + duration: 351.102291ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7a95b39-a057-4188-a1e9-183b7ff6acf8/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 2011 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVBRENDQXVpZ0F3SUJBZ0lVRE4ydTVjc1ExWnUyQ2pzejZXVGk2bGxGSWJ3d0RRWUpLb1pJaHZjTkFRRUwKQlFBd1dURUxNQWtHQTFVRUJoTUNSbEl4RGpBTUJnTlZCQWdNQlZCaGNtbHpNUTR3REFZRFZRUUhEQVZRWVhKcApjekVSTUE4R0ExVUVDZ3dJVTJOaGJHVjNZWGt4RnpBVkJnTlZCQU1NRGpFMk15NHhOekl1TVRjeExqRTJNQjRYCkRUSTFNVEl4TURBMU1EVXpObG9YRFRNMU1USXdPREExTURVek5sb3dXVEVMTUFrR0ExVUVCaE1DUmxJeERqQU0KQmdOVkJBZ01CVkJoY21sek1RNHdEQVlEVlFRSERBVlFZWEpwY3pFUk1BOEdBMVVFQ2d3SVUyTmhiR1YzWVhreApGekFWQmdOVkJBTU1EakUyTXk0eE56SXVNVGN4TGpFMk1JSUJJakFOQmdrcWhraUc5dzBCQVFFRkFBT0NBUThBCk1JSUJDZ0tDQVFFQXdHTWJoY1ZkWHNRa1lvc21ROFNlY04wTnpZRGg4bEFxWW94UGJoRVB6M3J1ekJ4UjZuNHYKQTFKdU5PQW01TS9uNDh0NjUr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c005Nk1PemZZWnd2anZnZHVRLzdndQpVdElxV0lLRGF0QnJoeHNzOWpGbnJiNUIxWmJJSWR2VGh2b0ZWMEEwRjE3U2NPVE5xZml2TzRrWlNLeFRPOFhnCndFZXFpdjVSb0tpWVFIMDhMakN0NGh2WWVLMD0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "2011" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:06:22 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 11cbc83c-fde8-4c48-8731-3f7ffea94e08 + status: 200 OK + code: 200 + duration: 202.0385ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7a95b39-a057-4188-a1e9-183b7ff6acf8 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1439 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:02:19.853827Z","encryption":{"enabled":false},"endpoint":{"id":"91583aa8-d355-4112-b5f0-bb3d2c41bece","ip":"163.172.171.16","load_balancer":{},"name":null,"port":4433},"endpoints":[{"id":"91583aa8-d355-4112-b5f0-bb3d2c41bece","ip":"163.172.171.16","load_balancer":{},"name":null,"port":4433}],"engine":"PostgreSQL-15","id":"c7a95b39-a057-4188-a1e9-183b7ff6acf8","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-export","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1439" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:06:23 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 164383c0-64de-4f8f-b352-39025e2b693d + status: 200 OK + code: 200 + duration: 297.543083ms + - id: 5 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 18 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"name":"test_db"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7a95b39-a057-4188-a1e9-183b7ff6acf8/databases + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 53 + uncompressed: false + body: '{"managed":true,"name":"test_db","owner":"","size":0}' + headers: + Content-Length: + - "53" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:06:23 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ba3d10ec-4823-4312-831b-6734009852d5 + status: 200 OK + code: 200 + duration: 289.308542ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7a95b39-a057-4188-a1e9-183b7ff6acf8 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1439 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:02:19.853827Z","encryption":{"enabled":false},"endpoint":{"id":"91583aa8-d355-4112-b5f0-bb3d2c41bece","ip":"163.172.171.16","load_balancer":{},"name":null,"port":4433},"endpoints":[{"id":"91583aa8-d355-4112-b5f0-bb3d2c41bece","ip":"163.172.171.16","load_balancer":{},"name":null,"port":4433}],"engine":"PostgreSQL-15","id":"c7a95b39-a057-4188-a1e9-183b7ff6acf8","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-export","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1439" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:06:23 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9731928c-7ce1-41c3-ac6c-77ed88de486a + status: 200 OK + code: 200 + duration: 229.801834ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7a95b39-a057-4188-a1e9-183b7ff6acf8/databases?name=test_db&order_by=name_asc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 106 + uncompressed: false + body: '{"databases":[{"managed":true,"name":"test_db","owner":"_rdb_superadmin","size":7713583}],"total_count":1}' + headers: + Content-Length: + - "106" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:06:23 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 22454ad7-f9fb-4608-b2a6-1c222f465955 + status: 200 OK + code: 200 + duration: 259.832416ms + - id: 8 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 108 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"instance_id":"c7a95b39-a057-4188-a1e9-183b7ff6acf8","database_name":"test_db","name":"test-backup-export"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/backups + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 400 + uncompressed: false + body: '{"created_at":"2025-12-10T05:06:25.211540Z","database_name":"test_db","download_url":null,"download_url_expires_at":null,"expires_at":null,"id":"f2d83106-4278-4133-8b76-8b8665c6cc16","instance_id":"c7a95b39-a057-4188-a1e9-183b7ff6acf8","instance_name":"test-rdb-action-backup-export","name":"test-backup-export","region":"fr-par","same_region":false,"size":null,"status":"creating","updated_at":null}' + headers: + Content-Length: + - "400" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:06:25 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f0ba23de-6f5f-44af-a803-64dec13fd210 + status: 200 OK + code: 200 + duration: 1.3539335s + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/backups/f2d83106-4278-4133-8b76-8b8665c6cc16 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 400 + uncompressed: false + body: '{"created_at":"2025-12-10T05:06:25.211540Z","database_name":"test_db","download_url":null,"download_url_expires_at":null,"expires_at":null,"id":"f2d83106-4278-4133-8b76-8b8665c6cc16","instance_id":"c7a95b39-a057-4188-a1e9-183b7ff6acf8","instance_name":"test-rdb-action-backup-export","name":"test-backup-export","region":"fr-par","same_region":false,"size":null,"status":"creating","updated_at":null}' + headers: + Content-Length: + - "400" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:06:25 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 22c6ace6-d114-4a0a-bf67-df6412207ed2 + status: 200 OK + code: 200 + duration: 146.57225ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/backups/f2d83106-4278-4133-8b76-8b8665c6cc16 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 422 + uncompressed: false + body: '{"created_at":"2025-12-10T05:06:25.211540Z","database_name":"test_db","download_url":null,"download_url_expires_at":null,"expires_at":null,"id":"f2d83106-4278-4133-8b76-8b8665c6cc16","instance_id":"c7a95b39-a057-4188-a1e9-183b7ff6acf8","instance_name":"test-rdb-action-backup-export","name":"test-backup-export","region":"fr-par","same_region":false,"size":1255,"status":"ready","updated_at":"2025-12-10T05:06:27.896647Z"}' + headers: + Content-Length: + - "422" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:06:55 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b1604132-43a1-4baf-8333-3629491db1b2 + status: 200 OK + code: 200 + duration: 185.440417ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/backups/f2d83106-4278-4133-8b76-8b8665c6cc16 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 422 + uncompressed: false + body: '{"created_at":"2025-12-10T05:06:25.211540Z","database_name":"test_db","download_url":null,"download_url_expires_at":null,"expires_at":null,"id":"f2d83106-4278-4133-8b76-8b8665c6cc16","instance_id":"c7a95b39-a057-4188-a1e9-183b7ff6acf8","instance_name":"test-rdb-action-backup-export","name":"test-backup-export","region":"fr-par","same_region":false,"size":1255,"status":"ready","updated_at":"2025-12-10T05:06:27.896647Z"}' + headers: + Content-Length: + - "422" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:06:55 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 674b895c-8cff-469d-992a-d2a98205e650 + status: 200 OK + code: 200 + duration: 132.562459ms + - id: 12 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 2 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/backups/f2d83106-4278-4133-8b76-8b8665c6cc16/export + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 426 + uncompressed: false + body: '{"created_at":"2025-12-10T05:06:25.211540Z","database_name":"test_db","download_url":null,"download_url_expires_at":null,"expires_at":null,"id":"f2d83106-4278-4133-8b76-8b8665c6cc16","instance_id":"c7a95b39-a057-4188-a1e9-183b7ff6acf8","instance_name":"test-rdb-action-backup-export","name":"test-backup-export","region":"fr-par","same_region":false,"size":1255,"status":"exporting","updated_at":"2025-12-10T05:06:27.896647Z"}' + headers: + Content-Length: + - "426" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:06:56 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3c45d0f9-e27a-42fd-8c02-b1d7001e1733 + status: 200 OK + code: 200 + duration: 171.586167ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/backups/f2d83106-4278-4133-8b76-8b8665c6cc16 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 426 + uncompressed: false + body: '{"created_at":"2025-12-10T05:06:25.211540Z","database_name":"test_db","download_url":null,"download_url_expires_at":null,"expires_at":null,"id":"f2d83106-4278-4133-8b76-8b8665c6cc16","instance_id":"c7a95b39-a057-4188-a1e9-183b7ff6acf8","instance_name":"test-rdb-action-backup-export","name":"test-backup-export","region":"fr-par","same_region":false,"size":1255,"status":"exporting","updated_at":"2025-12-10T05:06:27.896647Z"}' + headers: + Content-Length: + - "426" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:06:56 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - de16b5a8-e367-4ba3-81f9-750dcdc12550 + status: 200 OK + code: 200 + duration: 179.441333ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/backups/f2d83106-4278-4133-8b76-8b8665c6cc16 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 855 + uncompressed: false + body: '{"created_at":"2025-12-10T05:06:25.211540Z","database_name":"test_db","download_url":"https://s3.nl-ams.scw.cloud/65940610-0e5e-4a98-9306-568aa4eb3673/c7a95b39-a057-4188-a1e9-183b7ff6acf8/f2d83106-4278-4133-8b76-8b8665c6cc16.custom?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=SCWB2FMM0GE3X6RPFT0Q%2F20251210%2Fnl-ams%2Fs3%2Faws4_request\u0026X-Amz-Date=20251210T050656Z\u0026X-Amz-Expires=86400\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=c822d92a0e9fddde405b2f503b39b3b0d18df9747348492fc13628bfe4aa0bb0","download_url_expires_at":"2025-12-11T05:06:56.611123Z","expires_at":null,"id":"f2d83106-4278-4133-8b76-8b8665c6cc16","instance_id":"c7a95b39-a057-4188-a1e9-183b7ff6acf8","instance_name":"test-rdb-action-backup-export","name":"test-backup-export","region":"fr-par","same_region":false,"size":1255,"status":"ready","updated_at":"2025-12-10T05:06:27.896647Z"}' + headers: + Content-Length: + - "855" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:07:26 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5bd1cdb9-06e4-4107-bde9-e37b23f13dd8 + status: 200 OK + code: 200 + duration: 108.08475ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7a95b39-a057-4188-a1e9-183b7ff6acf8 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1439 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:02:19.853827Z","encryption":{"enabled":false},"endpoint":{"id":"91583aa8-d355-4112-b5f0-bb3d2c41bece","ip":"163.172.171.16","load_balancer":{},"name":null,"port":4433},"endpoints":[{"id":"91583aa8-d355-4112-b5f0-bb3d2c41bece","ip":"163.172.171.16","load_balancer":{},"name":null,"port":4433}],"engine":"PostgreSQL-15","id":"c7a95b39-a057-4188-a1e9-183b7ff6acf8","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-export","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1439" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:07:26 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2545774d-b543-4818-87bb-f55057c1133b + status: 200 OK + code: 200 + duration: 229.946875ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7a95b39-a057-4188-a1e9-183b7ff6acf8/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 2011 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVBRENDQXVpZ0F3SUJBZ0lVRE4ydTVjc1ExWnUyQ2pzejZXVGk2bGxGSWJ3d0RRWUpLb1pJaHZjTkFRRUwKQlFBd1dURUxNQWtHQTFVRUJoTUNSbEl4RGpBTUJnTlZCQWdNQlZCaGNtbHpNUTR3REFZRFZRUUhEQVZRWVhKcApjekVSTUE4R0ExVUVDZ3dJVTJOaGJHVjNZWGt4RnpBVkJnTlZCQU1NRGpFMk15NHhOekl1TVRjeExqRTJNQjRYCkRUSTFNVEl4TURBMU1EVXpObG9YRFRNMU1USXdPREExTURVek5sb3dXVEVMTUFrR0ExVUVCaE1DUmxJeERqQU0KQmdOVkJBZ01CVkJoY21sek1RNHdEQVlEVlFRSERBVlFZWEpwY3pFUk1BOEdBMVVFQ2d3SVUyTmhiR1YzWVhreApGekFWQmdOVkJBTU1EakUyTXk0eE56SXVNVGN4TGpFMk1JSUJJakFOQmdrcWhraUc5dzBCQVFFRkFBT0NBUThBCk1JSUJDZ0tDQVFFQXdHTWJoY1ZkWHNRa1lvc21ROFNlY04wTnpZRGg4bEFxWW94UGJoRVB6M3J1ekJ4UjZuNHYKQTFKdU5PQW01TS9uNDh0NjUrN1BHV2tZZVZndmhlS25zbmRFT2I0RkNKN0RZYko5MlJHN0JXZi84NmJGN2RZbwpqbThGVEtCaUpFaFp6Q1BGanhid3V5UFdVNUNBRThRVGFLQUVYaERIR05UZmJMeFRZV29uQjFCQSsvREp3bmo5CmlrMjRQYkFJT1MxVHh5cl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kQgQ0VSVElGSUNBVEUtLS0tLQo=","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "2011" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:07:27 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c381f9c4-85ad-4bdf-910f-ac8384eadfb7 + status: 200 OK + code: 200 + duration: 144.076666ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7a95b39-a057-4188-a1e9-183b7ff6acf8/databases?name=test_db&order_by=name_asc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 106 + uncompressed: false + body: '{"databases":[{"managed":true,"name":"test_db","owner":"_rdb_superadmin","size":7713583}],"total_count":1}' + headers: + Content-Length: + - "106" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:07:27 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1a92d6e8-2a89-46f8-905c-df10d0de4813 + status: 200 OK + code: 200 + duration: 279.539666ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/backups/f2d83106-4278-4133-8b76-8b8665c6cc16 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 855 + uncompressed: false + body: '{"created_at":"2025-12-10T05:06:25.211540Z","database_name":"test_db","download_url":"https://s3.nl-ams.scw.cloud/65940610-0e5e-4a98-9306-568aa4eb3673/c7a95b39-a057-4188-a1e9-183b7ff6acf8/f2d83106-4278-4133-8b76-8b8665c6cc16.custom?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=SCWB2FMM0GE3X6RPFT0Q%2F20251210%2Fnl-ams%2Fs3%2Faws4_request\u0026X-Amz-Date=20251210T050656Z\u0026X-Amz-Expires=86400\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=c822d92a0e9fddde405b2f503b39b3b0d18df9747348492fc13628bfe4aa0bb0","download_url_expires_at":"2025-12-11T05:06:56.611123Z","expires_at":null,"id":"f2d83106-4278-4133-8b76-8b8665c6cc16","instance_id":"c7a95b39-a057-4188-a1e9-183b7ff6acf8","instance_name":"test-rdb-action-backup-export","name":"test-backup-export","region":"fr-par","same_region":false,"size":1255,"status":"ready","updated_at":"2025-12-10T05:06:27.896647Z"}' + headers: + Content-Length: + - "855" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:07:27 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7f0167a8-a2a8-49fe-8158-a5ef09c4ce8f + status: 200 OK + code: 200 + duration: 170.225375ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7a95b39-a057-4188-a1e9-183b7ff6acf8 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1439 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:02:19.853827Z","encryption":{"enabled":false},"endpoint":{"id":"91583aa8-d355-4112-b5f0-bb3d2c41bece","ip":"163.172.171.16","load_balancer":{},"name":null,"port":4433},"endpoints":[{"id":"91583aa8-d355-4112-b5f0-bb3d2c41bece","ip":"163.172.171.16","load_balancer":{},"name":null,"port":4433}],"engine":"PostgreSQL-15","id":"c7a95b39-a057-4188-a1e9-183b7ff6acf8","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-export","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1439" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:07:27 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - db61c7d0-1c0a-4ff6-8cb3-3a978b34b4e0 + status: 200 OK + code: 200 + duration: 269.787166ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7a95b39-a057-4188-a1e9-183b7ff6acf8/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 2011 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVBRENDQXVpZ0F3SUJBZ0lVRE4ydTVjc1ExWnUyQ2pzejZXVGk2bGxGSWJ3d0RRWUpLb1pJaHZjTkFRRUwKQlFBd1dURUxNQWtHQTFVRUJoTUNSbEl4RGpBTUJnTlZCQWdNQlZCaGNtbHpNUTR3REFZRFZRUUhEQVZRWVhKcApjekVSTUE4R0ExVUVDZ3dJVTJOaGJHVjNZWGt4RnpBVkJnTlZCQU1NRGpFMk15NHhOekl1TVRjeExqRTJNQjRYCkRUSTFNVEl4TURBMU1EVXpObG9YRFRNMU1USXdPREExTURVek5sb3dXVEVMTUFrR0ExVUVCaE1DUmxJeERqQU0KQmdOVkJBZ01CVkJoY21sek1RNHdEQVlEVlFRSERBVlFZWEpwY3pFUk1BOEdBMVVFQ2d3SVUyTmhiR1YzWVhreApGekFWQmdOVkJBTU1EakUyTXk0eE56SXVN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VWVpPcTZNR0VyOTBUMlJRCm1RSkV2QXNuV1ZIVEFKZWo4WVVBcGwzemw3N3hFczVROWI5VHFna1NVaTN0TXdMcnhYdm9kWDZnZzNrcjBJVFkKMEdzdTZWMDlpakpQa2lDdzJNK2c4UXNjeGMySUIzQ01HWDdhYVQwekJ6c005Nk1PemZZWnd2anZnZHVRLzdndQpVdElxV0lLRGF0QnJoeHNzOWpGbnJiNUIxWmJJSWR2VGh2b0ZWMEEwRjE3U2NPVE5xZml2TzRrWlNLeFRPOFhnCndFZXFpdjVSb0tpWVFIMDhMakN0NGh2WWVLMD0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "2011" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:07:28 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4a379fbb-0d78-403c-b3d4-9489d66923a9 + status: 200 OK + code: 200 + duration: 150.23575ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7a95b39-a057-4188-a1e9-183b7ff6acf8/databases?name=test_db&order_by=name_asc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 106 + uncompressed: false + body: '{"databases":[{"managed":true,"name":"test_db","owner":"_rdb_superadmin","size":7713583}],"total_count":1}' + headers: + Content-Length: + - "106" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:07:28 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 29b891ea-8ae5-42dc-9966-5215d1cf0731 + status: 200 OK + code: 200 + duration: 194.969166ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/backups/f2d83106-4278-4133-8b76-8b8665c6cc16 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 855 + uncompressed: false + body: '{"created_at":"2025-12-10T05:06:25.211540Z","database_name":"test_db","download_url":"https://s3.nl-ams.scw.cloud/65940610-0e5e-4a98-9306-568aa4eb3673/c7a95b39-a057-4188-a1e9-183b7ff6acf8/f2d83106-4278-4133-8b76-8b8665c6cc16.custom?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=SCWB2FMM0GE3X6RPFT0Q%2F20251210%2Fnl-ams%2Fs3%2Faws4_request\u0026X-Amz-Date=20251210T050656Z\u0026X-Amz-Expires=86400\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=c822d92a0e9fddde405b2f503b39b3b0d18df9747348492fc13628bfe4aa0bb0","download_url_expires_at":"2025-12-11T05:06:56.611123Z","expires_at":null,"id":"f2d83106-4278-4133-8b76-8b8665c6cc16","instance_id":"c7a95b39-a057-4188-a1e9-183b7ff6acf8","instance_name":"test-rdb-action-backup-export","name":"test-backup-export","region":"fr-par","same_region":false,"size":1255,"status":"ready","updated_at":"2025-12-10T05:06:27.896647Z"}' + headers: + Content-Length: + - "855" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:07:28 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - da5f401a-e014-4aa6-bb63-8ee1f33e5899 + status: 200 OK + code: 200 + duration: 127.749791ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/backups/f2d83106-4278-4133-8b76-8b8665c6cc16 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 855 + uncompressed: false + body: '{"created_at":"2025-12-10T05:06:25.211540Z","database_name":"test_db","download_url":"https://s3.nl-ams.scw.cloud/65940610-0e5e-4a98-9306-568aa4eb3673/c7a95b39-a057-4188-a1e9-183b7ff6acf8/f2d83106-4278-4133-8b76-8b8665c6cc16.custom?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=SCWB2FMM0GE3X6RPFT0Q%2F20251210%2Fnl-ams%2Fs3%2Faws4_request\u0026X-Amz-Date=20251210T050656Z\u0026X-Amz-Expires=86400\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=c822d92a0e9fddde405b2f503b39b3b0d18df9747348492fc13628bfe4aa0bb0","download_url_expires_at":"2025-12-11T05:06:56.611123Z","expires_at":null,"id":"f2d83106-4278-4133-8b76-8b8665c6cc16","instance_id":"c7a95b39-a057-4188-a1e9-183b7ff6acf8","instance_name":"test-rdb-action-backup-export","name":"test-backup-export","region":"fr-par","same_region":false,"size":1255,"status":"ready","updated_at":"2025-12-10T05:06:27.896647Z"}' + headers: + Content-Length: + - "855" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:07:28 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5049027c-99e5-4eda-935d-d1bdd6414a27 + status: 200 OK + code: 200 + duration: 74.266541ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7a95b39-a057-4188-a1e9-183b7ff6acf8 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1439 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:02:19.853827Z","encryption":{"enabled":false},"endpoint":{"id":"91583aa8-d355-4112-b5f0-bb3d2c41bece","ip":"163.172.171.16","load_balancer":{},"name":null,"port":4433},"endpoints":[{"id":"91583aa8-d355-4112-b5f0-bb3d2c41bece","ip":"163.172.171.16","load_balancer":{},"name":null,"port":4433}],"engine":"PostgreSQL-15","id":"c7a95b39-a057-4188-a1e9-183b7ff6acf8","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-export","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1439" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:07:29 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0546b574-fbfb-4a01-b839-7b6a437fcbed + status: 200 OK + code: 200 + duration: 191.624584ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7a95b39-a057-4188-a1e9-183b7ff6acf8/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 2011 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVBRENDQXVpZ0F3SUJBZ0lVRE4ydTVjc1ExWnUyQ2pzejZXVGk2bGxGSWJ3d0RRWUpLb1pJaHZjTkFRRUwK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pNXpZM2N1WTJ4dmRXU0NEakUyTXk0eE56SXVNVGN4TGpFMgpnanh5ZHkxak4yRTVOV0l6T1MxaE1EVTNMVFF4T0RndFlURmxPUzB4T0ROaU4yWm1ObUZqWmpndWNtUmlMbVp5CkxYQmhjaTV6WTNjdVkyeHZkV1NIQktPc3FhYUhCS09zcXhDSEJLT3NxeEF3RFFZSktvWklodmNOQVFFTEJRQUQKZ2dFQkFBbjlSS1ZzNDg2cEhINjljcVNSNHU0Y2xDN3hzVEdVelFTZFVJVncyNmUrRW9GaEFYQ0lhYmlaMG5jUwpXWVB2bTM0OWU3UDRiQUMxYk9vbEFDWG9hbVJpU2U0aUhnNVlJams2K2N0TExxcGdVWVpPcTZNR0VyOTBUMlJRCm1RSkV2QXNuV1ZIVEFKZWo4WVVBcGwzemw3N3hFczVROWI5VHFna1NVaTN0TXdMcnhYdm9kWDZnZzNrcjBJVFkKMEdzdTZWMDlpakpQa2lDdzJNK2c4UXNjeGMySUIzQ01HWDdhYVQwekJ6c005Nk1PemZZWnd2anZnZHVRLzdndQpVdElxV0lLRGF0QnJoeHNzOWpGbnJiNUIxWmJJSWR2VGh2b0ZWMEEwRjE3U2NPVE5xZml2TzRrWlNLeFRPOFhnCndFZXFpdjVSb0tpWVFIMDhMakN0NGh2WWVLMD0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "2011" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:07:29 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c0df5e71-080a-439b-9332-05fb58c67533 + status: 200 OK + code: 200 + duration: 147.047917ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7a95b39-a057-4188-a1e9-183b7ff6acf8/databases?name=test_db&order_by=name_asc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 106 + uncompressed: false + body: '{"databases":[{"managed":true,"name":"test_db","owner":"_rdb_superadmin","size":7713583}],"total_count":1}' + headers: + Content-Length: + - "106" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:07:29 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ca8b925f-e8b0-43d4-b458-bdee8f2d41cb + status: 200 OK + code: 200 + duration: 275.919125ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/backups/f2d83106-4278-4133-8b76-8b8665c6cc16 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 855 + uncompressed: false + body: '{"created_at":"2025-12-10T05:06:25.211540Z","database_name":"test_db","download_url":"https://s3.nl-ams.scw.cloud/65940610-0e5e-4a98-9306-568aa4eb3673/c7a95b39-a057-4188-a1e9-183b7ff6acf8/f2d83106-4278-4133-8b76-8b8665c6cc16.custom?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=SCWB2FMM0GE3X6RPFT0Q%2F20251210%2Fnl-ams%2Fs3%2Faws4_request\u0026X-Amz-Date=20251210T050656Z\u0026X-Amz-Expires=86400\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=c822d92a0e9fddde405b2f503b39b3b0d18df9747348492fc13628bfe4aa0bb0","download_url_expires_at":"2025-12-11T05:06:56.611123Z","expires_at":null,"id":"f2d83106-4278-4133-8b76-8b8665c6cc16","instance_id":"c7a95b39-a057-4188-a1e9-183b7ff6acf8","instance_name":"test-rdb-action-backup-export","name":"test-backup-export","region":"fr-par","same_region":false,"size":1255,"status":"ready","updated_at":"2025-12-10T05:06:27.896647Z"}' + headers: + Content-Length: + - "855" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:07:29 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - db110d3e-854b-4e2d-8f5b-92dff29de7ab + status: 200 OK + code: 200 + duration: 76.728166ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/backups/f2d83106-4278-4133-8b76-8b8665c6cc16 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 855 + uncompressed: false + body: '{"created_at":"2025-12-10T05:06:25.211540Z","database_name":"test_db","download_url":"https://s3.nl-ams.scw.cloud/65940610-0e5e-4a98-9306-568aa4eb3673/c7a95b39-a057-4188-a1e9-183b7ff6acf8/f2d83106-4278-4133-8b76-8b8665c6cc16.custom?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=SCWB2FMM0GE3X6RPFT0Q%2F20251210%2Fnl-ams%2Fs3%2Faws4_request\u0026X-Amz-Date=20251210T050656Z\u0026X-Amz-Expires=86400\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=c822d92a0e9fddde405b2f503b39b3b0d18df9747348492fc13628bfe4aa0bb0","download_url_expires_at":"2025-12-11T05:06:56.611123Z","expires_at":null,"id":"f2d83106-4278-4133-8b76-8b8665c6cc16","instance_id":"c7a95b39-a057-4188-a1e9-183b7ff6acf8","instance_name":"test-rdb-action-backup-export","name":"test-backup-export","region":"fr-par","same_region":false,"size":1255,"status":"ready","updated_at":"2025-12-10T05:06:27.896647Z"}' + headers: + Content-Length: + - "855" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:07:29 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0ca082df-ca89-4efa-9f50-d5cdb947bcaa + status: 200 OK + code: 200 + duration: 68.604542ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/backups/f2d83106-4278-4133-8b76-8b8665c6cc16 + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 858 + uncompressed: false + body: '{"created_at":"2025-12-10T05:06:25.211540Z","database_name":"test_db","download_url":"https://s3.nl-ams.scw.cloud/65940610-0e5e-4a98-9306-568aa4eb3673/c7a95b39-a057-4188-a1e9-183b7ff6acf8/f2d83106-4278-4133-8b76-8b8665c6cc16.custom?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=SCWB2FMM0GE3X6RPFT0Q%2F20251210%2Fnl-ams%2Fs3%2Faws4_request\u0026X-Amz-Date=20251210T050656Z\u0026X-Amz-Expires=86400\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=c822d92a0e9fddde405b2f503b39b3b0d18df9747348492fc13628bfe4aa0bb0","download_url_expires_at":"2025-12-11T05:06:56.611123Z","expires_at":null,"id":"f2d83106-4278-4133-8b76-8b8665c6cc16","instance_id":"c7a95b39-a057-4188-a1e9-183b7ff6acf8","instance_name":"test-rdb-action-backup-export","name":"test-backup-export","region":"fr-par","same_region":false,"size":1255,"status":"deleting","updated_at":"2025-12-10T05:06:27.896647Z"}' + headers: + Content-Length: + - "858" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:07:30 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 11c7540a-fe02-4e6e-900a-d24b7485ef21 + status: 200 OK + code: 200 + duration: 345.116584ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/backups/f2d83106-4278-4133-8b76-8b8665c6cc16 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 136 + uncompressed: false + body: '{"message":"resource is not found","resource":"database_backup","resource_id":"f2d83106-4278-4133-8b76-8b8665c6cc16","type":"not_found"}' + headers: + Content-Length: + - "136" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:07:30 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - cfd2374f-356d-4a10-9a8a-4b3d8018d900 + status: 404 Not Found + code: 404 + duration: 246.777792ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7a95b39-a057-4188-a1e9-183b7ff6acf8 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1439 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:02:19.853827Z","encryption":{"enabled":false},"endpoint":{"id":"91583aa8-d355-4112-b5f0-bb3d2c41bece","ip":"163.172.171.16","load_balancer":{},"name":null,"port":4433},"endpoints":[{"id":"91583aa8-d355-4112-b5f0-bb3d2c41bece","ip":"163.172.171.16","load_balancer":{},"name":null,"port":4433}],"engine":"PostgreSQL-15","id":"c7a95b39-a057-4188-a1e9-183b7ff6acf8","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-export","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1439" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:07:30 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0ef8db32-e55c-4d47-96f1-2aff153ee90b + status: 200 OK + code: 200 + duration: 387.752083ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7a95b39-a057-4188-a1e9-183b7ff6acf8/databases/test_db + 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, 10 Dec 2025 05:07:31 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1e9777c9-efd7-4f45-a5dc-639c3db7a748 + status: 204 No Content + code: 204 + duration: 520.642042ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7a95b39-a057-4188-a1e9-183b7ff6acf8 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1439 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:02:19.853827Z","encryption":{"enabled":false},"endpoint":{"id":"91583aa8-d355-4112-b5f0-bb3d2c41bece","ip":"163.172.171.16","load_balancer":{},"name":null,"port":4433},"endpoints":[{"id":"91583aa8-d355-4112-b5f0-bb3d2c41bece","ip":"163.172.171.16","load_balancer":{},"name":null,"port":4433}],"engine":"PostgreSQL-15","id":"c7a95b39-a057-4188-a1e9-183b7ff6acf8","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-export","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1439" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:07:31 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b86bffd7-3877-4400-a380-773e344a7e07 + status: 200 OK + code: 200 + duration: 170.789125ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7a95b39-a057-4188-a1e9-183b7ff6acf8 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1439 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:02:19.853827Z","encryption":{"enabled":false},"endpoint":{"id":"91583aa8-d355-4112-b5f0-bb3d2c41bece","ip":"163.172.171.16","load_balancer":{},"name":null,"port":4433},"endpoints":[{"id":"91583aa8-d355-4112-b5f0-bb3d2c41bece","ip":"163.172.171.16","load_balancer":{},"name":null,"port":4433}],"engine":"PostgreSQL-15","id":"c7a95b39-a057-4188-a1e9-183b7ff6acf8","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-export","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1439" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:07:31 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e6791c6a-086e-46ae-bd2a-9e6efe4d44d0 + status: 200 OK + code: 200 + duration: 339.364625ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7a95b39-a057-4188-a1e9-183b7ff6acf8 + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1442 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:02:19.853827Z","encryption":{"enabled":false},"endpoint":{"id":"91583aa8-d355-4112-b5f0-bb3d2c41bece","ip":"163.172.171.16","load_balancer":{},"name":null,"port":4433},"endpoints":[{"id":"91583aa8-d355-4112-b5f0-bb3d2c41bece","ip":"163.172.171.16","load_balancer":{},"name":null,"port":4433}],"engine":"PostgreSQL-15","id":"c7a95b39-a057-4188-a1e9-183b7ff6acf8","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-export","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"deleting","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1442" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:07:32 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 31f76652-b9cb-4ece-b930-76b791d509a6 + status: 200 OK + code: 200 + duration: 523.268667ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7a95b39-a057-4188-a1e9-183b7ff6acf8 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1442 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:02:19.853827Z","encryption":{"enabled":false},"endpoint":{"id":"91583aa8-d355-4112-b5f0-bb3d2c41bece","ip":"163.172.171.16","load_balancer":{},"name":null,"port":4433},"endpoints":[{"id":"91583aa8-d355-4112-b5f0-bb3d2c41bece","ip":"163.172.171.16","load_balancer":{},"name":null,"port":4433}],"engine":"PostgreSQL-15","id":"c7a95b39-a057-4188-a1e9-183b7ff6acf8","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-export","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"deleting","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1442" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:07:32 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3d6cb572-8664-4682-a7ad-fd9034665133 + status: 200 OK + code: 200 + duration: 221.302834ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7a95b39-a057-4188-a1e9-183b7ff6acf8 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 129 + uncompressed: false + body: '{"message":"resource is not found","resource":"instance","resource_id":"c7a95b39-a057-4188-a1e9-183b7ff6acf8","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:08:02 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d2290e89-e8fb-4c19-a374-3f1ee17604eb + status: 404 Not Found + code: 404 + duration: 174.861875ms diff --git a/internal/services/rdb/testdata/action-rdb-database-backup-restore-basic.cassette.yaml b/internal/services/rdb/testdata/action-rdb-database-backup-restore-basic.cassette.yaml new file mode 100644 index 000000000..9710c1d9b --- /dev/null +++ b/internal/services/rdb/testdata/action-rdb-database-backup-restore-basic.cassette.yaml @@ -0,0 +1,2559 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 415 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","name":"test-rdb-action-backup-restore","engine":"PostgreSQL-15","user_name":"my_initial_user","password":"thiZ_is_v\u0026ry_s3cret","node_type":"db-dev-s","is_ha_cluster":false,"disable_backup":true,"tags":null,"init_settings":null,"volume_type":"sbs_5k","volume_size":10000000000,"init_endpoints":null,"backup_same_region":false,"encryption":{"enabled":false}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 967 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:18:29.321883Z","encryption":{"enabled":false},"endpoint":null,"endpoints":[],"engine":"PostgreSQL-15","id":"f7e1c9c7-0335-4659-9faf-6370dcf87b29","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-restore","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "967" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:18:29 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c5b27268-1877-4d8f-989e-97241a3b6184 + status: 200 OK + code: 200 + duration: 1.198358917s + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/f7e1c9c7-0335-4659-9faf-6370dcf87b29 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 967 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:18:29.321883Z","encryption":{"enabled":false},"endpoint":null,"endpoints":[],"engine":"PostgreSQL-15","id":"f7e1c9c7-0335-4659-9faf-6370dcf87b29","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-restore","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "967" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:18:30 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6f769ad7-6e88-434f-8f1d-bac45f477ebf + status: 200 OK + code: 200 + duration: 476.40125ms + - id: 2 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 422 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","name":"test-rdb-action-backup-restore-target","engine":"PostgreSQL-15","user_name":"my_initial_user","password":"thiZ_is_v\u0026ry_s3cret","node_type":"db-dev-s","is_ha_cluster":false,"disable_backup":true,"tags":null,"init_settings":null,"volume_type":"sbs_5k","volume_size":10000000000,"init_endpoints":null,"backup_same_region":false,"encryption":{"enabled":false}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 974 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:18:30.350486Z","encryption":{"enabled":false},"endpoint":null,"endpoints":[],"engine":"PostgreSQL-15","id":"29b5958a-7e54-4427-8d91-128ff6972045","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-restore-target","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "974" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:18:30 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c6969c62-40bd-44d9-b144-e1069554ce35 + status: 200 OK + code: 200 + duration: 2.161442167s + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/29b5958a-7e54-4427-8d91-128ff6972045 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 974 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:18:30.350486Z","encryption":{"enabled":false},"endpoint":null,"endpoints":[],"engine":"PostgreSQL-15","id":"29b5958a-7e54-4427-8d91-128ff6972045","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-restore-target","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "974" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:18:30 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 33aeadd4-46fd-4040-860b-de7a8a7a1afb + status: 200 OK + code: 200 + duration: 268.81025ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/f7e1c9c7-0335-4659-9faf-6370dcf87b29 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1436 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:18:29.321883Z","encryption":{"enabled":false},"endpoint":{"id":"f1a99472-4570-4b50-b993-9501dc94f496","ip":"51.15.207.59","load_balancer":{},"name":null,"port":4690},"endpoints":[{"id":"f1a99472-4570-4b50-b993-9501dc94f496","ip":"51.15.207.59","load_balancer":{},"name":null,"port":4690}],"engine":"PostgreSQL-15","id":"f7e1c9c7-0335-4659-9faf-6370dcf87b29","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-restore","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1436" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:22:02 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ad3418fd-bcfe-4726-a727-e5b9fe2e8ee0 + status: 200 OK + code: 200 + duration: 192.521792ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/f7e1c9c7-0335-4659-9faf-6370dcf87b29/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1995 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUQrRENDQXVDZ0F3SUJBZ0l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VXhZemxqTnkwd016TTFMVFEyTlRrdE9XWmhaaTAyTXpjd1pHTm0KT0RkaU1qa3VjbVJpTG1aeUxYQmhjaTV6WTNjdVkyeHZkV1NDRERVeExqRTFMakl3Tnk0MU9ZSThjbmN0WmpkbApNV001WXpjdE1ETXpOUzAwTmpVNUxUbG1ZV1l0TmpNM01HUmpaamczWWpJNUxuSmtZaTVtY2kxd1lYSXVjMk4zCkxtTnNiM1ZraHdRem5uV3pod1F6RDg4N2h3UXpEODg3TUEwR0NTcUdTSWIzRFFFQkN3VUFBNElCQVFET0wrc3cKSW9Gd1pBdStYdnc5a3RYdERYMHhodlVJRWozd1RxQk9OQUxIamIvT0xoK2dNVDdkdHBVTU1uMmMveVgxazRiUgpMT3pjejR4QnNQamJVOC8rV1pFV3Mrb1JSeDRzUVFUSUtaajhWaXNEL21ScVdGNW9mQ1JyMFRoMnJocFUvdTNQClF1ZGhGNk9GU0Q1cDZCdmVqZDVjdjJNaXZ0RXFaVk5CNS9GS3ZieUNMSXNkUlJrTEM5NjBjMEpQeFlvM0p2ZEQKYnFGNGwyVzRLL0oyWkdaZ0xSZ2czSTFoalp2OFhwL3d4YVljYnlmVHJ6aXkxOEtRcWxMZ2NERzE2SVNFam1HagpYQ3NPTGw5MGN5SFBKaGRXbmNzRldHdnBSekFUUEFWbnlYcUlSVnZrZVZDbVl6LzhTcHNMVE5NUzFMOFVtVWxEClJVYmkxVUczYlZ2dVppb3oKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "1995" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:22:02 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 84be37d4-898b-459b-aba5-a11490944658 + status: 200 OK + code: 200 + duration: 191.23875ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/f7e1c9c7-0335-4659-9faf-6370dcf87b29 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1436 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:18:29.321883Z","encryption":{"enabled":false},"endpoint":{"id":"f1a99472-4570-4b50-b993-9501dc94f496","ip":"51.15.207.59","load_balancer":{},"name":null,"port":4690},"endpoints":[{"id":"f1a99472-4570-4b50-b993-9501dc94f496","ip":"51.15.207.59","load_balancer":{},"name":null,"port":4690}],"engine":"PostgreSQL-15","id":"f7e1c9c7-0335-4659-9faf-6370dcf87b29","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-restore","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1436" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:22:02 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a1b1b241-ff37-44a6-a7de-2f9bf63ce0e0 + status: 200 OK + code: 200 + duration: 208.11575ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/29b5958a-7e54-4427-8d91-128ff6972045 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1445 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:18:30.350486Z","encryption":{"enabled":false},"endpoint":{"id":"e50dc4da-955a-4645-9142-24c638141370","ip":"51.15.207.59","load_balancer":{},"name":null,"port":12456},"endpoints":[{"id":"e50dc4da-955a-4645-9142-24c638141370","ip":"51.15.207.59","load_balancer":{},"name":null,"port":12456}],"engine":"PostgreSQL-15","id":"29b5958a-7e54-4427-8d91-128ff6972045","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-restore-target","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1445" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:22:02 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3d4038f3-0945-4337-823c-b001e79e18e8 + status: 200 OK + code: 200 + duration: 182.570208ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/29b5958a-7e54-4427-8d91-128ff6972045/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1995 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUQrRENDQXVDZ0F3SUJBZ0lVQi9NK3NpcDJlYVVFRGVIRVp3L3B5dW96UTVzd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1Z6RUxNQWtHQTFVRUJoTUNSbEl4RGpBTUJnTlZCQWdNQl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Tnk0MU9ZSThjbmN0TWpsaQpOVGsxT0dFdE4yVTFOQzAwTkRJM0xUaGtPVEV0TVRJNFptWTJPVGN5TURRMUxuSmtZaTVtY2kxd1lYSXVjMk4zCkxtTnNiM1ZraHdRem5rOUlod1F6RDg4N2h3UXpEODg3TUEwR0NTcUdTSWIzRFFFQkN3VUFBNElCQVFBL2d4NnQKclEzbG9HMm5lOGw1djk1UVRQemJvQlpsRnBTc3BIWHphTmlYNndUSGdjQUJvQmpTemNFNFpTUm4welB2cmh6RgpHVHNJUndZdWQ5ZHhnOFZEUTFZdXFwWndWTVVtc1dubDJXRlRKR2pBcU1UM3ZrQjcwbHYrVkgwZUpIQVRlR1JGCnU5TUJwRXlaS3podDVlQzRYTC9Na2lzSnFsQ3FFbUttb1R3TFhsWFpsTzFFSUJzZ1JRZnNVUi9uS0JDdnVYN28Ka3VjbDdEN0pCWDJuWGhRemlMU3EvNkVhaDhBZ1ZJMnVaQTVTOVZyQUx3Qk0rMENjanNPeEF3dFcyaFJHeXp4NApRS045MEJ2Q2ZvVkdqVmtqUXRqQUEzVFBmQWRSWm0zTXlQN1Z4N1dra3RvWXlUdy9ZZXBWV0JhZlBjQTd5ZEFGCithVDJ0M1hzQ28vNTBZZHEKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "1995" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:22:02 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b79e2e35-848c-4704-ae67-13e1627bbcc5 + status: 200 OK + code: 200 + duration: 220.5885ms + - id: 9 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 18 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"name":"test_db"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/f7e1c9c7-0335-4659-9faf-6370dcf87b29/databases + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 53 + uncompressed: false + body: '{"managed":true,"name":"test_db","owner":"","size":0}' + headers: + Content-Length: + - "53" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:22:02 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b0562316-5e69-475b-b51f-895205852936 + status: 200 OK + code: 200 + duration: 346.267458ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/f7e1c9c7-0335-4659-9faf-6370dcf87b29 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1436 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:18:29.321883Z","encryption":{"enabled":false},"endpoint":{"id":"f1a99472-4570-4b50-b993-9501dc94f496","ip":"51.15.207.59","load_balancer":{},"name":null,"port":4690},"endpoints":[{"id":"f1a99472-4570-4b50-b993-9501dc94f496","ip":"51.15.207.59","load_balancer":{},"name":null,"port":4690}],"engine":"PostgreSQL-15","id":"f7e1c9c7-0335-4659-9faf-6370dcf87b29","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-restore","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1436" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:22:03 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c8877c79-4cf3-4495-a12b-010effbe0f02 + status: 200 OK + code: 200 + duration: 247.581959ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/f7e1c9c7-0335-4659-9faf-6370dcf87b29/databases?name=test_db&order_by=name_asc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 106 + uncompressed: false + body: '{"databases":[{"managed":true,"name":"test_db","owner":"_rdb_superadmin","size":7639855}],"total_count":1}' + headers: + Content-Length: + - "106" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:22:03 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a721c35f-46a9-433e-87f8-15e711b86a15 + status: 200 OK + code: 200 + duration: 207.954083ms + - id: 12 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 101 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"instance_id":"f7e1c9c7-0335-4659-9faf-6370dcf87b29","database_name":"test_db","name":"test-backup"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/backups + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 394 + uncompressed: false + body: '{"created_at":"2025-12-10T05:22:04.322205Z","database_name":"test_db","download_url":null,"download_url_expires_at":null,"expires_at":null,"id":"23558133-00ed-474d-bf9b-c7724e53e3a9","instance_id":"f7e1c9c7-0335-4659-9faf-6370dcf87b29","instance_name":"test-rdb-action-backup-restore","name":"test-backup","region":"fr-par","same_region":false,"size":null,"status":"creating","updated_at":null}' + headers: + Content-Length: + - "394" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:22:04 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 57261601-f745-494f-83ef-33b47b18e1fe + status: 200 OK + code: 200 + duration: 1.197587834s + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/backups/23558133-00ed-474d-bf9b-c7724e53e3a9 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 394 + uncompressed: false + body: '{"created_at":"2025-12-10T05:22:04.322205Z","database_name":"test_db","download_url":null,"download_url_expires_at":null,"expires_at":null,"id":"23558133-00ed-474d-bf9b-c7724e53e3a9","instance_id":"f7e1c9c7-0335-4659-9faf-6370dcf87b29","instance_name":"test-rdb-action-backup-restore","name":"test-backup","region":"fr-par","same_region":false,"size":null,"status":"creating","updated_at":null}' + headers: + Content-Length: + - "394" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:22:04 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 95c39fe0-57fe-4f5c-93db-47c85a674786 + status: 200 OK + code: 200 + duration: 140.249167ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/backups/23558133-00ed-474d-bf9b-c7724e53e3a9 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 416 + uncompressed: false + body: '{"created_at":"2025-12-10T05:22:04.322205Z","database_name":"test_db","download_url":null,"download_url_expires_at":null,"expires_at":null,"id":"23558133-00ed-474d-bf9b-c7724e53e3a9","instance_id":"f7e1c9c7-0335-4659-9faf-6370dcf87b29","instance_name":"test-rdb-action-backup-restore","name":"test-backup","region":"fr-par","same_region":false,"size":1255,"status":"ready","updated_at":"2025-12-10T05:22:08.039682Z"}' + headers: + Content-Length: + - "416" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:22:34 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d4850f3e-de76-4fc1-9de6-1608b1850fd6 + status: 200 OK + code: 200 + duration: 277.927708ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/backups/23558133-00ed-474d-bf9b-c7724e53e3a9 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 416 + uncompressed: false + body: '{"created_at":"2025-12-10T05:22:04.322205Z","database_name":"test_db","download_url":null,"download_url_expires_at":null,"expires_at":null,"id":"23558133-00ed-474d-bf9b-c7724e53e3a9","instance_id":"f7e1c9c7-0335-4659-9faf-6370dcf87b29","instance_name":"test-rdb-action-backup-restore","name":"test-backup","region":"fr-par","same_region":false,"size":1255,"status":"ready","updated_at":"2025-12-10T05:22:08.039682Z"}' + headers: + Content-Length: + - "416" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:22:35 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1fece519-6de5-4019-9b87-70f5551b2afd + status: 200 OK + code: 200 + duration: 243.063208ms + - id: 16 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 80 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"database_name":"test_db","instance_id":"29b5958a-7e54-4427-8d91-128ff6972045"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/backups/23558133-00ed-474d-bf9b-c7724e53e3a9/restore + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 420 + uncompressed: false + body: '{"created_at":"2025-12-10T05:22:04.322205Z","database_name":"test_db","download_url":null,"download_url_expires_at":null,"expires_at":null,"id":"23558133-00ed-474d-bf9b-c7724e53e3a9","instance_id":"f7e1c9c7-0335-4659-9faf-6370dcf87b29","instance_name":"test-rdb-action-backup-restore","name":"test-backup","region":"fr-par","same_region":false,"size":1255,"status":"restoring","updated_at":"2025-12-10T05:22:08.039682Z"}' + headers: + Content-Length: + - "420" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:22:35 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c66050a7-67ae-414a-abfd-2fccd7e5a783 + status: 200 OK + code: 200 + duration: 496.098792ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/29b5958a-7e54-4427-8d91-128ff6972045 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1449 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:18:30.350486Z","encryption":{"enabled":false},"endpoint":{"id":"e50dc4da-955a-4645-9142-24c638141370","ip":"51.15.207.59","load_balancer":{},"name":null,"port":12456},"endpoints":[{"id":"e50dc4da-955a-4645-9142-24c638141370","ip":"51.15.207.59","load_balancer":{},"name":null,"port":12456}],"engine":"PostgreSQL-15","id":"29b5958a-7e54-4427-8d91-128ff6972045","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-restore-target","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"backuping","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1449" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:22:35 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 55744ad6-be92-4267-92e4-b875578cd4ca + status: 200 OK + code: 200 + duration: 182.402917ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/29b5958a-7e54-4427-8d91-128ff6972045 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1445 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:18:30.350486Z","encryption":{"enabled":false},"endpoint":{"id":"e50dc4da-955a-4645-9142-24c638141370","ip":"51.15.207.59","load_balancer":{},"name":null,"port":12456},"endpoints":[{"id":"e50dc4da-955a-4645-9142-24c638141370","ip":"51.15.207.59","load_balancer":{},"name":null,"port":12456}],"engine":"PostgreSQL-15","id":"29b5958a-7e54-4427-8d91-128ff6972045","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-restore-target","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1445" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:23:06 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bf2ddb82-8669-47de-8858-faa20cbf5a7e + status: 200 OK + code: 200 + duration: 335.199334ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/f7e1c9c7-0335-4659-9faf-6370dcf87b29 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1436 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:18:29.321883Z","encryption":{"enabled":false},"endpoint":{"id":"f1a99472-4570-4b50-b993-9501dc94f496","ip":"51.15.207.59","load_balancer":{},"name":null,"port":4690},"endpoints":[{"id":"f1a99472-4570-4b50-b993-9501dc94f496","ip":"51.15.207.59","load_balancer":{},"name":null,"port":4690}],"engine":"PostgreSQL-15","id":"f7e1c9c7-0335-4659-9faf-6370dcf87b29","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-restore","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1436" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:23:06 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3e236d7c-e1e3-4457-adb5-e0b80ea3f4d6 + status: 200 OK + code: 200 + duration: 107.856291ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/29b5958a-7e54-4427-8d91-128ff6972045 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1445 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:18:30.350486Z","encryption":{"enabled":false},"endpoint":{"id":"e50dc4da-955a-4645-9142-24c638141370","ip":"51.15.207.59","load_balancer":{},"name":null,"port":12456},"endpoints":[{"id":"e50dc4da-955a-4645-9142-24c638141370","ip":"51.15.207.59","load_balancer":{},"name":null,"port":12456}],"engine":"PostgreSQL-15","id":"29b5958a-7e54-4427-8d91-128ff6972045","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-restore-target","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1445" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:23:06 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - aa70ac46-ba6b-4704-ae62-e6ee80ba011c + status: 200 OK + code: 200 + duration: 246.563583ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/f7e1c9c7-0335-4659-9faf-6370dcf87b29/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1995 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUQrRENDQXVDZ0F3SUJBZ0lVWkJkd21kdFF2cDBYNXFsNkhyTWVORzBSNGk0d0RRWUpLb1pJaHZjTkFRRUwKQlFBd1Z6RUxNQWtHQTFVRUJoTUNSbEl4RGpBTUJnTlZCQWdNQlZCaGNtbHpNUTR3REFZRFZRUUhEQVZRWVhKcApjekVSTUE4R0ExVUVDZ3dJVTJOaGJHVjNZWGt4RlRBVEJnTlZCQU1NRERVeExqRTFMakl3Tnk0MU9UQWVGdzB5Ck5URXlNVEF3TlRJeE1qWmFGdzB6TlRFeU1EZ3dOVEl4TWpaYU1GY3hDekFKQmdOVkJBWVRBa1pTTVE0d0RBWUQKVlFRSURBVlFZWEpwY3pFT01Bd0dBMVVFQnd3RlVHRnlhWE14RVRBUEJnTlZCQW9NQ0ZOallXeGxkMkY1TVJVdwpFd1lEVlFRRERBdzFNUzR4TlM0eU1EY3VOVGt3Z2dFaU1BMEdDU3FHU0liM0RRRUJBUVVBQTRJQkR3QXdnZ0VLCkFvSUJBUURkUUprUVIzMGsrUFl5OUxqL3AveVBaMEY5Ymt5eHR4WVNiQVhsNTFK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EQKYnFGNGwyVzRLL0oyWkdaZ0xSZ2czSTFoalp2OFhwL3d4YVljYnlmVHJ6aXkxOEtRcWxMZ2NERzE2SVNFam1HagpYQ3NPTGw5MGN5SFBKaGRXbmNzRldHdnBSekFUUEFWbnlYcUlSVnZrZVZDbVl6LzhTcHNMVE5NUzFMOFVtVWxEClJVYmkxVUczYlZ2dVppb3oKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "1995" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:23:06 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 66d0bd88-0a83-417d-a188-92c093b6a8b8 + status: 200 OK + code: 200 + duration: 147.254875ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/29b5958a-7e54-4427-8d91-128ff6972045/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1995 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUQrRENDQXVDZ0F3SUJBZ0lVQi9NK3NpcDJlYVVFRGVIRVp3L3B5dW96UTVzd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1Z6RUxNQWtHQTFVRUJoTUNSbEl4RGpBTUJnTlZCQWdNQlZCaGNtbHpNUTR3REFZRFZRUUhEQVZRWVh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FdE4yVTFOQzAwTkRJM0xUaGtPVEV0TVRJNFptWTJPVGN5TURRMUxuSmtZaTVtY2kxd1lYSXVjMk4zCkxtTnNiM1ZraHdRem5rOUlod1F6RDg4N2h3UXpEODg3TUEwR0NTcUdTSWIzRFFFQkN3VUFBNElCQVFBL2d4NnQKclEzbG9HMm5lOGw1djk1UVRQemJvQlpsRnBTc3BIWHphTmlYNndUSGdjQUJvQmpTemNFNFpTUm4welB2cmh6RgpHVHNJUndZdWQ5ZHhnOFZEUTFZdXFwWndWTVVtc1dubDJXRlRKR2pBcU1UM3ZrQjcwbHYrVkgwZUpIQVRlR1JGCnU5TUJwRXlaS3podDVlQzRYTC9Na2lzSnFsQ3FFbUttb1R3TFhsWFpsTzFFSUJzZ1JRZnNVUi9uS0JDdnVYN28Ka3VjbDdEN0pCWDJuWGhRemlMU3EvNkVhaDhBZ1ZJMnVaQTVTOVZyQUx3Qk0rMENjanNPeEF3dFcyaFJHeXp4NApRS045MEJ2Q2ZvVkdqVmtqUXRqQUEzVFBmQWRSWm0zTXlQN1Z4N1dra3RvWXlUdy9ZZXBWV0JhZlBjQTd5ZEFGCithVDJ0M1hzQ28vNTBZZHEKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "1995" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:23:06 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 176e140f-1c17-4758-ab36-f3d1a00472bf + status: 200 OK + code: 200 + duration: 174.092875ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/f7e1c9c7-0335-4659-9faf-6370dcf87b29/databases?name=test_db&order_by=name_asc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 106 + uncompressed: false + body: '{"databases":[{"managed":true,"name":"test_db","owner":"_rdb_superadmin","size":7639855}],"total_count":1}' + headers: + Content-Length: + - "106" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:23:06 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6e4e0ae8-b430-4617-b021-6238a2db53f2 + status: 200 OK + code: 200 + duration: 161.799ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/backups/23558133-00ed-474d-bf9b-c7724e53e3a9 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 416 + uncompressed: false + body: '{"created_at":"2025-12-10T05:22:04.322205Z","database_name":"test_db","download_url":null,"download_url_expires_at":null,"expires_at":null,"id":"23558133-00ed-474d-bf9b-c7724e53e3a9","instance_id":"f7e1c9c7-0335-4659-9faf-6370dcf87b29","instance_name":"test-rdb-action-backup-restore","name":"test-backup","region":"fr-par","same_region":false,"size":1255,"status":"ready","updated_at":"2025-12-10T05:22:36.976292Z"}' + headers: + Content-Length: + - "416" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:23:07 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c56560f8-8136-4cfa-9179-6960bac8d036 + status: 200 OK + code: 200 + duration: 163.690708ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/f7e1c9c7-0335-4659-9faf-6370dcf87b29 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1436 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:18:29.321883Z","encryption":{"enabled":false},"endpoint":{"id":"f1a99472-4570-4b50-b993-9501dc94f496","ip":"51.15.207.59","load_balancer":{},"name":null,"port":4690},"endpoints":[{"id":"f1a99472-4570-4b50-b993-9501dc94f496","ip":"51.15.207.59","load_balancer":{},"name":null,"port":4690}],"engine":"PostgreSQL-15","id":"f7e1c9c7-0335-4659-9faf-6370dcf87b29","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-restore","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1436" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:23:07 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2dd3d790-13d7-438e-a6dd-9b1f8e25be4e + status: 200 OK + code: 200 + duration: 559.9725ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/29b5958a-7e54-4427-8d91-128ff6972045 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1445 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:18:30.350486Z","encryption":{"enabled":false},"endpoint":{"id":"e50dc4da-955a-4645-9142-24c638141370","ip":"51.15.207.59","load_balancer":{},"name":null,"port":12456},"endpoints":[{"id":"e50dc4da-955a-4645-9142-24c638141370","ip":"51.15.207.59","load_balancer":{},"name":null,"port":12456}],"engine":"PostgreSQL-15","id":"29b5958a-7e54-4427-8d91-128ff6972045","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-restore-target","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1445" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:23:07 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 918430e3-c8c5-4b3b-b157-df8ac4a3aad8 + status: 200 OK + code: 200 + duration: 708.997834ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/f7e1c9c7-0335-4659-9faf-6370dcf87b29/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor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z1R09JUk1tbklocTZFemMzWmEyZG9WQWdNQkFBR2pnYnN3Z2Jnd2diVUdBMVVkRVFTQnJUQ0Jxb0lNCk5URXVNVFV1TWpBM0xqVTVnanh5ZHkxbU4yVXhZemxqTnkwd016TTFMVFEyTlRrdE9XWmhaaTAyTXpjd1pHTm0KT0RkaU1qa3VjbVJpTG1aeUxYQmhjaTV6WTNjdVkyeHZkV1NDRERVeExqRTFMakl3Tnk0MU9ZSThjbmN0WmpkbApNV001WXpjdE1ETXpOUzAwTmpVNUxUbG1ZV1l0TmpNM01HUmpaamczWWpJNUxuSmtZaTVtY2kxd1lYSXVjMk4zCkxtTnNiM1ZraHdRem5uV3pod1F6RDg4N2h3UXpEODg3TUEwR0NTcUdTSWIzRFFFQkN3VUFBNElCQVFET0wrc3cKSW9Gd1pBdStYdnc5a3RYdERYMHhodlVJRWozd1RxQk9OQUxIamIvT0xoK2dNVDdkdHBVTU1uMmMveVgxazRiUgpMT3pjejR4QnNQamJVOC8rV1pFV3Mrb1JSeDRzUVFUSUtaajhWaXNEL21ScVdGNW9mQ1JyMFRoMnJocFUvdTNQClF1ZGhGNk9GU0Q1cDZCdmVqZDVjdjJNaXZ0RXFaVk5CNS9GS3ZieUNMSXNkUlJrTEM5NjBjMEpQeFlvM0p2ZEQKYnFGNGwyVzRLL0oyWkdaZ0xSZ2czSTFoalp2OFhwL3d4YVljYnlmVHJ6aXkxOEtRcWxMZ2NERzE2SVNFam1HagpYQ3NPTGw5MGN5SFBKaGRXbmNzRldHdnBSekFUUEFWbnlYcUlSVnZrZVZDbVl6LzhTcHNMVE5NUzFMOFVtVWxEClJVYmkxVUczYlZ2dVppb3oKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "1995" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:23:08 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9aee4beb-6386-4c52-8877-f5c1027d957b + status: 200 OK + code: 200 + duration: 320.616041ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/29b5958a-7e54-4427-8d91-128ff6972045/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1995 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUQrRENDQXVDZ0F3SUJBZ0lVQi9NK3NpcDJlYVVFRGVIRVp3L3B5dW96UTVzd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1Z6RUxNQWtHQTFVRUJoTUNSbEl4RGpBTUJnTlZCQWdNQlZCaGNtbHpNUTR3REFZRFZRUUhEQVZRWVhKcApjekVSTUE4R0ExVUVDZ3dJVTJOaGJHVjNZWGt4RlRBVEJnTlZCQU1NRERVeExqRTFMakl3Tnk0MU9UQWVGdzB5Ck5URXlNVEF3TlRJeE5EUmFGdzB6TlRFeU1EZ3dOVEl4TkRSYU1GY3hDekFKQmdOVkJBWVRBa1pTTVE0d0RBWUQKVlFRSURBVlFZWEpwY3pFT01Bd0dBMVVFQnd3RlVHRnlhWE14RVRBUEJnTlZCQW9NQ0ZOallXeGxkMkY1TVJVdwpFd1lEVlFRRERBdzFNUzR4TlM0eU1EY3VOVGt3Z2dFaU1BMEdDU3FHU0liM0RRRUJBUVVBQTRJQkR3QXdnZ0VLCkFvSUJBUUNrWWpPRnFFaG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1R3TFhsWFpsTzFFSUJzZ1JRZnNVUi9uS0JDdnVYN28Ka3VjbDdEN0pCWDJuWGhRemlMU3EvNkVhaDhBZ1ZJMnVaQTVTOVZyQUx3Qk0rMENjanNPeEF3dFcyaFJHeXp4NApRS045MEJ2Q2ZvVkdqVmtqUXRqQUEzVFBmQWRSWm0zTXlQN1Z4N1dra3RvWXlUdy9ZZXBWV0JhZlBjQTd5ZEFGCithVDJ0M1hzQ28vNTBZZHEKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "1995" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:23:08 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b8a768b8-2925-4d7d-b19a-13e08988f2a5 + status: 200 OK + code: 200 + duration: 223.087166ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/f7e1c9c7-0335-4659-9faf-6370dcf87b29/databases?name=test_db&order_by=name_asc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 106 + uncompressed: false + body: '{"databases":[{"managed":true,"name":"test_db","owner":"_rdb_superadmin","size":7639855}],"total_count":1}' + headers: + Content-Length: + - "106" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:23:08 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3f6395f6-5065-4f54-97da-65488dff1850 + status: 200 OK + code: 200 + duration: 330.537834ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/backups/23558133-00ed-474d-bf9b-c7724e53e3a9 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 416 + uncompressed: false + body: '{"created_at":"2025-12-10T05:22:04.322205Z","database_name":"test_db","download_url":null,"download_url_expires_at":null,"expires_at":null,"id":"23558133-00ed-474d-bf9b-c7724e53e3a9","instance_id":"f7e1c9c7-0335-4659-9faf-6370dcf87b29","instance_name":"test-rdb-action-backup-restore","name":"test-backup","region":"fr-par","same_region":false,"size":1255,"status":"ready","updated_at":"2025-12-10T05:22:36.976292Z"}' + headers: + Content-Length: + - "416" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:23:08 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f29ce7cb-1cea-4320-81c2-54a8c91ffdda + status: 200 OK + code: 200 + duration: 148.993167ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/29b5958a-7e54-4427-8d91-128ff6972045/databases?name=test_db&order_by=name_asc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 106 + uncompressed: false + body: '{"databases":[{"managed":true,"name":"test_db","owner":"_rdb_superadmin","size":7713583}],"total_count":1}' + headers: + Content-Length: + - "106" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:23:08 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 05304c46-87f0-4d97-94c1-623efb10225e + status: 200 OK + code: 200 + duration: 212.191875ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/29b5958a-7e54-4427-8d91-128ff6972045 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1445 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:18:30.350486Z","encryption":{"enabled":false},"endpoint":{"id":"e50dc4da-955a-4645-9142-24c638141370","ip":"51.15.207.59","load_balancer":{},"name":null,"port":12456},"endpoints":[{"id":"e50dc4da-955a-4645-9142-24c638141370","ip":"51.15.207.59","load_balancer":{},"name":null,"port":12456}],"engine":"PostgreSQL-15","id":"29b5958a-7e54-4427-8d91-128ff6972045","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-restore-target","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1445" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:23:09 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 122f0e06-09a5-43a4-9f82-f9096eb08e03 + status: 200 OK + code: 200 + duration: 116.690791ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/f7e1c9c7-0335-4659-9faf-6370dcf87b29 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1436 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:18:29.321883Z","encryption":{"enabled":false},"endpoint":{"id":"f1a99472-4570-4b50-b993-9501dc94f496","ip":"51.15.207.59","load_balancer":{},"name":null,"port":4690},"endpoints":[{"id":"f1a99472-4570-4b50-b993-9501dc94f496","ip":"51.15.207.59","load_balancer":{},"name":null,"port":4690}],"engine":"PostgreSQL-15","id":"f7e1c9c7-0335-4659-9faf-6370dcf87b29","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-restore","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1436" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:23:09 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7b3e87ec-fafc-4cc1-9edb-345dee2c40fb + status: 200 OK + code: 200 + duration: 116.466708ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/f7e1c9c7-0335-4659-9faf-6370dcf87b29/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1995 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUQrRENDQXVDZ0F3SUJBZ0lVWkJkd21kdFF2cDBYNXFsNkhyTWVORzBSNGk0d0RRWUpLb1pJaHZjTkFRRUwKQlFBd1Z6RUxNQWtHQTFVRUJoTUNSbEl4RGpBTUJnTlZCQWdNQlZCaGNtbHpNUTR3REFZRFZRUUhEQVZRWVhKcApjekVSTUE4R0ExVUVDZ3dJVTJOaGJHVjNZWGt4RlRBVEJnTlZCQU1NRERVeExqRTFMakl3Tnk0MU9UQWVGdzB5Ck5URXlNVEF3TlRJeE1qWmFGdzB6TlRFeU1EZ3dOVEl4TWpaYU1GY3hDekFKQmdOVkJBWVRBa1pTTVE0d0RBWUQKVlFRSURBVlFZWEpwY3pFT01Bd0dBMVVFQnd3RlVHRnlhWE14RVRBUEJnTlZCQW9NQ0ZOallXeGxkMkY1TVJVdwpFd1lEVlFRRERBdzFNUzR4TlM0eU1EY3VOVGt3Z2dFaU1BMEdDU3FHU0liM0RRRUJBUVVBQTRJQkR3QXdnZ0VLCkFvSUJBUURkUUprUVIzMGsrUFl5OUxqL3AveVBaMEY5Ymt5eHR4WVNiQVhsNTFKbEdubEZJcEh2OEhJSk1NQTUKb2lDanI2c0MrR01MUXY0cWppZmhRczIwcXR1MEZzRzZ3Qk5vcG1kcWtRbE11WHlCQVRSdEh1TGpkM0hxVEVuSApINS9SWXpNMCt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dnBSekFUUEFWbnlYcUlSVnZrZVZDbVl6LzhTcHNMVE5NUzFMOFVtVWxEClJVYmkxVUczYlZ2dVppb3oKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "1995" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:23:09 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 24c3b8d7-834b-4352-8048-be73121fb146 + status: 200 OK + code: 200 + duration: 177.237166ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/29b5958a-7e54-4427-8d91-128ff6972045/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1995 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUQrRENDQXVDZ0F3SUJBZ0lVQi9NK3NpcDJlYVVFRGVIRVp3L3B5dW96UTVzd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1Z6RUxNQWtHQTFVRUJoTUNSbEl4RGpBTUJnTlZCQWdNQlZCaGNtbHpNUTR3REFZRFZRUUhEQVZRWVhKcApjekVSTUE4R0ExVUVDZ3dJVTJOaGJHVjNZWGt4RlRBVEJnTlZCQU1NRERVeExqRTFMakl3Tnk0MU9UQWVGdzB5Ck5URXlNVEF3TlRJeE5EUmFGdzB6TlRFeU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R0NTcUdTSWIzRFFFQkN3VUFBNElCQVFBL2d4NnQKclEzbG9HMm5lOGw1djk1UVRQemJvQlpsRnBTc3BIWHphTmlYNndUSGdjQUJvQmpTemNFNFpTUm4welB2cmh6RgpHVHNJUndZdWQ5ZHhnOFZEUTFZdXFwWndWTVVtc1dubDJXRlRKR2pBcU1UM3ZrQjcwbHYrVkgwZUpIQVRlR1JGCnU5TUJwRXlaS3podDVlQzRYTC9Na2lzSnFsQ3FFbUttb1R3TFhsWFpsTzFFSUJzZ1JRZnNVUi9uS0JDdnVYN28Ka3VjbDdEN0pCWDJuWGhRemlMU3EvNkVhaDhBZ1ZJMnVaQTVTOVZyQUx3Qk0rMENjanNPeEF3dFcyaFJHeXp4NApRS045MEJ2Q2ZvVkdqVmtqUXRqQUEzVFBmQWRSWm0zTXlQN1Z4N1dra3RvWXlUdy9ZZXBWV0JhZlBjQTd5ZEFGCithVDJ0M1hzQ28vNTBZZHEKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "1995" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:23:09 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b7d50726-b6f5-4cef-97d8-acddf3acd287 + status: 200 OK + code: 200 + duration: 177.564125ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/f7e1c9c7-0335-4659-9faf-6370dcf87b29/databases?name=test_db&order_by=name_asc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 106 + uncompressed: false + body: '{"databases":[{"managed":true,"name":"test_db","owner":"_rdb_superadmin","size":7639855}],"total_count":1}' + headers: + Content-Length: + - "106" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:23:09 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c4c20b1a-84fc-4c51-9ecc-a14c9e49a1db + status: 200 OK + code: 200 + duration: 226.805042ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/backups/23558133-00ed-474d-bf9b-c7724e53e3a9 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 416 + uncompressed: false + body: '{"created_at":"2025-12-10T05:22:04.322205Z","database_name":"test_db","download_url":null,"download_url_expires_at":null,"expires_at":null,"id":"23558133-00ed-474d-bf9b-c7724e53e3a9","instance_id":"f7e1c9c7-0335-4659-9faf-6370dcf87b29","instance_name":"test-rdb-action-backup-restore","name":"test-backup","region":"fr-par","same_region":false,"size":1255,"status":"ready","updated_at":"2025-12-10T05:22:36.976292Z"}' + headers: + Content-Length: + - "416" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:23:09 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b8d4026e-3330-4e7e-bb14-247e3d309614 + status: 200 OK + code: 200 + duration: 220.889584ms + - id: 38 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/backups/23558133-00ed-474d-bf9b-c7724e53e3a9 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 416 + uncompressed: false + body: '{"created_at":"2025-12-10T05:22:04.322205Z","database_name":"test_db","download_url":null,"download_url_expires_at":null,"expires_at":null,"id":"23558133-00ed-474d-bf9b-c7724e53e3a9","instance_id":"f7e1c9c7-0335-4659-9faf-6370dcf87b29","instance_name":"test-rdb-action-backup-restore","name":"test-backup","region":"fr-par","same_region":false,"size":1255,"status":"ready","updated_at":"2025-12-10T05:22:36.976292Z"}' + headers: + Content-Length: + - "416" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:23:10 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1687bbdf-afe5-4835-a725-fb6ec912d56f + status: 200 OK + code: 200 + duration: 186.686084ms + - id: 39 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/29b5958a-7e54-4427-8d91-128ff6972045 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1445 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:18:30.350486Z","encryption":{"enabled":false},"endpoint":{"id":"e50dc4da-955a-4645-9142-24c638141370","ip":"51.15.207.59","load_balancer":{},"name":null,"port":12456},"endpoints":[{"id":"e50dc4da-955a-4645-9142-24c638141370","ip":"51.15.207.59","load_balancer":{},"name":null,"port":12456}],"engine":"PostgreSQL-15","id":"29b5958a-7e54-4427-8d91-128ff6972045","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-restore-target","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1445" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:23:10 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1d369fbe-9bc7-4425-a19d-94c9887960dc + status: 200 OK + code: 200 + duration: 185.6485ms + - id: 40 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/backups/23558133-00ed-474d-bf9b-c7724e53e3a9 + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 419 + uncompressed: false + body: '{"created_at":"2025-12-10T05:22:04.322205Z","database_name":"test_db","download_url":null,"download_url_expires_at":null,"expires_at":null,"id":"23558133-00ed-474d-bf9b-c7724e53e3a9","instance_id":"f7e1c9c7-0335-4659-9faf-6370dcf87b29","instance_name":"test-rdb-action-backup-restore","name":"test-backup","region":"fr-par","same_region":false,"size":1255,"status":"deleting","updated_at":"2025-12-10T05:22:36.976292Z"}' + headers: + Content-Length: + - "419" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:23:10 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2167342c-c5cd-4e96-b13a-64c2d0d5d924 + status: 200 OK + code: 200 + duration: 261.660875ms + - id: 41 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/backups/23558133-00ed-474d-bf9b-c7724e53e3a9 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 136 + uncompressed: false + body: '{"message":"resource is not found","resource":"database_backup","resource_id":"23558133-00ed-474d-bf9b-c7724e53e3a9","type":"not_found"}' + headers: + Content-Length: + - "136" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:23:10 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3ea2b329-f010-4a93-ba7f-9001851ff0c2 + status: 404 Not Found + code: 404 + duration: 35.443625ms + - id: 42 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/29b5958a-7e54-4427-8d91-128ff6972045 + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1448 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:18:30.350486Z","encryption":{"enabled":false},"endpoint":{"id":"e50dc4da-955a-4645-9142-24c638141370","ip":"51.15.207.59","load_balancer":{},"name":null,"port":12456},"endpoints":[{"id":"e50dc4da-955a-4645-9142-24c638141370","ip":"51.15.207.59","load_balancer":{},"name":null,"port":12456}],"engine":"PostgreSQL-15","id":"29b5958a-7e54-4427-8d91-128ff6972045","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-restore-target","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"deleting","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1448" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:23:10 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1c079bf1-d9fd-4202-9b05-ea00a9848fe8 + status: 200 OK + code: 200 + duration: 330.893667ms + - id: 43 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/29b5958a-7e54-4427-8d91-128ff6972045 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1448 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:18:30.350486Z","encryption":{"enabled":false},"endpoint":{"id":"e50dc4da-955a-4645-9142-24c638141370","ip":"51.15.207.59","load_balancer":{},"name":null,"port":12456},"endpoints":[{"id":"e50dc4da-955a-4645-9142-24c638141370","ip":"51.15.207.59","load_balancer":{},"name":null,"port":12456}],"engine":"PostgreSQL-15","id":"29b5958a-7e54-4427-8d91-128ff6972045","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-restore-target","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"deleting","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1448" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:23:10 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1d95d9b7-9503-4a38-a9a2-6eb588cc6937 + status: 200 OK + code: 200 + duration: 194.301375ms + - id: 44 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/f7e1c9c7-0335-4659-9faf-6370dcf87b29 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1436 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:18:29.321883Z","encryption":{"enabled":false},"endpoint":{"id":"f1a99472-4570-4b50-b993-9501dc94f496","ip":"51.15.207.59","load_balancer":{},"name":null,"port":4690},"endpoints":[{"id":"f1a99472-4570-4b50-b993-9501dc94f496","ip":"51.15.207.59","load_balancer":{},"name":null,"port":4690}],"engine":"PostgreSQL-15","id":"f7e1c9c7-0335-4659-9faf-6370dcf87b29","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-restore","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1436" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:23:10 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9650d2b5-9b1d-4757-98db-cdbe2c373f50 + status: 200 OK + code: 200 + duration: 213.029459ms + - id: 45 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/f7e1c9c7-0335-4659-9faf-6370dcf87b29/databases/test_db + 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, 10 Dec 2025 05:23:11 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b4a15323-5d8f-4924-b7c7-721267ae47f7 + status: 204 No Content + code: 204 + duration: 232.764125ms + - id: 46 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/f7e1c9c7-0335-4659-9faf-6370dcf87b29 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1436 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:18:29.321883Z","encryption":{"enabled":false},"endpoint":{"id":"f1a99472-4570-4b50-b993-9501dc94f496","ip":"51.15.207.59","load_balancer":{},"name":null,"port":4690},"endpoints":[{"id":"f1a99472-4570-4b50-b993-9501dc94f496","ip":"51.15.207.59","load_balancer":{},"name":null,"port":4690}],"engine":"PostgreSQL-15","id":"f7e1c9c7-0335-4659-9faf-6370dcf87b29","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-restore","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1436" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:23:11 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9987ff74-6745-40f2-89f1-91832e4eead9 + status: 200 OK + code: 200 + duration: 168.470916ms + - id: 47 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/f7e1c9c7-0335-4659-9faf-6370dcf87b29 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1436 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:18:29.321883Z","encryption":{"enabled":false},"endpoint":{"id":"f1a99472-4570-4b50-b993-9501dc94f496","ip":"51.15.207.59","load_balancer":{},"name":null,"port":4690},"endpoints":[{"id":"f1a99472-4570-4b50-b993-9501dc94f496","ip":"51.15.207.59","load_balancer":{},"name":null,"port":4690}],"engine":"PostgreSQL-15","id":"f7e1c9c7-0335-4659-9faf-6370dcf87b29","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-restore","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1436" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:23:11 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7b3afda9-122b-4d34-8f84-e2b9116402e2 + status: 200 OK + code: 200 + duration: 115.335333ms + - id: 48 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/f7e1c9c7-0335-4659-9faf-6370dcf87b29 + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1439 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:18:29.321883Z","encryption":{"enabled":false},"endpoint":{"id":"f1a99472-4570-4b50-b993-9501dc94f496","ip":"51.15.207.59","load_balancer":{},"name":null,"port":4690},"endpoints":[{"id":"f1a99472-4570-4b50-b993-9501dc94f496","ip":"51.15.207.59","load_balancer":{},"name":null,"port":4690}],"engine":"PostgreSQL-15","id":"f7e1c9c7-0335-4659-9faf-6370dcf87b29","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-restore","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"deleting","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1439" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:23:11 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e577a73e-b74d-49e1-acc3-da9fc8950fed + status: 200 OK + code: 200 + duration: 285.701ms + - id: 49 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/f7e1c9c7-0335-4659-9faf-6370dcf87b29 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1439 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T05:18:29.321883Z","encryption":{"enabled":false},"endpoint":{"id":"f1a99472-4570-4b50-b993-9501dc94f496","ip":"51.15.207.59","load_balancer":{},"name":null,"port":4690},"endpoints":[{"id":"f1a99472-4570-4b50-b993-9501dc94f496","ip":"51.15.207.59","load_balancer":{},"name":null,"port":4690}],"engine":"PostgreSQL-15","id":"f7e1c9c7-0335-4659-9faf-6370dcf87b29","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-backup-restore","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"deleting","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1439" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:23:11 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5c1cccc5-9bd3-4c0d-8e11-779588c68b8e + status: 200 OK + code: 200 + duration: 228.669625ms + - id: 50 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/29b5958a-7e54-4427-8d91-128ff6972045 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 129 + uncompressed: false + body: '{"message":"resource is not found","resource":"instance","resource_id":"29b5958a-7e54-4427-8d91-128ff6972045","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:23:41 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 97e90dbc-a53d-4cfb-9e2b-ac3672e7908c + status: 404 Not Found + code: 404 + duration: 157.303958ms + - id: 51 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/f7e1c9c7-0335-4659-9faf-6370dcf87b29 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 129 + uncompressed: false + body: '{"message":"resource is not found","resource":"instance","resource_id":"f7e1c9c7-0335-4659-9faf-6370dcf87b29","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 05:23:42 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 06d51144-f7e0-4c1d-942b-5545b4fc3609 + status: 404 Not Found + code: 404 + duration: 67.322667ms diff --git a/internal/services/rdb/testdata/action-rdb-instance-certificate-renew-basic.cassette.yaml b/internal/services/rdb/testdata/action-rdb-instance-certificate-renew-basic.cassette.yaml new file mode 100644 index 000000000..cbb5e17fc --- /dev/null +++ b/internal/services/rdb/testdata/action-rdb-instance-certificate-renew-basic.cassette.yaml @@ -0,0 +1,838 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 406 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","name":"test-rdb-action-certificate-renew","engine":"PostgreSQL-15","user_name":"my_initial_user","password":"thiZ_is_v\u0026ry_s3cret","node_type":"db-dev-s","is_ha_cluster":false,"disable_backup":true,"tags":null,"init_settings":null,"volume_type":"lssd","volume_size":0,"init_endpoints":null,"backup_same_region":false,"encryption":{"enabled":false}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 968 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T09:08:24.567437Z","encryption":{"enabled":false},"endpoint":null,"endpoints":[],"engine":"PostgreSQL-15","id":"9e028cf7-060d-493a-8bca-55666773cc67","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-certificate-renew","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "968" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:08:24 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5c0bc357-e79b-457f-83e3-894c7cb9d112 + status: 200 OK + code: 200 + duration: 768.028375ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9e028cf7-060d-493a-8bca-55666773cc67 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 968 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T09:08:24.567437Z","encryption":{"enabled":false},"endpoint":null,"endpoints":[],"engine":"PostgreSQL-15","id":"9e028cf7-060d-493a-8bca-55666773cc67","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-certificate-renew","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "968" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:08:25 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 475a85e3-9b96-482b-9e8e-f053c9371828 + status: 200 OK + code: 200 + duration: 198.426291ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9e028cf7-060d-493a-8bca-55666773cc67 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1441 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T09:08:24.567437Z","encryption":{"enabled":false},"endpoint":{"id":"623615a5-bf87-4563-9361-ea51f68f08a3","ip":"51.159.204.71","load_balancer":{},"name":null,"port":17877},"endpoints":[{"id":"623615a5-bf87-4563-9361-ea51f68f08a3","ip":"51.159.204.71","load_balancer":{},"name":null,"port":17877}],"engine":"PostgreSQL-15","id":"9e028cf7-060d-493a-8bca-55666773cc67","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-certificate-renew","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1441" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:11:56 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f7918307-bed9-43e5-b2ac-0bdb7fe13ec1 + status: 200 OK + code: 200 + duration: 198.635958ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9e028cf7-060d-493a-8bca-55666773cc67/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 2007 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUQvRENDQXVTZ0F3SUJBZ0lVVWw2c284SUNSNitpK0g0OUpYMXFCSmlQWDBnd0RRW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5UWTIKTmpjM00yTmpOamN1Y21SaUxtWnlMWEJoY2k1elkzY3VZMnh2ZFdTQ0RUVXhMakUxT1M0eU1EUXVOekdDUEhKMwpMVGxsTURJNFkyWTNMVEEyTUdRdE5Ea3pZUzA0WW1OaExUVTFOalkyTnpjelkyTTJOeTV5WkdJdVpuSXRjR0Z5CkxuTmpkeTVqYkc5MVpJY0VvNnl0YzRjRU01L01SNGNFTTUvTVJ6QU5CZ2txaGtpRzl3MEJBUXNGQUFPQ0FRRUEKcjBVaHp6cjV6UVhRYis5aVJwQ0RSMVJzUGRRVWlrNFh6TGVlZ0tNa0lObVkyRWMrUVpRL2M4SmZ0MFpZZHYvMgpLVEN3Z2tyck9XRVhWS045akxnY3F5RWg2dHAyR0g0dXZQVnBKZFR4NmJwV016T2FZY3VWSFpMckN4Z3dSUGhkCnR4M3h6dEJFWDZKSk5hcHB1dC9YVmpwc2VxS0FHY3BCdVo1U2lsNFNNR1pBd3NuaFlXdDdhUGk3ekNZRi93VnAKdy8wcnBSTXd2Vnk0cmVQamdScnd5U0FVUjNDYVlHdVNDSktQZ0pzbjhXT3FEZ0tSZ3ROMGkvM2VYazNmMEs0aQpRRjFFYTF2L0U1OXcyOXMyaG9GZ0J0VzByMHZ6TGhWMTRrQW82b3pSczRRdDgrSTF1VFEyNWo1bzZOTlZsS1ZmCjFTUHRHZ2ZQeUt6aE03S1R6N0lJV3c9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "2007" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:11:56 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 413f2b2c-f0a1-4d6c-bcda-2c847845bdd4 + status: 200 OK + code: 200 + duration: 160.588917ms + - id: 4 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 2 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9e028cf7-060d-493a-8bca-55666773cc67/renew-certificate + 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: + - Tue, 09 Dec 2025 09:11:57 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c4cc87b5-460d-40f1-89c6-0bb99fc95d46 + status: 204 No Content + code: 204 + duration: 335.396291ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9e028cf7-060d-493a-8bca-55666773cc67 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1441 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T09:08:24.567437Z","encryption":{"enabled":false},"endpoint":{"id":"623615a5-bf87-4563-9361-ea51f68f08a3","ip":"51.159.204.71","load_balancer":{},"name":null,"port":17877},"endpoints":[{"id":"623615a5-bf87-4563-9361-ea51f68f08a3","ip":"51.159.204.71","load_balancer":{},"name":null,"port":17877}],"engine":"PostgreSQL-15","id":"9e028cf7-060d-493a-8bca-55666773cc67","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-certificate-renew","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1441" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:11:57 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c6f4e6ae-251e-44e3-92f0-decc5e089103 + status: 200 OK + code: 200 + duration: 163.343083ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9e028cf7-060d-493a-8bca-55666773cc67 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1441 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T09:08:24.567437Z","encryption":{"enabled":false},"endpoint":{"id":"623615a5-bf87-4563-9361-ea51f68f08a3","ip":"51.159.204.71","load_balancer":{},"name":null,"port":17877},"endpoints":[{"id":"623615a5-bf87-4563-9361-ea51f68f08a3","ip":"51.159.204.71","load_balancer":{},"name":null,"port":17877}],"engine":"PostgreSQL-15","id":"9e028cf7-060d-493a-8bca-55666773cc67","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-certificate-renew","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1441" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:11:57 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 81848a1d-c772-49ea-81e9-2ccada1ad04b + status: 200 OK + code: 200 + duration: 176.580667ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9e028cf7-060d-493a-8bca-55666773cc67/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1843 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURwRENDQW95Z0F3SUJBZ0lVVXBUZ28zdzI5MzhCTkx4TFNucDBCNGlQUTk4d0RRWUpLb1pJaHZjTkFRRUwKQlFBd1dERUxNQWtHQTFVRUJoTUNSbEl4RGpBTUJnTlZCQWdNQlZCaGNtbHpNUTR3REFZRFZRUUhEQVZRWVhKcApjekVSTUE4R0ExVUVDZ3dJVTJOaGJHVjNZWGt4RmpBVUJnTlZCQU1NRFRVeExqRTFPUzR5TURRdU56RXdIaGNOCk1qVXhNakE1TURreE1UVTNXaGNOTXpVeE1qQTNNRGt4TVRVM1dqQllNUXN3Q1FZRFZRUUdFd0pHVWpFT01Bd0cKQTFVRUNBd0ZVR0Z5YVhNeERqQU1CZ05WQkFjTUJWQmhjbWx6TVJFd0R3WURWUVFLREFoVFkyRnNaWGRoZVRFVwpNQlFHQTFVRUF3d05OVEV1TVRVNUxqSXdOQzQzTVRDQ0FTSXdEUVlKS29aSWh2Y05BUUVCQlFBRGdnRVBBRENDCkFRb0NnZ0VCQUpnRk92UThwNDVyWFJLWEIyS1ovMUY0aDIzY1ZZYlgwSkh6Y25PMjVraVRrVEVKSndVMEtaenYKRDlSbmd3dkpNUzlaVUNwekdwVmxIODR1NDZ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tLS0tLQo=","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "1843" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:11:57 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 26603760-5b27-487c-bbab-ff4d7414e751 + status: 200 OK + code: 200 + duration: 148.2595ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9e028cf7-060d-493a-8bca-55666773cc67 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1441 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T09:08:24.567437Z","encryption":{"enabled":false},"endpoint":{"id":"623615a5-bf87-4563-9361-ea51f68f08a3","ip":"51.159.204.71","load_balancer":{},"name":null,"port":17877},"endpoints":[{"id":"623615a5-bf87-4563-9361-ea51f68f08a3","ip":"51.159.204.71","load_balancer":{},"name":null,"port":17877}],"engine":"PostgreSQL-15","id":"9e028cf7-060d-493a-8bca-55666773cc67","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-certificate-renew","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1441" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:11:58 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8700a06d-ad2a-43f1-bc9e-be8243c92164 + status: 200 OK + code: 200 + duration: 224.028375ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9e028cf7-060d-493a-8bca-55666773cc67/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1843 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURwRENDQW95Z0F3SUJBZ0lVVXBUZ28zdzI5MzhCTkx4TFNucDBCNGlQUTk4d0RRWUpLb1pJaHZjTkFRRUwKQlFBd1dERUxNQWtHQTFVRUJoTUNSbEl4RGpBTUJnTlZCQWdNQlZCaGNtb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QTRJQkFRQXFydkorc3pGK0xYTUh6dUZVTU9UR1ErMHNjbmIyWG9hMHpGOUJXa0c4Z1Jmcldpb2lYMktwCmZTcnFVa2FGZGluY0pZaW05MmV3MG5ucmZPSDhCd3JzQ3BoZUhSeXN2cE5GdkcvaUlZUWZsdHAvbGpnd1V2WFMKTFFPdlN2Mm8waStBK2taUEV5SmR3ZGhHb0Zva3gzenovZlBnSU9IYmhPSnlodXhNczhlN21ZeThEcks0UjVPYwpoRjJYcDlnMXFHazVzVExuc1dTdmZ3akMwYk96TkE5ZVJuczhUU2x0bEZKRytSZE4vWGorYWw1TWxDMUkrR1pDClc0MFZrdFRqeUs4K3piWnFOQmI0ZXhadFA0ZVdsNkVVRDlvUjkyeXJ5eGdCaUVPMHJYZC9pb3QrWjEzQTNLK3kKRmFqUUE4QmNoOHpxcXlkYlkweW92Y2FXajI5VE9KSGEKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "1843" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:11:58 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6caacfe9-7317-458f-b018-17bb6760df26 + status: 200 OK + code: 200 + duration: 155.861833ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9e028cf7-060d-493a-8bca-55666773cc67 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1441 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T09:08:24.567437Z","encryption":{"enabled":false},"endpoint":{"id":"623615a5-bf87-4563-9361-ea51f68f08a3","ip":"51.159.204.71","load_balancer":{},"name":null,"port":17877},"endpoints":[{"id":"623615a5-bf87-4563-9361-ea51f68f08a3","ip":"51.159.204.71","load_balancer":{},"name":null,"port":17877}],"engine":"PostgreSQL-15","id":"9e028cf7-060d-493a-8bca-55666773cc67","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-certificate-renew","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1441" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:11:58 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 92f614df-8764-40fc-b412-9c0a555e92b4 + status: 200 OK + code: 200 + duration: 279.856583ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9e028cf7-060d-493a-8bca-55666773cc67 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1441 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T09:08:24.567437Z","encryption":{"enabled":false},"endpoint":{"id":"623615a5-bf87-4563-9361-ea51f68f08a3","ip":"51.159.204.71","load_balancer":{},"name":null,"port":17877},"endpoints":[{"id":"623615a5-bf87-4563-9361-ea51f68f08a3","ip":"51.159.204.71","load_balancer":{},"name":null,"port":17877}],"engine":"PostgreSQL-15","id":"9e028cf7-060d-493a-8bca-55666773cc67","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-certificate-renew","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1441" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:11:59 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2ea63fc7-bef4-4ed3-af8b-82ef11d1c96d + status: 200 OK + code: 200 + duration: 416.2875ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9e028cf7-060d-493a-8bca-55666773cc67/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1843 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURwRENDQW95Z0F3SUJBZ0lVVXBUZ28zdzI5MzhCTkx4TFNucDBCNGlQUTk4d0RRWUpLb1pJaHZjTkFRRUwKQlFBd1dERUxNQWtHQTFVRUJoTUNSbEl4RGpBTUJnTlZCQWdNQlZCaGNtbHpNUTR3REFZRFZRUUhEQVZRWVhKcApjekVSTUE4R0ExVUVDZ3dJVTJOaGJHVjNZWGt4RmpBVUJnTlZCQU1NRFRVeExqRTFPUzR5TURRdU56RXdIaGNOCk1qVXhNakE1TURreE1UVTNXaGNOTXpVeE1qQTNNRGt4TVRVM1dqQllNUXN3Q1FZRFZRUUdFd0pHVWpFT01Bd0cKQTFVRUNBd0ZVR0Z5YVhNeERqQU1CZ05WQkFjTUJWQmhjbWx6TVJFd0R3WURWUVFLREFoVFkyRnNaWGRoZVRFVwpNQlFHQT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czhUU2x0bEZKRytSZE4vWGorYWw1TWxDMUkrR1pDClc0MFZrdFRqeUs4K3piWnFOQmI0ZXhadFA0ZVdsNkVVRDlvUjkyeXJ5eGdCaUVPMHJYZC9pb3QrWjEzQTNLK3kKRmFqUUE4QmNoOHpxcXlkYlkweW92Y2FXajI5VE9KSGEKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "1843" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:11:59 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0a3286bd-b1e4-4963-b359-040d70bf4072 + status: 200 OK + code: 200 + duration: 170.288167ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9e028cf7-060d-493a-8bca-55666773cc67 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1441 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T09:08:24.567437Z","encryption":{"enabled":false},"endpoint":{"id":"623615a5-bf87-4563-9361-ea51f68f08a3","ip":"51.159.204.71","load_balancer":{},"name":null,"port":17877},"endpoints":[{"id":"623615a5-bf87-4563-9361-ea51f68f08a3","ip":"51.159.204.71","load_balancer":{},"name":null,"port":17877}],"engine":"PostgreSQL-15","id":"9e028cf7-060d-493a-8bca-55666773cc67","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-certificate-renew","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1441" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:12:00 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8ba38280-f4b9-493d-a9e4-250040c65c3d + status: 200 OK + code: 200 + duration: 272.859417ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9e028cf7-060d-493a-8bca-55666773cc67 + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1444 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T09:08:24.567437Z","encryption":{"enabled":false},"endpoint":{"id":"623615a5-bf87-4563-9361-ea51f68f08a3","ip":"51.159.204.71","load_balancer":{},"name":null,"port":17877},"endpoints":[{"id":"623615a5-bf87-4563-9361-ea51f68f08a3","ip":"51.159.204.71","load_balancer":{},"name":null,"port":17877}],"engine":"PostgreSQL-15","id":"9e028cf7-060d-493a-8bca-55666773cc67","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-certificate-renew","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"deleting","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1444" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:12:00 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 97c29e96-34fc-40ea-a159-238c26f3bb17 + status: 200 OK + code: 200 + duration: 440.661375ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9e028cf7-060d-493a-8bca-55666773cc67 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1444 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T09:08:24.567437Z","encryption":{"enabled":false},"endpoint":{"id":"623615a5-bf87-4563-9361-ea51f68f08a3","ip":"51.159.204.71","load_balancer":{},"name":null,"port":17877},"endpoints":[{"id":"623615a5-bf87-4563-9361-ea51f68f08a3","ip":"51.159.204.71","load_balancer":{},"name":null,"port":17877}],"engine":"PostgreSQL-15","id":"9e028cf7-060d-493a-8bca-55666773cc67","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-certificate-renew","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"deleting","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1444" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:12:00 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 848306bf-d5a4-4a3f-ae63-968d5776e607 + status: 200 OK + code: 200 + duration: 231.610917ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9e028cf7-060d-493a-8bca-55666773cc67 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 129 + uncompressed: false + body: '{"message":"resource is not found","resource":"instance","resource_id":"9e028cf7-060d-493a-8bca-55666773cc67","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:12:31 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 873d6011-0e5f-4bd6-af94-85118be3fb81 + status: 404 Not Found + code: 404 + duration: 99.515ms diff --git a/internal/services/rdb/testdata/action-rdb-instance-log-prepare-basic.cassette.yaml b/internal/services/rdb/testdata/action-rdb-instance-log-prepare-basic.cassette.yaml new file mode 100644 index 000000000..ad63bc4cb --- /dev/null +++ b/internal/services/rdb/testdata/action-rdb-instance-log-prepare-basic.cassette.yaml @@ -0,0 +1,840 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 400 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","name":"test-rdb-action-log-prepare","engine":"PostgreSQL-15","user_name":"my_initial_user","password":"thiZ_is_v\u0026ry_s3cret","node_type":"db-dev-s","is_ha_cluster":false,"disable_backup":true,"tags":null,"init_settings":null,"volume_type":"lssd","volume_size":0,"init_endpoints":null,"backup_same_region":false,"encryption":{"enabled":false}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 962 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T09:15:06.708658Z","encryption":{"enabled":false},"endpoint":null,"endpoints":[],"engine":"PostgreSQL-15","id":"cb94cdc9-68ad-4597-9d15-e45554ed75c8","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-log-prepare","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "962" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:15:06 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a48a2559-ad6f-411d-b94f-d09dd166632d + status: 200 OK + code: 200 + duration: 798.405042ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/cb94cdc9-68ad-4597-9d15-e45554ed75c8 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 962 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T09:15:06.708658Z","encryption":{"enabled":false},"endpoint":null,"endpoints":[],"engine":"PostgreSQL-15","id":"cb94cdc9-68ad-4597-9d15-e45554ed75c8","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-log-prepare","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "962" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:15:07 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5d92b800-0241-40d3-ac83-922c5c940467 + status: 200 OK + code: 200 + duration: 191.837ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/cb94cdc9-68ad-4597-9d15-e45554ed75c8 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1435 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T09:15:06.708658Z","encryption":{"enabled":false},"endpoint":{"id":"5ab25403-8ae4-4414-be54-75b14fca6151","ip":"51.159.204.71","load_balancer":{},"name":null,"port":26929},"endpoints":[{"id":"5ab25403-8ae4-4414-be54-75b14fca6151","ip":"51.159.204.71","load_balancer":{},"name":null,"port":26929}],"engine":"PostgreSQL-15","id":"cb94cdc9-68ad-4597-9d15-e45554ed75c8","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-log-prepare","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1435" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:18:39 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - cb39baca-bc34-4dec-8c11-bb3a9094b43e + status: 200 OK + code: 200 + duration: 233.178292ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/cb94cdc9-68ad-4597-9d15-e45554ed75c8/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 2007 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUQvRENDQXVTZ0F3SUJBZ0lVUWtoVkw4aE5KeXN5YitEcmFIZk1wMXZ5elJVd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1dERUxNQWtHQTFVRUJoTUNSbEl4RGpBTUJnTlZCQWdNQlZCaGNtbHpNUTR3REFZRFZRUUhEQVZRWVhKcApjekVSTUE4R0ExVUVDZ3dJVTJOaGJHVjNZWGt4RmpBVUJn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Wa056VmpPQzV5WkdJdVpuSXRjR0Z5CkxuTmpkeTVqYkc5MVpJY0VNNTVqRVljRU01L01SNGNFTTUvTVJ6QU5CZ2txaGtpRzl3MEJBUXNGQUFPQ0FRRUEKSERTbGtncUZQVjc2QlhLVDVJM0VEVGwwbVRwQlJBVkdXb1NJRTk2Z0NZb0o2ajlROXJCNlJYcnVHcU9Id2wyLwp5N29yWHdCT3VYZW04bDJvZEU2NXlVSVJWZGc2VzBTem1WYy9YODdqSGRiTGpuVmtWMk9qR3QreEc3VkN0Qk14Ck8zdnNJSnozSnNISGo5d3hNU0drMVFmTHBCNFRaYlNrSklnRDMrazdpZTNJUDJzSUVaYVBKTUEwVFZoV2R5K0MKWTR4S0o1ZGNFNk5ZM1AwdEszbHowdy8xMW5HYTlvc0hDQ1c3NWZrNEc2Qy94bXhPN0ZjTjhzMDMyTlVQU1ZycgpLYTNJdG1ITHJPS1hVRkFFdnJFd25HRElTSm9tUUlZNkFjcGNBNjZRTmE0RU5sZ25SN2x0UmRlYzdNbksxZWlHCmpHVmtwUkthUGY3MDF0cjdUUGNKeUE9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "2007" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:18:39 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - eb80265a-2e1b-4a48-8693-1a8122680733 + status: 200 OK + code: 200 + duration: 140.491541ms + - id: 4 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 2 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/cb94cdc9-68ad-4597-9d15-e45554ed75c8/prepare-logs + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 232 + uncompressed: false + body: '{"instance_logs":[{"created_at":"2025-12-09T09:18:39.613944Z","download_url":null,"expires_at":"2025-12-10T09:18:39.613944Z","id":"becc1fd2-75ec-468d-a8e9-8b4030fcb9dd","node_name":"78307941","region":"fr-par","status":"creating"}]}' + headers: + Content-Length: + - "232" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:18:39 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 21a541d1-6c15-48e7-8e8f-79be35d89fac + status: 200 OK + code: 200 + duration: 363.054792ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/cb94cdc9-68ad-4597-9d15-e45554ed75c8 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1435 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T09:15:06.708658Z","encryption":{"enabled":false},"endpoint":{"id":"5ab25403-8ae4-4414-be54-75b14fca6151","ip":"51.159.204.71","load_balancer":{},"name":null,"port":26929},"endpoints":[{"id":"5ab25403-8ae4-4414-be54-75b14fca6151","ip":"51.159.204.71","load_balancer":{},"name":null,"port":26929}],"engine":"PostgreSQL-15","id":"cb94cdc9-68ad-4597-9d15-e45554ed75c8","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-log-prepare","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1435" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:18:40 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 778db087-68a3-424b-ae4a-b5510d5c8a45 + status: 200 OK + code: 200 + duration: 188.014708ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/cb94cdc9-68ad-4597-9d15-e45554ed75c8 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1435 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T09:15:06.708658Z","encryption":{"enabled":false},"endpoint":{"id":"5ab25403-8ae4-4414-be54-75b14fca6151","ip":"51.159.204.71","load_balancer":{},"name":null,"port":26929},"endpoints":[{"id":"5ab25403-8ae4-4414-be54-75b14fca6151","ip":"51.159.204.71","load_balancer":{},"name":null,"port":26929}],"engine":"PostgreSQL-15","id":"cb94cdc9-68ad-4597-9d15-e45554ed75c8","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-log-prepare","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1435" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:18:40 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 25e12c99-e412-4fb7-bba6-28638f334af6 + status: 200 OK + code: 200 + duration: 211.64275ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/cb94cdc9-68ad-4597-9d15-e45554ed75c8/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 2007 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUQvRENDQXVTZ0F3SUJBZ0lVUWtoVkw4aE5KeXN5YitEcmFIZk1wMXZ5elJVd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1dERUxNQWtHQTFVRUJoTUNSbEl4RGpBTUJnTlZCQWdNQlZCaGNtbHpNUTR3REFZRFZRUUhEQVZRWVhKcApjekVSTUE4R0ExVUVDZ3dJVTJOaGJHVjNZWGt4RmpBVUJnTlZCQU1NRFRVeExqRTFPUzR5TURRdU56RXdIaGNOCk1qVXhNakE1TURreE9ERTVXaGNOTXpVeE1qQTNNRGt4T0RFNVdqQllNUXN3Q1FZRFZRUUdFd0pHVWpFT01Bd0cKQTFVRUNBd0ZVR0Z5YVhNeERqQU1CZ05WQkFjTUJWQmhjbWx6TVJFd0R3WURWUVFLREFoVFkyRnNaWGRoZVRFVwpNQlFHQTFVRUF3d05OVEV1TVRVNUxqSXdOQzQzTVRDQ0FTSXdEUVlKS29aSWh2Y05BUUVCQlFBRGdnRVBBRENDCkFRb0NnZ0VCQUxObnN6b1F6WGpFVWJkQ1krWWM0dmhCV2JydnZxdXZrK3NzYjVsZVF4QUhBR3VTdU9uVDZLUGYKZFBRK0orSVZoR080ZUpYckNPd0JPRkNjeVZCVDJ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WZrNEc2Qy94bXhPN0ZjTjhzMDMyTlVQU1ZycgpLYTNJdG1ITHJPS1hVRkFFdnJFd25HRElTSm9tUUlZNkFjcGNBNjZRTmE0RU5sZ25SN2x0UmRlYzdNbksxZWlHCmpHVmtwUkthUGY3MDF0cjdUUGNKeUE9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "2007" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:18:40 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9045d0de-1427-4780-bef0-4b6a12fbadc9 + status: 200 OK + code: 200 + duration: 203.432958ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/cb94cdc9-68ad-4597-9d15-e45554ed75c8 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1435 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T09:15:06.708658Z","encryption":{"enabled":false},"endpoint":{"id":"5ab25403-8ae4-4414-be54-75b14fca6151","ip":"51.159.204.71","load_balancer":{},"name":null,"port":26929},"endpoints":[{"id":"5ab25403-8ae4-4414-be54-75b14fca6151","ip":"51.159.204.71","load_balancer":{},"name":null,"port":26929}],"engine":"PostgreSQL-15","id":"cb94cdc9-68ad-4597-9d15-e45554ed75c8","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-log-prepare","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1435" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:18:41 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - de688d82-5f45-4579-b37b-9604133f4dfc + status: 200 OK + code: 200 + duration: 305.383ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/cb94cdc9-68ad-4597-9d15-e45554ed75c8/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 2007 + uncompressed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BYU9CdlRDQnVqQ0J0d1lEVlIwUkJJR3ZNSUdzCmdnMDFNUzR4TlRrdU1qQTBMamN4Z2p4eWR5MWpZamswWTJSak9TMDJPR0ZrTFRRMU9UY3RPV1F4TlMxbE5EVTEKTlRSbFpEYzFZemd1Y21SaUxtWnlMWEJoY2k1elkzY3VZMnh2ZFdTQ0RUVXhMakUxT1M0eU1EUXVOekdDUEhKMwpMV05pT1RSalpHTTVMVFk0WVdRdE5EVTVOeTA1WkRFMUxXVTBOVFUxTkdWa056VmpPQzV5WkdJdVpuSXRjR0Z5CkxuTmpkeTVqYkc5MVpJY0VNNTVqRVljRU01L01SNGNFTTUvTVJ6QU5CZ2txaGtpRzl3MEJBUXNGQUFPQ0FRRUEKSERTbGtncUZQVjc2QlhLVDVJM0VEVGwwbVRwQlJBVkdXb1NJRTk2Z0NZb0o2ajlROXJCNlJYcnVHcU9Id2wyLwp5N29yWHdCT3VYZW04bDJvZEU2NXlVSVJWZGc2VzBTem1WYy9YODdqSGRiTGpuVmtWMk9qR3QreEc3VkN0Qk14Ck8zdnNJSnozSnNISGo5d3hNU0drMVFmTHBCNFRaYlNrSklnRDMrazdpZTNJUDJzSUVaYVBKTUEwVFZoV2R5K0MKWTR4S0o1ZGNFNk5ZM1AwdEszbHowdy8xMW5HYTlvc0hDQ1c3NWZrNEc2Qy94bXhPN0ZjTjhzMDMyTlVQU1ZycgpLYTNJdG1ITHJPS1hVRkFFdnJFd25HRElTSm9tUUlZNkFjcGNBNjZRTmE0RU5sZ25SN2x0UmRlYzdNbksxZWlHCmpHVmtwUkthUGY3MDF0cjdUUGNKeUE9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "2007" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:18:41 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1445672a-6c05-4c70-ac25-b8d97635b7f7 + status: 200 OK + code: 200 + duration: 169.924417ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/cb94cdc9-68ad-4597-9d15-e45554ed75c8 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1435 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T09:15:06.708658Z","encryption":{"enabled":false},"endpoint":{"id":"5ab25403-8ae4-4414-be54-75b14fca6151","ip":"51.159.204.71","load_balancer":{},"name":null,"port":26929},"endpoints":[{"id":"5ab25403-8ae4-4414-be54-75b14fca6151","ip":"51.159.204.71","load_balancer":{},"name":null,"port":26929}],"engine":"PostgreSQL-15","id":"cb94cdc9-68ad-4597-9d15-e45554ed75c8","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-log-prepare","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1435" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:18:41 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - fbd59037-1f66-475f-987c-f104247c5b94 + status: 200 OK + code: 200 + duration: 170.377833ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/cb94cdc9-68ad-4597-9d15-e45554ed75c8 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1435 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T09:15:06.708658Z","encryption":{"enabled":false},"endpoint":{"id":"5ab25403-8ae4-4414-be54-75b14fca6151","ip":"51.159.204.71","load_balancer":{},"name":null,"port":26929},"endpoints":[{"id":"5ab25403-8ae4-4414-be54-75b14fca6151","ip":"51.159.204.71","load_balancer":{},"name":null,"port":26929}],"engine":"PostgreSQL-15","id":"cb94cdc9-68ad-4597-9d15-e45554ed75c8","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-log-prepare","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1435" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:18:42 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1e0399af-71a1-46f9-bf6c-bcb4a9b19113 + status: 200 OK + code: 200 + duration: 318.273458ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/cb94cdc9-68ad-4597-9d15-e45554ed75c8/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 2007 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUQvRENDQXVTZ0F3SUJBZ0lVUWtoVkw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JSak9TMDJPR0ZrTFRRMU9UY3RPV1F4TlMxbE5EVTEKTlRSbFpEYzFZemd1Y21SaUxtWnlMWEJoY2k1elkzY3VZMnh2ZFdTQ0RUVXhMakUxT1M0eU1EUXVOekdDUEhKMwpMV05pT1RSalpHTTVMVFk0WVdRdE5EVTVOeTA1WkRFMUxXVTBOVFUxTkdWa056VmpPQzV5WkdJdVpuSXRjR0Z5CkxuTmpkeTVqYkc5MVpJY0VNNTVqRVljRU01L01SNGNFTTUvTVJ6QU5CZ2txaGtpRzl3MEJBUXNGQUFPQ0FRRUEKSERTbGtncUZQVjc2QlhLVDVJM0VEVGwwbVRwQlJBVkdXb1NJRTk2Z0NZb0o2ajlROXJCNlJYcnVHcU9Id2wyLwp5N29yWHdCT3VYZW04bDJvZEU2NXlVSVJWZGc2VzBTem1WYy9YODdqSGRiTGpuVmtWMk9qR3QreEc3VkN0Qk14Ck8zdnNJSnozSnNISGo5d3hNU0drMVFmTHBCNFRaYlNrSklnRDMrazdpZTNJUDJzSUVaYVBKTUEwVFZoV2R5K0MKWTR4S0o1ZGNFNk5ZM1AwdEszbHowdy8xMW5HYTlvc0hDQ1c3NWZrNEc2Qy94bXhPN0ZjTjhzMDMyTlVQU1ZycgpLYTNJdG1ITHJPS1hVRkFFdnJFd25HRElTSm9tUUlZNkFjcGNBNjZRTmE0RU5sZ25SN2x0UmRlYzdNbksxZWlHCmpHVmtwUkthUGY3MDF0cjdUUGNKeUE9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "2007" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:18:42 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d275b6a4-1d57-4cc0-a457-9d14372f8251 + status: 200 OK + code: 200 + duration: 165.062375ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/cb94cdc9-68ad-4597-9d15-e45554ed75c8 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1435 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T09:15:06.708658Z","encryption":{"enabled":false},"endpoint":{"id":"5ab25403-8ae4-4414-be54-75b14fca6151","ip":"51.159.204.71","load_balancer":{},"name":null,"port":26929},"endpoints":[{"id":"5ab25403-8ae4-4414-be54-75b14fca6151","ip":"51.159.204.71","load_balancer":{},"name":null,"port":26929}],"engine":"PostgreSQL-15","id":"cb94cdc9-68ad-4597-9d15-e45554ed75c8","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-log-prepare","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1435" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:18:42 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b9516796-a64b-4e38-95b9-2fca8f018aa7 + status: 200 OK + code: 200 + duration: 188.590792ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/cb94cdc9-68ad-4597-9d15-e45554ed75c8 + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1438 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T09:15:06.708658Z","encryption":{"enabled":false},"endpoint":{"id":"5ab25403-8ae4-4414-be54-75b14fca6151","ip":"51.159.204.71","load_balancer":{},"name":null,"port":26929},"endpoints":[{"id":"5ab25403-8ae4-4414-be54-75b14fca6151","ip":"51.159.204.71","load_balancer":{},"name":null,"port":26929}],"engine":"PostgreSQL-15","id":"cb94cdc9-68ad-4597-9d15-e45554ed75c8","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-log-prepare","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"deleting","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1438" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:18:43 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 97b5bcf2-1278-4dde-aea4-e18f27e7fb94 + status: 200 OK + code: 200 + duration: 394.21325ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/cb94cdc9-68ad-4597-9d15-e45554ed75c8 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1438 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T09:15:06.708658Z","encryption":{"enabled":false},"endpoint":{"id":"5ab25403-8ae4-4414-be54-75b14fca6151","ip":"51.159.204.71","load_balancer":{},"name":null,"port":26929},"endpoints":[{"id":"5ab25403-8ae4-4414-be54-75b14fca6151","ip":"51.159.204.71","load_balancer":{},"name":null,"port":26929}],"engine":"PostgreSQL-15","id":"cb94cdc9-68ad-4597-9d15-e45554ed75c8","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-log-prepare","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"deleting","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1438" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:18:43 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 01637a6e-947b-452c-99e8-8ecac0da93e9 + status: 200 OK + code: 200 + duration: 127.840458ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/cb94cdc9-68ad-4597-9d15-e45554ed75c8 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 129 + uncompressed: false + body: '{"message":"resource is not found","resource":"instance","resource_id":"cb94cdc9-68ad-4597-9d15-e45554ed75c8","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:19:13 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e77446f2-3903-4734-8e3d-b16dfba791d7 + status: 404 Not Found + code: 404 + duration: 154.414917ms diff --git a/internal/services/rdb/testdata/action-rdb-instance-logs-purge-basic.cassette.yaml b/internal/services/rdb/testdata/action-rdb-instance-logs-purge-basic.cassette.yaml new file mode 100644 index 000000000..4c5b1c447 --- /dev/null +++ b/internal/services/rdb/testdata/action-rdb-instance-logs-purge-basic.cassette.yaml @@ -0,0 +1,789 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 399 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","name":"test-rdb-action-logs-purge","engine":"PostgreSQL-15","user_name":"my_initial_user","password":"thiZ_is_v\u0026ry_s3cret","node_type":"db-dev-s","is_ha_cluster":false,"disable_backup":true,"tags":null,"init_settings":null,"volume_type":"lssd","volume_size":0,"init_endpoints":null,"backup_same_region":false,"encryption":{"enabled":false}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 961 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T09:09:15.688730Z","encryption":{"enabled":false},"endpoint":null,"endpoints":[],"engine":"PostgreSQL-15","id":"125f017f-acf5-4e3e-8a8b-fe221daefc6d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-logs-purge","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "961" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:09:15 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 908c1274-f3e7-46cd-8948-8fe20f1a481c + status: 200 OK + code: 200 + duration: 631.812916ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/125f017f-acf5-4e3e-8a8b-fe221daefc6d + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 961 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T09:09:15.688730Z","encryption":{"enabled":false},"endpoint":null,"endpoints":[],"engine":"PostgreSQL-15","id":"125f017f-acf5-4e3e-8a8b-fe221daefc6d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-logs-purge","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "961" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:09:16 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7ad7fae3-f447-4edf-8aa9-ed08bb256edb + status: 200 OK + code: 200 + duration: 173.025875ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/125f017f-acf5-4e3e-8a8b-fe221daefc6d + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1434 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T09:09:15.688730Z","encryption":{"enabled":false},"endpoint":{"id":"5f048ea0-dff2-413c-98da-3f72ae34e1fe","ip":"51.159.24.123","load_balancer":{},"name":null,"port":15774},"endpoints":[{"id":"5f048ea0-dff2-413c-98da-3f72ae34e1fe","ip":"51.159.24.123","load_balancer":{},"name":null,"port":15774}],"engine":"PostgreSQL-15","id":"125f017f-acf5-4e3e-8a8b-fe221daefc6d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-logs-purge","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1434" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:12:17 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f4323581-40d5-4af1-8e2c-84bfd00d301c + status: 200 OK + code: 200 + duration: 331.457125ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/125f017f-acf5-4e3e-8a8b-fe221daefc6d/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 2007 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUQvRENDQXVTZ0F3SUJBZ0lVQTlVK3FlbjFNTG4yVStBbGc2S2hCQVg2eGJNd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1dERUxNQWtHQTFVRUJoTUNSbEl4RGpBTUJnTlZCQWdNQlZCaGNtbHpNUTR3REFZRFZRUUhEQVZRWVhKcApjekVSTUE4R0ExVUVDZ3dJVTJOaGJHVjNZWGt4RmpBVUJnTlZCQU1NRFRVeExqRTFPUzR5TkM0eE1qTXdIaGNOCk1qVXhNakE1TURreE1UVXhXaGNOTXpVeE1qQTNNRGt4TVRVeFdqQllNUXN3Q1FZRFZRUUdFd0pHVWpFT01Bd0cKQTFVRUNBd0ZVR0Z5YVhNeERqQU1CZ05WQkFjTUJWQmhjbWx6TVJFd0R3WURWUVFLREFoVFkyRnNaWGRoZVRFVwpNQlFHQTFVRUF3d05OVEV1TVRVNUxqSTBMakV5TXpDQ0FTSXdEUVlKS29aSWh2Y05BUUVCQlFBRGdnRVBBRENDCkFRb0NnZ0VCQU1pSGxrZVRIWktZdmZXMEtyZmgrWHFjTVVtUEtoQkx0NGhTa2dVb0Nkam9oV1NCTjJOU1hsSUoKeDhtNmxTMnNseHVITytkeGwv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UlFpT01xbU5aNGwwUERHb3lMS0JRY1d1M3FlUnJoWkJJWVZ3UEdCV1lnNQpDa1JJaFlrRXRjLzdqNWN2c2Q1L0ZLbHJhTFRubjVlMnVQRGtpSXJLd3hUSU5EUmhnUUhkZFVDSTdrOVdJLzNLClhJa3BTRW5tN2UvWXRmdkVqRm84aUE9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "2007" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:12:17 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9c80139e-adec-4abb-8575-601b5d9ad143 + status: 200 OK + code: 200 + duration: 111.541083ms + - id: 4 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 2 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/125f017f-acf5-4e3e-8a8b-fe221daefc6d/purge-logs + 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: + - Tue, 09 Dec 2025 09:12:18 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 69c6803d-3a95-4ba3-ad7f-936f9f929a66 + status: 204 No Content + code: 204 + duration: 196.263417ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/125f017f-acf5-4e3e-8a8b-fe221daefc6d + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1434 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T09:09:15.688730Z","encryption":{"enabled":false},"endpoint":{"id":"5f048ea0-dff2-413c-98da-3f72ae34e1fe","ip":"51.159.24.123","load_balancer":{},"name":null,"port":15774},"endpoints":[{"id":"5f048ea0-dff2-413c-98da-3f72ae34e1fe","ip":"51.159.24.123","load_balancer":{},"name":null,"port":15774}],"engine":"PostgreSQL-15","id":"125f017f-acf5-4e3e-8a8b-fe221daefc6d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-logs-purge","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1434" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:12:18 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6145604e-c7a4-47d9-a669-c3b0ea5425c4 + status: 200 OK + code: 200 + duration: 252.846125ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/125f017f-acf5-4e3e-8a8b-fe221daefc6d/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 2007 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUQvRENDQXVTZ0F3SUJBZ0lVQTlVK3FlbjFNTG4yVStBbGc2S2hCQVg2eGJNd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1dERUxNQWtHQTFVRUJoTUNSbEl4RGpBTUJnTlZCQWdNQlZCaGNtbHpNUTR3REFZRFZRUUhEQVZRWVhKcApjekVSTUE4R0ExVUVDZ3dJVTJOaGJHVjNZWGt4RmpBVUJnTlZCQU1NRFRVeExqRTFPUzR5TkM0eE1qTXdIaGNOCk1qVXhNakE1TURreE1UVXhXaGNOTXpVeE1qQTNNRGt4TVRVeFdqQllNUXN3Q1FZRFZRUUdFd0pHVWpFT01Bd0cKQTFVRUNBd0ZVR0Z5YVhNeERqQU1CZ05WQkFjTUJWQ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aWpjTm1pdGRhenUrRDY4bnNQU1hSKy9MV3NIeAp5NjRzamEvZ3crS2NsbXhjVTN6YU8vOFZTRDlIM2xnMHptVjRXelBZaC91RW50UU9MQzM0c0ZpMWw0Z0NIWDBJCnhZNmVUR1NYWWlrZUczOEphRERTbXp6b3Fzd3F4ajAwMU1lMUVXUjg5YUg1MmRzTjlYeS9Mbm9KZnFSMnM4S2kKNjJaaHhsSWIwejJSUXk4Q0xZbk5yUlFpT01xbU5aNGwwUERHb3lMS0JRY1d1M3FlUnJoWkJJWVZ3UEdCV1lnNQpDa1JJaFlrRXRjLzdqNWN2c2Q1L0ZLbHJhTFRubjVlMnVQRGtpSXJLd3hUSU5EUmhnUUhkZFVDSTdrOVdJLzNLClhJa3BTRW5tN2UvWXRmdkVqRm84aUE9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "2007" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:12:18 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 41de4d00-689f-4f3d-84c3-1a8da29c970c + status: 200 OK + code: 200 + duration: 77.331292ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/125f017f-acf5-4e3e-8a8b-fe221daefc6d + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1434 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T09:09:15.688730Z","encryption":{"enabled":false},"endpoint":{"id":"5f048ea0-dff2-413c-98da-3f72ae34e1fe","ip":"51.159.24.123","load_balancer":{},"name":null,"port":15774},"endpoints":[{"id":"5f048ea0-dff2-413c-98da-3f72ae34e1fe","ip":"51.159.24.123","load_balancer":{},"name":null,"port":15774}],"engine":"PostgreSQL-15","id":"125f017f-acf5-4e3e-8a8b-fe221daefc6d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-logs-purge","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1434" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:12:19 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ae0e6b31-cc0a-48c7-b4ac-73310fc3476e + status: 200 OK + code: 200 + duration: 208.020084ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/125f017f-acf5-4e3e-8a8b-fe221daefc6d/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 2007 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUQvRENDQXVTZ0F3SUJBZ0lVQTlVK3FlbjFNTG4yVStBbGc2S2hCQVg2eGJNd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1dERUxNQWtHQTFVRUJoTUNSbEl4RGpBTUJnTlZCQWdNQlZCaGNtbHpNUTR3REFZRFZRUUhEQVZRWVhKcApjekVSTUE4R0ExVUVDZ3dJVTJOaGJHVjNZWGt4RmpBVUJnTlZCQU1NRFRVeExqRTFPUzR5TkM0eE1qTXdIaGNOCk1qVXhNakE1TURreE1UVXhXaGNOTXpVeE1qQTNNRGt4TVRVeFdqQllNUXN3Q1FZRFZRUUdFd0pHVWpFT01Bd0cKQTFVRUNBd0ZVR0Z5YVhNeERqQU1CZ05WQkFjTUJWQmhjbWx6TVJFd0R3WURWUVFLREFoVFkyRnNaWGRoZVRFVwpNQlFHQTFVRUF3d05OVEV1TVRVNUxqSTBMakV5TXpDQ0FTSXdEUVlKS29aSWh2Y05BUUVCQlFBRGdnRVBBRENDCkFRb0NnZ0VCQU1pSGxrZVRIWktZdmZXMEtyZmgrWHFjTVVtUEtoQkx0NGhTa2dVb0Nkam9oV1NCTjJOU1hsSUoKeDhtNmxTMnNseHVITytkeGwvS0dSZTIwRUp5Qmc1NFRSY1MrL2VETGZwYnNZa1kzSk9WU3AvNlNDQjEzVG91ZQpTd1NBNCtObTZPd3N4Z1pJVi9PRURwV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hTFRubjVlMnVQRGtpSXJLd3hUSU5EUmhnUUhkZFVDSTdrOVdJLzNLClhJa3BTRW5tN2UvWXRmdkVqRm84aUE9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "2007" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:12:19 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2dfc71c9-c4cc-4122-a975-1718248ef026 + status: 200 OK + code: 200 + duration: 181.768667ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/125f017f-acf5-4e3e-8a8b-fe221daefc6d + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1434 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T09:09:15.688730Z","encryption":{"enabled":false},"endpoint":{"id":"5f048ea0-dff2-413c-98da-3f72ae34e1fe","ip":"51.159.24.123","load_balancer":{},"name":null,"port":15774},"endpoints":[{"id":"5f048ea0-dff2-413c-98da-3f72ae34e1fe","ip":"51.159.24.123","load_balancer":{},"name":null,"port":15774}],"engine":"PostgreSQL-15","id":"125f017f-acf5-4e3e-8a8b-fe221daefc6d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-logs-purge","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1434" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:12:19 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9489b787-2086-425b-b245-80837ec0df7e + status: 200 OK + code: 200 + duration: 152.064042ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/125f017f-acf5-4e3e-8a8b-fe221daefc6d + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1434 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T09:09:15.688730Z","encryption":{"enabled":false},"endpoint":{"id":"5f048ea0-dff2-413c-98da-3f72ae34e1fe","ip":"51.159.24.123","load_balancer":{},"name":null,"port":15774},"endpoints":[{"id":"5f048ea0-dff2-413c-98da-3f72ae34e1fe","ip":"51.159.24.123","load_balancer":{},"name":null,"port":15774}],"engine":"PostgreSQL-15","id":"125f017f-acf5-4e3e-8a8b-fe221daefc6d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-logs-purge","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1434" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:12:20 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7167f2f7-5f23-4cb8-bbb2-133dcd5d0503 + status: 200 OK + code: 200 + duration: 256.728458ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/125f017f-acf5-4e3e-8a8b-fe221daefc6d/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 2007 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUQvRENDQXVTZ0F3SUJBZ0lVQTlVK3FlbjFNTG4yVStBbGc2S2hCQVg2eGJNd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1dERUxNQWtHQTFVRUJoTUNSbEl4RGpBTUJnTlZCQWdNQlZCaGNtbHpNUTR3REFZRFZRUUhEQVZRWVhKcApjekVSTUE4R0ExVUVDZ3dJVTJOaGJHVjNZWGt4RmpBVUJnTlZCQU1NRFRVeExqRTFPUzR5TkM0eE1qTXdIaGNOCk1qVXhNakE1TURreE1UVXhXaGNOTXpVeE1qQTNNRGt4TVRVeFdqQllNUXN3Q1FZRFZRUUdFd0pHVWpFT01Bd0cKQTFVRUNBd0ZVR0Z5YVhNeERqQU1CZ05WQkFjTUJWQmhjbWx6TVJFd0R3WURWUVFLREFoVFkyRnNaWGRoZVRFVwpNQlFHQTFVRUF3d05OVEV1TVRVNUxqSTBMakV5TXpDQ0FTSXdEUVlKS29aSWh2Y05BUUVCQlFBRGdnRVBBRENDCkFRb0NnZ0VCQU1pSGxrZVRIWktZdmZXMEtyZmgrWHFjTVVtUEtoQkx0NGhTa2dVb0Nkam9oV1NCTjJOU1hsSUoKeDhtNmxTMnNseHVITytkeGwvS0dSZTIwRUp5Qmc1NFRSY1MrL2VETGZwYnNZa1kzSk9WU3AvNlNDQjEzVG91ZQpTd1NBNCtObTZPd3N4Z1pJVi9PRURwV01QMldKQ1hTejl4ZzJvK0R1cU14T3lTSkNpNUxSVUxJY1NWUlNPVksxCjM2R3lMYWNjT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UvWXRmdkVqRm84aUE9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "2007" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:12:20 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f9361713-31a6-42d6-bbaa-a1faee401585 + status: 200 OK + code: 200 + duration: 178.971083ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/125f017f-acf5-4e3e-8a8b-fe221daefc6d + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1434 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T09:09:15.688730Z","encryption":{"enabled":false},"endpoint":{"id":"5f048ea0-dff2-413c-98da-3f72ae34e1fe","ip":"51.159.24.123","load_balancer":{},"name":null,"port":15774},"endpoints":[{"id":"5f048ea0-dff2-413c-98da-3f72ae34e1fe","ip":"51.159.24.123","load_balancer":{},"name":null,"port":15774}],"engine":"PostgreSQL-15","id":"125f017f-acf5-4e3e-8a8b-fe221daefc6d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-logs-purge","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1434" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:12:20 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8f09e985-69fd-459a-b79b-a32fd985e0c4 + status: 200 OK + code: 200 + duration: 209.186542ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/125f017f-acf5-4e3e-8a8b-fe221daefc6d + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1437 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T09:09:15.688730Z","encryption":{"enabled":false},"endpoint":{"id":"5f048ea0-dff2-413c-98da-3f72ae34e1fe","ip":"51.159.24.123","load_balancer":{},"name":null,"port":15774},"endpoints":[{"id":"5f048ea0-dff2-413c-98da-3f72ae34e1fe","ip":"51.159.24.123","load_balancer":{},"name":null,"port":15774}],"engine":"PostgreSQL-15","id":"125f017f-acf5-4e3e-8a8b-fe221daefc6d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-logs-purge","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"deleting","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1437" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:12:21 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1a106aaf-ce37-441e-a52f-04d5d2a7f9f0 + status: 200 OK + code: 200 + duration: 304.869542ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/125f017f-acf5-4e3e-8a8b-fe221daefc6d + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1437 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T09:09:15.688730Z","encryption":{"enabled":false},"endpoint":{"id":"5f048ea0-dff2-413c-98da-3f72ae34e1fe","ip":"51.159.24.123","load_balancer":{},"name":null,"port":15774},"endpoints":[{"id":"5f048ea0-dff2-413c-98da-3f72ae34e1fe","ip":"51.159.24.123","load_balancer":{},"name":null,"port":15774}],"engine":"PostgreSQL-15","id":"125f017f-acf5-4e3e-8a8b-fe221daefc6d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-logs-purge","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"deleting","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1437" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:12:21 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0cfb2a7e-0849-4f79-8342-56f3ec67e4fa + status: 200 OK + code: 200 + duration: 111.706958ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/125f017f-acf5-4e3e-8a8b-fe221daefc6d + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 129 + uncompressed: false + body: '{"message":"resource is not found","resource":"instance","resource_id":"125f017f-acf5-4e3e-8a8b-fe221daefc6d","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 09:12:51 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bd9d27a5-b941-49d4-887e-9683a5f24dd7 + status: 404 Not Found + code: 404 + duration: 164.49025ms diff --git a/internal/services/rdb/testdata/action-rdb-instance-snapshot-basic.cassette.yaml b/internal/services/rdb/testdata/action-rdb-instance-snapshot-basic.cassette.yaml new file mode 100644 index 000000000..2dd2c0ae7 --- /dev/null +++ b/internal/services/rdb/testdata/action-rdb-instance-snapshot-basic.cassette.yaml @@ -0,0 +1,889 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 409 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","name":"test-rdb-action-snapshot","engine":"PostgreSQL-15","user_name":"my_initial_user","password":"thiZ_is_v\u0026ry_s3cret","node_type":"db-dev-s","is_ha_cluster":false,"disable_backup":true,"tags":null,"init_settings":null,"volume_type":"sbs_5k","volume_size":10000000000,"init_endpoints":null,"backup_same_region":false,"encryption":{"enabled":false}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 961 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T04:43:14.348581Z","encryption":{"enabled":false},"endpoint":null,"endpoints":[],"engine":"PostgreSQL-15","id":"fa5ef655-c68c-460d-9e01-35197529d5bf","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-snapshot","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "961" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 04:43:14 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 420c9da1-d128-4313-8a83-449dd9a9eab3 + status: 200 OK + code: 200 + duration: 868.984833ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/fa5ef655-c68c-460d-9e01-35197529d5bf + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 961 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T04:43:14.348581Z","encryption":{"enabled":false},"endpoint":null,"endpoints":[],"engine":"PostgreSQL-15","id":"fa5ef655-c68c-460d-9e01-35197529d5bf","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-snapshot","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "961" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 04:43:14 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f0a7b9ca-1b3a-407a-ad87-8ba0c42a80c3 + status: 200 OK + code: 200 + duration: 183.463ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/fa5ef655-c68c-460d-9e01-35197529d5bf + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1434 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T04:43:14.348581Z","encryption":{"enabled":false},"endpoint":{"id":"055fd4b2-bce5-4c52-b7f7-a8ff84f7f23a","ip":"51.159.11.111","load_balancer":{},"name":null,"port":23993},"endpoints":[{"id":"055fd4b2-bce5-4c52-b7f7-a8ff84f7f23a","ip":"51.159.11.111","load_balancer":{},"name":null,"port":23993}],"engine":"PostgreSQL-15","id":"fa5ef655-c68c-460d-9e01-35197529d5bf","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-snapshot","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1434" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 04:47:17 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9c6fb19c-0d22-4060-98c1-8cbe5ab9c165 + status: 200 OK + code: 200 + duration: 208.06725ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/fa5ef655-c68c-460d-9e01-35197529d5bf/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 2007 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUQvRENDQXVTZ0F3SUJBZ0lVT2FwaHBEZGNMNVpDblVnSzc2SzVkOVJUSk80d0RRWUpLb1pJaHZjTkFRRUwKQlFBd1dERUxNQWtHQTFVRUJoTUNSbEl4RGpBTUJnTlZCQWdNQlZCaGNtbHpNUTR3REFZRFZRUUhEQVZRWVhKcApjekVSTUE4R0ExVUVDZ3dJVTJOaGJHVjNZWGt4RmpBVUJnTlZCQU1NRFRVeExqRTFPUzR4TVM0eE1URXdIaGNOCk1qVXhNakV3TURRME5qVTJXaGNOTXpVeE1qQTRNRFE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txaGtpRzl3MEJBUXNGQUFPQ0FRRUEKTzhQNjBnSjRtVHBpWXFQc1AwN2p4ZklWaHEzdUYzQlRuVTZzVldhaDFYdGRpUW5sazgrcmgwd0UzcUdBT3FuNQpiZlUwRUlnekUxc3ZTOFF0QXR2WGtDTTZReExJeHZpaklHYThIQllmSUVKazlHQitBZll1WTQ4RFNUcGxRc0tLCnNSNW5tK0lZeUdWRGNYTFZ2RUVYTkFudWdiTUlVcjhBQll5c0VNSC9TNXJRN3BpU0FGb1huTVFLa0RWdld6VWwKRUxPTEM3cW1McmxwVTZQWDhmZHA5R3VPNWhiYmthUnQ4cXdNU2JYSXVNMHFKREhoaDlsOGJwWEdGVFprTGRrbwp1QmM0aVlhSkZSWnFxeWJZRTBaWUhLNWEvQXA4R0lucUJQUGhBbFJvY3Vqd0lPVWtvejJoaGRKL0J2QkV6UjdTCjE0eFhUa2lldmFOcWx5NTVQZFBzZlE9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "2007" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 04:47:17 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7dbe7d27-399c-4707-ae18-f2bf23133f0f + status: 200 OK + code: 200 + duration: 171.298167ms + - id: 4 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 26 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"name":"tf-rdb-snapshot"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/fa5ef655-c68c-460d-9e01-35197529d5bf/snapshots + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 389 + uncompressed: false + body: '{"created_at":"2025-12-10T04:47:18.417271Z","expires_at":"2026-12-10T04:47:18.417271Z","id":"763bdd4f-cda0-4dec-8d1f-21759fb368fa","instance_id":"fa5ef655-c68c-460d-9e01-35197529d5bf","instance_name":"test-rdb-action-snapshot","name":"tf-rdb-snapshot","node_type":"db-dev-s","region":"fr-par","size":null,"status":"creating","updated_at":null,"volume_type":{"class":"sbs","type":"sbs_5k"}}' + headers: + Content-Length: + - "389" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 04:47:18 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a2fee2b9-ab6e-4d24-a638-df695c9edf6f + status: 200 OK + code: 200 + duration: 851.599583ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/snapshots/763bdd4f-cda0-4dec-8d1f-21759fb368fa + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 389 + uncompressed: false + body: '{"created_at":"2025-12-10T04:47:18.417271Z","expires_at":"2026-12-10T04:47:18.417271Z","id":"763bdd4f-cda0-4dec-8d1f-21759fb368fa","instance_id":"fa5ef655-c68c-460d-9e01-35197529d5bf","instance_name":"test-rdb-action-snapshot","name":"tf-rdb-snapshot","node_type":"db-dev-s","region":"fr-par","size":null,"status":"creating","updated_at":null,"volume_type":{"class":"sbs","type":"sbs_5k"}}' + headers: + Content-Length: + - "389" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 04:47:18 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4dc31713-2396-4107-85e2-49d4ed9a76ca + status: 200 OK + code: 200 + duration: 158.514792ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/snapshots/763bdd4f-cda0-4dec-8d1f-21759fb368fa + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 418 + uncompressed: false + body: '{"created_at":"2025-12-10T04:47:18.417271Z","expires_at":"2026-12-10T04:47:18.417271Z","id":"763bdd4f-cda0-4dec-8d1f-21759fb368fa","instance_id":"fa5ef655-c68c-460d-9e01-35197529d5bf","instance_name":"test-rdb-action-snapshot","name":"tf-rdb-snapshot","node_type":"db-dev-s","region":"fr-par","size":10000000000,"status":"ready","updated_at":"2025-12-10T04:47:27.472444Z","volume_type":{"class":"sbs","type":"sbs_5k"}}' + headers: + Content-Length: + - "418" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 04:47:49 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a9cddab4-f29b-4f84-9985-34f9c7fb264c + status: 200 OK + code: 200 + duration: 182.606542ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/fa5ef655-c68c-460d-9e01-35197529d5bf + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1434 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T04:43:14.348581Z","encryption":{"enabled":false},"endpoint":{"id":"055fd4b2-bce5-4c52-b7f7-a8ff84f7f23a","ip":"51.159.11.111","load_balancer":{},"name":null,"port":23993},"endpoints":[{"id":"055fd4b2-bce5-4c52-b7f7-a8ff84f7f23a","ip":"51.159.11.111","load_balancer":{},"name":null,"port":23993}],"engine":"PostgreSQL-15","id":"fa5ef655-c68c-460d-9e01-35197529d5bf","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-snapshot","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1434" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 04:47:49 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7856024a-654b-4bd6-ba0d-5b226d0c20c5 + status: 200 OK + code: 200 + duration: 266.133458ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/fa5ef655-c68c-460d-9e01-35197529d5bf/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 2007 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUQvRENDQXVTZ0F3SUJBZ0lVT2FwaHBEZGNMNVpDblVnSzc2SzVkOVJUSk80d0RRWUpLb1pJaHZjTkFRRUwKQlFBd1dERUxNQWtHQTFVRUJoTUNSbEl4RGpBTUJnTlZCQWdNQlZCaGNtbHpNUTR3REFZRFZRUUhEQVZRWVhKcApjekVSTUE4R0ExVUVDZ3dJVTJOaGJHVjNZWGt4RmpBVUJnTlZCQU1NRFRVeExqRTFPUzR4TVM0eE1URXdIaGNOCk1qVXhNakV3TURRME5qVTJXaGNOTXpVeE1qQTRNRFEwTmpVMldqQllNUXN3Q1FZRFZRUUdFd0pHVWpFT01Bd0cKQTF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XFQc1AwN2p4ZklWaHEzdUYzQlRuVTZzVldhaDFYdGRpUW5sazgrcmgwd0UzcUdBT3FuNQpiZlUwRUlnekUxc3ZTOFF0QXR2WGtDTTZReExJeHZpaklHYThIQllmSUVKazlHQitBZll1WTQ4RFNUcGxRc0tLCnNSNW5tK0lZeUdWRGNYTFZ2RUVYTkFudWdiTUlVcjhBQll5c0VNSC9TNXJRN3BpU0FGb1huTVFLa0RWdld6VWwKRUxPTEM3cW1McmxwVTZQWDhmZHA5R3VPNWhiYmthUnQ4cXdNU2JYSXVNMHFKREhoaDlsOGJwWEdGVFprTGRrbwp1QmM0aVlhSkZSWnFxeWJZRTBaWUhLNWEvQXA4R0lucUJQUGhBbFJvY3Vqd0lPVWtvejJoaGRKL0J2QkV6UjdTCjE0eFhUa2lldmFOcWx5NTVQZFBzZlE9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "2007" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 04:47:50 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ef3d153e-b15b-4ecc-b255-c3720ad360a1 + status: 200 OK + code: 200 + duration: 145.584666ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/fa5ef655-c68c-460d-9e01-35197529d5bf + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1434 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T04:43:14.348581Z","encryption":{"enabled":false},"endpoint":{"id":"055fd4b2-bce5-4c52-b7f7-a8ff84f7f23a","ip":"51.159.11.111","load_balancer":{},"name":null,"port":23993},"endpoints":[{"id":"055fd4b2-bce5-4c52-b7f7-a8ff84f7f23a","ip":"51.159.11.111","load_balancer":{},"name":null,"port":23993}],"engine":"PostgreSQL-15","id":"fa5ef655-c68c-460d-9e01-35197529d5bf","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-snapshot","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1434" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 04:47:50 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 366f0900-0f20-49d7-9d68-6b7bc527d042 + status: 200 OK + code: 200 + duration: 212.851708ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/fa5ef655-c68c-460d-9e01-35197529d5bf/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 2007 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUQvRENDQXVTZ0F3SUJBZ0lVT2FwaHBEZGNMNVpDblVnSzc2SzVkOVJUSk80d0RRWUpLb1pJaHZjTkFRRUwKQlFBd1dERUxNQWtHQTFVRUJoTUNSbEl4RGpBTUJnTlZCQWdNQlZCaGNtbHpNUTR3REFZRFZRUUhEQVZRWVhKcApjekVSTUE4R0ExVUVDZ3dJVTJOaGJHVjNZWGt4RmpBVUJnTlZCQU1NRFRVeExqRTFPUzR4TVM0eE1URXdIaGNOCk1qVXhNakV3TURRME5qVTJXaGNOTXpVeE1qQTRNRFEwTmpVMldqQllNUXN3Q1FZRFZRUUdFd0pHVWpFT01Bd0cKQTFVRUNBd0ZVR0Z5YVhNeERqQU1CZ05WQkFjTUJWQmhjbWx6TVJFd0R3WURWUVFLREFoVFkyRnNaWGRoZVRFVwpNQlFHQTFVRUF3d05OVEV1TVRVNUxqRXhMakV4TVRDQ0FTSXdEUVlKS29aSWh2Y05BUUVCQlFBRGdnRVBBRENDCkFRb0NnZ0VCQU85aTM3WE9sZU82QzN1cGFpeGRITjRCR0RFTUJVUFB4UXFTT3FKaURqUFV4S0pxUjdLKy80VloKV2poQzZPVHlhWTA2anE4ZDJnUXdvOHUzOU1KY1BpYmZSWVFXUVhjQVpldFFhaUN3WWp1NGNNaW1kTkphWnJlago2N1pxaFRENDBsUmJLY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vQXA4R0lucUJQUGhBbFJvY3Vqd0lPVWtvejJoaGRKL0J2QkV6UjdTCjE0eFhUa2lldmFOcWx5NTVQZFBzZlE9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "2007" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 04:47:50 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6b991098-39ea-417d-bbc7-d0cf4c9ea3bf + status: 200 OK + code: 200 + duration: 131.764417ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/snapshots?instance_id=fa5ef655-c68c-460d-9e01-35197529d5bf&name=tf-rdb-snapshot&order_by=created_at_asc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 450 + uncompressed: false + body: '{"snapshots":[{"created_at":"2025-12-10T04:47:18.417271Z","expires_at":"2026-12-10T04:47:18.417271Z","id":"763bdd4f-cda0-4dec-8d1f-21759fb368fa","instance_id":"fa5ef655-c68c-460d-9e01-35197529d5bf","instance_name":"test-rdb-action-snapshot","name":"tf-rdb-snapshot","node_type":"db-dev-s","region":"fr-par","size":10000000000,"status":"ready","updated_at":"2025-12-10T04:47:27.472444Z","volume_type":{"class":"sbs","type":"sbs_5k"}}],"total_count":1}' + headers: + Content-Length: + - "450" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 04:47:51 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c5097b5c-721e-4b0a-bbe9-39cd4881ee01 + status: 200 OK + code: 200 + duration: 232.54625ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/fa5ef655-c68c-460d-9e01-35197529d5bf + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1434 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T04:43:14.348581Z","encryption":{"enabled":false},"endpoint":{"id":"055fd4b2-bce5-4c52-b7f7-a8ff84f7f23a","ip":"51.159.11.111","load_balancer":{},"name":null,"port":23993},"endpoints":[{"id":"055fd4b2-bce5-4c52-b7f7-a8ff84f7f23a","ip":"51.159.11.111","load_balancer":{},"name":null,"port":23993}],"engine":"PostgreSQL-15","id":"fa5ef655-c68c-460d-9e01-35197529d5bf","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-snapshot","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1434" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 04:47:51 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9f03fde6-7f5c-4196-a68d-91a94ba62ca7 + status: 200 OK + code: 200 + duration: 303.020458ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/fa5ef655-c68c-460d-9e01-35197529d5bf/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 2007 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUQvRENDQXVTZ0F3SUJBZ0lVT2FwaHBEZGNMNVpDblVnSzc2SzVkOVJUSk80d0RRWUpLb1pJaHZjTkFRRUwKQlFBd1dERUxNQWtHQTFVRUJoTUNSbEl4RGpBTUJnTlZCQWdNQlZCaGNtbHpNUTR3REFZRFZRUUhEQVZRWVhKcApjekVSTUE4R0ExVUVDZ3dJVTJOaGJH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VGszTlRJNVpEVmlaaTV5WkdJdVpuSXRjR0Z5CkxuTmpkeTVqYkc5MVpJY0VvNnl0WTRjRU01OExiNGNFTTU4TGJ6QU5CZ2txaGtpRzl3MEJBUXNGQUFPQ0FRRUEKTzhQNjBnSjRtVHBpWXFQc1AwN2p4ZklWaHEzdUYzQlRuVTZzVldhaDFYdGRpUW5sazgrcmgwd0UzcUdBT3FuNQpiZlUwRUlnekUxc3ZTOFF0QXR2WGtDTTZReExJeHZpaklHYThIQllmSUVKazlHQitBZll1WTQ4RFNUcGxRc0tLCnNSNW5tK0lZeUdWRGNYTFZ2RUVYTkFudWdiTUlVcjhBQll5c0VNSC9TNXJRN3BpU0FGb1huTVFLa0RWdld6VWwKRUxPTEM3cW1McmxwVTZQWDhmZHA5R3VPNWhiYmthUnQ4cXdNU2JYSXVNMHFKREhoaDlsOGJwWEdGVFprTGRrbwp1QmM0aVlhSkZSWnFxeWJZRTBaWUhLNWEvQXA4R0lucUJQUGhBbFJvY3Vqd0lPVWtvejJoaGRKL0J2QkV6UjdTCjE0eFhUa2lldmFOcWx5NTVQZFBzZlE9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "2007" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 04:47:51 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7c99537b-479b-4882-8fa9-bc212941c8c2 + status: 200 OK + code: 200 + duration: 161.297458ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/fa5ef655-c68c-460d-9e01-35197529d5bf + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1434 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T04:43:14.348581Z","encryption":{"enabled":false},"endpoint":{"id":"055fd4b2-bce5-4c52-b7f7-a8ff84f7f23a","ip":"51.159.11.111","load_balancer":{},"name":null,"port":23993},"endpoints":[{"id":"055fd4b2-bce5-4c52-b7f7-a8ff84f7f23a","ip":"51.159.11.111","load_balancer":{},"name":null,"port":23993}],"engine":"PostgreSQL-15","id":"fa5ef655-c68c-460d-9e01-35197529d5bf","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-snapshot","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1434" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 04:47:52 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b2b25801-f992-4109-bf27-c4edf1860ea6 + status: 200 OK + code: 200 + duration: 170.786125ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/fa5ef655-c68c-460d-9e01-35197529d5bf + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1437 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T04:43:14.348581Z","encryption":{"enabled":false},"endpoint":{"id":"055fd4b2-bce5-4c52-b7f7-a8ff84f7f23a","ip":"51.159.11.111","load_balancer":{},"name":null,"port":23993},"endpoints":[{"id":"055fd4b2-bce5-4c52-b7f7-a8ff84f7f23a","ip":"51.159.11.111","load_balancer":{},"name":null,"port":23993}],"engine":"PostgreSQL-15","id":"fa5ef655-c68c-460d-9e01-35197529d5bf","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-snapshot","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"deleting","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1437" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 04:47:52 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9fcbc39c-fd39-4f1f-9a00-694ead486f9c + status: 200 OK + code: 200 + duration: 307.408667ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/fa5ef655-c68c-460d-9e01-35197529d5bf + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1437 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T04:43:14.348581Z","encryption":{"enabled":false},"endpoint":{"id":"055fd4b2-bce5-4c52-b7f7-a8ff84f7f23a","ip":"51.159.11.111","load_balancer":{},"name":null,"port":23993},"endpoints":[{"id":"055fd4b2-bce5-4c52-b7f7-a8ff84f7f23a","ip":"51.159.11.111","load_balancer":{},"name":null,"port":23993}],"engine":"PostgreSQL-15","id":"fa5ef655-c68c-460d-9e01-35197529d5bf","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-snapshot","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"deleting","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"sbs","size":10000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "1437" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 04:47:53 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - cec3b9d7-8bae-4ede-ac5d-e027c2fcb3e2 + status: 200 OK + code: 200 + duration: 170.681375ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/fa5ef655-c68c-460d-9e01-35197529d5bf + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 129 + uncompressed: false + body: '{"message":"resource is not found","resource":"instance","resource_id":"fa5ef655-c68c-460d-9e01-35197529d5bf","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 04:48:23 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d87dc45f-f3eb-4877-96df-7d7b1577622e + status: 404 Not Found + code: 404 + duration: 166.122083ms diff --git a/internal/services/rdb/testdata/action-rdb-read-replica-promote-basic.cassette.yaml b/internal/services/rdb/testdata/action-rdb-read-replica-promote-basic.cassette.yaml new file mode 100644 index 000000000..3d46f4018 --- /dev/null +++ b/internal/services/rdb/testdata/action-rdb-read-replica-promote-basic.cassette.yaml @@ -0,0 +1,1136 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 409 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","name":"test-rdb-action-read-replica-promote","engine":"PostgreSQL-15","user_name":"my_initial_user","password":"thiZ_is_v\u0026ry_s3cret","node_type":"db-dev-s","is_ha_cluster":false,"disable_backup":true,"tags":null,"init_settings":null,"volume_type":"lssd","volume_size":0,"init_endpoints":null,"backup_same_region":false,"encryption":{"enabled":false}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 971 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T08:55:35.281830Z","encryption":{"enabled":false},"endpoint":null,"endpoints":[],"engine":"PostgreSQL-15","id":"06f09801-fdf7-4f17-9821-165a167c3308","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-read-replica-promote","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "971" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 08:55:35 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - fb2db8e3-9eb5-4a17-911a-0b781c0abe6e + status: 200 OK + code: 200 + duration: 903.333083ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/06f09801-fdf7-4f17-9821-165a167c3308 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 971 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T08:55:35.281830Z","encryption":{"enabled":false},"endpoint":null,"endpoints":[],"engine":"PostgreSQL-15","id":"06f09801-fdf7-4f17-9821-165a167c3308","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-read-replica-promote","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "971" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 08:55:35 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 19d1d269-2d26-4bb3-99c0-341d9ea68a6d + status: 200 OK + code: 200 + duration: 272.114167ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/06f09801-fdf7-4f17-9821-165a167c3308 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1442 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T08:55:35.281830Z","encryption":{"enabled":false},"endpoint":{"id":"aa1008a4-dc3d-4eb6-808a-f92fe810e69d","ip":"51.159.11.200","load_balancer":{},"name":null,"port":3154},"endpoints":[{"id":"aa1008a4-dc3d-4eb6-808a-f92fe810e69d","ip":"51.159.11.200","load_balancer":{},"name":null,"port":3154}],"engine":"PostgreSQL-15","id":"06f09801-fdf7-4f17-9821-165a167c3308","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-read-replica-promote","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1442" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 08:59:07 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 69f63240-4228-417c-a0da-78d5872ba390 + status: 200 OK + code: 200 + duration: 239.34225ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/06f09801-fdf7-4f17-9821-165a167c3308/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 2007 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUQvRENDQXVTZ0F3SUJBZ0lVRTY5SUVnc1VKTm9ZbDBtZmlBZXF1K2dPRlNJd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1dERUxNQWtHQTFVRUJoTUNSbEl4RGpBTUJnTlZCQWdNQlZCaGNtbHpNUTR3REFZRFZRUUhEQVZRWVhKcApjekVSTUE4R0ExVUVDZ3dJVTJOaGJHVjNZWGt4RmpBVUJnTlZCQU1NRFRVeExqRTFPUzR4TVM0eU1EQXdIaGNOCk1qVXhNakV3TURnMU9ESXpXaGNOTXpVeE1qQTRNRGcxT0RJeldqQllNUXN3Q1FZRFZRUUdFd0pHVWpFT01Bd0cKQTFVRUNBd0ZVR0Z5YVhNeERqQU1CZ05WQkFjTUJWQmhjbWx6TVJFd0R3WURWUVFLREFoVFkyRnNaWGRoZVRFVwpNQlFHQTFVRUF3d05OVEV1TVRVNUxqRXhMakl3TURDQ0FTSXdEUVlKS29aSWh2Y05BUUVCQlFBRGdnRVBBRENDCkFRb0NnZ0VCQUpKcExpQ1lFc2JCazc3RzFpcDR2RXBWQ0ZSZ3VlSUlDYW5uZWR0YmZjQUd5WmF5UUFSQ3NpaEMKTUZxU3JoeE1CWlU1c3RPbjVCR3JMd005ZUx2ZDdYV2xMUVVGQWh6ZFl4N29FTDV1cWQvRzdqRmcvdnN2VmhaNQpTVjR2SjFBL252MTR6R2lHVTE5T0tKVFN5bUN2a2gydFd6TFpnMFJXMVZUSHQ5T1hwcTV6YllaMUVTVXc4SXFJCjZwZGxhWDNkZ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6eXI1V3BGMlZBcmc9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "2007" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 08:59:07 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4a77adfd-22da-430e-a1d3-89b38df74837 + status: 200 OK + code: 200 + duration: 332.113708ms + - id: 4 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 110 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"instance_id":"06f09801-fdf7-4f17-9821-165a167c3308","endpoint_spec":[{"direct_access":{}}],"same_zone":true}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/read-replicas + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 172 + uncompressed: false + body: '{"endpoints":[],"id":"4798c99d-0a32-499e-8a0d-7969a619b0a1","instance_id":"06f09801-fdf7-4f17-9821-165a167c3308","region":"fr-par","same_zone":true,"status":"provisioning"}' + headers: + Content-Length: + - "172" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 08:59:08 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - beb6e4ef-9974-4595-bf09-89ea612dda29 + status: 200 OK + code: 200 + duration: 1.272386542s + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/read-replicas/4798c99d-0a32-499e-8a0d-7969a619b0a1 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 172 + uncompressed: false + body: '{"endpoints":[],"id":"4798c99d-0a32-499e-8a0d-7969a619b0a1","instance_id":"06f09801-fdf7-4f17-9821-165a167c3308","region":"fr-par","same_zone":true,"status":"provisioning"}' + headers: + Content-Length: + - "172" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 08:59:09 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 96078006-76ad-422c-9c48-0807f6ac99fd + status: 200 OK + code: 200 + duration: 164.229958ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/read-replicas/4798c99d-0a32-499e-8a0d-7969a619b0a1 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 275 + uncompressed: false + body: '{"endpoints":[{"direct_access":{},"id":"53c43e5c-ca95-4a3c-98b9-ba10feb4d0fa","ip":"51.158.116.215","name":null,"port":5432}],"id":"4798c99d-0a32-499e-8a0d-7969a619b0a1","instance_id":"06f09801-fdf7-4f17-9821-165a167c3308","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "275" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 09:02:10 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ec6a2968-2796-4aa6-b448-e22f368560ba + status: 200 OK + code: 200 + duration: 182.450959ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/read-replicas/4798c99d-0a32-499e-8a0d-7969a619b0a1 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 275 + uncompressed: false + body: '{"endpoints":[{"direct_access":{},"id":"53c43e5c-ca95-4a3c-98b9-ba10feb4d0fa","ip":"51.158.116.215","name":null,"port":5432}],"id":"4798c99d-0a32-499e-8a0d-7969a619b0a1","instance_id":"06f09801-fdf7-4f17-9821-165a167c3308","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "275" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 09:02:10 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c4508eea-d8b6-48e6-aeb3-40ebb2354c63 + status: 200 OK + code: 200 + duration: 128.142958ms + - id: 8 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 2 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/read-replicas/4798c99d-0a32-499e-8a0d-7969a619b0a1/promote + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1246 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T09:02:11.256380Z","encryption":{"enabled":false},"endpoint":null,"endpoints":[],"engine":"PostgreSQL-15","id":"d4226cea-717f-4298-b733-88a3643d0029","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"promoted - test-rdb-action-read-replica-promote","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"initializing","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1246" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 09:02:11 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ee8b5760-b292-4fa4-8766-73b8e169303d + status: 200 OK + code: 200 + duration: 701.068708ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/d4226cea-717f-4298-b733-88a3643d0029 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1246 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T09:02:11.256380Z","encryption":{"enabled":false},"endpoint":null,"endpoints":[],"engine":"PostgreSQL-15","id":"d4226cea-717f-4298-b733-88a3643d0029","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"promoted - test-rdb-action-read-replica-promote","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"initializing","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1246" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 09:02:11 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 88fa378b-13d4-4a60-893a-bebaa469a690 + status: 200 OK + code: 200 + duration: 153.010834ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/d4226cea-717f-4298-b733-88a3643d0029 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1457 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T09:02:11.256380Z","encryption":{"enabled":false},"endpoint":{"id":"79553d79-d7e9-4e35-a798-7b1e02946678","ip":"51.158.102.107","load_balancer":{},"name":null,"port":14233},"endpoints":[{"id":"79553d79-d7e9-4e35-a798-7b1e02946678","ip":"51.158.102.107","load_balancer":{},"name":null,"port":14233}],"engine":"PostgreSQL-15","id":"d4226cea-717f-4298-b733-88a3643d0029","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"promoted - test-rdb-action-read-replica-promote","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1457" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 09:05:43 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 567d9075-825f-49d0-8ab3-f16e5c333614 + status: 200 OK + code: 200 + duration: 191.076042ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/06f09801-fdf7-4f17-9821-165a167c3308 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1442 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T08:55:35.281830Z","encryption":{"enabled":false},"endpoint":{"id":"aa1008a4-dc3d-4eb6-808a-f92fe810e69d","ip":"51.159.11.200","load_balancer":{},"name":null,"port":3154},"endpoints":[{"id":"aa1008a4-dc3d-4eb6-808a-f92fe810e69d","ip":"51.159.11.200","load_balancer":{},"name":null,"port":3154}],"engine":"PostgreSQL-15","id":"06f09801-fdf7-4f17-9821-165a167c3308","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-read-replica-promote","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1442" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 09:05:44 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b43ec69b-378d-4a4b-9347-b9d6b2e2172a + status: 200 OK + code: 200 + duration: 224.144ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/06f09801-fdf7-4f17-9821-165a167c3308/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 2007 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUQvRENDQXVTZ0F3SUJBZ0lVRTY5SUVnc1VKTm9ZbDBtZmlBZXF1K2dPRlNJd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1dERUxNQWtHQTFVRUJoTUNSbEl4RGpBTUJnTlZCQWdNQlZCaGNtbHpNUTR3REFZRFZRUUhEQVZRWVhKcApjekVSTUE4R0ExVUVDZ3dJVTJOaGJHVjNZWGt4RmpBVUJnTlZCQU1NRFRVeExqRTFPUzR4TVM0eU1EQXdIaGNOCk1qVXhNakV3TURnMU9ESXpXaGNOTXpVeE1qQTRNRGcxT0RJeldqQllNUXN3Q1FZRFZRUUdFd0pHVWpFT01Bd0cKQTFVRUNBd0ZVR0Z5YVhNeERqQU1CZ05WQkFjTUJWQmhjbWx6TVJFd0R3WURWUVFLREFoVFkyRnNaWGRoZVRFVwpNQlFHQTFVRUF3d05OVEV1TVRVNUxqRXhMakl3TURDQ0FTSXdEUVlKS29aSWh2Y05BUUVCQlFBRGdnRVBBRENDCkFRb0NnZ0VCQUpKcExpQ1lFc2JCazc3RzFpcDR2RXBWQ0ZSZ3VlSUlDYW5uZWR0YmZjQUd5WmF5UUFSQ3NpaEMKTUZxU3JoeE1CWlU1c3RPbjVCR3JMd005ZUx2ZDdYV2xMUVVGQWh6ZFl4N29FTDV1cWQvRzdqRmcvdnN2VmhaNQpTVjR2SjFBL252MTR6R2lHVTE5T0tKVFN5bUN2a2gydFd6TFpnMFJXMVZUSHQ5T1hwcTV6YllaMUVTVXc4SXFJCjZwZGxhWDNkZ1k4K0xxdDVpL3RBbE4wRlc2bEZKZzlqSVJQSlVWYnpiMW82aHZYVytMZ3BCR0J3czZuNVZZWVMKSElHNlFpZjFK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: + Content-Length: + - "2007" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 09:05:44 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9053f693-9296-4b91-936b-6eb317af6dac + status: 200 OK + code: 200 + duration: 152.267ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/read-replicas/4798c99d-0a32-499e-8a0d-7969a619b0a1 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 133 + uncompressed: false + body: '{"message":"resource is not found","resource":"read_replica","resource_id":"4798c99d-0a32-499e-8a0d-7969a619b0a1","type":"not_found"}' + headers: + Content-Length: + - "133" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 09:05:44 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 474b19d0-5cb3-4ce4-a3c4-0aa039fce237 + status: 404 Not Found + code: 404 + duration: 169.116917ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/read-replicas/4798c99d-0a32-499e-8a0d-7969a619b0a1 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 133 + uncompressed: false + body: '{"message":"resource is not found","resource":"read_replica","resource_id":"4798c99d-0a32-499e-8a0d-7969a619b0a1","type":"not_found"}' + headers: + Content-Length: + - "133" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 09:05:45 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 79cc4ea5-5ff2-45c2-8669-d793e77e8bf6 + status: 404 Not Found + code: 404 + duration: 126.567917ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/06f09801-fdf7-4f17-9821-165a167c3308 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1442 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T08:55:35.281830Z","encryption":{"enabled":false},"endpoint":{"id":"aa1008a4-dc3d-4eb6-808a-f92fe810e69d","ip":"51.159.11.200","load_balancer":{},"name":null,"port":3154},"endpoints":[{"id":"aa1008a4-dc3d-4eb6-808a-f92fe810e69d","ip":"51.159.11.200","load_balancer":{},"name":null,"port":3154}],"engine":"PostgreSQL-15","id":"06f09801-fdf7-4f17-9821-165a167c3308","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-read-replica-promote","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1442" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 09:05:45 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bdc1a301-b3dc-4d6f-963a-189ba9aa324b + status: 200 OK + code: 200 + duration: 225.429541ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/06f09801-fdf7-4f17-9821-165a167c3308/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 2007 + uncompressed: false +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nZHpFQ0F3RUFBYU9CdlRDQnVqQ0J0d1lEVlIwUkJJR3ZNSUdzCmdnMDFNUzR4TlRrdU1URXVNakF3Z2p4eWR5MHdObVl3T1Rnd01TMW1aR1kzTFRSbU1UY3RPVGd5TVMweE5qVmgKTVRZM1l6TXpNRGd1Y21SaUxtWnlMWEJoY2k1elkzY3VZMnh2ZFdTQ0RUVXhMakUxT1M0eE1TNHlNRENDUEhKMwpMVEEyWmpBNU9EQXhMV1prWmpjdE5HWXhOeTA1T0RJeExURTJOV0V4Tmpkak16TXdPQzV5WkdJdVpuSXRjR0Z5CkxuTmpkeTVqYkc5MVpJY0VvNnkvU1ljRU01OEx5SWNFTTU4THlEQU5CZ2txaGtpRzl3MEJBUXNGQUFPQ0FRRUEKRkp1VTNWQld4NmYwRk5LRnh2cHBwanhYbm1GVGpHOVp4NHlRNUcvTURORHduaXZNWlFHNnd6T0JROVpUbmNNdwpGQjNGRnl1bExNbW1HK3lMTHdDZ1lsSm9sV0dEOFp5N1h3R3hvUHJxZUlDUC9pN1FWdzBBK2ZGZlpVSWVhdmFsCjZpQUpENzk2ZkgvbmhyRkhIaVhTVU1tOUV2dGROWGdMOVRyekpFZWpZb2xiSURUY0IwQkZpK2dnRk9YU290STUKQ0hmeDhwdDNqNC9mdXMvVjNrMmlIUGptZlR6ZjN5OUYzaDQzcEh6OTN6dlNLR3Ezb0hXdHVzbUJQN2VxYWJKRgpxRmZ5VnV4RU9BNm9YaTZxYTNLZ0oxQUpvbUp1S1dkOCt5bDR3dkJFY1QveTNNakhQcVIxTll3V2szaXZlc2VXCk5VRnRRcCs2OHp6eXI1V3BGMlZBcmc9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "2007" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 09:05:45 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 668cdfb8-c3c7-4c9d-bbae-c19b9e8271aa + status: 200 OK + code: 200 + duration: 131.194583ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/06f09801-fdf7-4f17-9821-165a167c3308 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1442 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T08:55:35.281830Z","encryption":{"enabled":false},"endpoint":{"id":"aa1008a4-dc3d-4eb6-808a-f92fe810e69d","ip":"51.159.11.200","load_balancer":{},"name":null,"port":3154},"endpoints":[{"id":"aa1008a4-dc3d-4eb6-808a-f92fe810e69d","ip":"51.159.11.200","load_balancer":{},"name":null,"port":3154}],"engine":"PostgreSQL-15","id":"06f09801-fdf7-4f17-9821-165a167c3308","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-read-replica-promote","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1442" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 09:05:45 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0d38ab25-035e-44eb-a70e-6a33df20a216 + status: 200 OK + code: 200 + duration: 174.955833ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/06f09801-fdf7-4f17-9821-165a167c3308/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 2007 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUQvRENDQXVTZ0F3SUJBZ0lVRTY5SUVnc1VKTm9ZbDBtZmlBZXF1K2dPRlNJd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1dERUxNQWtHQTFVRUJoTUNSbEl4RGpBTUJnTlZCQWdNQlZCaGNtbHpNUTR3REFZRFZRUUhEQVZRWVhKcApjekVSTUE4R0ExVUVDZ3dJVTJOaGJHVjNZWGt4RmpBVUJnTlZCQU1NRFRVeExqRTFPUzR4TVM0eU1EQXdIaGNOCk1qVXhNakV3TURnMU9ESXp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pJY0VvNnkvU1ljRU01OEx5SWNFTTU4THlEQU5CZ2txaGtpRzl3MEJBUXNGQUFPQ0FRRUEKRkp1VTNWQld4NmYwRk5LRnh2cHBwanhYbm1GVGpHOVp4NHlRNUcvTURORHduaXZNWlFHNnd6T0JROVpUbmNNdwpGQjNGRnl1bExNbW1HK3lMTHdDZ1lsSm9sV0dEOFp5N1h3R3hvUHJxZUlDUC9pN1FWdzBBK2ZGZlpVSWVhdmFsCjZpQUpENzk2ZkgvbmhyRkhIaVhTVU1tOUV2dGROWGdMOVRyekpFZWpZb2xiSURUY0IwQkZpK2dnRk9YU290STUKQ0hmeDhwdDNqNC9mdXMvVjNrMmlIUGptZlR6ZjN5OUYzaDQzcEh6OTN6dlNLR3Ezb0hXdHVzbUJQN2VxYWJKRgpxRmZ5VnV4RU9BNm9YaTZxYTNLZ0oxQUpvbUp1S1dkOCt5bDR3dkJFY1QveTNNakhQcVIxTll3V2szaXZlc2VXCk5VRnRRcCs2OHp6eXI1V3BGMlZBcmc9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "2007" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 09:05:46 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - aef462ae-12f3-4b4e-b629-299f3befa7e8 + status: 200 OK + code: 200 + duration: 69.978916ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/06f09801-fdf7-4f17-9821-165a167c3308 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1442 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T08:55:35.281830Z","encryption":{"enabled":false},"endpoint":{"id":"aa1008a4-dc3d-4eb6-808a-f92fe810e69d","ip":"51.159.11.200","load_balancer":{},"name":null,"port":3154},"endpoints":[{"id":"aa1008a4-dc3d-4eb6-808a-f92fe810e69d","ip":"51.159.11.200","load_balancer":{},"name":null,"port":3154}],"engine":"PostgreSQL-15","id":"06f09801-fdf7-4f17-9821-165a167c3308","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-read-replica-promote","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1442" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 09:05:46 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c3b6cc84-5bda-4f35-b136-dff03545f3ad + status: 200 OK + code: 200 + duration: 201.783ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/06f09801-fdf7-4f17-9821-165a167c3308 + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1445 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T08:55:35.281830Z","encryption":{"enabled":false},"endpoint":{"id":"aa1008a4-dc3d-4eb6-808a-f92fe810e69d","ip":"51.159.11.200","load_balancer":{},"name":null,"port":3154},"endpoints":[{"id":"aa1008a4-dc3d-4eb6-808a-f92fe810e69d","ip":"51.159.11.200","load_balancer":{},"name":null,"port":3154}],"engine":"PostgreSQL-15","id":"06f09801-fdf7-4f17-9821-165a167c3308","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-read-replica-promote","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"deleting","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1445" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 09:05:46 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ef5e15e0-c611-4d07-8ece-d9a80e18659f + status: 200 OK + code: 200 + duration: 324.015375ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/06f09801-fdf7-4f17-9821-165a167c3308 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1445 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-10T08:55:35.281830Z","encryption":{"enabled":false},"endpoint":{"id":"aa1008a4-dc3d-4eb6-808a-f92fe810e69d","ip":"51.159.11.200","load_balancer":{},"name":null,"port":3154},"endpoints":[{"id":"aa1008a4-dc3d-4eb6-808a-f92fe810e69d","ip":"51.159.11.200","load_balancer":{},"name":null,"port":3154}],"engine":"PostgreSQL-15","id":"06f09801-fdf7-4f17-9821-165a167c3308","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-read-replica-promote","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"deleting","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1445" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 09:05:47 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 16fe0399-c005-4de1-a98d-f0de7e58e250 + status: 200 OK + code: 200 + duration: 183.96575ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/06f09801-fdf7-4f17-9821-165a167c3308 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 129 + uncompressed: false + body: '{"message":"resource is not found","resource":"instance","resource_id":"06f09801-fdf7-4f17-9821-165a167c3308","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 10 Dec 2025 09:06:17 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a7004841-7c27-40e9-b937-79669afb0f64 + status: 404 Not Found + code: 404 + duration: 151.821625ms diff --git a/internal/services/rdb/testdata/action-rdb-read-replica-reset-basic.cassette.yaml b/internal/services/rdb/testdata/action-rdb-read-replica-reset-basic.cassette.yaml new file mode 100644 index 000000000..56b930caf --- /dev/null +++ b/internal/services/rdb/testdata/action-rdb-read-replica-reset-basic.cassette.yaml @@ -0,0 +1,1430 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 407 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","name":"test-rdb-action-read-replica-reset","engine":"PostgreSQL-15","user_name":"my_initial_user","password":"thiZ_is_v\u0026ry_s3cret","node_type":"db-dev-s","is_ha_cluster":false,"disable_backup":true,"tags":null,"init_settings":null,"volume_type":"lssd","volume_size":0,"init_endpoints":null,"backup_same_region":false,"encryption":{"enabled":false}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 969 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T13:44:59.787248Z","encryption":{"enabled":false},"endpoint":null,"endpoints":[],"engine":"PostgreSQL-15","id":"cab74b2e-7cfa-418e-a944-6d3bdad409ed","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-read-replica-reset","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "969" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 13:45:00 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7d2684f9-c631-4cf8-ad36-ca150e5b726c + status: 200 OK + code: 200 + duration: 643.277542ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/cab74b2e-7cfa-418e-a944-6d3bdad409ed + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 969 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T13:44:59.787248Z","encryption":{"enabled":false},"endpoint":null,"endpoints":[],"engine":"PostgreSQL-15","id":"cab74b2e-7cfa-418e-a944-6d3bdad409ed","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-read-replica-reset","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "969" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 13:45:00 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 86d39c13-cc37-4275-8e1e-39b299f788a5 + status: 200 OK + code: 200 + duration: 286.680166ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/cab74b2e-7cfa-418e-a944-6d3bdad409ed + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1444 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T13:44:59.787248Z","encryption":{"enabled":false},"endpoint":{"id":"608db39f-1974-451a-bb44-7d3620836bb4","ip":"163.172.171.16","load_balancer":{},"name":null,"port":17814},"endpoints":[{"id":"608db39f-1974-451a-bb44-7d3620836bb4","ip":"163.172.171.16","load_balancer":{},"name":null,"port":17814}],"engine":"PostgreSQL-15","id":"cab74b2e-7cfa-418e-a944-6d3bdad409ed","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-read-replica-reset","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1444" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 13:49:02 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f3e34515-367f-45fd-b803-57b1c60d6662 + status: 200 OK + code: 200 + duration: 235.902583ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/cab74b2e-7cfa-418e-a944-6d3bdad409ed/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 2011 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVBRENDQXVpZ0F3SUJBZ0lVTGNuQnNPZG9OdmRUSEtvSUhFOHg5TnhRK2hNd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1dURUxNQWtHQTFVRUJoTUNSbEl4RGpBTUJnTlZCQWdNQlZCaGNtbHpNUTR3REFZRFZRUUhEQVZRWVhKcApjekVSTUE4R0ExVUVDZ3dJVTJOaGJHVjNZWGt4RnpBVkJnTlZCQU1NRGpFMk15NHhOekl1TVRjeExqRTJNQjRYCkRUSTFNVEl3T1RFek5EZzBObG9YRFRNMU1USXdOekV6TkRnME5sb3dXVEVMTUFrR0ExVUVCaE1DUmxJeERqQU0KQmdOVkJBZ01CVkJoY21sek1RNHdEQVlEVlFRSERBVlFZWEpwY3pFUk1BOEdBMVVFQ2d3SVUyTmhiR1YzWVhreApGekFWQmdOVkJBTU1EakUyTXk0eE56SXVNVGN4TGpFMk1JSUJJakFOQmdrcWhraUc5dzBCQVFFRkFBT0NBUThBCk1JSUJDZ0tDQVFFQWlrUmt3RHhsWGEzMTUwS3NqQzdrRm02cHZITDY2bFliWHFvZkJ6a2tpdFhKL1BDekx4L2cKV0xjZU5JWGRUUmFQckZNVnU3eCtCZHk4bEY5K2Fqai9hck51cDd4VEg4SkcxR2NjaDdyZ2VnbmxaTXlZYllFdQpDNlRLaFJmc21zRVU2ZStKWWZIV0ZkWWZBVWg5TjVXYVlIVXBUbGRUQkxSZVBsdk1od2ZsSmFpL1N0VzRhRmpDClFzaG9RKzFCTURhTTBUeVpxNlFJUDkvKzhUT1hpNDJTM21nV3Z5ZWhPRGxlSWtiTElkNkhaOW5JeHU0T1FJVFEKMklMSjhZYTI0UFkvS0tXeFB2OUpxL2JONXo0WU53Vkp2Y3pJczZHUlBKem5rdTBvRDB3WVY3UGFnaUJzdkpDaApQYW9qeGlGbVdWV3lYdkhxejNWaS9QczVuMmdXbmZ0TnNRSURBUUFCbzRHL01JRzhNSUc1QmdOVkhSRUVnYkV3CmdhNkNEakUyTXk0eE56SXVNVGN4TGpFMmdqeHlkeTFqWVdJM05HSXlaUzAzWTJaaExUUXhPR1V0WVRrME5DMDIKWkROaVpHRmtOREE1WldRdWNtUmlMbVp5TFhCaGNpNXpZM2N1WTJ4dmRXU0NEakUyTXk0eE56SXVNVGN4TGpFMgpnanh5ZHkxallXSTNOR0l5WlMwM1kyWmhMVFF4T0dVdFlUazBOQzAyWkROaVpHRmtOREE1WldRdWNtUmlMbVp5CkxYQmhjaTV6WTNjdVkyeHZkV1NIQkRPZVJENkhCS09zcXhDSEJLT3NxeEF3RFFZSktvWklodmNOQVFFTEJRQUQKZ2dFQkFIUHhXa3NNN2J0Ly9UWXZvQVc0QmR3Ny9CK2Z2MmM4QTNEVkE3bmZEajZ1a2pHak5QZWNIUmVvWFM3Vgo5NXltSmNFaml0bndPWEdodlFiekFNUi92L0ZnOU5yZG1xSFRmZksyZ1MwWE1aWTYwa2VYUDloRGJKTTh4TGF1CjNrWXpzakNlMTFxQkJVcjhHMEV0dGtkNC9hYWIvQTFIcHdEME1kUlJPT2lNaExXcEV4Vm5NWkVWL2VYYWQyL3UKMVQ3dDRlN2R1ai9pNkR1d0dqc3JTREIwUk1COFlBRXJNOFU0eWhuT0hlcjBrdXQ4OWVLWmpNcE42QlBVUHpUcApKZnNkdy8yZ2hMd2ZKWkxoTmdWazlJZDZPaEdhRmhwTHFaUVcrelpNRk50QUlvN0JVcDlKdUFZT1pxb2tqRmo4CkZ0N0tHL0dMUENQWGRJV1QxSWE0OVZzU055bz0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "2011" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 13:49:03 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8ddd94a3-2b71-4b63-b1f7-35ead5918b1f + status: 200 OK + code: 200 + duration: 138.834334ms + - id: 4 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 110 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"instance_id":"cab74b2e-7cfa-418e-a944-6d3bdad409ed","endpoint_spec":[{"direct_access":{}}],"same_zone":true}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/read-replicas + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 172 + uncompressed: false + body: '{"endpoints":[],"id":"c752aeb3-1677-4caf-b189-ae827cdf5381","instance_id":"cab74b2e-7cfa-418e-a944-6d3bdad409ed","region":"fr-par","same_zone":true,"status":"provisioning"}' + headers: + Content-Length: + - "172" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 13:49:03 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 73f1cadd-9cb8-4fbb-ba83-e34273bb1c55 + status: 200 OK + code: 200 + duration: 712.672209ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/read-replicas/c752aeb3-1677-4caf-b189-ae827cdf5381 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 172 + uncompressed: false + body: '{"endpoints":[],"id":"c752aeb3-1677-4caf-b189-ae827cdf5381","instance_id":"cab74b2e-7cfa-418e-a944-6d3bdad409ed","region":"fr-par","same_zone":true,"status":"provisioning"}' + headers: + Content-Length: + - "172" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 13:49:03 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 09f74e17-9674-4ba0-bfac-a353259d9878 + status: 200 OK + code: 200 + duration: 161.001417ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/read-replicas/c752aeb3-1677-4caf-b189-ae827cdf5381 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 276 + uncompressed: false + body: '{"endpoints":[{"direct_access":{},"id":"fbdbf8da-3539-4d17-b65a-1b1b9ab94fd7","ip":"163.172.129.167","name":null,"port":5432}],"id":"c752aeb3-1677-4caf-b189-ae827cdf5381","instance_id":"cab74b2e-7cfa-418e-a944-6d3bdad409ed","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "276" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 13:52:05 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2a01edab-b0ed-40d6-b530-87782f227743 + status: 200 OK + code: 200 + duration: 303.787583ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/read-replicas/c752aeb3-1677-4caf-b189-ae827cdf5381 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 276 + uncompressed: false + body: '{"endpoints":[{"direct_access":{},"id":"fbdbf8da-3539-4d17-b65a-1b1b9ab94fd7","ip":"163.172.129.167","name":null,"port":5432}],"id":"c752aeb3-1677-4caf-b189-ae827cdf5381","instance_id":"cab74b2e-7cfa-418e-a944-6d3bdad409ed","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "276" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 13:52:05 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 17360d21-6524-4f86-9cee-df23cd4809bb + status: 200 OK + code: 200 + duration: 164.854083ms + - id: 8 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 2 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/read-replicas/c752aeb3-1677-4caf-b189-ae827cdf5381/reset + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 283 + uncompressed: false + body: '{"endpoints":[{"direct_access":{},"id":"fbdbf8da-3539-4d17-b65a-1b1b9ab94fd7","ip":"163.172.129.167","name":null,"port":5432}],"id":"c752aeb3-1677-4caf-b189-ae827cdf5381","instance_id":"cab74b2e-7cfa-418e-a944-6d3bdad409ed","region":"fr-par","same_zone":true,"status":"initializing"}' + headers: + Content-Length: + - "283" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 13:52:06 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 35bcae62-d4ca-4ebc-bb78-489663800564 + status: 200 OK + code: 200 + duration: 358.71025ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/read-replicas/c752aeb3-1677-4caf-b189-ae827cdf5381 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 283 + uncompressed: false + body: '{"endpoints":[{"direct_access":{},"id":"fbdbf8da-3539-4d17-b65a-1b1b9ab94fd7","ip":"163.172.129.167","name":null,"port":5432}],"id":"c752aeb3-1677-4caf-b189-ae827cdf5381","instance_id":"cab74b2e-7cfa-418e-a944-6d3bdad409ed","region":"fr-par","same_zone":true,"status":"initializing"}' + headers: + Content-Length: + - "283" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 13:52:06 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b9f52fba-7221-4893-979d-a6260428b2c5 + status: 200 OK + code: 200 + duration: 217.907833ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/read-replicas/c752aeb3-1677-4caf-b189-ae827cdf5381 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 276 + uncompressed: false + body: '{"endpoints":[{"direct_access":{},"id":"fbdbf8da-3539-4d17-b65a-1b1b9ab94fd7","ip":"163.172.129.167","name":null,"port":5432}],"id":"c752aeb3-1677-4caf-b189-ae827cdf5381","instance_id":"cab74b2e-7cfa-418e-a944-6d3bdad409ed","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "276" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 13:52:36 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 30d3543e-56b7-49b9-921b-1ca9221f9267 + status: 200 OK + code: 200 + duration: 173.978625ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/cab74b2e-7cfa-418e-a944-6d3bdad409ed + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1720 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T13:44:59.787248Z","encryption":{"enabled":false},"endpoint":{"id":"608db39f-1974-451a-bb44-7d3620836bb4","ip":"163.172.171.16","load_balancer":{},"name":null,"port":17814},"endpoints":[{"id":"608db39f-1974-451a-bb44-7d3620836bb4","ip":"163.172.171.16","load_balancer":{},"name":null,"port":17814}],"engine":"PostgreSQL-15","id":"cab74b2e-7cfa-418e-a944-6d3bdad409ed","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-read-replica-reset","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[{"endpoints":[{"direct_access":{},"id":"fbdbf8da-3539-4d17-b65a-1b1b9ab94fd7","ip":"163.172.129.167","name":null,"port":5432}],"id":"c752aeb3-1677-4caf-b189-ae827cdf5381","instance_id":"cab74b2e-7cfa-418e-a944-6d3bdad409ed","region":"fr-par","same_zone":true,"status":"ready"}],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1720" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 13:52:37 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bb4a9464-5540-439f-acbd-7a1b4b1bbd09 + status: 200 OK + code: 200 + duration: 471.157417ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/cab74b2e-7cfa-418e-a944-6d3bdad409ed/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 2011 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVBRENDQXVpZ0F3SUJBZ0lVTGNuQnNPZG9OdmRUSEtvSUhFOHg5TnhRK2hNd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1dURUxNQWtHQTFVRUJoTUNSbEl4RGpBTUJnTlZCQWdNQlZCaGNtbHpNUTR3REFZRFZRUUhEQVZRWVhKcApjekVSTUE4R0ExVUVDZ3dJVT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yWkROaVpHRmtOREE1WldRdWNtUmlMbVp5CkxYQmhjaTV6WTNjdVkyeHZkV1NIQkRPZVJENkhCS09zcXhDSEJLT3NxeEF3RFFZSktvWklodmNOQVFFTEJRQUQKZ2dFQkFIUHhXa3NNN2J0Ly9UWXZvQVc0QmR3Ny9CK2Z2MmM4QTNEVkE3bmZEajZ1a2pHak5QZWNIUmVvWFM3Vgo5NXltSmNFaml0bndPWEdodlFiekFNUi92L0ZnOU5yZG1xSFRmZksyZ1MwWE1aWTYwa2VYUDloRGJKTTh4TGF1CjNrWXpzakNlMTFxQkJVcjhHMEV0dGtkNC9hYWIvQTFIcHdEME1kUlJPT2lNaExXcEV4Vm5NWkVWL2VYYWQyL3UKMVQ3dDRlN2R1ai9pNkR1d0dqc3JTREIwUk1COFlBRXJNOFU0eWhuT0hlcjBrdXQ4OWVLWmpNcE42QlBVUHpUcApKZnNkdy8yZ2hMd2ZKWkxoTmdWazlJZDZPaEdhRmhwTHFaUVcrelpNRk50QUlvN0JVcDlKdUFZT1pxb2tqRmo4CkZ0N0tHL0dMUENQWGRJV1QxSWE0OVZzU055bz0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "2011" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 13:52:37 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6f5daf0e-9af6-49d0-a079-e629452c6a9d + status: 200 OK + code: 200 + duration: 260.483042ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/read-replicas/c752aeb3-1677-4caf-b189-ae827cdf5381 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 276 + uncompressed: false + body: '{"endpoints":[{"direct_access":{},"id":"fbdbf8da-3539-4d17-b65a-1b1b9ab94fd7","ip":"163.172.129.167","name":null,"port":5432}],"id":"c752aeb3-1677-4caf-b189-ae827cdf5381","instance_id":"cab74b2e-7cfa-418e-a944-6d3bdad409ed","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "276" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 13:52:38 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e7bc1e47-a760-49bd-a62c-7a616dc9fbfa + status: 200 OK + code: 200 + duration: 175.572167ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/cab74b2e-7cfa-418e-a944-6d3bdad409ed + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1720 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T13:44:59.787248Z","encryption":{"enabled":false},"endpoint":{"id":"608db39f-1974-451a-bb44-7d3620836bb4","ip":"163.172.171.16","load_balancer":{},"name":null,"port":17814},"endpoints":[{"id":"608db39f-1974-451a-bb44-7d3620836bb4","ip":"163.172.171.16","load_balancer":{},"name":null,"port":17814}],"engine":"PostgreSQL-15","id":"cab74b2e-7cfa-418e-a944-6d3bdad409ed","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-read-replica-reset","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[{"endpoints":[{"direct_access":{},"id":"fbdbf8da-3539-4d17-b65a-1b1b9ab94fd7","ip":"163.172.129.167","name":null,"port":5432}],"id":"c752aeb3-1677-4caf-b189-ae827cdf5381","instance_id":"cab74b2e-7cfa-418e-a944-6d3bdad409ed","region":"fr-par","same_zone":true,"status":"ready"}],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1720" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 13:52:38 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3b76dc36-06a4-4157-8041-8cd5692b8cc2 + status: 200 OK + code: 200 + duration: 174.552833ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/cab74b2e-7cfa-418e-a944-6d3bdad409ed/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 2011 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVBRENDQXVpZ0F3SUJBZ0lVTGNuQnNPZG9OdmRUSEtvSUhFOHg5TnhRK2hNd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1dURUxNQWtHQTFVRUJoTUNSbEl4RGpBTUJnTlZCQWdNQlZCaGNtbHpNUTR3REFZRFZRUUhEQVZRWVhKcApjekVSTUE4R0ExVUVDZ3dJVTJOaGJHVjNZWGt4RnpBVkJnTlZCQU1NRGpFMk15NHhOekl1TVRjeExqRTJNQjRYCkRUSTFNVEl3T1RFek5EZzBObG9YRFRNMU1USXdOekV6TkRnME5sb3dXVEVMTUFrR0ExVUVCaE1DUmxJeERqQU0KQmdOVkJBZ01CVkJoY21sek1RNHdEQVlEVlFRSERBVlFZWEpwY3pFUk1BOEdBMVVFQ2d3SVUyTmhiR1YzWVhreApGekFWQmdOVkJBTU1EakUyTXk0eE56SXVNVGN4TGpFMk1JSUJJakFOQmdrcWhraUc5dzBCQVFFRkFBT0NBUThBCk1JSUJDZ0tDQVFFQWlrUmt3RHhsWGEzMTUwS3NqQzdrRm02cHZITDY2bFliWHFvZkJ6a2tpdFhKL1BDekx4L2cKV0xjZU5JWGRUUmFQckZNVnU3eCtCZHk4bEY5K2Fqai9hck51cDd4VEg4SkcxR2NjaDdyZ2VnbmxaTXlZYllFdQpDNlRLaFJmc21zRVU2ZStKWWZI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HFaUVcrelpNRk50QUlvN0JVcDlKdUFZT1pxb2tqRmo4CkZ0N0tHL0dMUENQWGRJV1QxSWE0OVZzU055bz0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "2011" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 13:52:38 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 05bf27c2-9941-4155-a750-b1a7d6b74e90 + status: 200 OK + code: 200 + duration: 160.793125ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/read-replicas/c752aeb3-1677-4caf-b189-ae827cdf5381 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 276 + uncompressed: false + body: '{"endpoints":[{"direct_access":{},"id":"fbdbf8da-3539-4d17-b65a-1b1b9ab94fd7","ip":"163.172.129.167","name":null,"port":5432}],"id":"c752aeb3-1677-4caf-b189-ae827cdf5381","instance_id":"cab74b2e-7cfa-418e-a944-6d3bdad409ed","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "276" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 13:52:38 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d4d9b2b7-81df-4ec0-a049-1668d0418a70 + status: 200 OK + code: 200 + duration: 71.167084ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/read-replicas/c752aeb3-1677-4caf-b189-ae827cdf5381 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 276 + uncompressed: false + body: '{"endpoints":[{"direct_access":{},"id":"fbdbf8da-3539-4d17-b65a-1b1b9ab94fd7","ip":"163.172.129.167","name":null,"port":5432}],"id":"c752aeb3-1677-4caf-b189-ae827cdf5381","instance_id":"cab74b2e-7cfa-418e-a944-6d3bdad409ed","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "276" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 13:52:39 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f469750e-8b24-400c-8316-0f3c459f7bdf + status: 200 OK + code: 200 + duration: 234.571667ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/cab74b2e-7cfa-418e-a944-6d3bdad409ed + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1720 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T13:44:59.787248Z","encryption":{"enabled":false},"endpoint":{"id":"608db39f-1974-451a-bb44-7d3620836bb4","ip":"163.172.171.16","load_balancer":{},"name":null,"port":17814},"endpoints":[{"id":"608db39f-1974-451a-bb44-7d3620836bb4","ip":"163.172.171.16","load_balancer":{},"name":null,"port":17814}],"engine":"PostgreSQL-15","id":"cab74b2e-7cfa-418e-a944-6d3bdad409ed","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-read-replica-reset","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[{"endpoints":[{"direct_access":{},"id":"fbdbf8da-3539-4d17-b65a-1b1b9ab94fd7","ip":"163.172.129.167","name":null,"port":5432}],"id":"c752aeb3-1677-4caf-b189-ae827cdf5381","instance_id":"cab74b2e-7cfa-418e-a944-6d3bdad409ed","region":"fr-par","same_zone":true,"status":"ready"}],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1720" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 13:52:39 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 586d33f0-fa91-4454-9f96-87bec7ce682f + status: 200 OK + code: 200 + duration: 200.393584ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/cab74b2e-7cfa-418e-a944-6d3bdad409ed/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 2011 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVBRENDQXVpZ0F3SUJBZ0lVTGNuQnNPZG9OdmRUSEtvSUhFOHg5TnhRK2hNd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1dURUxNQWtHQTFVRUJoTUNSbEl4RGpBTUJnTlZCQWdNQlZCaGNtbHpNUTR3REFZRFZRUUhEQVZRWVhKcApjekVSTUE4R0ExVUVDZ3dJVTJOaGJHVjNZWGt4RnpBVkJnTlZCQU1NRGpFMk15NHhOekl1TVRjeExqRTJNQjRYCkRUSTFNVEl3T1RFek5EZzBObG9YRFRNMU1USXdOekV6TkRnME5sb3dXVEVMTUFrR0ExVUVCaE1DUmxJeERqQU0KQmdOVkJBZ01CVkJoY21sek1RNHdEQVlEVlFRSERBVlFZWEpwY3pFUk1BOEdBMVVFQ2d3SVUyTmhiR1YzWVhreApGekFWQmdOVkJBTU1EakUyTXk0eE56SXVNVGN4TGpFMk1JSUJJakFOQmdrcWhraUc5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jNrWXpzakNlMTFxQkJVcjhHMEV0dGtkNC9hYWIvQTFIcHdEME1kUlJPT2lNaExXcEV4Vm5NWkVWL2VYYWQyL3UKMVQ3dDRlN2R1ai9pNkR1d0dqc3JTREIwUk1COFlBRXJNOFU0eWhuT0hlcjBrdXQ4OWVLWmpNcE42QlBVUHpUcApKZnNkdy8yZ2hMd2ZKWkxoTmdWazlJZDZPaEdhRmhwTHFaUVcrelpNRk50QUlvN0JVcDlKdUFZT1pxb2tqRmo4CkZ0N0tHL0dMUENQWGRJV1QxSWE0OVZzU055bz0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "2011" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 13:52:39 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8184a9cf-f1f0-40a2-a485-f85bf6a19210 + status: 200 OK + code: 200 + duration: 132.42625ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/read-replicas/c752aeb3-1677-4caf-b189-ae827cdf5381 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 276 + uncompressed: false + body: '{"endpoints":[{"direct_access":{},"id":"fbdbf8da-3539-4d17-b65a-1b1b9ab94fd7","ip":"163.172.129.167","name":null,"port":5432}],"id":"c752aeb3-1677-4caf-b189-ae827cdf5381","instance_id":"cab74b2e-7cfa-418e-a944-6d3bdad409ed","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "276" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 13:52:39 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 86fe2371-963b-4e6c-9ee6-fb6e6a29ba8d + status: 200 OK + code: 200 + duration: 185.067417ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/read-replicas/c752aeb3-1677-4caf-b189-ae827cdf5381 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 276 + uncompressed: false + body: '{"endpoints":[{"direct_access":{},"id":"fbdbf8da-3539-4d17-b65a-1b1b9ab94fd7","ip":"163.172.129.167","name":null,"port":5432}],"id":"c752aeb3-1677-4caf-b189-ae827cdf5381","instance_id":"cab74b2e-7cfa-418e-a944-6d3bdad409ed","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "276" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 13:52:40 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1ee3b968-747a-415b-905b-ad3ba7d54dcc + status: 200 OK + code: 200 + duration: 147.613375ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/read-replicas/c752aeb3-1677-4caf-b189-ae827cdf5381 + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 279 + uncompressed: false + body: '{"endpoints":[{"direct_access":{},"id":"fbdbf8da-3539-4d17-b65a-1b1b9ab94fd7","ip":"163.172.129.167","name":null,"port":5432}],"id":"c752aeb3-1677-4caf-b189-ae827cdf5381","instance_id":"cab74b2e-7cfa-418e-a944-6d3bdad409ed","region":"fr-par","same_zone":true,"status":"deleting"}' + headers: + Content-Length: + - "279" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 13:52:40 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 014077d9-cbc3-44d9-97c9-c7471f28d07e + status: 200 OK + code: 200 + duration: 488.0225ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/read-replicas/c752aeb3-1677-4caf-b189-ae827cdf5381 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 279 + uncompressed: false + body: '{"endpoints":[{"direct_access":{},"id":"fbdbf8da-3539-4d17-b65a-1b1b9ab94fd7","ip":"163.172.129.167","name":null,"port":5432}],"id":"c752aeb3-1677-4caf-b189-ae827cdf5381","instance_id":"cab74b2e-7cfa-418e-a944-6d3bdad409ed","region":"fr-par","same_zone":true,"status":"deleting"}' + headers: + Content-Length: + - "279" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 13:52:40 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 09e2587e-cc14-4efb-baf7-e00589b6fdcb + status: 200 OK + code: 200 + duration: 127.984625ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/read-replicas/c752aeb3-1677-4caf-b189-ae827cdf5381 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 133 + uncompressed: false + body: '{"message":"resource is not found","resource":"read_replica","resource_id":"c752aeb3-1677-4caf-b189-ae827cdf5381","type":"not_found"}' + headers: + Content-Length: + - "133" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 13:53:11 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 60f9d685-9d22-4b35-a27f-a51327253089 + status: 404 Not Found + code: 404 + duration: 257.362875ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/cab74b2e-7cfa-418e-a944-6d3bdad409ed + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1444 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T13:44:59.787248Z","encryption":{"enabled":false},"endpoint":{"id":"608db39f-1974-451a-bb44-7d3620836bb4","ip":"163.172.171.16","load_balancer":{},"name":null,"port":17814},"endpoints":[{"id":"608db39f-1974-451a-bb44-7d3620836bb4","ip":"163.172.171.16","load_balancer":{},"name":null,"port":17814}],"engine":"PostgreSQL-15","id":"cab74b2e-7cfa-418e-a944-6d3bdad409ed","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-read-replica-reset","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"ready","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1444" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 13:53:11 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 97a5cad7-0a1e-4d3f-9092-1540be0106b0 + status: 200 OK + code: 200 + duration: 332.301791ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/cab74b2e-7cfa-418e-a944-6d3bdad409ed + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1447 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T13:44:59.787248Z","encryption":{"enabled":false},"endpoint":{"id":"608db39f-1974-451a-bb44-7d3620836bb4","ip":"163.172.171.16","load_balancer":{},"name":null,"port":17814},"endpoints":[{"id":"608db39f-1974-451a-bb44-7d3620836bb4","ip":"163.172.171.16","load_balancer":{},"name":null,"port":17814}],"engine":"PostgreSQL-15","id":"cab74b2e-7cfa-418e-a944-6d3bdad409ed","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-read-replica-reset","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"deleting","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1447" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 13:53:11 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0da9a286-d6e2-4826-8f8d-5669a4626cef + status: 200 OK + code: 200 + duration: 372.889ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/cab74b2e-7cfa-418e-a944-6d3bdad409ed + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1447 + uncompressed: false + body: '{"backup_same_region":false,"backup_schedule":{"disabled":true,"frequency":24,"next_run_at":null,"retention":7},"created_at":"2025-12-09T13:44:59.787248Z","encryption":{"enabled":false},"endpoint":{"id":"608db39f-1974-451a-bb44-7d3620836bb4","ip":"163.172.171.16","load_balancer":{},"name":null,"port":17814},"endpoints":[{"id":"608db39f-1974-451a-bb44-7d3620836bb4","ip":"163.172.171.16","load_balancer":{},"name":null,"port":17814}],"engine":"PostgreSQL-15","id":"cab74b2e-7cfa-418e-a944-6d3bdad409ed","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-rdb-action-read-replica-reset","node_type":"db-dev-s","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"status":"deleting","tags":[],"upgradable_version":[{"id":"7b94ce61-24cf-42e7-b598-9c7e957fda9d","minor_version":"16.11","name":"PostgreSQL-16","version":"16"},{"id":"fa0d1d64-5753-4792-8af2-668b5c10ffd2","minor_version":"17.7","name":"PostgreSQL-17","version":"17"}],"volume":{"class":"lssd","size":5000000000,"type":"lssd"}}' + headers: + Content-Length: + - "1447" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 13:53:11 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a3c5532b-de28-490f-99a9-f390decda4ab + status: 200 OK + code: 200 + duration: 172.336875ms + - 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.25.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/cab74b2e-7cfa-418e-a944-6d3bdad409ed + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 129 + uncompressed: false + body: '{"message":"resource is not found","resource":"instance","resource_id":"cab74b2e-7cfa-418e-a944-6d3bdad409ed","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Dec 2025 13:53:42 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - dd1864c3-5302-48f8-92ed-4ef4d98e07ee + status: 404 Not Found + code: 404 + duration: 190.680584ms diff --git a/provider/framework.go b/provider/framework.go index e14461074..486a2f574 100644 --- a/provider/framework.go +++ b/provider/framework.go @@ -17,6 +17,7 @@ import ( "github.com/scaleway/terraform-provider-scaleway/v2/internal/services/instance" "github.com/scaleway/terraform-provider-scaleway/v2/internal/services/jobs" "github.com/scaleway/terraform-provider-scaleway/v2/internal/services/keymanager" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/services/rdb" ) var ( @@ -144,6 +145,14 @@ func (p *ScalewayProvider) Actions(_ context.Context) []func() action.Action { res = append(res, cockpit.NewTriggerTestAlertAction) res = append(res, jobs.NewStartJobDefinitionAction) res = append(res, keymanager.NewRotateKeyAction) + res = append(res, rdb.NewInstanceSnapshotAction) + res = append(res, rdb.NewReadReplicaResetAction) + res = append(res, rdb.NewReadReplicaPromoteAction) + res = append(res, rdb.NewDatabaseBackupRestoreAction) + res = append(res, rdb.NewInstanceLogsPurgeAction) + res = append(res, rdb.NewInstanceLogPrepareAction) + res = append(res, rdb.NewInstanceCertificateRenewAction) + res = append(res, rdb.NewDatabaseBackupExportAction) return res } diff --git a/templates/actions/rdb_database_backup_export_action.md.tmpl b/templates/actions/rdb_database_backup_export_action.md.tmpl new file mode 100644 index 000000000..4994d31e2 --- /dev/null +++ b/templates/actions/rdb_database_backup_export_action.md.tmpl @@ -0,0 +1,10 @@ +{{- /*gotype: github.com/hashicorp/terraform-plugin-docs/internal/provider.ActionTemplateType */ -}} +--- +subcategory: "RDB" +page_title: "Scaleway: scaleway_rdb_database_backup_export_action" +--- + +# scaleway_rdb_database_backup_export_action (Action) + +{{ .SchemaMarkdown }} + diff --git a/templates/actions/rdb_database_backup_restore_action.md.tmpl b/templates/actions/rdb_database_backup_restore_action.md.tmpl new file mode 100644 index 000000000..883b46ca2 --- /dev/null +++ b/templates/actions/rdb_database_backup_restore_action.md.tmpl @@ -0,0 +1,10 @@ +{{- /*gotype: github.com/hashicorp/terraform-plugin-docs/internal/provider.ActionTemplateType */ -}} +--- +subcategory: "RDB" +page_title: "Scaleway: scaleway_rdb_database_backup_restore_action" +--- + +# scaleway_rdb_database_backup_restore_action (Action) + +{{ .SchemaMarkdown }} + diff --git a/templates/actions/rdb_instance_certificate_renew_action.md.tmpl b/templates/actions/rdb_instance_certificate_renew_action.md.tmpl new file mode 100644 index 000000000..6a133ba96 --- /dev/null +++ b/templates/actions/rdb_instance_certificate_renew_action.md.tmpl @@ -0,0 +1,10 @@ +{{- /*gotype: github.com/hashicorp/terraform-plugin-docs/internal/provider.ActionTemplateType */ -}} +--- +subcategory: "RDB" +page_title: "Scaleway: scaleway_rdb_instance_certificate_renew_action" +--- + +# scaleway_rdb_instance_certificate_renew_action (Action) + +{{ .SchemaMarkdown }} + diff --git a/templates/actions/rdb_instance_log_prepare_action.md.tmpl b/templates/actions/rdb_instance_log_prepare_action.md.tmpl new file mode 100644 index 000000000..8b5319012 --- /dev/null +++ b/templates/actions/rdb_instance_log_prepare_action.md.tmpl @@ -0,0 +1,10 @@ +{{- /*gotype: github.com/hashicorp/terraform-plugin-docs/internal/provider.ActionTemplateType */ -}} +--- +subcategory: "RDB" +page_title: "Scaleway: scaleway_rdb_instance_log_prepare_action" +--- + +# scaleway_rdb_instance_log_prepare_action (Action) + +{{ .SchemaMarkdown }} + diff --git a/templates/actions/rdb_instance_logs_purge_action.md.tmpl b/templates/actions/rdb_instance_logs_purge_action.md.tmpl new file mode 100644 index 000000000..dbe20bc8c --- /dev/null +++ b/templates/actions/rdb_instance_logs_purge_action.md.tmpl @@ -0,0 +1,10 @@ +{{- /*gotype: github.com/hashicorp/terraform-plugin-docs/internal/provider.ActionTemplateType */ -}} +--- +subcategory: "RDB" +page_title: "Scaleway: scaleway_rdb_instance_logs_purge_action" +--- + +# scaleway_rdb_instance_logs_purge_action (Action) + +{{ .SchemaMarkdown }} + diff --git a/templates/actions/rdb_instance_snapshot_action.md.tmpl b/templates/actions/rdb_instance_snapshot_action.md.tmpl new file mode 100644 index 000000000..f50dbc843 --- /dev/null +++ b/templates/actions/rdb_instance_snapshot_action.md.tmpl @@ -0,0 +1,10 @@ +{{- /*gotype: github.com/hashicorp/terraform-plugin-docs/internal/provider.ActionTemplateType */ -}} +--- +subcategory: "RDB" +page_title: "Scaleway: scaleway_rdb_instance_snapshot_action" +--- + +# scaleway_rdb_instance_snapshot_action (Action) + +{{ .SchemaMarkdown }} + diff --git a/templates/actions/rdb_read_replica_promote_action.md.tmpl b/templates/actions/rdb_read_replica_promote_action.md.tmpl new file mode 100644 index 000000000..bbe30693e --- /dev/null +++ b/templates/actions/rdb_read_replica_promote_action.md.tmpl @@ -0,0 +1,10 @@ +{{- /*gotype: github.com/hashicorp/terraform-plugin-docs/internal/provider.ActionTemplateType */ -}} +--- +subcategory: "RDB" +page_title: "Scaleway: scaleway_rdb_read_replica_promote_action" +--- + +# scaleway_rdb_read_replica_promote_action (Action) + +{{ .SchemaMarkdown }} + diff --git a/templates/actions/rdb_read_replica_reset_action.md.tmpl b/templates/actions/rdb_read_replica_reset_action.md.tmpl new file mode 100644 index 000000000..274aa916b --- /dev/null +++ b/templates/actions/rdb_read_replica_reset_action.md.tmpl @@ -0,0 +1,10 @@ +{{- /*gotype: github.com/hashicorp/terraform-plugin-docs/internal/provider.ActionTemplateType */ -}} +--- +subcategory: "RDB" +page_title: "Scaleway: scaleway_rdb_read_replica_reset_action" +--- + +# scaleway_rdb_read_replica_reset_action (Action) + +{{ .SchemaMarkdown }} +