diff --git a/cmd/scw/testdata/test-all-usage-rdb-instance-update-usage.golden b/cmd/scw/testdata/test-all-usage-rdb-instance-update-usage.golden index 06702fdd1c..d3c3daeea9 100644 --- a/cmd/scw/testdata/test-all-usage-rdb-instance-update-usage.golden +++ b/cmd/scw/testdata/test-all-usage-rdb-instance-update-usage.golden @@ -5,6 +5,16 @@ Update an instance. USAGE: scw rdb instance update [arg=value ...] +EXAMPLES: + Update instance name + scw rdb instance update 11111111-1111-1111-1111-111111111111 name=foo --wait + + Update instance tags + scw rdb instance update 11111111-1111-1111-1111-111111111111 tags.0=a --wait + + Set a timezone + scw rdb instance update 11111111-1111-1111-1111-111111111111 settings.0.name=timezone settings.0.value=UTC --wait + ARGS: [backup-schedule-frequency] In hours [backup-schedule-retention] In days @@ -15,10 +25,13 @@ ARGS: [logs-policy.max-age-retention] Max age (in day) of remote logs to keep on the database instance [logs-policy.total-disk-retention] Max disk size of remote logs to keep on the database instance [backup-same-region] Store logical backups in the same region as the database instance + [settings.{index}.name] Setting name of a given instance + [settings.{index}.value] Setting value of a given instance [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw) FLAGS: -h, --help help for update + -w, --wait wait until the instance is ready GLOBAL FLAGS: -c, --config string The path to the config file diff --git a/docs/commands/rdb.md b/docs/commands/rdb.md index 95597431df..3fc5e3904f 100644 --- a/docs/commands/rdb.md +++ b/docs/commands/rdb.md @@ -685,9 +685,31 @@ scw rdb instance update [arg=value ...] | logs-policy.max-age-retention | | Max age (in day) of remote logs to keep on the database instance | | logs-policy.total-disk-retention | | Max disk size of remote logs to keep on the database instance | | backup-same-region | | Store logical backups in the same region as the database instance | +| settings.{index}.name | | Setting name of a given instance | +| settings.{index}.value | | Setting value of a given instance | | region | Default: `fr-par`
One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config | +**Examples:** + + +Update instance name +``` +scw rdb instance update 11111111-1111-1111-1111-111111111111 name=foo --wait +``` + +Update instance tags +``` +scw rdb instance update 11111111-1111-1111-1111-111111111111 tags.0=a --wait +``` + +Set a timezone +``` +scw rdb instance update 11111111-1111-1111-1111-111111111111 settings.0.name=timezone settings.0.value=UTC --wait +``` + + + ### Upgrade an instance to an higher instance type diff --git a/internal/namespaces/rdb/v1/custom.go b/internal/namespaces/rdb/v1/custom.go index 93fe46c49b..82341cd055 100644 --- a/internal/namespaces/rdb/v1/custom.go +++ b/internal/namespaces/rdb/v1/custom.go @@ -48,6 +48,7 @@ func GetCommands() *core.Commands { cmds.MustFind("rdb", "instance", "clone").Override(instanceCloneBuilder) cmds.MustFind("rdb", "instance", "create").Override(instanceCreateBuilder) cmds.MustFind("rdb", "instance", "upgrade").Override(instanceUpgradeBuilder) + cmds.MustFind("rdb", "instance", "update").Override(instanceUpdateBuilder) cmds.MustFind("rdb", "engine", "list").Override(engineListBuilder) diff --git a/internal/namespaces/rdb/v1/custom_instance.go b/internal/namespaces/rdb/v1/custom_instance.go index 8621000be0..d2bbc6d4c3 100644 --- a/internal/namespaces/rdb/v1/custom_instance.go +++ b/internal/namespaces/rdb/v1/custom_instance.go @@ -163,6 +163,176 @@ func instanceUpgradeBuilder(c *core.Command) *core.Command { return c } +func instanceUpdateBuilder(c *core.Command) *core.Command { + type rdbUpdateInstanceRequestCustom struct { + *rdb.UpdateInstanceRequest + Settings []*rdb.InstanceSetting + } + + return &core.Command{ + Short: `Update an instance`, + Long: `Update an instance.`, + Namespace: "rdb", + Resource: "instance", + Verb: "update", + ArgsType: reflect.TypeOf(rdbUpdateInstanceRequestCustom{}), + ArgSpecs: core.ArgSpecs{ + { + Name: "backup-schedule-frequency", + Short: `In hours`, + Required: false, + Deprecated: false, + Positional: false, + }, + { + Name: "backup-schedule-retention", + Short: `In days`, + Required: false, + Deprecated: false, + Positional: false, + }, + { + Name: "is-backup-schedule-disabled", + Short: `Whether or not the backup schedule is disabled`, + Required: false, + Deprecated: false, + Positional: false, + }, + { + Name: "name", + Short: `Name of the instance`, + Required: false, + Deprecated: false, + Positional: false, + }, + { + Name: "instance-id", + Short: `UUID of the instance to update`, + Required: true, + Deprecated: false, + Positional: true, + }, + { + Name: "tags.{index}", + Short: `Tags of a given instance`, + Required: false, + Deprecated: false, + Positional: false, + }, + { + Name: "logs-policy.max-age-retention", + Short: `Max age (in day) of remote logs to keep on the database instance`, + Required: false, + Deprecated: false, + Positional: false, + }, + { + Name: "logs-policy.total-disk-retention", + Short: `Max disk size of remote logs to keep on the database instance`, + Required: false, + Deprecated: false, + Positional: false, + }, + { + Name: "backup-same-region", + Short: `Store logical backups in the same region as the database instance`, + Required: false, + Deprecated: false, + Positional: false, + }, + { + Name: "settings.{index}.name", + Short: `Setting name of a given instance`, + Required: false, + Deprecated: false, + Positional: false, + }, + { + Name: "settings.{index}.value", + Short: `Setting value of a given instance`, + Required: false, + Deprecated: false, + Positional: false, + }, + core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw), + }, + Run: func(ctx context.Context, args interface{}) (i interface{}, e error) { + customRequest := args.(*rdbUpdateInstanceRequestCustom) + + updateInstanceRequest := customRequest.UpdateInstanceRequest + + client := core.ExtractClient(ctx) + api := rdb.NewAPI(client) + + getResp, err := api.GetInstance(&rdb.GetInstanceRequest{ + Region: customRequest.Region, + InstanceID: customRequest.InstanceID, + }) + if err != nil { + return nil, err + } + + if customRequest.Settings != nil { + settings := getResp.Settings + changes := customRequest.Settings + + for _, change := range changes { + matched := false + for _, setting := range settings { + if change.Name == setting.Name { + setting.Value = change.Value + matched = true + break + } + } + if !matched { + settings = append(settings, change) + } + } + + _, err = api.SetInstanceSettings(&rdb.SetInstanceSettingsRequest{ + Region: updateInstanceRequest.Region, + InstanceID: updateInstanceRequest.InstanceID, + Settings: settings, + }) + if err != nil { + return nil, err + } + } + + updateInstanceResponse, err := api.UpdateInstance(updateInstanceRequest) + if err != nil { + return nil, err + } + + return updateInstanceResponse, nil + }, + WaitFunc: func(ctx context.Context, argsI, respI interface{}) (interface{}, error) { + api := rdb.NewAPI(core.ExtractClient(ctx)) + return api.WaitForInstance(&rdb.WaitForInstanceRequest{ + InstanceID: respI.(*rdb.Instance).ID, + Region: respI.(*rdb.Instance).Region, + Timeout: scw.TimeDurationPtr(instanceActionTimeout), + RetryInterval: core.DefaultRetryInterval, + }) + }, + Examples: []*core.Example{ + { + Short: "Update instance name", + Raw: "scw rdb instance update 11111111-1111-1111-1111-111111111111 name=foo --wait", + }, + { + Short: "Update instance tags", + Raw: "scw rdb instance update 11111111-1111-1111-1111-111111111111 tags.0=a --wait", + }, + { + Short: "Set a timezone", + Raw: "scw rdb instance update 11111111-1111-1111-1111-111111111111 settings.0.name=timezone settings.0.value=UTC --wait", + }, + }, + } +} + func instanceWaitCommand() *core.Command { return &core.Command{ Short: `Wait for an instance to reach a stable state`, diff --git a/internal/namespaces/rdb/v1/custom_instance_test.go b/internal/namespaces/rdb/v1/custom_instance_test.go index 581f3eca78..1097db9a01 100644 --- a/internal/namespaces/rdb/v1/custom_instance_test.go +++ b/internal/namespaces/rdb/v1/custom_instance_test.go @@ -4,7 +4,9 @@ import ( "fmt" "testing" + "github.com/alecthomas/assert" "github.com/scaleway/scaleway-cli/v2/internal/core" + "github.com/scaleway/scaleway-sdk-go/api/rdb/v1" ) func Test_ListInstance(t *testing.T) { @@ -56,6 +58,98 @@ func Test_UpgradeInstance(t *testing.T) { })) } +func Test_UpdateInstance(t *testing.T) { + t.Run("Update instance name", core.Test(&core.TestConfig{ + Commands: GetCommands(), + BeforeFunc: createInstance("PostgreSQL-12"), + Cmd: "scw rdb instance update {{ .Instance.ID }} name=foo --wait", + Check: core.TestCheckCombine( + func(t *testing.T, ctx *core.CheckFuncCtx) { + assert.Equal(t, "foo", ctx.Result.(*rdb.Instance).Name) + }, + core.TestCheckGolden(), + core.TestCheckExitCode(0), + ), + AfterFunc: deleteInstance(), + })) + + t.Run("Update instance tags", core.Test(&core.TestConfig{ + Commands: GetCommands(), + BeforeFunc: createInstance("PostgreSQL-12"), + Cmd: "scw rdb instance update {{ .Instance.ID }} tags.0=a --wait", + Check: core.TestCheckCombine( + func(t *testing.T, ctx *core.CheckFuncCtx) { + assert.Equal(t, "a", ctx.Result.(*rdb.Instance).Tags[0]) + }, + core.TestCheckGolden(), + core.TestCheckExitCode(0), + ), + AfterFunc: deleteInstance(), + })) + + t.Run("Set a timezone", core.Test(&core.TestConfig{ + Commands: GetCommands(), + BeforeFunc: createInstance("PostgreSQL-12"), + Cmd: "scw rdb instance update {{ .Instance.ID }} settings.0.name=timezone settings.0.value=UTC --wait", + Check: core.TestCheckCombine( + func(t *testing.T, ctx *core.CheckFuncCtx) { + assert.Equal(t, "timezone", ctx.Result.(*rdb.Instance).Settings[6].Name) + assert.Equal(t, "UTC", ctx.Result.(*rdb.Instance).Settings[6].Value) + }, + core.TestCheckGolden(), + core.TestCheckExitCode(0), + ), + AfterFunc: deleteInstance(), + })) + + t.Run("Modify default work_mem from 4 to 8 MB", core.Test(&core.TestConfig{ + Commands: GetCommands(), + BeforeFunc: createInstance("PostgreSQL-12"), + Cmd: "scw rdb instance update {{ .Instance.ID }} settings.0.name=work_mem settings.0.value=8 --wait", + Check: core.TestCheckCombine( + func(t *testing.T, ctx *core.CheckFuncCtx) { + assert.Equal(t, "work_mem", ctx.Result.(*rdb.Instance).Settings[0].Name) + assert.Equal(t, "8", ctx.Result.(*rdb.Instance).Settings[0].Value) + }, + core.TestCheckGolden(), + core.TestCheckExitCode(0), + ), + AfterFunc: deleteInstance(), + })) + + t.Run("Modify 3 settings + add a new one", core.Test(&core.TestConfig{ + Commands: GetCommands(), + BeforeFunc: core.BeforeFuncCombine( + createInstance("PostgreSQL-12"), + core.ExecBeforeCmd("scw rdb instance update {{ .Instance.ID }} settings.0.name=work_mem settings.0.value=8"+ + " settings.1.name=max_connections settings.1.value=200"+ + " settings.2.name=effective_cache_size settings.2.value=1000"+ + " name=foo1 --wait"), + ), + Cmd: "scw rdb instance update {{ .Instance.ID }} settings.0.name=work_mem settings.0.value=16" + + " settings.1.name=max_connections settings.1.value=150" + + " settings.2.name=effective_cache_size settings.2.value=1200" + + " settings.3.name=maintenance_work_mem settings.3.value=200" + + " name=foo2 --wait", + Check: core.TestCheckCombine( + func(t *testing.T, ctx *core.CheckFuncCtx) { + assert.Equal(t, "work_mem", ctx.Result.(*rdb.Instance).Settings[0].Name) + assert.Equal(t, "16", ctx.Result.(*rdb.Instance).Settings[0].Value) + assert.Equal(t, "max_connections", ctx.Result.(*rdb.Instance).Settings[1].Name) + assert.Equal(t, "150", ctx.Result.(*rdb.Instance).Settings[1].Value) + assert.Equal(t, "effective_cache_size", ctx.Result.(*rdb.Instance).Settings[2].Name) + assert.Equal(t, "1200", ctx.Result.(*rdb.Instance).Settings[2].Value) + assert.Equal(t, "maintenance_work_mem", ctx.Result.(*rdb.Instance).Settings[3].Name) + assert.Equal(t, "200", ctx.Result.(*rdb.Instance).Settings[3].Value) + assert.Equal(t, "foo2", ctx.Result.(*rdb.Instance).Name) + }, + core.TestCheckGolden(), + core.TestCheckExitCode(0), + ), + AfterFunc: deleteInstance(), + })) +} + func Test_Connect(t *testing.T) { t.Run("mysql", core.Test(&core.TestConfig{ Commands: GetCommands(), diff --git a/internal/namespaces/rdb/v1/testdata/test-update-instance-modify-default-work-mem-from4-to8mb.cassette.yaml b/internal/namespaces/rdb/v1/testdata/test-update-instance-modify-default-work-mem-from4-to8mb.cassette.yaml new file mode 100644 index 0000000000..331f9dcd5c --- /dev/null +++ b/internal/namespaces/rdb/v1/testdata/test-update-instance-modify-default-work-mem-from4-to8mb.cassette.yaml @@ -0,0 +1,777 @@ +--- +version: 1 +interactions: +- request: + body: '{"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","name":"cli-test","engine":"PostgreSQL-12","user_name":"foobar","password":"{4xdl*#QOoP+\u00263XRkGA)]","node_type":"db-dev-s","is_ha_cluster":false,"disable_backup":false,"tags":null,"init_settings":null,"volume_type":"lssd","volume_size":0,"init_endpoints":null,"backup_same_region":false}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances + method: POST + response: + body: '{"id":"7c2a0276-0614-4f43-a243-6b733a1473fc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.572169Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:06:00 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2043e7d7-9b9f-4257-a901-fa43eb10769e + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/7c2a0276-0614-4f43-a243-6b733a1473fc + method: GET + response: + body: '{"id":"7c2a0276-0614-4f43-a243-6b733a1473fc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.572169Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:06:01 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e8ed11b9-0f6f-4c42-a404-5e7a211ca275 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/7c2a0276-0614-4f43-a243-6b733a1473fc + method: GET + response: + body: '{"id":"7c2a0276-0614-4f43-a243-6b733a1473fc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.572169Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:06:16 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a669d411-8cfb-42c8-8d01-b71de6c5ac20 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/7c2a0276-0614-4f43-a243-6b733a1473fc + method: GET + response: + body: '{"id":"7c2a0276-0614-4f43-a243-6b733a1473fc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.572169Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:06:31 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 878db99a-3322-4193-be0e-a5251f6a31e3 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/7c2a0276-0614-4f43-a243-6b733a1473fc + method: GET + response: + body: '{"id":"7c2a0276-0614-4f43-a243-6b733a1473fc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.572169Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:06:46 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - cb3c66b8-34a9-4486-a7aa-6bf14c496ded + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/7c2a0276-0614-4f43-a243-6b733a1473fc + method: GET + response: + body: '{"id":"7c2a0276-0614-4f43-a243-6b733a1473fc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.572169Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:07:02 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ed03c48d-a6b7-4a4b-b444-8ceaf4b4cf94 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/7c2a0276-0614-4f43-a243-6b733a1473fc + method: GET + response: + body: '{"id":"7c2a0276-0614-4f43-a243-6b733a1473fc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.572169Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:07:17 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0c8c3f75-825d-495e-acee-d0976a5a7010 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/7c2a0276-0614-4f43-a243-6b733a1473fc + method: GET + response: + body: '{"id":"7c2a0276-0614-4f43-a243-6b733a1473fc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.572169Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:07:32 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 187e7689-2049-4755-812b-f232116e79a3 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/7c2a0276-0614-4f43-a243-6b733a1473fc + method: GET + response: + body: '{"id":"7c2a0276-0614-4f43-a243-6b733a1473fc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.572169Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:07:47 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d1a7d592-8c4e-4c06-b0a6-a2ca413b8592 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/7c2a0276-0614-4f43-a243-6b733a1473fc + method: GET + response: + body: '{"id":"7c2a0276-0614-4f43-a243-6b733a1473fc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.572169Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:08:03 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 74736a5e-0c82-49f8-9acb-67779d50e235 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/7c2a0276-0614-4f43-a243-6b733a1473fc + method: GET + response: + body: '{"id":"7c2a0276-0614-4f43-a243-6b733a1473fc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.572169Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:08:18 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d835b807-4272-4341-b636-11b82a601c09 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/7c2a0276-0614-4f43-a243-6b733a1473fc + method: GET + response: + body: '{"id":"7c2a0276-0614-4f43-a243-6b733a1473fc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.572169Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:08:33 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a05ad64c-93fc-4cb3-9471-313be6094d89 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/7c2a0276-0614-4f43-a243-6b733a1473fc + method: GET + response: + body: '{"id":"7c2a0276-0614-4f43-a243-6b733a1473fc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.572169Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:08:48 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6d3854b3-c841-4405-b2a7-aa55fd0e6fab + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/7c2a0276-0614-4f43-a243-6b733a1473fc + method: GET + response: + body: '{"id":"7c2a0276-0614-4f43-a243-6b733a1473fc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.572169Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:09:04 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 63dba712-743f-4396-8d9e-6244e87dd24d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/7c2a0276-0614-4f43-a243-6b733a1473fc + method: GET + response: + body: '{"id":"7c2a0276-0614-4f43-a243-6b733a1473fc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.572169Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:09:19 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e8cda3e4-9102-43ab-950c-2aec15ba6511 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/7c2a0276-0614-4f43-a243-6b733a1473fc + method: GET + response: + body: '{"id":"7c2a0276-0614-4f43-a243-6b733a1473fc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.572169Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:09:34 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 24218eec-bfff-4671-950a-e82413ff4712 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/7c2a0276-0614-4f43-a243-6b733a1473fc + method: GET + response: + body: '{"id":"7c2a0276-0614-4f43-a243-6b733a1473fc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"195.154.69.50","port":23990,"name":null,"id":"2c007a6d-0c52-4910-bd40-836fcca1bf49","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"195.154.69.50","port":23990,"name":null,"id":"2c007a6d-0c52-4910-bd40-836fcca1bf49","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.572169Z","region":"fr-par"}' + headers: + Content-Length: + - "1114" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:09:49 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e9774c69-04b5-4e38-a209-f9f558cf420c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/7c2a0276-0614-4f43-a243-6b733a1473fc + method: GET + response: + body: '{"id":"7c2a0276-0614-4f43-a243-6b733a1473fc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"195.154.69.50","port":23990,"name":null,"id":"2c007a6d-0c52-4910-bd40-836fcca1bf49","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"195.154.69.50","port":23990,"name":null,"id":"2c007a6d-0c52-4910-bd40-836fcca1bf49","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.572169Z","region":"fr-par"}' + headers: + Content-Length: + - "1114" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:09:49 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e49807f0-1ab3-4a2e-b9a4-81e4e4f0a2fa + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"settings":[{"name":"work_mem","value":"8"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}]}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/7c2a0276-0614-4f43-a243-6b733a1473fc/settings + method: PUT + response: + body: '{"settings":[{"name":"work_mem","value":"8"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}]}' + headers: + Content-Length: + - "279" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:09:49 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ede35a92-9de1-43b6-b67c-014f99f991dc + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"backup_schedule_frequency":null,"backup_schedule_retention":null,"is_backup_schedule_disabled":null,"name":null,"tags":null,"logs_policy":null,"backup_same_region":null}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/7c2a0276-0614-4f43-a243-6b733a1473fc + method: PATCH + response: + body: '{"id":"7c2a0276-0614-4f43-a243-6b733a1473fc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"configuring","engine":"PostgreSQL-12","endpoint":{"ip":"195.154.69.50","port":23990,"name":null,"id":"2c007a6d-0c52-4910-bd40-836fcca1bf49","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"8"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"195.154.69.50","port":23990,"name":null,"id":"2c007a6d-0c52-4910-bd40-836fcca1bf49","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.572169Z","region":"fr-par"}' + headers: + Content-Length: + - "1120" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:09:49 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 572ea721-a71c-4ca8-8973-9949f5096df5 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/7c2a0276-0614-4f43-a243-6b733a1473fc + method: GET + response: + body: '{"id":"7c2a0276-0614-4f43-a243-6b733a1473fc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"configuring","engine":"PostgreSQL-12","endpoint":{"ip":"195.154.69.50","port":23990,"name":null,"id":"2c007a6d-0c52-4910-bd40-836fcca1bf49","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"8"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"195.154.69.50","port":23990,"name":null,"id":"2c007a6d-0c52-4910-bd40-836fcca1bf49","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.572169Z","region":"fr-par"}' + headers: + Content-Length: + - "1120" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:09:50 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8c8cab84-9d33-4c39-b339-12edb5dba097 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/7c2a0276-0614-4f43-a243-6b733a1473fc + method: GET + response: + body: '{"id":"7c2a0276-0614-4f43-a243-6b733a1473fc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"configuring","engine":"PostgreSQL-12","endpoint":{"ip":"195.154.69.50","port":23990,"name":null,"id":"2c007a6d-0c52-4910-bd40-836fcca1bf49","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"8"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"195.154.69.50","port":23990,"name":null,"id":"2c007a6d-0c52-4910-bd40-836fcca1bf49","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.572169Z","region":"fr-par"}' + headers: + Content-Length: + - "1120" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:10:05 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 37e52aee-537d-4226-a389-5f6a3578d062 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/7c2a0276-0614-4f43-a243-6b733a1473fc + method: GET + response: + body: '{"id":"7c2a0276-0614-4f43-a243-6b733a1473fc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"195.154.69.50","port":23990,"name":null,"id":"2c007a6d-0c52-4910-bd40-836fcca1bf49","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"8"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"195.154.69.50","port":23990,"name":null,"id":"2c007a6d-0c52-4910-bd40-836fcca1bf49","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.572169Z","region":"fr-par"}' + headers: + Content-Length: + - "1114" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:10:20 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7c45915f-6fb1-42c7-8cd3-167f3defdba2 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/7c2a0276-0614-4f43-a243-6b733a1473fc + method: DELETE + response: + body: '{"id":"7c2a0276-0614-4f43-a243-6b733a1473fc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"deleting","engine":"PostgreSQL-12","endpoint":{"ip":"195.154.69.50","port":23990,"name":null,"id":"2c007a6d-0c52-4910-bd40-836fcca1bf49","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"8"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"195.154.69.50","port":23990,"name":null,"id":"2c007a6d-0c52-4910-bd40-836fcca1bf49","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.572169Z","region":"fr-par"}' + headers: + Content-Length: + - "1117" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:10:21 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d8edcb17-ab05-45bd-b162-589bee00517e + status: 200 OK + code: 200 + duration: "" diff --git a/internal/namespaces/rdb/v1/testdata/test-update-instance-modify-default-work-mem-from4-to8mb.golden b/internal/namespaces/rdb/v1/testdata/test-update-instance-modify-default-work-mem-from4-to8mb.golden new file mode 100644 index 0000000000..ba10c633ba --- /dev/null +++ b/internal/namespaces/rdb/v1/testdata/test-update-instance-modify-default-work-mem-from4-to8mb.golden @@ -0,0 +1,113 @@ +🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 +🟩🟩🟩 STDOUT️ 🟩🟩🟩️ +CreatedAt few seconds ago +Region fr-par +ID 7c2a0276-0614-4f43-a243-6b733a1473fc +Name cli-test +OrganizationID 564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5 +ProjectID 564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5 +Status ready +Engine PostgreSQL-12 +IsHaCluster false +NodeType db-dev-s +Endpoints.0.ID 2c007a6d-0c52-4910-bd40-836fcca1bf49 +Endpoints.0.IP 195.154.69.50 +Endpoints.0.Port 23990 +LogsPolicy.MaxAgeRetention 30 +BackupSameRegion false + +Endpoint: +ID 2c007a6d-0c52-4910-bd40-836fcca1bf49 +IP 195.154.69.50 +Port 23990 + +Volume: +Type lssd +Size 5.0 GB + +Backup Schedule: +Disabled false +Frequency 1 days +Retention 7 days + +Settings: +NAME VALUE +work_mem 8 +max_connections 100 +effective_cache_size 1300 +maintenance_work_mem 150 +max_parallel_workers 0 +max_parallel_workers_per_gather 0 +🟩🟩🟩 JSON STDOUT 🟩🟩🟩 +{ + "created_at": "1970-01-01T00:00:00.0Z", + "volume": { + "type": "lssd", + "size": 5000000000 + }, + "region": "fr-par", + "id": "7c2a0276-0614-4f43-a243-6b733a1473fc", + "name": "cli-test", + "organization_id": "564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id": "564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "status": "ready", + "engine": "PostgreSQL-12", + "endpoint": { + "id": "2c007a6d-0c52-4910-bd40-836fcca1bf49", + "ip": "195.154.69.50", + "port": 23990, + "name": null, + "load_balancer": {} + }, + "tags": [], + "settings": [ + { + "name": "work_mem", + "value": "8" + }, + { + "name": "max_connections", + "value": "100" + }, + { + "name": "effective_cache_size", + "value": "1300" + }, + { + "name": "maintenance_work_mem", + "value": "150" + }, + { + "name": "max_parallel_workers", + "value": "0" + }, + { + "name": "max_parallel_workers_per_gather", + "value": "0" + } + ], + "backup_schedule": { + "frequency": 24, + "retention": 7, + "disabled": false + }, + "is_ha_cluster": false, + "read_replicas": [], + "node_type": "db-dev-s", + "init_settings": [], + "endpoints": [ + { + "id": "2c007a6d-0c52-4910-bd40-836fcca1bf49", + "ip": "195.154.69.50", + "port": 23990, + "name": null, + "load_balancer": {} + } + ], + "logs_policy": { + "max_age_retention": 30, + "total_disk_retention": null + }, + "backup_same_region": false, + "maintenances": [] +} diff --git a/internal/namespaces/rdb/v1/testdata/test-update-instance-modify3-settings+-add-a-new-one.cassette.yaml b/internal/namespaces/rdb/v1/testdata/test-update-instance-modify3-settings+-add-a-new-one.cassette.yaml new file mode 100644 index 0000000000..f1443d845b --- /dev/null +++ b/internal/namespaces/rdb/v1/testdata/test-update-instance-modify3-settings+-add-a-new-one.cassette.yaml @@ -0,0 +1,909 @@ +--- +version: 1 +interactions: +- request: + body: '{"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","name":"cli-test","engine":"PostgreSQL-12","user_name":"foobar","password":"{4xdl*#QOoP+\u00263XRkGA)]","node_type":"db-dev-s","is_ha_cluster":false,"disable_backup":false,"tags":null,"init_settings":null,"volume_type":"lssd","volume_size":0,"init_endpoints":null,"backup_same_region":false}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances + method: POST + response: + body: '{"id":"4943db86-f7a2-4a30-a9bb-a0ef5f7b557e","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:10:45.252579Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:10:45 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - de4d4d3a-0fe9-4770-9d99-2680b51ef86a + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4943db86-f7a2-4a30-a9bb-a0ef5f7b557e + method: GET + response: + body: '{"id":"4943db86-f7a2-4a30-a9bb-a0ef5f7b557e","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:10:45.252579Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:10:45 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1e3bb967-548e-48ba-a976-0e09633b9673 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4943db86-f7a2-4a30-a9bb-a0ef5f7b557e + method: GET + response: + body: '{"id":"4943db86-f7a2-4a30-a9bb-a0ef5f7b557e","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:10:45.252579Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:11:00 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f0afd59a-c5aa-4bca-9a4f-c549a0f467b4 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4943db86-f7a2-4a30-a9bb-a0ef5f7b557e + method: GET + response: + body: '{"id":"4943db86-f7a2-4a30-a9bb-a0ef5f7b557e","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:10:45.252579Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:11:16 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c2fb3432-23ae-44fc-93c4-5dfa939f1134 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4943db86-f7a2-4a30-a9bb-a0ef5f7b557e + method: GET + response: + body: '{"id":"4943db86-f7a2-4a30-a9bb-a0ef5f7b557e","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:10:45.252579Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:11:31 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4f0a4677-b308-410c-8204-3de39c6cc740 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4943db86-f7a2-4a30-a9bb-a0ef5f7b557e + method: GET + response: + body: '{"id":"4943db86-f7a2-4a30-a9bb-a0ef5f7b557e","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:10:45.252579Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:11:46 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 44dc0ac6-6205-42b2-a9cd-36ff16f314ee + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4943db86-f7a2-4a30-a9bb-a0ef5f7b557e + method: GET + response: + body: '{"id":"4943db86-f7a2-4a30-a9bb-a0ef5f7b557e","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:10:45.252579Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:12:01 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - cadd7615-edf8-4fea-be93-c3e41d0f8c86 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4943db86-f7a2-4a30-a9bb-a0ef5f7b557e + method: GET + response: + body: '{"id":"4943db86-f7a2-4a30-a9bb-a0ef5f7b557e","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:10:45.252579Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:12:17 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f4ab6b1b-ee41-44c6-9250-f21e33e9351d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4943db86-f7a2-4a30-a9bb-a0ef5f7b557e + method: GET + response: + body: '{"id":"4943db86-f7a2-4a30-a9bb-a0ef5f7b557e","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:10:45.252579Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:12:32 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e167ba8f-e3ea-43eb-81b2-d720ff7b43aa + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4943db86-f7a2-4a30-a9bb-a0ef5f7b557e + method: GET + response: + body: '{"id":"4943db86-f7a2-4a30-a9bb-a0ef5f7b557e","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:10:45.252579Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:12:47 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1196adb5-80b2-457c-975a-5308be525245 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4943db86-f7a2-4a30-a9bb-a0ef5f7b557e + method: GET + response: + body: '{"id":"4943db86-f7a2-4a30-a9bb-a0ef5f7b557e","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:10:45.252579Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:13:02 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e0e0ad88-7250-4a0c-b9c2-5254f616d302 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4943db86-f7a2-4a30-a9bb-a0ef5f7b557e + method: GET + response: + body: '{"id":"4943db86-f7a2-4a30-a9bb-a0ef5f7b557e","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:10:45.252579Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:13:17 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9845a93f-7762-4a37-ba67-7778e5b65363 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4943db86-f7a2-4a30-a9bb-a0ef5f7b557e + method: GET + response: + body: '{"id":"4943db86-f7a2-4a30-a9bb-a0ef5f7b557e","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:10:45.252579Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:13:32 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2eaa49fd-fa87-4235-9cd3-813076b2a2b8 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4943db86-f7a2-4a30-a9bb-a0ef5f7b557e + method: GET + response: + body: '{"id":"4943db86-f7a2-4a30-a9bb-a0ef5f7b557e","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"195.154.69.50","port":42321,"name":null,"id":"6cdc0ed1-1537-4a63-ae89-79efd830cf59","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"195.154.69.50","port":42321,"name":null,"id":"6cdc0ed1-1537-4a63-ae89-79efd830cf59","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:10:45.252579Z","region":"fr-par"}' + headers: + Content-Length: + - "1114" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:13:48 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 98d62b04-9e08-48fe-99fd-4670ebfc1fe2 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4943db86-f7a2-4a30-a9bb-a0ef5f7b557e + method: GET + response: + body: '{"id":"4943db86-f7a2-4a30-a9bb-a0ef5f7b557e","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"195.154.69.50","port":42321,"name":null,"id":"6cdc0ed1-1537-4a63-ae89-79efd830cf59","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"195.154.69.50","port":42321,"name":null,"id":"6cdc0ed1-1537-4a63-ae89-79efd830cf59","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:10:45.252579Z","region":"fr-par"}' + headers: + Content-Length: + - "1114" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:13:48 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ec9eda9f-8e48-4776-9e9c-87c97e4c0cbb + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"settings":[{"name":"work_mem","value":"8"},{"name":"max_connections","value":"200"},{"name":"effective_cache_size","value":"1000"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}]}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4943db86-f7a2-4a30-a9bb-a0ef5f7b557e/settings + method: PUT + response: + body: '{"settings":[{"name":"work_mem","value":"8"},{"name":"max_connections","value":"200"},{"name":"effective_cache_size","value":"1000"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}]}' + headers: + Content-Length: + - "279" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:13:49 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0ecb61b5-7820-4840-b4a8-619e48044692 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"backup_schedule_frequency":null,"backup_schedule_retention":null,"is_backup_schedule_disabled":null,"name":"foo1","tags":null,"logs_policy":null,"backup_same_region":null}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4943db86-f7a2-4a30-a9bb-a0ef5f7b557e + method: PATCH + response: + body: '{"id":"4943db86-f7a2-4a30-a9bb-a0ef5f7b557e","name":"foo1","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"configuring","engine":"PostgreSQL-12","endpoint":{"ip":"195.154.69.50","port":42321,"name":null,"id":"6cdc0ed1-1537-4a63-ae89-79efd830cf59","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"8"},{"name":"max_connections","value":"200"},{"name":"effective_cache_size","value":"1000"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"195.154.69.50","port":42321,"name":null,"id":"6cdc0ed1-1537-4a63-ae89-79efd830cf59","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:10:45.252579Z","region":"fr-par"}' + headers: + Content-Length: + - "1116" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:13:49 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9e4d8ba8-13ef-45e4-9376-25131cb23843 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4943db86-f7a2-4a30-a9bb-a0ef5f7b557e + method: GET + response: + body: '{"id":"4943db86-f7a2-4a30-a9bb-a0ef5f7b557e","name":"foo1","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"configuring","engine":"PostgreSQL-12","endpoint":{"ip":"195.154.69.50","port":42321,"name":null,"id":"6cdc0ed1-1537-4a63-ae89-79efd830cf59","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"8"},{"name":"max_connections","value":"200"},{"name":"effective_cache_size","value":"1000"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"195.154.69.50","port":42321,"name":null,"id":"6cdc0ed1-1537-4a63-ae89-79efd830cf59","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:10:45.252579Z","region":"fr-par"}' + headers: + Content-Length: + - "1116" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:13:50 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ee2284b9-63c4-4c2e-8119-c4cf10beeb36 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4943db86-f7a2-4a30-a9bb-a0ef5f7b557e + method: GET + response: + body: '{"id":"4943db86-f7a2-4a30-a9bb-a0ef5f7b557e","name":"foo1","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"configuring","engine":"PostgreSQL-12","endpoint":{"ip":"195.154.69.50","port":42321,"name":null,"id":"6cdc0ed1-1537-4a63-ae89-79efd830cf59","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"8"},{"name":"max_connections","value":"200"},{"name":"effective_cache_size","value":"1000"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"195.154.69.50","port":42321,"name":null,"id":"6cdc0ed1-1537-4a63-ae89-79efd830cf59","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:10:45.252579Z","region":"fr-par"}' + headers: + Content-Length: + - "1116" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:14:05 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bd556354-10de-4197-8714-826580d2e78a + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4943db86-f7a2-4a30-a9bb-a0ef5f7b557e + method: GET + response: + body: '{"id":"4943db86-f7a2-4a30-a9bb-a0ef5f7b557e","name":"foo1","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"configuring","engine":"PostgreSQL-12","endpoint":{"ip":"195.154.69.50","port":42321,"name":null,"id":"6cdc0ed1-1537-4a63-ae89-79efd830cf59","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"8"},{"name":"max_connections","value":"200"},{"name":"effective_cache_size","value":"1000"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"195.154.69.50","port":42321,"name":null,"id":"6cdc0ed1-1537-4a63-ae89-79efd830cf59","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:10:45.252579Z","region":"fr-par"}' + headers: + Content-Length: + - "1116" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:14:20 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 207ac478-5ef3-4f4c-af56-a331367cb4ba + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4943db86-f7a2-4a30-a9bb-a0ef5f7b557e + method: GET + response: + body: '{"id":"4943db86-f7a2-4a30-a9bb-a0ef5f7b557e","name":"foo1","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"195.154.69.50","port":42321,"name":null,"id":"6cdc0ed1-1537-4a63-ae89-79efd830cf59","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"8"},{"name":"max_connections","value":"200"},{"name":"effective_cache_size","value":"1000"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"195.154.69.50","port":42321,"name":null,"id":"6cdc0ed1-1537-4a63-ae89-79efd830cf59","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:10:45.252579Z","region":"fr-par"}' + headers: + Content-Length: + - "1110" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:14:35 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d48dd5b1-060f-4cef-bbfc-b0a4f216c812 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4943db86-f7a2-4a30-a9bb-a0ef5f7b557e + method: GET + response: + body: '{"id":"4943db86-f7a2-4a30-a9bb-a0ef5f7b557e","name":"foo1","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"195.154.69.50","port":42321,"name":null,"id":"6cdc0ed1-1537-4a63-ae89-79efd830cf59","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"8"},{"name":"max_connections","value":"200"},{"name":"effective_cache_size","value":"1000"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"195.154.69.50","port":42321,"name":null,"id":"6cdc0ed1-1537-4a63-ae89-79efd830cf59","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:10:45.252579Z","region":"fr-par"}' + headers: + Content-Length: + - "1110" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:14:35 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 015cba25-d227-435c-bc0d-dc7c664bb825 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"settings":[{"name":"work_mem","value":"16"},{"name":"max_connections","value":"150"},{"name":"effective_cache_size","value":"1200"},{"name":"maintenance_work_mem","value":"200"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}]}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4943db86-f7a2-4a30-a9bb-a0ef5f7b557e/settings + method: PUT + response: + body: '{"settings":[{"name":"work_mem","value":"16"},{"name":"max_connections","value":"150"},{"name":"effective_cache_size","value":"1200"},{"name":"maintenance_work_mem","value":"200"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}]}' + headers: + Content-Length: + - "280" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:14:35 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 52ca48ba-fab3-4092-8934-ec24b4c03ca8 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"backup_schedule_frequency":null,"backup_schedule_retention":null,"is_backup_schedule_disabled":null,"name":"foo2","tags":null,"logs_policy":null,"backup_same_region":null}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4943db86-f7a2-4a30-a9bb-a0ef5f7b557e + method: PATCH + response: + body: '{"id":"4943db86-f7a2-4a30-a9bb-a0ef5f7b557e","name":"foo2","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"configuring","engine":"PostgreSQL-12","endpoint":{"ip":"195.154.69.50","port":42321,"name":null,"id":"6cdc0ed1-1537-4a63-ae89-79efd830cf59","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"16"},{"name":"max_connections","value":"150"},{"name":"effective_cache_size","value":"1200"},{"name":"maintenance_work_mem","value":"200"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"195.154.69.50","port":42321,"name":null,"id":"6cdc0ed1-1537-4a63-ae89-79efd830cf59","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:10:45.252579Z","region":"fr-par"}' + headers: + Content-Length: + - "1117" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:14:36 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 059f988f-fb8c-40a3-b499-744dc8fa0c83 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4943db86-f7a2-4a30-a9bb-a0ef5f7b557e + method: GET + response: + body: '{"id":"4943db86-f7a2-4a30-a9bb-a0ef5f7b557e","name":"foo2","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"configuring","engine":"PostgreSQL-12","endpoint":{"ip":"195.154.69.50","port":42321,"name":null,"id":"6cdc0ed1-1537-4a63-ae89-79efd830cf59","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"16"},{"name":"max_connections","value":"150"},{"name":"effective_cache_size","value":"1200"},{"name":"maintenance_work_mem","value":"200"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"195.154.69.50","port":42321,"name":null,"id":"6cdc0ed1-1537-4a63-ae89-79efd830cf59","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:10:45.252579Z","region":"fr-par"}' + headers: + Content-Length: + - "1117" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:14:36 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7bb58c09-39de-4795-8e5d-26be4221a440 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4943db86-f7a2-4a30-a9bb-a0ef5f7b557e + method: GET + response: + body: '{"id":"4943db86-f7a2-4a30-a9bb-a0ef5f7b557e","name":"foo2","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"configuring","engine":"PostgreSQL-12","endpoint":{"ip":"195.154.69.50","port":42321,"name":null,"id":"6cdc0ed1-1537-4a63-ae89-79efd830cf59","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"16"},{"name":"max_connections","value":"150"},{"name":"effective_cache_size","value":"1200"},{"name":"maintenance_work_mem","value":"200"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"195.154.69.50","port":42321,"name":null,"id":"6cdc0ed1-1537-4a63-ae89-79efd830cf59","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:10:45.252579Z","region":"fr-par"}' + headers: + Content-Length: + - "1117" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:14:51 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 95be7e35-c643-4a45-a7da-6597c407ad71 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4943db86-f7a2-4a30-a9bb-a0ef5f7b557e + method: GET + response: + body: '{"id":"4943db86-f7a2-4a30-a9bb-a0ef5f7b557e","name":"foo2","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"195.154.69.50","port":42321,"name":null,"id":"6cdc0ed1-1537-4a63-ae89-79efd830cf59","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"16"},{"name":"max_connections","value":"150"},{"name":"effective_cache_size","value":"1200"},{"name":"maintenance_work_mem","value":"200"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"195.154.69.50","port":42321,"name":null,"id":"6cdc0ed1-1537-4a63-ae89-79efd830cf59","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:10:45.252579Z","region":"fr-par"}' + headers: + Content-Length: + - "1111" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:15:06 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4b0f8aa1-1748-4972-83f8-26d0f0b6fb76 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4943db86-f7a2-4a30-a9bb-a0ef5f7b557e + method: DELETE + response: + body: '{"id":"4943db86-f7a2-4a30-a9bb-a0ef5f7b557e","name":"foo2","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"deleting","engine":"PostgreSQL-12","endpoint":{"ip":"195.154.69.50","port":42321,"name":null,"id":"6cdc0ed1-1537-4a63-ae89-79efd830cf59","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"16"},{"name":"max_connections","value":"150"},{"name":"effective_cache_size","value":"1200"},{"name":"maintenance_work_mem","value":"200"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"195.154.69.50","port":42321,"name":null,"id":"6cdc0ed1-1537-4a63-ae89-79efd830cf59","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:10:45.252579Z","region":"fr-par"}' + headers: + Content-Length: + - "1114" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:15:09 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 26ecb0e5-a39e-40e7-b77b-ee5a8c937a4d + status: 200 OK + code: 200 + duration: "" diff --git a/internal/namespaces/rdb/v1/testdata/test-update-instance-modify3-settings+-add-a-new-one.golden b/internal/namespaces/rdb/v1/testdata/test-update-instance-modify3-settings+-add-a-new-one.golden new file mode 100644 index 0000000000..29fb491305 --- /dev/null +++ b/internal/namespaces/rdb/v1/testdata/test-update-instance-modify3-settings+-add-a-new-one.golden @@ -0,0 +1,113 @@ +🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 +🟩🟩🟩 STDOUT️ 🟩🟩🟩️ +CreatedAt few seconds ago +Region fr-par +ID 4943db86-f7a2-4a30-a9bb-a0ef5f7b557e +Name foo2 +OrganizationID 564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5 +ProjectID 564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5 +Status ready +Engine PostgreSQL-12 +IsHaCluster false +NodeType db-dev-s +Endpoints.0.ID 6cdc0ed1-1537-4a63-ae89-79efd830cf59 +Endpoints.0.IP 195.154.69.50 +Endpoints.0.Port 42321 +LogsPolicy.MaxAgeRetention 30 +BackupSameRegion false + +Endpoint: +ID 6cdc0ed1-1537-4a63-ae89-79efd830cf59 +IP 195.154.69.50 +Port 42321 + +Volume: +Type lssd +Size 5.0 GB + +Backup Schedule: +Disabled false +Frequency 1 days +Retention 7 days + +Settings: +NAME VALUE +work_mem 16 +max_connections 150 +effective_cache_size 1200 +maintenance_work_mem 200 +max_parallel_workers 0 +max_parallel_workers_per_gather 0 +🟩🟩🟩 JSON STDOUT 🟩🟩🟩 +{ + "created_at": "1970-01-01T00:00:00.0Z", + "volume": { + "type": "lssd", + "size": 5000000000 + }, + "region": "fr-par", + "id": "4943db86-f7a2-4a30-a9bb-a0ef5f7b557e", + "name": "foo2", + "organization_id": "564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id": "564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "status": "ready", + "engine": "PostgreSQL-12", + "endpoint": { + "id": "6cdc0ed1-1537-4a63-ae89-79efd830cf59", + "ip": "195.154.69.50", + "port": 42321, + "name": null, + "load_balancer": {} + }, + "tags": [], + "settings": [ + { + "name": "work_mem", + "value": "16" + }, + { + "name": "max_connections", + "value": "150" + }, + { + "name": "effective_cache_size", + "value": "1200" + }, + { + "name": "maintenance_work_mem", + "value": "200" + }, + { + "name": "max_parallel_workers", + "value": "0" + }, + { + "name": "max_parallel_workers_per_gather", + "value": "0" + } + ], + "backup_schedule": { + "frequency": 24, + "retention": 7, + "disabled": false + }, + "is_ha_cluster": false, + "read_replicas": [], + "node_type": "db-dev-s", + "init_settings": [], + "endpoints": [ + { + "id": "6cdc0ed1-1537-4a63-ae89-79efd830cf59", + "ip": "195.154.69.50", + "port": 42321, + "name": null, + "load_balancer": {} + } + ], + "logs_policy": { + "max_age_retention": 30, + "total_disk_retention": null + }, + "backup_same_region": false, + "maintenances": [] +} diff --git a/internal/namespaces/rdb/v1/testdata/test-update-instance-set-a-timezone.cassette.yaml b/internal/namespaces/rdb/v1/testdata/test-update-instance-set-a-timezone.cassette.yaml new file mode 100644 index 0000000000..8f20a3527d --- /dev/null +++ b/internal/namespaces/rdb/v1/testdata/test-update-instance-set-a-timezone.cassette.yaml @@ -0,0 +1,745 @@ +--- +version: 1 +interactions: +- request: + body: '{"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","name":"cli-test","engine":"PostgreSQL-12","user_name":"foobar","password":"{4xdl*#QOoP+\u00263XRkGA)]","node_type":"db-dev-s","is_ha_cluster":false,"disable_backup":false,"tags":null,"init_settings":null,"volume_type":"lssd","volume_size":0,"init_endpoints":null,"backup_same_region":false}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances + method: POST + response: + body: '{"id":"167a841d-8a1c-4d74-8e4c-cb71d843ac6b","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.664894Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:06:01 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5ecf8ac9-54d4-4ccf-8972-e01684f36803 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/167a841d-8a1c-4d74-8e4c-cb71d843ac6b + method: GET + response: + body: '{"id":"167a841d-8a1c-4d74-8e4c-cb71d843ac6b","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.664894Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:06:01 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6a58e18a-bb56-4b92-aacb-cd6497dd5c5a + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/167a841d-8a1c-4d74-8e4c-cb71d843ac6b + method: GET + response: + body: '{"id":"167a841d-8a1c-4d74-8e4c-cb71d843ac6b","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.664894Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:06:16 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 278303d6-231f-425a-869e-1ecaeb55c634 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/167a841d-8a1c-4d74-8e4c-cb71d843ac6b + method: GET + response: + body: '{"id":"167a841d-8a1c-4d74-8e4c-cb71d843ac6b","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.664894Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:06:31 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f1632c46-b8cc-4f49-960f-6f4736b5f2de + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/167a841d-8a1c-4d74-8e4c-cb71d843ac6b + method: GET + response: + body: '{"id":"167a841d-8a1c-4d74-8e4c-cb71d843ac6b","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.664894Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:06:46 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - afe48b71-3b6a-4ee3-a6db-6ee36e0c4a2c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/167a841d-8a1c-4d74-8e4c-cb71d843ac6b + method: GET + response: + body: '{"id":"167a841d-8a1c-4d74-8e4c-cb71d843ac6b","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.664894Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:07:02 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - de8b937d-a8c1-4116-831a-797d68ad66f8 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/167a841d-8a1c-4d74-8e4c-cb71d843ac6b + method: GET + response: + body: '{"id":"167a841d-8a1c-4d74-8e4c-cb71d843ac6b","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.664894Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:07:17 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7c817547-ac69-4e20-83bc-2149e028b6e5 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/167a841d-8a1c-4d74-8e4c-cb71d843ac6b + method: GET + response: + body: '{"id":"167a841d-8a1c-4d74-8e4c-cb71d843ac6b","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.664894Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:07:32 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2abe3fc1-11a7-4e98-ade6-49d72c3e1528 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/167a841d-8a1c-4d74-8e4c-cb71d843ac6b + method: GET + response: + body: '{"id":"167a841d-8a1c-4d74-8e4c-cb71d843ac6b","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.664894Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:07:47 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7284a6d4-b40b-4a3c-849e-c4a48cd30988 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/167a841d-8a1c-4d74-8e4c-cb71d843ac6b + method: GET + response: + body: '{"id":"167a841d-8a1c-4d74-8e4c-cb71d843ac6b","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.664894Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:08:03 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - eb7dc1f9-39cb-44c4-8b55-8058fd7f1f8e + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/167a841d-8a1c-4d74-8e4c-cb71d843ac6b + method: GET + response: + body: '{"id":"167a841d-8a1c-4d74-8e4c-cb71d843ac6b","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.664894Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:08:18 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ee7b826c-63c3-4a83-bc22-ac01c4d384c0 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/167a841d-8a1c-4d74-8e4c-cb71d843ac6b + method: GET + response: + body: '{"id":"167a841d-8a1c-4d74-8e4c-cb71d843ac6b","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.664894Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:08:33 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 85a3c1a2-f13f-4b53-aaa6-37ababaa4ea3 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/167a841d-8a1c-4d74-8e4c-cb71d843ac6b + method: GET + response: + body: '{"id":"167a841d-8a1c-4d74-8e4c-cb71d843ac6b","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.664894Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:08:48 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1d2853cb-8147-4603-931d-c08c52e1626d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/167a841d-8a1c-4d74-8e4c-cb71d843ac6b + method: GET + response: + body: '{"id":"167a841d-8a1c-4d74-8e4c-cb71d843ac6b","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.664894Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:09:04 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b152e393-da31-4d0f-983e-6d23b2156a24 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/167a841d-8a1c-4d74-8e4c-cb71d843ac6b + method: GET + response: + body: '{"id":"167a841d-8a1c-4d74-8e4c-cb71d843ac6b","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.664894Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:09:19 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - fbb5f4ee-7aa1-4752-9536-874f9621b742 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/167a841d-8a1c-4d74-8e4c-cb71d843ac6b + method: GET + response: + body: '{"id":"167a841d-8a1c-4d74-8e4c-cb71d843ac6b","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.158.57.216","port":17040,"name":null,"id":"b7508d38-4562-4d27-8be0-4181fccae679","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"51.158.57.216","port":17040,"name":null,"id":"b7508d38-4562-4d27-8be0-4181fccae679","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.664894Z","region":"fr-par"}' + headers: + Content-Length: + - "1114" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:09:34 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 52196d65-df6d-4858-8630-521ab35aca7a + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/167a841d-8a1c-4d74-8e4c-cb71d843ac6b + method: GET + response: + body: '{"id":"167a841d-8a1c-4d74-8e4c-cb71d843ac6b","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.158.57.216","port":17040,"name":null,"id":"b7508d38-4562-4d27-8be0-4181fccae679","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"51.158.57.216","port":17040,"name":null,"id":"b7508d38-4562-4d27-8be0-4181fccae679","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.664894Z","region":"fr-par"}' + headers: + Content-Length: + - "1114" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:09:34 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c2221ecb-f626-412f-8c80-6909e7a07327 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"timezone","value":"UTC"}]}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/167a841d-8a1c-4d74-8e4c-cb71d843ac6b/settings + method: PUT + response: + body: '{"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"timezone","value":"UTC"}]}' + headers: + Content-Length: + - "313" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:09:34 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a0fe7155-5c3d-4ed5-8a89-77b5f2aab128 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"backup_schedule_frequency":null,"backup_schedule_retention":null,"is_backup_schedule_disabled":null,"name":null,"tags":null,"logs_policy":null,"backup_same_region":null}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/167a841d-8a1c-4d74-8e4c-cb71d843ac6b + method: PATCH + response: + body: '{"id":"167a841d-8a1c-4d74-8e4c-cb71d843ac6b","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"configuring","engine":"PostgreSQL-12","endpoint":{"ip":"51.158.57.216","port":17040,"name":null,"id":"b7508d38-4562-4d27-8be0-4181fccae679","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"timezone","value":"UTC"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"51.158.57.216","port":17040,"name":null,"id":"b7508d38-4562-4d27-8be0-4181fccae679","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.664894Z","region":"fr-par"}' + headers: + Content-Length: + - "1154" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:09:35 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 68d721ce-6809-4ef8-b733-9e3690daf2d0 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/167a841d-8a1c-4d74-8e4c-cb71d843ac6b + method: GET + response: + body: '{"id":"167a841d-8a1c-4d74-8e4c-cb71d843ac6b","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"configuring","engine":"PostgreSQL-12","endpoint":{"ip":"51.158.57.216","port":17040,"name":null,"id":"b7508d38-4562-4d27-8be0-4181fccae679","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"timezone","value":"UTC"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"51.158.57.216","port":17040,"name":null,"id":"b7508d38-4562-4d27-8be0-4181fccae679","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.664894Z","region":"fr-par"}' + headers: + Content-Length: + - "1154" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:09:35 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c4a8f32c-60df-4a66-8c66-97da806bb6b4 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/167a841d-8a1c-4d74-8e4c-cb71d843ac6b + method: GET + response: + body: '{"id":"167a841d-8a1c-4d74-8e4c-cb71d843ac6b","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"configuring","engine":"PostgreSQL-12","endpoint":{"ip":"51.158.57.216","port":17040,"name":null,"id":"b7508d38-4562-4d27-8be0-4181fccae679","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"timezone","value":"UTC"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"51.158.57.216","port":17040,"name":null,"id":"b7508d38-4562-4d27-8be0-4181fccae679","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.664894Z","region":"fr-par"}' + headers: + Content-Length: + - "1154" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:09:50 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0fe05209-c5c1-4ef4-81d1-e68820bce4d4 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/167a841d-8a1c-4d74-8e4c-cb71d843ac6b + method: GET + response: + body: '{"id":"167a841d-8a1c-4d74-8e4c-cb71d843ac6b","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.158.57.216","port":17040,"name":null,"id":"b7508d38-4562-4d27-8be0-4181fccae679","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"timezone","value":"UTC"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"51.158.57.216","port":17040,"name":null,"id":"b7508d38-4562-4d27-8be0-4181fccae679","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.664894Z","region":"fr-par"}' + headers: + Content-Length: + - "1148" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:10:05 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 691e4cb3-591b-412f-adbc-85cedfec9f57 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/167a841d-8a1c-4d74-8e4c-cb71d843ac6b + method: DELETE + response: + body: '{"id":"167a841d-8a1c-4d74-8e4c-cb71d843ac6b","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"deleting","engine":"PostgreSQL-12","endpoint":{"ip":"51.158.57.216","port":17040,"name":null,"id":"b7508d38-4562-4d27-8be0-4181fccae679","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"timezone","value":"UTC"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"51.158.57.216","port":17040,"name":null,"id":"b7508d38-4562-4d27-8be0-4181fccae679","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.664894Z","region":"fr-par"}' + headers: + Content-Length: + - "1151" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:10:05 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 53484d15-f424-430c-b1c6-2e0cbe15c8a5 + status: 200 OK + code: 200 + duration: "" diff --git a/internal/namespaces/rdb/v1/testdata/test-update-instance-set-a-timezone.golden b/internal/namespaces/rdb/v1/testdata/test-update-instance-set-a-timezone.golden new file mode 100644 index 0000000000..046ca9c36e --- /dev/null +++ b/internal/namespaces/rdb/v1/testdata/test-update-instance-set-a-timezone.golden @@ -0,0 +1,118 @@ +🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 +🟩🟩🟩 STDOUT️ 🟩🟩🟩️ +CreatedAt few seconds ago +Region fr-par +ID 167a841d-8a1c-4d74-8e4c-cb71d843ac6b +Name cli-test +OrganizationID 564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5 +ProjectID 564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5 +Status ready +Engine PostgreSQL-12 +IsHaCluster false +NodeType db-dev-s +Endpoints.0.ID b7508d38-4562-4d27-8be0-4181fccae679 +Endpoints.0.IP 51.158.57.216 +Endpoints.0.Port 17040 +LogsPolicy.MaxAgeRetention 30 +BackupSameRegion false + +Endpoint: +ID b7508d38-4562-4d27-8be0-4181fccae679 +IP 51.158.57.216 +Port 17040 + +Volume: +Type lssd +Size 5.0 GB + +Backup Schedule: +Disabled false +Frequency 1 days +Retention 7 days + +Settings: +NAME VALUE +work_mem 4 +max_connections 100 +effective_cache_size 1300 +maintenance_work_mem 150 +max_parallel_workers 0 +max_parallel_workers_per_gather 0 +timezone UTC +🟩🟩🟩 JSON STDOUT 🟩🟩🟩 +{ + "created_at": "1970-01-01T00:00:00.0Z", + "volume": { + "type": "lssd", + "size": 5000000000 + }, + "region": "fr-par", + "id": "167a841d-8a1c-4d74-8e4c-cb71d843ac6b", + "name": "cli-test", + "organization_id": "564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id": "564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "status": "ready", + "engine": "PostgreSQL-12", + "endpoint": { + "id": "b7508d38-4562-4d27-8be0-4181fccae679", + "ip": "51.158.57.216", + "port": 17040, + "name": null, + "load_balancer": {} + }, + "tags": [], + "settings": [ + { + "name": "work_mem", + "value": "4" + }, + { + "name": "max_connections", + "value": "100" + }, + { + "name": "effective_cache_size", + "value": "1300" + }, + { + "name": "maintenance_work_mem", + "value": "150" + }, + { + "name": "max_parallel_workers", + "value": "0" + }, + { + "name": "max_parallel_workers_per_gather", + "value": "0" + }, + { + "name": "timezone", + "value": "UTC" + } + ], + "backup_schedule": { + "frequency": 24, + "retention": 7, + "disabled": false + }, + "is_ha_cluster": false, + "read_replicas": [], + "node_type": "db-dev-s", + "init_settings": [], + "endpoints": [ + { + "id": "b7508d38-4562-4d27-8be0-4181fccae679", + "ip": "51.158.57.216", + "port": 17040, + "name": null, + "load_balancer": {} + } + ], + "logs_policy": { + "max_age_retention": 30, + "total_disk_retention": null + }, + "backup_same_region": false, + "maintenances": [] +} diff --git a/internal/namespaces/rdb/v1/testdata/test-update-instance-update-instance-name.cassette.yaml b/internal/namespaces/rdb/v1/testdata/test-update-instance-update-instance-name.cassette.yaml new file mode 100644 index 0000000000..6583b83226 --- /dev/null +++ b/internal/namespaces/rdb/v1/testdata/test-update-instance-update-instance-name.cassette.yaml @@ -0,0 +1,743 @@ +--- +version: 1 +interactions: +- request: + body: '{"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","name":"cli-test","engine":"PostgreSQL-12","user_name":"foobar","password":"{4xdl*#QOoP+\u00263XRkGA)]","node_type":"db-dev-s","is_ha_cluster":false,"disable_backup":false,"tags":null,"init_settings":null,"volume_type":"lssd","volume_size":0,"init_endpoints":null,"backup_same_region":false}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances + method: POST + response: + body: '{"id":"ddd04001-e2f1-4da1-8807-14f7fb3c62f7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.633933Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:06:01 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c22862fd-8767-4f7e-b74f-b0432e48e107 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/ddd04001-e2f1-4da1-8807-14f7fb3c62f7 + method: GET + response: + body: '{"id":"ddd04001-e2f1-4da1-8807-14f7fb3c62f7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.633933Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:06:01 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 932e853f-a51e-4d5f-b8cf-c9f9a34cbb25 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/ddd04001-e2f1-4da1-8807-14f7fb3c62f7 + method: GET + response: + body: '{"id":"ddd04001-e2f1-4da1-8807-14f7fb3c62f7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.633933Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:06:16 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 411a88c0-ddde-4b7b-8dd3-0b77d755226f + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/ddd04001-e2f1-4da1-8807-14f7fb3c62f7 + method: GET + response: + body: '{"id":"ddd04001-e2f1-4da1-8807-14f7fb3c62f7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.633933Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:06:31 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 03c1d474-4e88-4ab9-b368-8171987e44b7 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/ddd04001-e2f1-4da1-8807-14f7fb3c62f7 + method: GET + response: + body: '{"id":"ddd04001-e2f1-4da1-8807-14f7fb3c62f7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.633933Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:06:46 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d8143a33-311f-452c-82fd-cce938c303df + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/ddd04001-e2f1-4da1-8807-14f7fb3c62f7 + method: GET + response: + body: '{"id":"ddd04001-e2f1-4da1-8807-14f7fb3c62f7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.633933Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:07:02 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 729d3d5c-846f-4679-9549-839fd5183d38 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/ddd04001-e2f1-4da1-8807-14f7fb3c62f7 + method: GET + response: + body: '{"id":"ddd04001-e2f1-4da1-8807-14f7fb3c62f7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.633933Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:07:17 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3c09013c-587a-48a7-b383-d5ef00ac5fef + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/ddd04001-e2f1-4da1-8807-14f7fb3c62f7 + method: GET + response: + body: '{"id":"ddd04001-e2f1-4da1-8807-14f7fb3c62f7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.633933Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:07:32 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1f61df13-cf82-4178-82ba-2dca70e5c31e + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/ddd04001-e2f1-4da1-8807-14f7fb3c62f7 + method: GET + response: + body: '{"id":"ddd04001-e2f1-4da1-8807-14f7fb3c62f7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.633933Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:07:47 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2dca08b5-c847-4e4c-b85e-7c164b509eca + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/ddd04001-e2f1-4da1-8807-14f7fb3c62f7 + method: GET + response: + body: '{"id":"ddd04001-e2f1-4da1-8807-14f7fb3c62f7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.633933Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:08:03 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bfeffffb-d77e-4290-bc74-0899ebff271a + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/ddd04001-e2f1-4da1-8807-14f7fb3c62f7 + method: GET + response: + body: '{"id":"ddd04001-e2f1-4da1-8807-14f7fb3c62f7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.633933Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:08:18 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - dab26290-f514-4af4-ba57-c92ccfb71b98 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/ddd04001-e2f1-4da1-8807-14f7fb3c62f7 + method: GET + response: + body: '{"id":"ddd04001-e2f1-4da1-8807-14f7fb3c62f7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.633933Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:08:33 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 22bcba40-ca8a-42d4-a5d8-efb7b4189e05 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/ddd04001-e2f1-4da1-8807-14f7fb3c62f7 + method: GET + response: + body: '{"id":"ddd04001-e2f1-4da1-8807-14f7fb3c62f7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.633933Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:08:48 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0721670e-9402-4354-8f49-9ead676fa64f + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/ddd04001-e2f1-4da1-8807-14f7fb3c62f7 + method: GET + response: + body: '{"id":"ddd04001-e2f1-4da1-8807-14f7fb3c62f7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.633933Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:09:03 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 88460c20-9adf-4e84-b4b7-ce2db1ac4e0f + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/ddd04001-e2f1-4da1-8807-14f7fb3c62f7 + method: GET + response: + body: '{"id":"ddd04001-e2f1-4da1-8807-14f7fb3c62f7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.633933Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:09:19 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 85b326a5-518f-488a-9b37-a5c072256913 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/ddd04001-e2f1-4da1-8807-14f7fb3c62f7 + method: GET + response: + body: '{"id":"ddd04001-e2f1-4da1-8807-14f7fb3c62f7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.633933Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:09:34 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 90ce8463-85c1-407a-8810-b1b56ba38105 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/ddd04001-e2f1-4da1-8807-14f7fb3c62f7 + method: GET + response: + body: '{"id":"ddd04001-e2f1-4da1-8807-14f7fb3c62f7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.633933Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:09:49 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ae2a7069-fe89-4b6d-ba0c-ce390a9c8f06 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/ddd04001-e2f1-4da1-8807-14f7fb3c62f7 + method: GET + response: + body: '{"id":"ddd04001-e2f1-4da1-8807-14f7fb3c62f7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.633933Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:10:04 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 60ff75c7-25a0-449e-8e92-72b00d12fe74 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/ddd04001-e2f1-4da1-8807-14f7fb3c62f7 + method: GET + response: + body: '{"id":"ddd04001-e2f1-4da1-8807-14f7fb3c62f7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.158.57.216","port":50510,"name":null,"id":"a1eba0cc-1b0a-41c7-9478-5ce4a7af84ed","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"51.158.57.216","port":50510,"name":null,"id":"a1eba0cc-1b0a-41c7-9478-5ce4a7af84ed","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.633933Z","region":"fr-par"}' + headers: + Content-Length: + - "1114" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:10:19 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - fe2cd322-8362-43b9-94d0-ead66adb73ad + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/ddd04001-e2f1-4da1-8807-14f7fb3c62f7 + method: GET + response: + body: '{"id":"ddd04001-e2f1-4da1-8807-14f7fb3c62f7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.158.57.216","port":50510,"name":null,"id":"a1eba0cc-1b0a-41c7-9478-5ce4a7af84ed","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"51.158.57.216","port":50510,"name":null,"id":"a1eba0cc-1b0a-41c7-9478-5ce4a7af84ed","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.633933Z","region":"fr-par"}' + headers: + Content-Length: + - "1114" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:10:19 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - fe63f9da-f5c0-4dd9-9a3b-db41d60dd294 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"backup_schedule_frequency":null,"backup_schedule_retention":null,"is_backup_schedule_disabled":null,"name":"foo","tags":null,"logs_policy":null,"backup_same_region":null}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/ddd04001-e2f1-4da1-8807-14f7fb3c62f7 + method: PATCH + response: + body: '{"id":"ddd04001-e2f1-4da1-8807-14f7fb3c62f7","name":"foo","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.158.57.216","port":50510,"name":null,"id":"a1eba0cc-1b0a-41c7-9478-5ce4a7af84ed","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"51.158.57.216","port":50510,"name":null,"id":"a1eba0cc-1b0a-41c7-9478-5ce4a7af84ed","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.633933Z","region":"fr-par"}' + headers: + Content-Length: + - "1109" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:10:19 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 23fcc4a0-f4a8-474e-9ed2-c9447afd3ac6 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/ddd04001-e2f1-4da1-8807-14f7fb3c62f7 + method: GET + response: + body: '{"id":"ddd04001-e2f1-4da1-8807-14f7fb3c62f7","name":"foo","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.158.57.216","port":50510,"name":null,"id":"a1eba0cc-1b0a-41c7-9478-5ce4a7af84ed","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"51.158.57.216","port":50510,"name":null,"id":"a1eba0cc-1b0a-41c7-9478-5ce4a7af84ed","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.633933Z","region":"fr-par"}' + headers: + Content-Length: + - "1109" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:10:20 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c2048b46-65e9-4bfb-80ab-45c62ee1de1a + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/ddd04001-e2f1-4da1-8807-14f7fb3c62f7 + method: DELETE + response: + body: '{"id":"ddd04001-e2f1-4da1-8807-14f7fb3c62f7","name":"foo","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"deleting","engine":"PostgreSQL-12","endpoint":{"ip":"51.158.57.216","port":50510,"name":null,"id":"a1eba0cc-1b0a-41c7-9478-5ce4a7af84ed","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"51.158.57.216","port":50510,"name":null,"id":"a1eba0cc-1b0a-41c7-9478-5ce4a7af84ed","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.633933Z","region":"fr-par"}' + headers: + Content-Length: + - "1112" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:10:20 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - de52c13a-abcc-41aa-aeb5-64c7cc8cc96b + status: 200 OK + code: 200 + duration: "" diff --git a/internal/namespaces/rdb/v1/testdata/test-update-instance-update-instance-name.golden b/internal/namespaces/rdb/v1/testdata/test-update-instance-update-instance-name.golden new file mode 100644 index 0000000000..2a7a1faed4 --- /dev/null +++ b/internal/namespaces/rdb/v1/testdata/test-update-instance-update-instance-name.golden @@ -0,0 +1,113 @@ +🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 +🟩🟩🟩 STDOUT️ 🟩🟩🟩️ +CreatedAt few seconds ago +Region fr-par +ID ddd04001-e2f1-4da1-8807-14f7fb3c62f7 +Name foo +OrganizationID 564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5 +ProjectID 564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5 +Status ready +Engine PostgreSQL-12 +IsHaCluster false +NodeType db-dev-s +Endpoints.0.ID a1eba0cc-1b0a-41c7-9478-5ce4a7af84ed +Endpoints.0.IP 51.158.57.216 +Endpoints.0.Port 50510 +LogsPolicy.MaxAgeRetention 30 +BackupSameRegion false + +Endpoint: +ID a1eba0cc-1b0a-41c7-9478-5ce4a7af84ed +IP 51.158.57.216 +Port 50510 + +Volume: +Type lssd +Size 5.0 GB + +Backup Schedule: +Disabled false +Frequency 1 days +Retention 7 days + +Settings: +NAME VALUE +work_mem 4 +max_connections 100 +effective_cache_size 1300 +maintenance_work_mem 150 +max_parallel_workers 0 +max_parallel_workers_per_gather 0 +🟩🟩🟩 JSON STDOUT 🟩🟩🟩 +{ + "created_at": "1970-01-01T00:00:00.0Z", + "volume": { + "type": "lssd", + "size": 5000000000 + }, + "region": "fr-par", + "id": "ddd04001-e2f1-4da1-8807-14f7fb3c62f7", + "name": "foo", + "organization_id": "564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id": "564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "status": "ready", + "engine": "PostgreSQL-12", + "endpoint": { + "id": "a1eba0cc-1b0a-41c7-9478-5ce4a7af84ed", + "ip": "51.158.57.216", + "port": 50510, + "name": null, + "load_balancer": {} + }, + "tags": [], + "settings": [ + { + "name": "work_mem", + "value": "4" + }, + { + "name": "max_connections", + "value": "100" + }, + { + "name": "effective_cache_size", + "value": "1300" + }, + { + "name": "maintenance_work_mem", + "value": "150" + }, + { + "name": "max_parallel_workers", + "value": "0" + }, + { + "name": "max_parallel_workers_per_gather", + "value": "0" + } + ], + "backup_schedule": { + "frequency": 24, + "retention": 7, + "disabled": false + }, + "is_ha_cluster": false, + "read_replicas": [], + "node_type": "db-dev-s", + "init_settings": [], + "endpoints": [ + { + "id": "a1eba0cc-1b0a-41c7-9478-5ce4a7af84ed", + "ip": "51.158.57.216", + "port": 50510, + "name": null, + "load_balancer": {} + } + ], + "logs_policy": { + "max_age_retention": 30, + "total_disk_retention": null + }, + "backup_same_region": false, + "maintenances": [] +} diff --git a/internal/namespaces/rdb/v1/testdata/test-update-instance-update-instance-tags.cassette.yaml b/internal/namespaces/rdb/v1/testdata/test-update-instance-update-instance-tags.cassette.yaml new file mode 100644 index 0000000000..fcf9d5a452 --- /dev/null +++ b/internal/namespaces/rdb/v1/testdata/test-update-instance-update-instance-tags.cassette.yaml @@ -0,0 +1,679 @@ +--- +version: 1 +interactions: +- request: + body: '{"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","name":"cli-test","engine":"PostgreSQL-12","user_name":"foobar","password":"{4xdl*#QOoP+\u00263XRkGA)]","node_type":"db-dev-s","is_ha_cluster":false,"disable_backup":false,"tags":null,"init_settings":null,"volume_type":"lssd","volume_size":0,"init_endpoints":null,"backup_same_region":false}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances + method: POST + response: + body: '{"id":"eeb523d0-9808-4e3f-94ba-e5f6458f1aa7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.636538Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:06:01 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 033cdc79-3a60-49ae-8f8a-7e6e687b28f8 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/eeb523d0-9808-4e3f-94ba-e5f6458f1aa7 + method: GET + response: + body: '{"id":"eeb523d0-9808-4e3f-94ba-e5f6458f1aa7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.636538Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:06:01 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1a9bd5f5-8130-4b7d-b877-b22e134566dd + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/eeb523d0-9808-4e3f-94ba-e5f6458f1aa7 + method: GET + response: + body: '{"id":"eeb523d0-9808-4e3f-94ba-e5f6458f1aa7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.636538Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:06:16 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b5b08f23-e17e-479a-8075-7f323eae3e8a + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/eeb523d0-9808-4e3f-94ba-e5f6458f1aa7 + method: GET + response: + body: '{"id":"eeb523d0-9808-4e3f-94ba-e5f6458f1aa7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.636538Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:06:31 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - efe0b306-15b7-4cbc-a823-c7dc4adda7e5 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/eeb523d0-9808-4e3f-94ba-e5f6458f1aa7 + method: GET + response: + body: '{"id":"eeb523d0-9808-4e3f-94ba-e5f6458f1aa7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.636538Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:06:47 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - dc4959c0-e61b-4e0d-b50a-009ddd6da778 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/eeb523d0-9808-4e3f-94ba-e5f6458f1aa7 + method: GET + response: + body: '{"id":"eeb523d0-9808-4e3f-94ba-e5f6458f1aa7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.636538Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:07:02 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 698a172f-b4d5-4de0-a89d-05da8759696d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/eeb523d0-9808-4e3f-94ba-e5f6458f1aa7 + method: GET + response: + body: '{"id":"eeb523d0-9808-4e3f-94ba-e5f6458f1aa7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.636538Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:07:17 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 886acc91-b7be-487a-9f2e-aff5c2b7cef1 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/eeb523d0-9808-4e3f-94ba-e5f6458f1aa7 + method: GET + response: + body: '{"id":"eeb523d0-9808-4e3f-94ba-e5f6458f1aa7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.636538Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:07:32 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c788fa75-fb58-4372-bd6c-ca760adc44cb + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/eeb523d0-9808-4e3f-94ba-e5f6458f1aa7 + method: GET + response: + body: '{"id":"eeb523d0-9808-4e3f-94ba-e5f6458f1aa7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.636538Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:07:47 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2a275142-e71e-4b86-8033-7e166c034c8d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/eeb523d0-9808-4e3f-94ba-e5f6458f1aa7 + method: GET + response: + body: '{"id":"eeb523d0-9808-4e3f-94ba-e5f6458f1aa7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.636538Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:08:03 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6d23118e-9a22-4053-98a5-9ba46528e4c0 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/eeb523d0-9808-4e3f-94ba-e5f6458f1aa7 + method: GET + response: + body: '{"id":"eeb523d0-9808-4e3f-94ba-e5f6458f1aa7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.636538Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:08:18 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2357f405-54fd-4cfd-82b4-c6e323a310f2 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/eeb523d0-9808-4e3f-94ba-e5f6458f1aa7 + method: GET + response: + body: '{"id":"eeb523d0-9808-4e3f-94ba-e5f6458f1aa7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.636538Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:08:33 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c41d07d4-6c76-46f8-93e0-6aed90db02d3 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/eeb523d0-9808-4e3f-94ba-e5f6458f1aa7 + method: GET + response: + body: '{"id":"eeb523d0-9808-4e3f-94ba-e5f6458f1aa7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.636538Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:08:48 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - dc834e62-12d1-4253-ba9b-834c55dd4dcf + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/eeb523d0-9808-4e3f-94ba-e5f6458f1aa7 + method: GET + response: + body: '{"id":"eeb523d0-9808-4e3f-94ba-e5f6458f1aa7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.636538Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:09:03 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0f697900-62e8-4c6a-936a-ca0516a424d3 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/eeb523d0-9808-4e3f-94ba-e5f6458f1aa7 + method: GET + response: + body: '{"id":"eeb523d0-9808-4e3f-94ba-e5f6458f1aa7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.636538Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:09:19 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d07e2e8c-f4b3-4cf5-84a4-24894ae1a243 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/eeb523d0-9808-4e3f-94ba-e5f6458f1aa7 + method: GET + response: + body: '{"id":"eeb523d0-9808-4e3f-94ba-e5f6458f1aa7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.636538Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:09:34 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f1d4d7ba-aa55-46b3-973e-d1de5032bbc6 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/eeb523d0-9808-4e3f-94ba-e5f6458f1aa7 + method: GET + response: + body: '{"id":"eeb523d0-9808-4e3f-94ba-e5f6458f1aa7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.158.57.216","port":39176,"name":null,"id":"6fb9996f-3e7d-4077-855d-0bf7e4ca866e","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"51.158.57.216","port":39176,"name":null,"id":"6fb9996f-3e7d-4077-855d-0bf7e4ca866e","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.636538Z","region":"fr-par"}' + headers: + Content-Length: + - "1114" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:09:49 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - cb3b266b-a2dd-41db-ae5d-c9733aefe794 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/eeb523d0-9808-4e3f-94ba-e5f6458f1aa7 + method: GET + response: + body: '{"id":"eeb523d0-9808-4e3f-94ba-e5f6458f1aa7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.158.57.216","port":39176,"name":null,"id":"6fb9996f-3e7d-4077-855d-0bf7e4ca866e","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"51.158.57.216","port":39176,"name":null,"id":"6fb9996f-3e7d-4077-855d-0bf7e4ca866e","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.636538Z","region":"fr-par"}' + headers: + Content-Length: + - "1114" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:09:49 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b2ef1927-de1b-45bd-834c-e0df32387f71 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"backup_schedule_frequency":null,"backup_schedule_retention":null,"is_backup_schedule_disabled":null,"name":null,"tags":["a"],"logs_policy":null,"backup_same_region":null}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/eeb523d0-9808-4e3f-94ba-e5f6458f1aa7 + method: PATCH + response: + body: '{"id":"eeb523d0-9808-4e3f-94ba-e5f6458f1aa7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.158.57.216","port":39176,"name":null,"id":"6fb9996f-3e7d-4077-855d-0bf7e4ca866e","load_balancer":{}},"tags":["a"],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"51.158.57.216","port":39176,"name":null,"id":"6fb9996f-3e7d-4077-855d-0bf7e4ca866e","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.636538Z","region":"fr-par"}' + headers: + Content-Length: + - "1117" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:09:49 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b4cc924a-888d-46fb-9400-894bd8e9b419 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/eeb523d0-9808-4e3f-94ba-e5f6458f1aa7 + method: GET + response: + body: '{"id":"eeb523d0-9808-4e3f-94ba-e5f6458f1aa7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.158.57.216","port":39176,"name":null,"id":"6fb9996f-3e7d-4077-855d-0bf7e4ca866e","load_balancer":{}},"tags":["a"],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"51.158.57.216","port":39176,"name":null,"id":"6fb9996f-3e7d-4077-855d-0bf7e4ca866e","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.636538Z","region":"fr-par"}' + headers: + Content-Length: + - "1117" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:09:49 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6d2a1649-4cbe-4ee4-a9ec-aabbb28c0ca2 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/eeb523d0-9808-4e3f-94ba-e5f6458f1aa7 + method: DELETE + response: + body: '{"id":"eeb523d0-9808-4e3f-94ba-e5f6458f1aa7","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"deleting","engine":"PostgreSQL-12","endpoint":{"ip":"51.158.57.216","port":39176,"name":null,"id":"6fb9996f-3e7d-4077-855d-0bf7e4ca866e","load_balancer":{}},"tags":["a"],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"51.158.57.216","port":39176,"name":null,"id":"6fb9996f-3e7d-4077-855d-0bf7e4ca866e","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-10-17T12:06:00.636538Z","region":"fr-par"}' + headers: + Content-Length: + - "1120" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 17 Oct 2022 12:09:49 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - cec2acd6-ef1c-4f44-ba69-a0eee6d41ad6 + status: 200 OK + code: 200 + duration: "" diff --git a/internal/namespaces/rdb/v1/testdata/test-update-instance-update-instance-tags.golden b/internal/namespaces/rdb/v1/testdata/test-update-instance-update-instance-tags.golden new file mode 100644 index 0000000000..8c96a346bc --- /dev/null +++ b/internal/namespaces/rdb/v1/testdata/test-update-instance-update-instance-tags.golden @@ -0,0 +1,116 @@ +🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 +🟩🟩🟩 STDOUT️ 🟩🟩🟩️ +CreatedAt few seconds ago +Region fr-par +ID eeb523d0-9808-4e3f-94ba-e5f6458f1aa7 +Name cli-test +OrganizationID 564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5 +ProjectID 564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5 +Status ready +Engine PostgreSQL-12 +Tags.0 a +IsHaCluster false +NodeType db-dev-s +Endpoints.0.ID 6fb9996f-3e7d-4077-855d-0bf7e4ca866e +Endpoints.0.IP 51.158.57.216 +Endpoints.0.Port 39176 +LogsPolicy.MaxAgeRetention 30 +BackupSameRegion false + +Endpoint: +ID 6fb9996f-3e7d-4077-855d-0bf7e4ca866e +IP 51.158.57.216 +Port 39176 + +Volume: +Type lssd +Size 5.0 GB + +Backup Schedule: +Disabled false +Frequency 1 days +Retention 7 days + +Settings: +NAME VALUE +work_mem 4 +max_connections 100 +effective_cache_size 1300 +maintenance_work_mem 150 +max_parallel_workers 0 +max_parallel_workers_per_gather 0 +🟩🟩🟩 JSON STDOUT 🟩🟩🟩 +{ + "created_at": "1970-01-01T00:00:00.0Z", + "volume": { + "type": "lssd", + "size": 5000000000 + }, + "region": "fr-par", + "id": "eeb523d0-9808-4e3f-94ba-e5f6458f1aa7", + "name": "cli-test", + "organization_id": "564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id": "564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "status": "ready", + "engine": "PostgreSQL-12", + "endpoint": { + "id": "6fb9996f-3e7d-4077-855d-0bf7e4ca866e", + "ip": "51.158.57.216", + "port": 39176, + "name": null, + "load_balancer": {} + }, + "tags": [ + "a" + ], + "settings": [ + { + "name": "work_mem", + "value": "4" + }, + { + "name": "max_connections", + "value": "100" + }, + { + "name": "effective_cache_size", + "value": "1300" + }, + { + "name": "maintenance_work_mem", + "value": "150" + }, + { + "name": "max_parallel_workers", + "value": "0" + }, + { + "name": "max_parallel_workers_per_gather", + "value": "0" + } + ], + "backup_schedule": { + "frequency": 24, + "retention": 7, + "disabled": false + }, + "is_ha_cluster": false, + "read_replicas": [], + "node_type": "db-dev-s", + "init_settings": [], + "endpoints": [ + { + "id": "6fb9996f-3e7d-4077-855d-0bf7e4ca866e", + "ip": "51.158.57.216", + "port": 39176, + "name": null, + "load_balancer": {} + } + ], + "logs_policy": { + "max_age_retention": 30, + "total_disk_retention": null + }, + "backup_same_region": false, + "maintenances": [] +}