Repository: scaleway/scaleway-cli
Pull request #2931 (2023-03-24 10:30:43)

feat(billing): add billing command
### Community Note

* Please vote on this pull request by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original pull request comment to help the community and maintainers prioritize this request.
* Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

<!--- Thank you for keeping this note for the community --->

<!--- If your PR fully resolves and should automatically close the linked issue, use Closes. Otherwise, use Relates --->
Relates OR Closes #0000

Release note for [CHANGELOG](https://github.com/scaleway/scaleway-cli/blob/master/CHANGELOG.md):
<!--
If the change is not user facing, just write "NONE" in the release-note block below.
-->

```release-note

```



Patch:
diff --git a/README.md b/README.md
index b313514b..fb27622e 100644
--- a/README.md
+++ b/README.md
@@ -120,6 +120,7 @@ To enable beta features, you can set `SCW_ENABLE_BETA=1` in your environment.
 | `applesilicon` | Apple silicon API                       | [CLI](./docs/commands/apple-silicon.md) / [API](https://developers.scaleway.com/en/products/apple-silicon/api/) |
 | `autocomplete` | Autocomplete related commands           | [CLI](./docs/commands/autocomplete.md)                                                                          |
 | `baremetal`    | Baremetal API                           | [CLI](./docs/commands/baremetal.md) / [API](https://developers.scaleway.com/en/products/baremetal/api/)         |
+| `billing`      | Billing API                             | [CLI](./docs/commands/billing.md) / [API](https://developers.scaleway.com/en/products/billing/api/)             |
 | `cockpit`      | Cockpit API                             | [CLI](./docs/commands/cockpit.md) / [API](https://developers.scaleway.com/en/products/cockpit/api/)             |
 | `config`       | Config file management                  | [CLI](./docs/commands/config.md)                                                                                |
 | `container`    | Serverless Container API                | [CLI](./docs/commands/container.md) / [API](https://developers.scaleway.com/en/products/containers/api/)        |
diff --git a/docs/commands/billing.md b/docs/commands/billing.md
new file mode 100644
index 00000000..58957645
--- /dev/null
+++ b/docs/commands/billing.md
@@ -0,0 +1,59 @@
+<!-- DO NOT EDIT: this file is automatically generated using scw-doc-gen -->
+# Documentation for `scw billing`
+Billing API.
+  
+- [Invoices management commands](#invoices-management-commands)
+  - [Download billing resources](#download-billing-resources)
+  - [List billing resources](#list-billing-resources)
+
+  
+## Invoices management commands
+
+Invoices management commands.
+
+
+### Download billing resources
+
+Download billing resources.
+
+**Usage:**
+
+```
+scw billing invoice download [arg=value ...]
+```
+
+
+**Args:**
+
+| Name |   | Description |
+|------|---|-------------|
+| invoice-id | Required | Invoice ID |
+| file-path | Default: `./` | Wanted file path |
+| file-type | Default: `pdf` | Wanted file extension |
+| force-replace | Default: `false` | Force file replacement |
+
+
+
+### List billing resources
+
+List billing resources.
+
+**Usage:**
+
+```
+scw billing invoice list [arg=value ...]
+```
+
+
+**Args:**
+
+| Name |   | Description |
+|------|---|-------------|
+| started-after |  | Invoice's `start_date` is greater or equal to `started_after` |
+| started-before |  | Invoice's `start_date` precedes `started_before` |
+| invoice-type | One of: `unknown_type`, `periodic`, `purchase` | Invoice type. It can either be `periodic` or `purchase` |
+| order-by | One of: `invoice_number_desc`, `invoice_number_asc`, `start_date_desc`, `start_date_asc`, `issued_date_desc`, `issued_date_asc`, `due_date_desc`, `due_date_asc`, `total_untaxed_desc`, `total_untaxed_asc`, `total_taxed_desc`, `total_taxed_asc`, `invoice_type_desc`, `invoice_type_asc` | How invoices are ordered in the response |
+| organization-id |  | Organization ID to filter for, only invoices from this Organization will be returned |
+
+
+
diff --git a/docs/commands/rdb.md b/docs/commands/rdb.md
index f0fc383c..bcef5ed5 100644
--- a/docs/commands/rdb.md
+++ b/docs/commands/rdb.md
@@ -659,6 +659,7 @@ scw rdb instance connect <instance-id ...> [arg=value ...]
 
 | Name |   | Description |
 |------|---|-------------|
+| private-network | Default: `false` | Connect by the private network endpoint attached. |
 | instance-id | Required | UUID of the instance |
 | username | Required | Name of the user to connect with to the database |
 | database | Default: `rdb` | Name of the database |
diff --git a/internal/namespaces/billing/v2alpha1/custom.go b/internal/namespaces/billing/v2alpha1/custom.go
new file mode 100644
index 00000000..5babf9f8
--- /dev/null
+++ b/internal/namespaces/billing/v2alpha1/custom.go
@@ -0,0 +1,22 @@
+package billing
+
+import (
+	"github.com/fatih/color"
+	"github.com/scaleway/scaleway-cli/v2/internal/core"
+	"github.com/scaleway/scaleway-cli/v2/internal/human"
+	billing "github.com/scaleway/scaleway-sdk-go/api/billing/v2alpha1"
+)
+
+var (
+	invoiceTypeMarshalSpecs = human.EnumMarshalSpecs{
+		billing.DownloadInvoiceRequestFileTypePdf: &human.EnumMarshalSpec{Attribute: color.FgHiBlue, Value: "pdf"},
+	}
+)
+
+func GetCommands() *core.Commands {
+	cmds := GetGeneratedCommands()
+
+	human.RegisterMarshalerFunc(billing.DownloadInvoiceRequestFileType("pdf"), human.EnumMarshalFunc(invoiceTypeMarshalSpecs))
+	cmds.MustFind("billing", "invoice", "download").Override(buildDownloadCommand)
+	return cmds
+}
diff --git a/internal/namespaces/billing/v2alpha1/custom_billing_download.go b/internal/namespaces/billing/v2alpha1/custom_billing_download.go
new file mode 100644
index 00000000..4f612ff3
--- /dev/null
+++ b/internal/namespaces/billing/v2alpha1/custom_billing_download.go
@@ -0,0 +1,239 @@
+package billing
+
+import (
+	"context"
+	"fmt"
+	"io"
+	"os"
+	"path/filepath"
+	"reflect"
+	"strings"
+	"time"
+
+	"github.com/fatih/color"
+	"github.com/scaleway/scaleway-cli/v2/internal/core"
+	"github.com/scaleway/scaleway-cli/v2/internal/interactive"
+	"github.com/scaleway/scaleway-cli/v2/internal/terminal"
+	billing "github.com/scaleway/scaleway-sdk-go/api/billing/v2alpha1"
+)
+
+const (
+	invoiceDefaultPrefix = "scaleway-invoice"
+)
+
+type billingDownloadRequest struct {
+	billing.DownloadInvoiceRequest
+	// extra arguments
+	FilePath     string
+	ForceReplace bool
+}
+
+func fileNameWithoutExtTrimSuffix(fileName string) string {
+	return strings.TrimSuffix(fileName, filepath.Ext(fileName))
+}
+
+func buildDownloadCommand(command *core.Command) *core.Command {
+	command.ArgsType = reflect.TypeOf(billingDownloadRequest{})
+	command.ArgSpecs = core.ArgSpecs{
+		{
+			Name:       "invoice-id",
+			Short:      `Invoice ID`,
+			Required:   true,
+			Deprecated: false,
+			Positional: false,
+		},
+		{
+			Name:       "file-path",
+			Short:      `Wanted file path`,
+			Required:   false,
+			Deprecated: false,
+			Positional: false,
+			Default:    core.DefaultValueSetter("./"),
+		},
+		{
+			Name:       "file-type",
+			Short:      `Wanted file extension`,
+			Required:   false,
+			Deprecated: false,
+			Positional: false,
+			Default:    core.DefaultValueSetter(billing.DownloadInvoiceRequestFileTypePdf.String()),
+		},
+		{
+			Name:       "force-replace",
+			Short:      `Force file replacement`,
+			Required:   false,
+			Deprecated: false,
+			Positional: false,
+			Default:    core.DefaultValueSetter("false"),
+		},
+	}
+	command.Run = billingDownloadRun
+	command.PreValidateFunc = func(ctx context.Context, argsI interface{}) error {
+		args := argsI.(*billingDownloadRequest)
+		askPrompt := false
+		request := &billing.DownloadInvoiceRequest{
+			InvoiceID: args.InvoiceID,
+			FileType:  args.FileType,
+		}
+		client := core.ExtractClient(ctx)
+		billingAPI := billing.NewAPI(client)
+		resp, err := billingAPI.DownloadInvoice(request)
+		if err != nil {
+			return err
+		}
+
+		date, err := trimDateFromFileName(resp.Name)
+		if err != nil {
+			return fmt.Errorf("parse date on file name")
+		}
+
+		dir, file := getDirFile(args.FilePath)
+		if len(file) > 0 {
+			fileExtension := filepath.Ext(file)
+			if extensionOnFile := checkInvoiceExt(fileExtension); !extensionOnFile {
+				return fmt.Errorf("file has not supported extension")
+			}
+		}
+
+		entries, err := os.ReadDir(dir)
+		if err != nil {
+			return err
+		}
+
+		if args.ForceReplace {
+			return nil
+		}
+
+		// check default name
+		defaultFileName := fmt.Sprintf("%s-%s-%s.%s", invoiceDefaultPrefix, date, args.InvoiceID, args.FileType)
+		// read only in the parent path
+		for _, e := range entries {
+			if e.IsDir() {
+				continue
+			}
+			// case default name on directory
+			if len(file) == 0 && e.Name() == defaultFileName {
+				file = defaultFileName
+				askPrompt = true
+			}
+
+			if file == e.Name() {
+				askPrompt = true
+			}
+		}
+
+		if askPrompt {
+			_, _ = interactive.PrintlnWithoutIndent(`
+					Current file exist is located at ` + terminal.Style(args.FilePath, color.Faint))
+			overrideFile, err := interactive.PromptBoolWithConfig(&interactive.PromptBoolConfig{
+				Prompt:       fmt.Sprintf("Do you want to override the current file: %s ?", file),
+				DefaultValue: false,
+				Ctx:          ctx,
+			})
+			if err != nil {
+				return err
+			}
+			if !overrideFile {
+				return fmt.Errorf("download file canceled")
+			}
+		}
+
+		return nil
+	}
+
+	return command
+}
+
+func getDirFile(filePath string) (string, string) {
+	dir := "."
+	dirTmp, file := filepath.Split(filePath)
+	if len(dirTmp) > 0 {
+		dir = dirTmp
+	}
+
+	if file == "." {
+		file = ""
+	}
+
+	return dir, file
+}
+
+func addExt(fileName, contentType string) string {
+	switch contentType {
+	case "application/pdf":
+		fileName = fmt.Sprintf("%s.pdf", fileName)
+	}
+
+	return fileName
+}
+
+func checkInvoiceExt(ext string) bool {
+	switch ext {
+	case ".pdf":
+		return true
+	}
+
+	return false
+}
+
+func billingDownloadRun(ctx context.Context, argsI interface{}) (interface{}, error) {
+	argsDownload := argsI.(*billingDownloadRequest)
+
+	request := &billing.DownloadInvoiceRequest{
+		InvoiceID: argsDownload.InvoiceID,
+		FileType:  argsDownload.FileType,
+	}
+
+	client := core.ExtractClient(ctx)
+	billingAPI := billing.NewAPI(client)
+	resp, err := billingAPI.DownloadInvoice(request)
+	if err != nil {
+		return nil, err
+	}
+
+	fileName := fileNameWithoutExtTrimSuffix(argsDownload.FilePath)
+	// check file path argument
+	fInfo, err := os.Stat(argsDownload.FilePath)
+	if err == nil {
+		if fInfo.IsDir() {
+			// case when filepath is a directory: join default name with custom path
+			date, err := trimDateFromFileName(resp.Name)
+			if err != nil {
+				return nil, fmt.Errorf("parse date on file name")
+			}
+
+			defaultFileName := fmt.Sprintf("%s-%s-%s", invoiceDefaultPrefix, date, argsDownload.InvoiceID)
+			pathAbs, err := filepath.Abs(argsDownload.FilePath)
+			if err != nil {
+				return nil, err
+			}
+			fileName = filepath.Join(pathAbs, defaultFileName)
+		}
+	}
+	// add supported extension
+	fileName = addExt(fileName, resp.ContentType)
+
+	fileOutput, err := os.Create(fileName)
+	if err != nil {
+		dir, file := getDirFile(fileName)
+		return nil, fmt.Errorf("unavailable to create file %s on directory %s", file, dir)
+	}
+	defer fileOutput.Close()
+
+	_, err = io.Copy(fileOutput, resp.Content)
+	if err != nil {
+		return nil, err
+	}
+
+	return &core.SuccessResult{Empty: true}, nil
+}
+
+func trimDateFromFileName(filename string) (string, error) {
+	formatLayout := "2006-01"
+	m := strings.Split(filename, "-")
+	d, err := time.Parse(formatLayout, fmt.Sprintf("%s-%s", m[1], m[2]))
+	if err != nil {
+		return "", err
+	}
+	return d.Format(formatLayout), nil
+}
diff --git a/internal/namespaces/get_commands.go b/internal/namespaces/get_commands.go
index 50444160..d3fb5bc4 100644
--- a/internal/namespaces/get_commands.go
+++ b/internal/namespaces/get_commands.go
@@ -3,14 +3,13 @@ package namespaces
 import (
 	"os"
 
-	webhosting "github.com/scaleway/scaleway-cli/v2/internal/namespaces/webhosting/v1alpha1"
-
 	"github.com/scaleway/scaleway-cli/v2/internal/core"
 	accountv2 "github.com/scaleway/scaleway-cli/v2/internal/namespaces/account/v2"
 	"github.com/scaleway/scaleway-cli/v2/internal/namespaces/alias"
 	applesilicon "github.com/scaleway/scaleway-cli/v2/internal/namespaces/applesilicon/v1alpha1"
 	autocompleteNamespace "github.com/scaleway/scaleway-cli/v2/internal/namespaces/autocomplete"
 	"github.com/scaleway/scaleway-cli/v2/internal/namespaces/baremetal/v1"
+	billing "github.com/scaleway/scaleway-cli/v2/internal/namespaces/billing/v2alpha1"
 	cockpit "github.com/scaleway/scaleway-cli/v2/internal/namespaces/cockpit/v1beta1"
 	configNamespace "github.com/scaleway/scaleway-cli/v2/internal/namespaces/config"
 	container "github.com/scaleway/scaleway-cli/v2/internal/namespaces/container/v1beta1"
@@ -39,6 +38,7 @@ import (
 	versionNamespace "github.com/scaleway/scaleway-cli/v2/internal/namespaces/version"
 	"github.com/scaleway/scaleway-cli/v2/internal/namespaces/vpc/v1"
 	"github.com/scaleway/scaleway-cli/v2/internal/namespaces/vpcgw/v1"
+	webhosting "github.com/scaleway/scaleway-cli/v2/internal/namespaces/webhosting/v1alpha1"
 )
 
 var labs = os.Getenv("SCW_ENABLE_LABS") == "true"
@@ -86,6 +86,7 @@ func GetCommands() *core.Commands {
 		mnq.GetCommands(),
 		alias.GetCommands(),
 		webhosting.GetCommands(),
+		billing.GetCommands(),
 	)
 	if labs {
 		commands.Merge(ipfs.GetCommands())
diff --git a/internal/namespaces/init/init.go b/internal/namespaces/init/init.go
index 25ae2a13..309fbab1 100644
--- a/internal/namespaces/init/init.go
+++ b/internal/namespaces/init/init.go
@@ -136,7 +136,12 @@ Default path for configuration file is based on the following priority order:
 			// Show logo banner, or simple welcome message
 			printScalewayBanner()
 
-			err := promptProfileOverride(ctx, configPath, profileName)
+			config, err := loadConfigOrEmpty(configPath)
+			if err != nil {
+				return nil, err
+			}
+
+			err = promptProfileOverride(ctx, config, configPath, profileName)
 			if err != nil {
 				return nil, err
 			}
@@ -215,11 +220,6 @@ Default path for configuration file is based on the following priority order:
 				DefaultProjectID:      &args.ProjectID, // An API key is always bound to a project.
 			}
 
-			config, err := loadConfigOrEmpty(configPath)
-			if err != nil {
-				return nil, err
-			}
-
 			// Save the profile as default or as a named profile
 			if profileName == scw.DefaultProfileName {
 				// Default configuration
diff --git a/internal/namespaces/init/prompt.go b/internal/namespaces/init/prompt.go
index b8adc9bc..3d3dc65a 100644
--- a/internal/namespaces/init/prompt.go
+++ b/internal/namespaces/init/prompt.go
@@ -163,15 +163,22 @@ func promptDefaultZone(ctx context.Context) (scw.Zone, error) {
 	return scw.ParseZone(zone)
 }
 
-// promptProfileOverride prompt user if profileName is getting override in configPath
-func promptProfileOverride(ctx context.Context, configPath string, profileName string) error {
-	config, err := scw.LoadConfigFromPath(configPath)
+// promptProfileOverride prompt user if profileName is getting override in config
+func promptProfileOverride(ctx context.Context, config *scw.Config, configPath string, profileName string) error {
+	var profile *scw.Profile
+	var profileExists bool
+
+	if profileName == scw.DefaultProfileName {
+		profile = &config.Profile
+		profileExists = true
+	} else {
+		profile, profileExists = config.Profiles[profileName]
+	}
 
-	// If it is not a new config, ask if we want to override the existing config
-	if err == nil && !config.IsEmpty() {
+	if !config.IsEmpty() && profileExists {
 		_, _ = interactive.PrintlnWithoutIndent(`
 					Current config is located at ` + configPath + `
-					` + terminal.Style(fmt.Sprint(config), color.Faint) + `
+					` + terminal.Style(fmt.Sprint(profile), color.Faint) + `
 				`)
 		overrideConfig, err := interactive.PromptBoolWithConfig(&interactive.PromptBoolConfig{
 			Prompt:       fmt.Sprintf("Do you want to override the current profile (%s) ?", profileName),
diff --git a/internal/namespaces/rdb/v1/custom_instance.go b/internal/namespaces/rdb/v1/custom_instance.go
index 7c8a3804..fcb81594 100644
--- a/internal/namespaces/rdb/v1/custom_instance.go
+++ b/internal/namespaces/rdb/v1/custom_instance.go
@@ -20,7 +20,10 @@ import (
 )
 
 const (
-	instanceActionTimeout = 20 * time.Minute
+	instanceActionTimeout               = 20 * time.Minute
+	errorMessagePublicEndpointNotFound  = "public endpoint not found"
+	errorMessagePrivateEndpointNotFound = "private endpoint not found"
+	errorMessageEndpointNotFound        = "any endpoint is associated on your instance"
 )
 
 var (
@@ -396,11 +399,12 @@ func instanceWaitCommand() *core.Command {
 }
 
 type instanceConnectArgs struct {
-	Region     scw.Region
-	InstanceID string
-	Username   string
-	Database   *string
-	CliDB      *string
+	Region         scw.Region
+	PrivateNetwork bool
+	InstanceID     string
+	Username       string
+	Database       *string
+	CliDB          *string
 }
 
 type engineFamily string
@@ -463,7 +467,27 @@ func detectEngineFamily(instance *rdb.Instance) (engineFamily, error) {
 	return Unknown, fmt.Errorf("unknown engine: %s", instance.Engine)
 }
 
-func createConnectCommandLineArgs(instance *rdb.Instance, family engineFamily, args *instanceConnectArgs) ([]string, error) {
+func getPublicEndpoint(endpoints []*rdb.Endpoint) (*rdb.Endpoint, error) {
+	for _, e := range endpoints {
+		if e.LoadBalancer != nil {
+			return e, nil
+		}
+	}
+
+	return nil, fmt.Errorf(errorMessagePublicEndpointNotFound)
+}
+
+func getPrivateEndpoint(endpoints []*rdb.Endpoint) (*rdb.Endpoint, error) {
+	for _, e := range endpoints {
+		if e.PrivateNetwork != nil {
+			return e, nil
+		}
+	}
+
+	return nil, fmt.Errorf(errorMessagePrivateEndpointNotFound)
+}
+
+func createConnectCommandLineArgs(endpoint *rdb.Endpoint, family engineFamily, args *instanceConnectArgs) ([]string, error) {
 	database := "rdb"
 	if args.Database != nil {
 		database = *args.Database
@@ -479,8 +503,8 @@ func createConnectCommandLineArgs(instance *rdb.Instance, family engineFamily, a
 		// psql -h 51.159.25.206 --port 13917 -d rdb -U username
 		return []string{
 			clidb,
-			"--host", instance.Endpoints[0].IP.String(),
-			"--port", fmt.Sprintf("%d", instance.Endpoints[0].Port),
+			"--host", endpoint.IP.String(),
+			"--port", fmt.Sprintf("%d", endpoint.Port),
 			"--username", args.Username,
 			"--dbname", database,
 		}, nil
@@ -493,14 +517,14 @@ func createConnectCommandLineArgs(instance *rdb.Instance, family engineFamily, a
 		// mysql -h 195.154.69.163 --port 12210 -p -u username
 		return []string{
 			clidb,
-			"--host", instance.Endpoints[0].IP.String(),
-			"--port", fmt.Sprintf("%d", instance.Endpoints[0].Port),
+			"--host", endpoint.IP.String(),
+			"--port", fmt.Sprintf("%d", endpoint.Port),
 			"--database", database,
 			"--user", args.Username,
 		}, nil
 	}
 
-	return nil, fmt.Errorf("unrecognize database engine: %s", instance.Engine)
+	return nil, fmt.Errorf("unrecognize database engine: %s", family)
 }
 
 func instanceConnectCommand() *core.Command {
@@ -512,6 +536,12 @@ func instanceConnectCommand() *core.Command {
 		Long:      "Connect to an instance using locally installed CLI such as psql or mysql.",
 		ArgsType:  reflect.TypeOf(instanceConnectArgs{}),
 		ArgSpecs: core.ArgSpecs{
+			{
+				Name:     "private-network",
+				Short:    `Connect by the private network endpoint attached.`,
+				Required: false,
+				Default:  core.DefaultValueSetter("false"),
+			},
 			{
 				Name:       "instance-id",
 				Short:      `UUID of the instance`,
@@ -552,7 +582,25 @@ func instanceConnectCommand() *core.Command {
 				return nil, err
 			}
 
-			cmdArgs, err := createConnectCommandLineArgs(instance, engineFamily, args)
+			if len(instance.Endpoints) == 0 {
+				return nil, fmt.Errorf(errorMessageEndpointNotFound)
+			}
+
+			var endpoint *rdb.Endpoint
+			switch {
+			case args.PrivateNetwork:
+				endpoint, err = getPrivateEndpoint(instance.Endpoints)
+				if err != nil {
+					return nil, err
+				}
+			default:
+				endpoint, err = getPublicEndpoint(instance.Endpoints)
+				if err != nil {
+					return nil, err
+				}
+			}
+
+			cmdArgs, err := createConnectCommandLineArgs(endpoint, engineFamily, args)
 			if err != nil {
 				return nil, err
 			}


Test patch:
diff --git a/cmd/scw/testdata/test-all-usage-billing-invoice-download-usage.golden b/cmd/scw/testdata/test-all-usage-billing-invoice-download-usage.golden
new file mode 100644
index 00000000..d130758f
--- /dev/null
+++ b/cmd/scw/testdata/test-all-usage-billing-invoice-download-usage.golden
@@ -0,0 +1,21 @@
+🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
+🟥🟥🟥 STDERR️️ 🟥🟥🟥️
+Download billing resources.
+
+USAGE:
+  scw billing invoice download [arg=value ...]
+
+ARGS:
+  invoice-id              Invoice ID
+  [file-path=./]          Wanted file path
+  [file-type=pdf]         Wanted file extension
+  [force-replace=false]   Force file replacement
+
+FLAGS:
+  -h, --help   help for download
+
+GLOBAL FLAGS:
+  -c, --config string    The path to the config file
+  -D, --debug            Enable debug mode
+  -o, --output string    Output format: json or human, see 'scw help output' for more info (default "human")
+  -p, --profile string   The config profile to use
diff --git a/cmd/scw/testdata/test-all-usage-billing-invoice-list-usage.golden b/cmd/scw/testdata/test-all-usage-billing-invoice-list-usage.golden
new file mode 100644
index 00000000..8fc47d7b
--- /dev/null
+++ b/cmd/scw/testdata/test-all-usage-billing-invoice-list-usage.golden
@@ -0,0 +1,22 @@
+🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
+🟥🟥🟥 STDERR️️ 🟥🟥🟥️
+List billing resources.
+
+USAGE:
+  scw billing invoice list [arg=value ...]
+
+ARGS:
+  [started-after]     Invoice's `start_date` is greater or equal to `started_after`
+  [started-before]    Invoice's `start_date` precedes `started_before`
+  [invoice-type]      Invoice type. It can either be `periodic` or `purchase` (unknown_type | periodic | purchase)
+  [order-by]          How invoices are ordered in the response (invoice_number_desc | invoice_number_asc | start_date_desc | start_date_asc | issued_date_desc | issued_date_asc | due_date_desc | due_date_asc | total_untaxed_desc | total_untaxed_asc | total_taxed_desc | total_taxed_asc | invoice_type_desc | invoice_type_asc)
+  [organization-id]   Organization ID to filter for, only invoices from this Organization will be returned
+
+FLAGS:
+  -h, --help   help for list
+
+GLOBAL FLAGS:
+  -c, --config string    The path to the config file
+  -D, --debug            Enable debug mode
+  -o, --output string    Output format: json or human, see 'scw help output' for more info (default "human")
+  -p, --profile string   The config profile to use
diff --git a/cmd/scw/testdata/test-all-usage-billing-invoice-usage.golden b/cmd/scw/testdata/test-all-usage-billing-invoice-usage.golden
new file mode 100644
index 00000000..ae3c9d24
--- /dev/null
+++ b/cmd/scw/testdata/test-all-usage-billing-invoice-usage.golden
@@ -0,0 +1,21 @@
+🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
+🟥🟥🟥 STDERR️️ 🟥🟥🟥️
+Invoices management commands.
+
+USAGE:
+  scw billing invoice <command>
+
+AVAILABLE COMMANDS:
+  download    Download billing resources
+  list        List billing resources
+
+FLAGS:
+  -h, --help   help for invoice
+
+GLOBAL FLAGS:
+  -c, --config string    The path to the config file
+  -D, --debug            Enable debug mode
+  -o, --output string    Output format: json or human, see 'scw help output' for more info (default "human")
+  -p, --profile string   The config profile to use
+
+Use "scw billing invoice [command] --help" for more information about a command.
diff --git a/cmd/scw/testdata/test-all-usage-billing-usage.golden b/cmd/scw/testdata/test-all-usage-billing-usage.golden
new file mode 100644
index 00000000..facc84f7
--- /dev/null
+++ b/cmd/scw/testdata/test-all-usage-billing-usage.golden
@@ -0,0 +1,20 @@
+🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
+🟥🟥🟥 STDERR️️ 🟥🟥🟥️
+Billing API.
+
+USAGE:
+  scw billing <command>
+
+AVAILABLE COMMANDS:
+  invoice     Invoices management commands
+
+FLAGS:
+  -h, --help   help for billing
+
+GLOBAL FLAGS:
+  -c, --config string    The path to the config file
+  -D, --debug            Enable debug mode
+  -o, --output string    Output format: json or human, see 'scw help output' for more info (default "human")
+  -p, --profile string   The config profile to use
+
+Use "scw billing [command] --help" for more information about a command.
diff --git a/cmd/scw/testdata/test-all-usage-rdb-instance-connect-usage.golden b/cmd/scw/testdata/test-all-usage-rdb-instance-connect-usage.golden
index 44ed4b51..4f5642cb 100644
--- a/cmd/scw/testdata/test-all-usage-rdb-instance-connect-usage.golden
+++ b/cmd/scw/testdata/test-all-usage-rdb-instance-connect-usage.golden
@@ -6,11 +6,12 @@ USAGE:
   scw rdb instance connect <instance-id ...> [arg=value ...]
 
 ARGS:
-  instance-id       UUID of the instance
-  username          Name of the user to connect with to the database
-  [database=rdb]    Name of the database
-  [cli-db]          Command line tool to use, default to psql/mysql
-  [region=fr-par]   Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
+  [private-network=false]   Connect by the private network endpoint attached.
+  instance-id               UUID of the instance
+  username                  Name of the user to connect with to the database
+  [database=rdb]            Name of the database
+  [cli-db]                  Command line tool to use, default to psql/mysql
+  [region=fr-par]           Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
 
 FLAGS:
   -h, --help   help for connect
diff --git a/cmd/scw/testdata/test-main-usage-usage.golden b/cmd/scw/testdata/test-main-usage-usage.golden
index 10ec4481..82586fa0 100644
--- a/cmd/scw/testdata/test-main-usage-usage.golden
+++ b/cmd/scw/testdata/test-main-usage-usage.golden
@@ -8,6 +8,7 @@ AVAILABLE COMMANDS:
   apple-silicon Apple silicon API
   autocomplete  Autocomplete related commands
   baremetal     Elastic Metal API
+  billing       This API allows you to query your consumption
   cockpit       Cockpit API
   container     Container as a Service API
   dns           Domains and DNS API
diff --git a/internal/namespaces/init/init_test.go b/internal/namespaces/init/init_test.go
index 40807c20..dfdae3c3 100644
--- a/internal/namespaces/init/init_test.go
+++ b/internal/namespaces/init/init_test.go
@@ -108,8 +108,9 @@ func TestInit(t *testing.T) {
 			},
 			Profiles: map[string]*scw.Profile{
 				"test": {
-					AccessKey: &dummyAccessKey,
-					SecretKey: &dummySecretKey,
+					AccessKey:   &dummyAccessKey,
+					SecretKey:   &dummySecretKey,
+					DefaultZone: scw.StringPtr("fr-test"), // Used to check profile override
 				},
 			},
 		}
@@ -154,5 +155,46 @@ func TestInit(t *testing.T) {
 				"yes",
 			},
 		}))
+
+		t.Run("No Prompt Overwrite for new profile", core.Test(&core.TestConfig{
+			Commands: GetCommands(),
+			BeforeFunc: core.BeforeFuncCombine(
+				baseBeforeFunc(),
+				beforeFuncSaveConfig(dummyConfig),
+			),
+			Cmd: appendArgs("scw -p test2 init", defaultArgs),
+			Check: core.TestCheckCombine(
+				core.TestCheckGolden(),
+				checkConfig(func(t *testing.T, ctx *core.CheckFuncCtx, config *scw.Config) {
+					assert.NotNil(t, config.Profiles["test2"], "new profile should have been created")
+				}),
+			),
+			TmpHomeDir: true,
+			PromptResponseMocks: []string{
+				// Do you want to override the current config? (Should not be prompted as profile is a new one)
+				"no",
+			},
+		}))
+
+		t.Run("Prompt Overwrite for existing profile", core.Test(&core.TestConfig{
+			Commands: GetCommands(),
+			BeforeFunc: core.BeforeFuncCombine(
+				baseBeforeFunc(),
+				beforeFuncSaveConfig(dummyConfig),
+			),
+			Cmd: appendArgs("scw -p test init", defaultArgs),
+			Check: core.TestCheckCombine(
+				core.TestCheckGolden(),
+				checkConfig(func(t *testing.T, ctx *core.CheckFuncCtx, config *scw.Config) {
+					assert.NotNil(t, config.Profiles["test"].DefaultZone)
+					assert.Equal(t, *config.Profiles["test"].DefaultZone, "fr-test")
+				}),
+			),
+			TmpHomeDir: true,
+			PromptResponseMocks: []string{
+				// Do you want to override the current config? (Should not be prompted as profile is a new one)
+				"no",
+			},
+		}))
 	})
 }
diff --git a/internal/namespaces/init/testdata/test-init-cl-iv2-config-no-prompt-overwrite-for-new-profile.cassette.yaml b/internal/namespaces/init/testdata/test-init-cl-iv2-config-no-prompt-overwrite-for-new-profile.cassette.yaml
new file mode 100644
index 00000000..4daaa07e
--- /dev/null
+++ b/internal/namespaces/init/testdata/test-init-cl-iv2-config-no-prompt-overwrite-for-new-profile.cassette.yaml
@@ -0,0 +1,35 @@
+---
+version: 1
+interactions:
+- request:
+    body: ""
+    form: {}
+    headers:
+      User-Agent:
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.1; linux; amd64) cli-e2e-test
+    url: https://api.scaleway.com/iam/v1alpha1/api-keys/SCWXXXXXXXXXXXXXXXXX
+    method: GET
+  response:
+    body: '{"message":"authentication is denied","method":"api_key","reason":"not_found","type":"denied_authentication"}'
+    headers:
+      Content-Length:
+      - "109"
+      Content-Security-Policy:
+      - default-src 'none'; frame-ancestors 'none'
+      Content-Type:
+      - application/json
+      Date:
+      - Thu, 27 Apr 2023 09:09:09 GMT
+      Server:
+      - Scaleway API-Gateway
+      Strict-Transport-Security:
+      - max-age=63072000
+      X-Content-Type-Options:
+      - nosniff
+      X-Frame-Options:
+      - DENY
+      X-Request-Id:
+      - 4765a621-1ac1-4a7f-bdb4-4602f94764eb
+    status: 401 Unauthorized
+    code: 401
+    duration: ""
diff --git a/internal/namespaces/init/testdata/test-init-cl-iv2-config-no-prompt-overwrite-for-new-profile.golden b/internal/namespaces/init/testdata/test-init-cl-iv2-config-no-prompt-overwrite-for-new-profile.golden
new file mode 100644
index 00000000..0b450349
--- /dev/null
+++ b/internal/namespaces/init/testdata/test-init-cl-iv2-config-no-prompt-overwrite-for-new-profile.golden
@@ -0,0 +1,8 @@
+🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
+🟩🟩🟩 STDOUT️ 🟩🟩🟩️
+✅ Initialization completed with success.
+🟩🟩🟩 JSON STDOUT 🟩🟩🟩
+{
+  "message": "Initialization completed with success",
+  "details": ""
+}
diff --git a/internal/namespaces/init/testdata/test-init-cl-iv2-config-prompt-overwrite-for-existing-profile.cassette.yaml b/internal/namespaces/init/testdata/test-init-cl-iv2-config-prompt-overwrite-for-existing-profile.cassette.yaml
new file mode 100644
index 00000000..d36cb8e9
--- /dev/null
+++ b/internal/namespaces/init/testdata/test-init-cl-iv2-config-prompt-overwrite-for-existing-profile.cassette.yaml
@@ -0,0 +1,35 @@
+---
+version: 1
+interactions:
+- request:
+    body: ""
+    form: {}
+    headers:
+      User-Agent:
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.1; linux; amd64) cli-e2e-test
+    url: https://api.scaleway.com/iam/v1alpha1/api-keys/SCWXXXXXXXXXXXXXXXXX
+    method: GET
+  response:
+    body: '{"message":"authentication is denied","method":"api_key","reason":"not_found","type":"denied_authentication"}'
+    headers:
+      Content-Length:
+      - "109"
+      Content-Security-Policy:
+      - default-src 'none'; frame-ancestors 'none'
+      Content-Type:
+      - application/json
+      Date:
+      - Thu, 27 Apr 2023 09:09:09 GMT
+      Server:
+      - Scaleway API-Gateway
+      Strict-Transport-Security:
+      - max-age=63072000
+      X-Content-Type-Options:
+      - nosniff
+      X-Frame-Options:
+      - DENY
+      X-Request-Id:
+      - 314626bd-48a4-4e66-91bc-7a31b3f17210
+    status: 401 Unauthorized
+    code: 401
+    duration: ""
diff --git a/internal/namespaces/init/testdata/test-init-cl-iv2-config-prompt-overwrite-for-existing-profile.golden b/internal/namespaces/init/testdata/test-init-cl-iv2-config-prompt-overwrite-for-existing-profile.golden
new file mode 100644
index 00000000..f5a59a55
--- /dev/null
+++ b/internal/namespaces/init/testdata/test-init-cl-iv2-config-prompt-overwrite-for-existing-profile.golden
@@ -0,0 +1,7 @@
+🎲🎲🎲 EXIT CODE: 1 🎲🎲🎲
+🟥🟥🟥 STDERR️️ 🟥🟥🟥️
+Initialization canceled
+🟥🟥🟥 JSON STDERR 🟥🟥🟥
+{
+  "error": "initialization canceled"
+}
diff --git a/internal/namespaces/rdb/v1/custom_instance_test.go b/internal/namespaces/rdb/v1/custom_instance_test.go
index 1097db9a..09d6ab2b 100644
--- a/internal/namespaces/rdb/v1/custom_instance_test.go
+++ b/internal/namespaces/rdb/v1/custom_instance_test.go
@@ -180,4 +180,19 @@ func Test_Connect(t *testing.T) {
 		OverrideExec: core.OverrideExecSimple("psql --host {{ .Instance.Endpoint.IP }} --port {{ .Instance.Endpoint.Port }} --username {{ .username }} --dbname rdb", 0),
 		AfterFunc:    deleteInstance(),
 	}))
+	t.Run("psql", core.Test(&core.TestConfig{
+		Commands: GetCommands(),
+		BeforeFunc: core.BeforeFuncCombine(
+			core.BeforeFuncStoreInMeta("username", user),
+			createPN(),
+			createInstanceWithPrivateNetwork("PostgreSQL-14"),
+		),
+		Cmd: "scw rdb instance connect {{ .Instance.ID }} username={{ .username }}",
+		Check: core.TestCheckCombine(
+			core.TestCheckGolden(),
+			core.TestCheckExitCode(0),
+		),
+		OverrideExec: core.OverrideExecSimple("psql --host {{ .Instance.Endpoint.IP }} --port {{ .Instance.Endpoint.Port }} --username {{ .username }} --dbname rdb", 0),
+		AfterFunc:    deleteInstance(),
+	}))
 }
diff --git a/internal/namespaces/rdb/v1/helper_test.go b/internal/namespaces/rdb/v1/helper_test.go
index d448bdd5..09a6a4ed 100644
--- a/internal/namespaces/rdb/v1/helper_test.go
+++ b/internal/namespaces/rdb/v1/helper_test.go
@@ -4,6 +4,8 @@ import (
 	"fmt"
 
 	"github.com/scaleway/scaleway-cli/v2/internal/core"
+	"github.com/scaleway/scaleway-sdk-go/api/vpc/v1"
+	"github.com/scaleway/scaleway-sdk-go/scw"
 )
 
 const (
@@ -20,6 +22,40 @@ func createInstance(engine string) core.BeforeFunc {
 	)
 }
 
+func createInstanceWithPrivateNetwork(engine string) core.BeforeFunc {
+	return core.ExecStoreBeforeCmd(
+		"Instance",
+		fmt.Sprintf("scw rdb instance create node-type=DB-DEV-S is-ha-cluster=false name=%s engine=%s user-name=%s password=%s init-endpoints.0.private-network.private-network-id={{ .PN.ID }} init-endpoints.0.private-network.service-ip={{ .IPNet }} --wait", name, engine, user, password),
+	)
+}
+
+func createPN() core.BeforeFunc {
+	return func(ctx *core.BeforeFuncCtx) error {
+		var err error
+		api := vpc.NewAPI(ctx.Client)
+		pn, _ := api.CreatePrivateNetwork(&vpc.CreatePrivateNetworkRequest{})
+		ctx.Meta["PN"] = pn
+		ctx.Meta["IPNet"], err = getIPSubnet(pn.Subnets[0])
+		if err != nil {
+			return err
+		}
+		return nil
+	}
+}
+
+func getIPSubnet(ipNet scw.IPNet) (*string, error) {
+	addr := ipNet.IP.To4()
+	if addr == nil {
+		return nil, fmt.Errorf("could get ip 4 bytes")
+	}
+	addr = addr.Mask(addr.DefaultMask())
+	addr[3] = +3
+
+	sz, _ := ipNet.Mask.Size()
+	ipNetStr := fmt.Sprintf("%s/%d", addr.String(), sz)
+	return &ipNetStr, nil
+}
+
 func deleteInstance() core.AfterFunc {
 	return core.ExecAfterCmd("scw rdb instance delete {{ .Instance.ID }}")
 }
diff --git a/internal/namespaces/rdb/v1/testdata/test-connect-mysql.cassette.yaml b/internal/namespaces/rdb/v1/testdata/test-connect-mysql.cassette.yaml
index c274b775..582246a8 100644
--- a/internal/namespaces/rdb/v1/testdata/test-connect-mysql.cassette.yaml
+++ b/internal/namespaces/rdb/v1/testdata/test-connect-mysql.cassette.yaml
@@ -2,26 +2,26 @@
 version: 1
 interactions:
 - request:
-    body: '{"project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-test","engine":"MySQL-8","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}'
+    body: '{"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","name":"cli-test","engine":"MySQL-8","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.17; darwin; amd64) cli-e2e-test
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
     url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances
     method: POST
   response:
-    body: '{"id":"50442136-6e65-42b0-af56-23ab71c625ac","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"provisioning","engine":"MySQL-8","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":[],"created_at":"2021-09-16T13:35:55.634749Z","region":"fr-par"}'
+    body: '{"id":"574e29e0-f126-45c8-9d00-d1084af1d874","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"provisioning","engine":"MySQL-8","upgradable_version":[],"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":"2023-04-27T08:47:09.301158Z","region":"fr-par"}'
     headers:
       Content-Length:
-      - "523"
+      - "659"
       Content-Security-Policy:
       - default-src 'none'; frame-ancestors 'none'
       Content-Type:
       - application/json
       Date:
-      - Thu, 16 Sep 2021 13:35:56 GMT
+      - Thu, 27 Apr 2023 08:47:09 GMT
       Server:
       - Scaleway API-Gateway
       Strict-Transport-Security:
@@ -31,7 +31,7 @@ interactions:
       X-Frame-Options:
       - DENY
       X-Request-Id:
-      - 5be51de6-2402-4032-a17c-31eb3ee7509b
+      - 7b6ac6b8-b844-4ba7-ba94-c6ccaa68e1a3
     status: 200 OK
     code: 200
     duration: ""
@@ -40,20 +40,20 @@ interactions:
     form: {}
     headers:
       User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50442136-6e65-42b0-af56-23ab71c625ac
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/574e29e0-f126-45c8-9d00-d1084af1d874
     method: GET
   response:
-    body: '{"id":"50442136-6e65-42b0-af56-23ab71c625ac","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"provisioning","engine":"MySQL-8","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":[],"created_at":"2021-09-16T13:35:55.634749Z","region":"fr-par"}'
+    body: '{"id":"574e29e0-f126-45c8-9d00-d1084af1d874","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"provisioning","engine":"MySQL-8","upgradable_version":[],"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":"2023-04-27T08:47:09.301158Z","region":"fr-par"}'
     headers:
       Content-Length:
-      - "523"
+      - "659"
       Content-Security-Policy:
       - default-src 'none'; frame-ancestors 'none'
       Content-Type:
       - application/json
       Date:
-      - Thu, 16 Sep 2021 13:35:56 GMT
+      - Thu, 27 Apr 2023 08:47:10 GMT
       Server:
       - Scaleway API-Gateway
       Strict-Transport-Security:
@@ -63,7 +63,7 @@ interactions:
       X-Frame-Options:
       - DENY
       X-Request-Id:
-      - 55fb545a-5f0c-41bb-bc73-0d1938c226ef
+      - 2474371e-4efa-4cc6-af19-ac80dff5d262
     status: 200 OK
     code: 200
     duration: ""
@@ -72,20 +72,20 @@ interactions:
     form: {}
     headers:
       User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50442136-6e65-42b0-af56-23ab71c625ac
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/574e29e0-f126-45c8-9d00-d1084af1d874
     method: GET
   response:
-    body: '{"id":"50442136-6e65-42b0-af56-23ab71c625ac","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"provisioning","engine":"MySQL-8","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":[],"created_at":"2021-09-16T13:35:55.634749Z","region":"fr-par"}'
+    body: '{"id":"574e29e0-f126-45c8-9d00-d1084af1d874","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"provisioning","engine":"MySQL-8","upgradable_version":[],"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":"2023-04-27T08:47:09.301158Z","region":"fr-par"}'
     headers:
       Content-Length:
-      - "523"
+      - "659"
       Content-Security-Policy:
       - default-src 'none'; frame-ancestors 'none'
       Content-Type:
       - application/json
       Date:
-      - Thu, 16 Sep 2021 13:36:11 GMT
+      - Thu, 27 Apr 2023 08:47:26 GMT
       Server:
       - Scaleway API-Gateway
       Strict-Transport-Security:
@@ -95,7 +95,7 @@ interactions:
       X-Frame-Options:
       - DENY
       X-Request-Id:
-      - 1dbcffd8-6601-4965-8648-7c864cb971b6
+      - f844c213-3221-43f5-94ac-162dbbc3dd86
     status: 200 OK
     code: 200
     duration: ""
@@ -104,20 +104,20 @@ interactions:
     form: {}
     headers:
       User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50442136-6e65-42b0-af56-23ab71c625ac
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/574e29e0-f126-45c8-9d00-d1084af1d874
     method: GET
   response:
-    body: '{"id":"50442136-6e65-42b0-af56-23ab71c625ac","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"provisioning","engine":"MySQL-8","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":[],"created_at":"2021-09-16T13:35:55.634749Z","region":"fr-par"}'
+    body: '{"id":"574e29e0-f126-45c8-9d00-d1084af1d874","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"provisioning","engine":"MySQL-8","upgradable_version":[],"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":"2023-04-27T08:47:09.301158Z","region":"fr-par"}'
     headers:
       Content-Length:
-      - "523"
+      - "659"
       Content-Security-Policy:
       - default-src 'none'; frame-ancestors 'none'
       Content-Type:
       - application/json
       Date:
-      - Thu, 16 Sep 2021 13:36:26 GMT
+      - Thu, 27 Apr 2023 08:47:41 GMT
       Server:
       - Scaleway API-Gateway
       Strict-Transport-Security:
@@ -127,7 +127,7 @@ interactions:
       X-Frame-Options:
       - DENY
       X-Request-Id:
-      - 6672b568-865d-4e2b-b92e-9ee4f93ce945
+      - c35898b0-99cc-4654-b736-4c541f6ef134
     status: 200 OK
     code: 200
     duration: ""
@@ -136,20 +136,20 @@ interactions:
     form: {}
     headers:
       User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50442136-6e65-42b0-af56-23ab71c625ac
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/574e29e0-f126-45c8-9d00-d1084af1d874
     method: GET
   response:
-    body: '{"id":"50442136-6e65-42b0-af56-23ab71c625ac","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"provisioning","engine":"MySQL-8","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":[],"created_at":"2021-09-16T13:35:55.634749Z","region":"fr-par"}'
+    body: '{"id":"574e29e0-f126-45c8-9d00-d1084af1d874","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"MySQL-8","upgradable_version":[],"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":"2023-04-27T08:47:09.301158Z","region":"fr-par"}'
     headers:
       Content-Length:
-      - "523"
+      - "659"
       Content-Security-Policy:
       - default-src 'none'; frame-ancestors 'none'
       Content-Type:
       - application/json
       Date:
-      - Thu, 16 Sep 2021 13:36:41 GMT
+      - Thu, 27 Apr 2023 08:47:56 GMT
       Server:
       - Scaleway API-Gateway
       Strict-Transport-Security:
@@ -159,7 +159,7 @@ interactions:
       X-Frame-Options:
       - DENY
       X-Request-Id:
-      - 4945bf26-a3f1-49cf-8c6b-9cc168b2b658
+      - 3bfc7713-368b-4e01-8bc8-77225a3d6c15
     status: 200 OK
     code: 200
     duration: ""
@@ -168,20 +168,20 @@ interactions:
     form: {}
     headers:
       User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50442136-6e65-42b0-af56-23ab71c625ac
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/574e29e0-f126-45c8-9d00-d1084af1d874
     method: GET
   response:
-    body: '{"id":"50442136-6e65-42b0-af56-23ab71c625ac","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"provisioning","engine":"MySQL-8","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":[],"created_at":"2021-09-16T13:35:55.634749Z","region":"fr-par"}'
+    body: '{"id":"574e29e0-f126-45c8-9d00-d1084af1d874","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"MySQL-8","upgradable_version":[],"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":"2023-04-27T08:47:09.301158Z","region":"fr-par"}'
     headers:
       Content-Length:
-      - "523"
+      - "659"
       Content-Security-Policy:
       - default-src 'none'; frame-ancestors 'none'
       Content-Type:
       - application/json
       Date:
-      - Thu, 16 Sep 2021 13:36:56 GMT
+      - Thu, 27 Apr 2023 08:48:12 GMT
       Server:
       - Scaleway API-Gateway
       Strict-Transport-Security:
@@ -191,7 +191,7 @@ interactions:
       X-Frame-Options:
       - DENY
       X-Request-Id:
-      - 19384618-db2e-43f9-bb82-8d997dda389e
+      - e8f09ea6-6c76-46ca-b1d6-ec2c4df0ea4c
     status: 200 OK
     code: 200
     duration: ""
@@ -200,20 +200,20 @@ interactions:
     form: {}
     headers:
       User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50442136-6e65-42b0-af56-23ab71c625ac
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/574e29e0-f126-45c8-9d00-d1084af1d874
     method: GET
   response:
-    body: '{"id":"50442136-6e65-42b0-af56-23ab71c625ac","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"MySQL-8","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":[],"created_at":"2021-09-16T13:35:55.634749Z","region":"fr-par"}'
+    body: '{"id":"574e29e0-f126-45c8-9d00-d1084af1d874","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"MySQL-8","upgradable_version":[],"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":"2023-04-27T08:47:09.301158Z","region":"fr-par"}'
     headers:
       Content-Length:
-      - "523"
+      - "659"
       Content-Security-Policy:
       - default-src 'none'; frame-ancestors 'none'
       Content-Type:
       - application/json
       Date:
-      - Thu, 16 Sep 2021 13:37:11 GMT
+      - Thu, 27 Apr 2023 08:48:27 GMT
       Server:
       - Scaleway API-Gateway
       Strict-Transport-Security:
@@ -223,7 +223,7 @@ interactions:
       X-Frame-Options:
       - DENY
       X-Request-Id:
-      - 5ca8a434-9296-44c6-8a63-cc938886a7ff
+      - 0d0c4dce-a06f-422d-9871-fd04605cd53c
     status: 200 OK
     code: 200
     duration: ""
@@ -232,20 +232,20 @@ interactions:
     form: {}
     headers:
       User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50442136-6e65-42b0-af56-23ab71c625ac
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/574e29e0-f126-45c8-9d00-d1084af1d874
     method: GET
   response:
-    body: '{"id":"50442136-6e65-42b0-af56-23ab71c625ac","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"MySQL-8","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":[],"created_at":"2021-09-16T13:35:55.634749Z","region":"fr-par"}'
+    body: '{"id":"574e29e0-f126-45c8-9d00-d1084af1d874","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"MySQL-8","upgradable_version":[],"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":"2023-04-27T08:47:09.301158Z","region":"fr-par"}'
     headers:
       Content-Length:
-      - "523"
+      - "659"
       Content-Security-Policy:
       - default-src 'none'; frame-ancestors 'none'
       Content-Type:
       - application/json
       Date:
-      - Thu, 16 Sep 2021 13:37:26 GMT
+      - Thu, 27 Apr 2023 08:48:42 GMT
       Server:
       - Scaleway API-Gateway
       Strict-Transport-Security:
@@ -255,7 +255,7 @@ interactions:
       X-Frame-Options:
       - DENY
       X-Request-Id:
-      - e86eeaf3-d2c7-4fc1-bb05-087cb21ab86c
+      - b768a7df-9ee3-47ff-81df-77fe28a92e8f
     status: 200 OK
     code: 200
     duration: ""
@@ -264,20 +264,20 @@ interactions:
     form: {}
     headers:
       User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50442136-6e65-42b0-af56-23ab71c625ac
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/574e29e0-f126-45c8-9d00-d1084af1d874
     method: GET
   response:
-    body: '{"id":"50442136-6e65-42b0-af56-23ab71c625ac","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"MySQL-8","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":[],"created_at":"2021-09-16T13:35:55.634749Z","region":"fr-par"}'
+    body: '{"id":"574e29e0-f126-45c8-9d00-d1084af1d874","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"MySQL-8","upgradable_version":[],"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":"2023-04-27T08:47:09.301158Z","region":"fr-par"}'
     headers:
       Content-Length:
-      - "523"
+      - "659"
       Content-Security-Policy:
       - default-src 'none'; frame-ancestors 'none'
       Content-Type:
       - application/json
       Date:
-      - Thu, 16 Sep 2021 13:37:41 GMT
+      - Thu, 27 Apr 2023 08:48:57 GMT
       Server:
       - Scaleway API-Gateway
       Strict-Transport-Security:
@@ -287,7 +287,7 @@ interactions:
       X-Frame-Options:
       - DENY
       X-Request-Id:
-      - d8af526d-2bfb-4a52-98b0-ee2ec88e584e
+      - 3aec2e60-097d-43cd-a746-7d6b25863f7a
     status: 200 OK
     code: 200
     duration: ""
@@ -296,20 +296,20 @@ interactions:
     form: {}
     headers:
       User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50442136-6e65-42b0-af56-23ab71c625ac
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/574e29e0-f126-45c8-9d00-d1084af1d874
     method: GET
   response:
-    body: '{"id":"50442136-6e65-42b0-af56-23ab71c625ac","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"MySQL-8","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":[],"created_at":"2021-09-16T13:35:55.634749Z","region":"fr-par"}'
+    body: '{"id":"574e29e0-f126-45c8-9d00-d1084af1d874","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"MySQL-8","upgradable_version":[],"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":"2023-04-27T08:47:09.301158Z","region":"fr-par"}'
     headers:
       Content-Length:
-      - "523"
+      - "659"
       Content-Security-Policy:
       - default-src 'none'; frame-ancestors 'none'
       Content-Type:
       - application/json
       Date:
-      - Thu, 16 Sep 2021 13:37:57 GMT
+      - Thu, 27 Apr 2023 08:49:12 GMT
       Server:
       - Scaleway API-Gateway
       Strict-Transport-Security:
@@ -319,7 +319,7 @@ interactions:
       X-Frame-Options:
       - DENY
       X-Request-Id:
-      - 0b29c6fa-8da4-45de-8b43-7e2fed04d942
+      - 34f8081c-eb9a-4577-a888-9d6a79254bf2
     status: 200 OK
     code: 200
     duration: ""
@@ -328,20 +328,20 @@ interactions:
     form: {}
     headers:
       User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50442136-6e65-42b0-af56-23ab71c625ac
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/574e29e0-f126-45c8-9d00-d1084af1d874
     method: GET
   response:
-    body: '{"id":"50442136-6e65-42b0-af56-23ab71c625ac","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"MySQL-8","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":[],"created_at":"2021-09-16T13:35:55.634749Z","region":"fr-par"}'
+    body: '{"id":"574e29e0-f126-45c8-9d00-d1084af1d874","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"MySQL-8","upgradable_version":[],"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":"2023-04-27T08:47:09.301158Z","region":"fr-par"}'
     headers:
       Content-Length:
-      - "523"
+      - "659"
       Content-Security-Policy:
       - default-src 'none'; frame-ancestors 'none'
       Content-Type:
       - application/json
       Date:
-      - Thu, 16 Sep 2021 13:38:12 GMT
+      - Thu, 27 Apr 2023 08:49:27 GMT
       Server:
       - Scaleway API-Gateway
       Strict-Transport-Security:
@@ -351,7 +351,7 @@ interactions:
       X-Frame-Options:
       - DENY
       X-Request-Id:
-      - 5fcbde72-4935-4bb6-aba1-afce8f6e78e6
+      - 5b81400a-9f18-4570-a5ca-253ad857d747
     status: 200 OK
     code: 200
     duration: ""
@@ -360,20 +360,20 @@ interactions:
     form: {}
     headers:
       User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50442136-6e65-42b0-af56-23ab71c625ac
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/574e29e0-f126-45c8-9d00-d1084af1d874
     method: GET
   response:
-    body: '{"id":"50442136-6e65-42b0-af56-23ab71c625ac","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"MySQL-8","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":[],"created_at":"2021-09-16T13:35:55.634749Z","region":"fr-par"}'
+    body: '{"id":"574e29e0-f126-45c8-9d00-d1084af1d874","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"MySQL-8","upgradable_version":[],"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":"2023-04-27T08:47:09.301158Z","region":"fr-par"}'
     headers:
       Content-Length:
-      - "523"
+      - "659"
       Content-Security-Policy:
       - default-src 'none'; frame-ancestors 'none'
       Content-Type:
       - application/json
       Date:
-      - Thu, 16 Sep 2021 13:38:27 GMT
+      - Thu, 27 Apr 2023 08:49:43 GMT
       Server:
       - Scaleway API-Gateway
       Strict-Transport-Security:
@@ -383,7 +383,7 @@ interactions:
       X-Frame-Options:
       - DENY
       X-Request-Id:
-      - 3d47d319-d578-4612-a636-bb6cf8b98a2a
+      - 111b9d1d-94dc-4bef-acea-b47f7cdc630e
     status: 200 OK
     code: 200
     duration: ""
@@ -392,20 +392,20 @@ interactions:
     form: {}
     headers:
       User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50442136-6e65-42b0-af56-23ab71c625ac
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/574e29e0-f126-45c8-9d00-d1084af1d874
     method: GET
   response:
-    body: '{"id":"50442136-6e65-42b0-af56-23ab71c625ac","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"MySQL-8","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":[],"created_at":"2021-09-16T13:35:55.634749Z","region":"fr-par"}'
+    body: '{"id":"574e29e0-f126-45c8-9d00-d1084af1d874","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"MySQL-8","upgradable_version":[],"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":"2023-04-27T08:47:09.301158Z","region":"fr-par"}'
     headers:
       Content-Length:
-      - "523"
+      - "659"
       Content-Security-Policy:
       - default-src 'none'; frame-ancestors 'none'
       Content-Type:
       - application/json
       Date:
-      - Thu, 16 Sep 2021 13:38:42 GMT
+      - Thu, 27 Apr 2023 08:49:58 GMT
       Server:
       - Scaleway API-Gateway
       Strict-Transport-Security:
@@ -415,7 +415,7 @@ interactions:
       X-Frame-Options:
       - DENY
       X-Request-Id:
-      - 64e1521b-2969-4e8e-a406-e860d139987a
+      - fe6309ed-3f85-4d3f-8ab7-7d533e5ffc6d
     status: 200 OK
     code: 200
     duration: ""
@@ -424,20 +424,20 @@ interactions:
     form: {}
     headers:
       User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50442136-6e65-42b0-af56-23ab71c625ac
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/574e29e0-f126-45c8-9d00-d1084af1d874
     method: GET
   response:
-    body: '{"id":"50442136-6e65-42b0-af56-23ab71c625ac","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"MySQL-8","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":[],"created_at":"2021-09-16T13:35:55.634749Z","region":"fr-par"}'
+    body: '{"id":"574e29e0-f126-45c8-9d00-d1084af1d874","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"MySQL-8","upgradable_version":[],"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":"2023-04-27T08:47:09.301158Z","region":"fr-par"}'
     headers:
       Content-Length:
-      - "523"
+      - "659"
       Content-Security-Policy:
       - default-src 'none'; frame-ancestors 'none'
       Content-Type:
       - application/json
       Date:
-      - Thu, 16 Sep 2021 13:38:57 GMT
+      - Thu, 27 Apr 2023 08:50:13 GMT
       Server:
       - Scaleway API-Gateway
       Strict-Transport-Security:
@@ -447,7 +447,7 @@ interactions:
       X-Frame-Options:
       - DENY
       X-Request-Id:
-      - 48a1766e-404a-4f1a-91b4-0ae2cc6dd560
+      - a0afda4f-35d6-4bea-b3cb-897ce9f603f8
     status: 200 OK
     code: 200
     duration: ""
@@ -456,20 +456,20 @@ interactions:
     form: {}
     headers:
       User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50442136-6e65-42b0-af56-23ab71c625ac
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/574e29e0-f126-45c8-9d00-d1084af1d874
     method: GET
   response:
-    body: '{"id":"50442136-6e65-42b0-af56-23ab71c625ac","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"MySQL-8","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":[],"created_at":"2021-09-16T13:35:55.634749Z","region":"fr-par"}'
+    body: '{"id":"574e29e0-f126-45c8-9d00-d1084af1d874","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","engine":"MySQL-8","upgradable_version":[],"endpoint":{"ip":"51.158.58.219","port":26296,"name":null,"id":"3bd407c3-4f81-4a78-800a-1a7bb1847c23","load_balancer":{}},"tags":[],"settings":[{"name":"max_connections","value":"100"}],"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.58.219","port":26296,"name":null,"id":"3bd407c3-4f81-4a78-800a-1a7bb1847c23","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-04-27T08:47:09.301158Z","region":"fr-par"}'
     headers:
       Content-Length:
-      - "523"
+      - "908"
       Content-Security-Policy:
       - default-src 'none'; frame-ancestors 'none'
       Content-Type:
       - application/json
       Date:
-      - Thu, 16 Sep 2021 13:39:12 GMT
+      - Thu, 27 Apr 2023 08:50:28 GMT
       Server:
       - Scaleway API-Gateway
       Strict-Transport-Security:
@@ -479,7 +479,7 @@ interactions:
       X-Frame-Options:
       - DENY
       X-Request-Id:
-      - 6acb8b0f-894e-4b46-9aba-53a68c275e30
+      - fb50c624-44e2-4c4b-87cd-337ee68cbeba
     status: 200 OK
     code: 200
     duration: ""
@@ -488,20 +488,20 @@ interactions:
     form: {}
     headers:
       User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50442136-6e65-42b0-af56-23ab71c625ac
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/574e29e0-f126-45c8-9d00-d1084af1d874
     method: GET
   response:
-    body: '{"id":"50442136-6e65-42b0-af56-23ab71c625ac","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"MySQL-8","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":[],"created_at":"2021-09-16T13:35:55.634749Z","region":"fr-par"}'
+    body: '{"id":"574e29e0-f126-45c8-9d00-d1084af1d874","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","engine":"MySQL-8","upgradable_version":[],"endpoint":{"ip":"51.158.58.219","port":26296,"name":null,"id":"3bd407c3-4f81-4a78-800a-1a7bb1847c23","load_balancer":{}},"tags":[],"settings":[{"name":"max_connections","value":"100"}],"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.58.219","port":26296,"name":null,"id":"3bd407c3-4f81-4a78-800a-1a7bb1847c23","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-04-27T08:47:09.301158Z","region":"fr-par"}'
     headers:
       Content-Length:
-      - "523"
+      - "908"
       Content-Security-Policy:
       - default-src 'none'; frame-ancestors 'none'
       Content-Type:
       - application/json
       Date:
-      - Thu, 16 Sep 2021 13:39:27 GMT
+      - Thu, 27 Apr 2023 08:50:28 GMT
       Server:
       - Scaleway API-Gateway
       Strict-Transport-Security:
@@ -511,7 +511,7 @@ interactions:
       X-Frame-Options:
       - DENY
       X-Request-Id:
-      - 5bd2c025-9ebf-4158-83d7-35588c68d269
+      - f5f7418c-e3c5-402f-a0bc-039af90ea080
     status: 200 OK
     code: 200
     duration: ""
@@ -520,308 +520,20 @@ interactions:
     form: {}
     headers:
       User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50442136-6e65-42b0-af56-23ab71c625ac
-    method: GET
-  response:
-    body: '{"id":"50442136-6e65-42b0-af56-23ab71c625ac","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"MySQL-8","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":[],"created_at":"2021-09-16T13:35:55.634749Z","region":"fr-par"}'
-    headers:
-      Content-Length:
-      - "523"
-      Content-Security-Policy:
-      - default-src 'none'; frame-ancestors 'none'
-      Content-Type:
-      - application/json
-      Date:
-      - Thu, 16 Sep 2021 13:39:42 GMT
-      Server:
-      - Scaleway API-Gateway
-      Strict-Transport-Security:
-      - max-age=63072000
-      X-Content-Type-Options:
-      - nosniff
-      X-Frame-Options:
-      - DENY
-      X-Request-Id:
-      - 518e99e5-abc3-4765-98fb-e63a183e7710
-    status: 200 OK
-    code: 200
-    duration: ""
-- request:
-    body: ""
-    form: {}
-    headers:
-      User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50442136-6e65-42b0-af56-23ab71c625ac
-    method: GET
-  response:
-    body: '{"id":"50442136-6e65-42b0-af56-23ab71c625ac","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"MySQL-8","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":[],"created_at":"2021-09-16T13:35:55.634749Z","region":"fr-par"}'
-    headers:
-      Content-Length:
-      - "523"
-      Content-Security-Policy:
-      - default-src 'none'; frame-ancestors 'none'
-      Content-Type:
-      - application/json
-      Date:
-      - Thu, 16 Sep 2021 13:39:57 GMT
-      Server:
-      - Scaleway API-Gateway
-      Strict-Transport-Security:
-      - max-age=63072000
-      X-Content-Type-Options:
-      - nosniff
-      X-Frame-Options:
-      - DENY
-      X-Request-Id:
-      - cf875b7f-590f-41c1-b136-c0b69b29a71c
-    status: 200 OK
-    code: 200
-    duration: ""
-- request:
-    body: ""
-    form: {}
-    headers:
-      User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50442136-6e65-42b0-af56-23ab71c625ac
-    method: GET
-  response:
-    body: '{"id":"50442136-6e65-42b0-af56-23ab71c625ac","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"MySQL-8","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":[],"created_at":"2021-09-16T13:35:55.634749Z","region":"fr-par"}'
-    headers:
-      Content-Length:
-      - "523"
-      Content-Security-Policy:
-      - default-src 'none'; frame-ancestors 'none'
-      Content-Type:
-      - application/json
-      Date:
-      - Thu, 16 Sep 2021 13:40:13 GMT
-      Server:
-      - Scaleway API-Gateway
-      Strict-Transport-Security:
-      - max-age=63072000
-      X-Content-Type-Options:
-      - nosniff
-      X-Frame-Options:
-      - DENY
-      X-Request-Id:
-      - 6551a7c7-a053-4ead-a724-c7ba254f720d
-    status: 200 OK
-    code: 200
-    duration: ""
-- request:
-    body: ""
-    form: {}
-    headers:
-      User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50442136-6e65-42b0-af56-23ab71c625ac
-    method: GET
-  response:
-    body: '{"id":"50442136-6e65-42b0-af56-23ab71c625ac","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"MySQL-8","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":[],"created_at":"2021-09-16T13:35:55.634749Z","region":"fr-par"}'
-    headers:
-      Content-Length:
-      - "523"
-      Content-Security-Policy:
-      - default-src 'none'; frame-ancestors 'none'
-      Content-Type:
-      - application/json
-      Date:
-      - Thu, 16 Sep 2021 13:40:28 GMT
-      Server:
-      - Scaleway API-Gateway
-      Strict-Transport-Security:
-      - max-age=63072000
-      X-Content-Type-Options:
-      - nosniff
-      X-Frame-Options:
-      - DENY
-      X-Request-Id:
-      - 7d6d7179-e288-4947-867d-98d0eedacdcf
-    status: 200 OK
-    code: 200
-    duration: ""
-- request:
-    body: ""
-    form: {}
-    headers:
-      User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50442136-6e65-42b0-af56-23ab71c625ac
-    method: GET
-  response:
-    body: '{"id":"50442136-6e65-42b0-af56-23ab71c625ac","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"MySQL-8","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":[],"created_at":"2021-09-16T13:35:55.634749Z","region":"fr-par"}'
-    headers:
-      Content-Length:
-      - "523"
-      Content-Security-Policy:
-      - default-src 'none'; frame-ancestors 'none'
-      Content-Type:
-      - application/json
-      Date:
-      - Thu, 16 Sep 2021 13:40:43 GMT
-      Server:
-      - Scaleway API-Gateway
-      Strict-Transport-Security:
-      - max-age=63072000
-      X-Content-Type-Options:
-      - nosniff
-      X-Frame-Options:
-      - DENY
-      X-Request-Id:
-      - 019068d8-ac70-45f0-8966-aa8ffdc25a04
-    status: 200 OK
-    code: 200
-    duration: ""
-- request:
-    body: ""
-    form: {}
-    headers:
-      User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50442136-6e65-42b0-af56-23ab71c625ac
-    method: GET
-  response:
-    body: '{"id":"50442136-6e65-42b0-af56-23ab71c625ac","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"MySQL-8","endpoint":{"ip":"51.159.115.246","port":30082,"name":null,"id":"b1d95bda-e800-451d-85d6-e364690c0c2e"},"tags":[],"settings":[{"name":"max_connections","value":"100"}],"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.159.115.246","port":30082,"name":null,"id":"b1d95bda-e800-451d-85d6-e364690c0c2e"}],"created_at":"2021-09-16T13:35:55.634749Z","region":"fr-par"}'
-    headers:
-      Content-Length:
-      - "743"
-      Content-Security-Policy:
-      - default-src 'none'; frame-ancestors 'none'
-      Content-Type:
-      - application/json
-      Date:
-      - Thu, 16 Sep 2021 13:40:58 GMT
-      Server:
-      - Scaleway API-Gateway
-      Strict-Transport-Security:
-      - max-age=63072000
-      X-Content-Type-Options:
-      - nosniff
-      X-Frame-Options:
-      - DENY
-      X-Request-Id:
-      - 7d6c6b95-f4db-45b5-ac69-f8c10e47a3e6
-    status: 200 OK
-    code: 200
-    duration: ""
-- request:
-    body: ""
-    form: {}
-    headers:
-      User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50442136-6e65-42b0-af56-23ab71c625ac
-    method: GET
-  response:
-    body: '{"id":"50442136-6e65-42b0-af56-23ab71c625ac","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"MySQL-8","endpoint":{"ip":"51.159.115.246","port":30082,"name":null,"id":"b1d95bda-e800-451d-85d6-e364690c0c2e"},"tags":[],"settings":[{"name":"max_connections","value":"100"}],"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.159.115.246","port":30082,"name":null,"id":"b1d95bda-e800-451d-85d6-e364690c0c2e"}],"created_at":"2021-09-16T13:35:55.634749Z","region":"fr-par"}'
-    headers:
-      Content-Length:
-      - "743"
-      Content-Security-Policy:
-      - default-src 'none'; frame-ancestors 'none'
-      Content-Type:
-      - application/json
-      Date:
-      - Thu, 16 Sep 2021 13:41:13 GMT
-      Server:
-      - Scaleway API-Gateway
-      Strict-Transport-Security:
-      - max-age=63072000
-      X-Content-Type-Options:
-      - nosniff
-      X-Frame-Options:
-      - DENY
-      X-Request-Id:
-      - 96c1805c-4400-42ef-abdb-23869b42f96e
-    status: 200 OK
-    code: 200
-    duration: ""
-- request:
-    body: ""
-    form: {}
-    headers:
-      User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50442136-6e65-42b0-af56-23ab71c625ac
-    method: GET
-  response:
-    body: '{"id":"50442136-6e65-42b0-af56-23ab71c625ac","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"ready","engine":"MySQL-8","endpoint":{"ip":"51.159.115.246","port":30082,"name":null,"id":"b1d95bda-e800-451d-85d6-e364690c0c2e"},"tags":[],"settings":[{"name":"max_connections","value":"100"}],"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.159.115.246","port":30082,"name":null,"id":"b1d95bda-e800-451d-85d6-e364690c0c2e"}],"created_at":"2021-09-16T13:35:55.634749Z","region":"fr-par"}'
-    headers:
-      Content-Length:
-      - "736"
-      Content-Security-Policy:
-      - default-src 'none'; frame-ancestors 'none'
-      Content-Type:
-      - application/json
-      Date:
-      - Thu, 16 Sep 2021 13:41:28 GMT
-      Server:
-      - Scaleway API-Gateway
-      Strict-Transport-Security:
-      - max-age=63072000
-      X-Content-Type-Options:
-      - nosniff
-      X-Frame-Options:
-      - DENY
-      X-Request-Id:
-      - 439e7d92-c9d1-44af-a72a-8340141a92eb
-    status: 200 OK
-    code: 200
-    duration: ""
-- request:
-    body: ""
-    form: {}
-    headers:
-      User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50442136-6e65-42b0-af56-23ab71c625ac
-    method: GET
-  response:
-    body: '{"id":"50442136-6e65-42b0-af56-23ab71c625ac","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"ready","engine":"MySQL-8","endpoint":{"ip":"51.159.115.246","port":30082,"name":null,"id":"b1d95bda-e800-451d-85d6-e364690c0c2e"},"tags":[],"settings":[{"name":"max_connections","value":"100"}],"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.159.115.246","port":30082,"name":null,"id":"b1d95bda-e800-451d-85d6-e364690c0c2e"}],"created_at":"2021-09-16T13:35:55.634749Z","region":"fr-par"}'
-    headers:
-      Content-Length:
-      - "736"
-      Content-Security-Policy:
-      - default-src 'none'; frame-ancestors 'none'
-      Content-Type:
-      - application/json
-      Date:
-      - Thu, 16 Sep 2021 13:41:29 GMT
-      Server:
-      - Scaleway API-Gateway
-      Strict-Transport-Security:
-      - max-age=63072000
-      X-Content-Type-Options:
-      - nosniff
-      X-Frame-Options:
-      - DENY
-      X-Request-Id:
-      - a17f75df-e85e-46c6-95e6-283ee4cd8441
-    status: 200 OK
-    code: 200
-    duration: ""
-- request:
-    body: ""
-    form: {}
-    headers:
-      User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50442136-6e65-42b0-af56-23ab71c625ac
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/574e29e0-f126-45c8-9d00-d1084af1d874
     method: DELETE
   response:
-    body: '{"id":"50442136-6e65-42b0-af56-23ab71c625ac","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"deleting","engine":"MySQL-8","endpoint":{"ip":"51.159.115.246","port":30082,"name":null,"id":"b1d95bda-e800-451d-85d6-e364690c0c2e"},"tags":[],"settings":[{"name":"max_connections","value":"100"}],"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.159.115.246","port":30082,"name":null,"id":"b1d95bda-e800-451d-85d6-e364690c0c2e"}],"created_at":"2021-09-16T13:35:55.634749Z","region":"fr-par"}'
+    body: '{"id":"574e29e0-f126-45c8-9d00-d1084af1d874","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"deleting","engine":"MySQL-8","upgradable_version":[],"endpoint":{"ip":"51.158.58.219","port":26296,"name":null,"id":"3bd407c3-4f81-4a78-800a-1a7bb1847c23","load_balancer":{}},"tags":[],"settings":[{"name":"max_connections","value":"100"}],"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.58.219","port":26296,"name":null,"id":"3bd407c3-4f81-4a78-800a-1a7bb1847c23","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-04-27T08:47:09.301158Z","region":"fr-par"}'
     headers:
       Content-Length:
-      - "739"
+      - "911"
       Content-Security-Policy:
       - default-src 'none'; frame-ancestors 'none'
       Content-Type:
       - application/json
       Date:
-      - Thu, 16 Sep 2021 13:41:29 GMT
+      - Thu, 27 Apr 2023 08:50:28 GMT
       Server:
       - Scaleway API-Gateway
       Strict-Transport-Security:
@@ -831,7 +543,7 @@ interactions:
       X-Frame-Options:
       - DENY
       X-Request-Id:
-      - 086580ac-6325-4b54-8362-b18d3fb733ce
+      - 0d5a495d-b8c9-4587-8c6c-f86fbbe312fa
     status: 200 OK
     code: 200
     duration: ""
diff --git a/internal/namespaces/rdb/v1/testdata/test-connect-psql#01.cassette.yaml b/internal/namespaces/rdb/v1/testdata/test-connect-psql#01.cassette.yaml
new file mode 100644
index 00000000..7e6220c2
--- /dev/null
+++ b/internal/namespaces/rdb/v1/testdata/test-connect-psql#01.cassette.yaml
@@ -0,0 +1,615 @@
+---
+version: 1
+interactions:
+- request:
+    body: '{"name":"pn-infallible-goodall","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","tags":null,"subnets":null}'
+    form: {}
+    headers:
+      Content-Type:
+      - application/json
+      User-Agent:
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks
+    method: POST
+  response:
+    body: '{"id":"2efff555-7f00-4d53-a370-42bd9eb75710","name":"pn-infallible-goodall","tags":[],"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","created_at":"2023-04-27T12:15:05.975809Z","updated_at":"2023-04-27T12:15:05.975809Z","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","subnets":["172.16.24.0/22","fd5f:519c:6d46:6ea9::/64"],"zone":"fr-par-1"}'
+    headers:
+      Content-Length:
+      - "355"
+      Content-Security-Policy:
+      - default-src 'none'; frame-ancestors 'none'
+      Content-Type:
+      - application/json
+      Date:
+      - Thu, 27 Apr 2023 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:
+      - c4c56079-f7bd-4814-89f4-109ee71aac05
+    status: 200 OK
+    code: 200
+    duration: ""
+- request:
+    body: '{"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","name":"cli-test","engine":"PostgreSQL-14","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":[{"private_network":{"private_network_id":"2efff555-7f00-4d53-a370-42bd9eb75710","service_ip":"172.16.0.3/22"}}],"backup_same_region":false}'
+    form: {}
+    headers:
+      Content-Type:
+      - application/json
+      User-Agent:
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances
+    method: POST
+  response:
+    body: '{"id":"1a1fbfa6-3a8a-477a-a1fa-308967cfb50c","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"provisioning","engine":"PostgreSQL-14","upgradable_version":[],"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":[{"ip":"172.16.0.3","port":5432,"name":null,"id":"d469b4eb-4bf5-44ab-8b13-8d60140c635a","private_network":{"private_network_id":"2efff555-7f00-4d53-a370-42bd9eb75710","service_ip":"172.16.0.3/22","zone":"fr-par-1"}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-04-27T12:15:27.045220Z","region":"fr-par"}'
+    headers:
+      Content-Length:
+      - "879"
+      Content-Security-Policy:
+      - default-src 'none'; frame-ancestors 'none'
+      Content-Type:
+      - application/json
+      Date:
+      - Thu, 27 Apr 2023 12:15:27 GMT
+      Server:
+      - Scaleway API-Gateway
+      Strict-Transport-Security:
+      - max-age=63072000
+      X-Content-Type-Options:
+      - nosniff
+      X-Frame-Options:
+      - DENY
+      X-Request-Id:
+      - 411f90ab-4658-4cb3-bae2-02418f3f7e95
+    status: 200 OK
+    code: 200
+    duration: ""
+- request:
+    body: ""
+    form: {}
+    headers:
+      User-Agent:
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1a1fbfa6-3a8a-477a-a1fa-308967cfb50c
+    method: GET
+  response:
+    body: '{"id":"1a1fbfa6-3a8a-477a-a1fa-308967cfb50c","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"provisioning","engine":"PostgreSQL-14","upgradable_version":[],"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":[{"ip":"172.16.0.3","port":5432,"name":null,"id":"d469b4eb-4bf5-44ab-8b13-8d60140c635a","private_network":{"private_network_id":"2efff555-7f00-4d53-a370-42bd9eb75710","service_ip":"172.16.0.3/22","zone":"fr-par-1"}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-04-27T12:15:27.045220Z","region":"fr-par"}'
+    headers:
+      Content-Length:
+      - "879"
+      Content-Security-Policy:
+      - default-src 'none'; frame-ancestors 'none'
+      Content-Type:
+      - application/json
+      Date:
+      - Thu, 27 Apr 2023 12:15:28 GMT
+      Server:
+      - Scaleway API-Gateway
+      Strict-Transport-Security:
+      - max-age=63072000
+      X-Content-Type-Options:
+      - nosniff
+      X-Frame-Options:
+      - DENY
+      X-Request-Id:
+      - c23dab46-a67c-49d4-86ca-baffba1bf3c8
+    status: 200 OK
+    code: 200
+    duration: ""
+- request:
+    body: ""
+    form: {}
+    headers:
+      User-Agent:
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1a1fbfa6-3a8a-477a-a1fa-308967cfb50c
+    method: GET
+  response:
+    body: '{"id":"1a1fbfa6-3a8a-477a-a1fa-308967cfb50c","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"provisioning","engine":"PostgreSQL-14","upgradable_version":[],"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":[{"ip":"172.16.0.3","port":5432,"name":null,"id":"d469b4eb-4bf5-44ab-8b13-8d60140c635a","private_network":{"private_network_id":"2efff555-7f00-4d53-a370-42bd9eb75710","service_ip":"172.16.0.3/22","zone":"fr-par-1"}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-04-27T12:15:27.045220Z","region":"fr-par"}'
+    headers:
+      Content-Length:
+      - "879"
+      Content-Security-Policy:
+      - default-src 'none'; frame-ancestors 'none'
+      Content-Type:
+      - application/json
+      Date:
+      - Thu, 27 Apr 2023 12:15:43 GMT
+      Server:
+      - Scaleway API-Gateway
+      Strict-Transport-Security:
+      - max-age=63072000
+      X-Content-Type-Options:
+      - nosniff
+      X-Frame-Options:
+      - DENY
+      X-Request-Id:
+      - ce7f9043-074e-48b7-a860-b8d5ed6e7fbd
+    status: 200 OK
+    code: 200
+    duration: ""
+- request:
+    body: ""
+    form: {}
+    headers:
+      User-Agent:
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1a1fbfa6-3a8a-477a-a1fa-308967cfb50c
+    method: GET
+  response:
+    body: '{"id":"1a1fbfa6-3a8a-477a-a1fa-308967cfb50c","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"provisioning","engine":"PostgreSQL-14","upgradable_version":[],"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":[{"ip":"172.16.0.3","port":5432,"name":null,"id":"d469b4eb-4bf5-44ab-8b13-8d60140c635a","private_network":{"private_network_id":"2efff555-7f00-4d53-a370-42bd9eb75710","service_ip":"172.16.0.3/22","zone":"fr-par-1"}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-04-27T12:15:27.045220Z","region":"fr-par"}'
+    headers:
+      Content-Length:
+      - "879"
+      Content-Security-Policy:
+      - default-src 'none'; frame-ancestors 'none'
+      Content-Type:
+      - application/json
+      Date:
+      - Thu, 27 Apr 2023 12:15:58 GMT
+      Server:
+      - Scaleway API-Gateway
+      Strict-Transport-Security:
+      - max-age=63072000
+      X-Content-Type-Options:
+      - nosniff
+      X-Frame-Options:
+      - DENY
+      X-Request-Id:
+      - bb17e0b5-79ac-4f70-95b4-60b25faccf0f
+    status: 200 OK
+    code: 200
+    duration: ""
+- request:
+    body: ""
+    form: {}
+    headers:
+      User-Agent:
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1a1fbfa6-3a8a-477a-a1fa-308967cfb50c
+    method: GET
+  response:
+    body: '{"id":"1a1fbfa6-3a8a-477a-a1fa-308967cfb50c","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"provisioning","engine":"PostgreSQL-14","upgradable_version":[],"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":[{"ip":"172.16.0.3","port":5432,"name":null,"id":"d469b4eb-4bf5-44ab-8b13-8d60140c635a","private_network":{"private_network_id":"2efff555-7f00-4d53-a370-42bd9eb75710","service_ip":"172.16.0.3/22","zone":"fr-par-1"}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-04-27T12:15:27.045220Z","region":"fr-par"}'
+    headers:
+      Content-Length:
+      - "879"
+      Content-Security-Policy:
+      - default-src 'none'; frame-ancestors 'none'
+      Content-Type:
+      - application/json
+      Date:
+      - Thu, 27 Apr 2023 12:16:13 GMT
+      Server:
+      - Scaleway API-Gateway
+      Strict-Transport-Security:
+      - max-age=63072000
+      X-Content-Type-Options:
+      - nosniff
+      X-Frame-Options:
+      - DENY
+      X-Request-Id:
+      - b803ba8d-211d-4339-a7ee-fc0e40b7477d
+    status: 200 OK
+    code: 200
+    duration: ""
+- request:
+    body: ""
+    form: {}
+    headers:
+      User-Agent:
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1a1fbfa6-3a8a-477a-a1fa-308967cfb50c
+    method: GET
+  response:
+    body: '{"id":"1a1fbfa6-3a8a-477a-a1fa-308967cfb50c","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"provisioning","engine":"PostgreSQL-14","upgradable_version":[],"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":[{"ip":"172.16.0.3","port":5432,"name":null,"id":"d469b4eb-4bf5-44ab-8b13-8d60140c635a","private_network":{"private_network_id":"2efff555-7f00-4d53-a370-42bd9eb75710","service_ip":"172.16.0.3/22","zone":"fr-par-1"}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-04-27T12:15:27.045220Z","region":"fr-par"}'
+    headers:
+      Content-Length:
+      - "879"
+      Content-Security-Policy:
+      - default-src 'none'; frame-ancestors 'none'
+      Content-Type:
+      - application/json
+      Date:
+      - Thu, 27 Apr 2023 12:16:28 GMT
+      Server:
+      - Scaleway API-Gateway
+      Strict-Transport-Security:
+      - max-age=63072000
+      X-Content-Type-Options:
+      - nosniff
+      X-Frame-Options:
+      - DENY
+      X-Request-Id:
+      - 8c9d8da9-e974-4c7b-8643-9e6da0639c3b
+    status: 200 OK
+    code: 200
+    duration: ""
+- request:
+    body: ""
+    form: {}
+    headers:
+      User-Agent:
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1a1fbfa6-3a8a-477a-a1fa-308967cfb50c
+    method: GET
+  response:
+    body: '{"id":"1a1fbfa6-3a8a-477a-a1fa-308967cfb50c","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"PostgreSQL-14","upgradable_version":[],"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":[{"ip":"172.16.0.3","port":5432,"name":null,"id":"d469b4eb-4bf5-44ab-8b13-8d60140c635a","private_network":{"private_network_id":"2efff555-7f00-4d53-a370-42bd9eb75710","service_ip":"172.16.0.3/22","zone":"fr-par-1"}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-04-27T12:15:27.045220Z","region":"fr-par"}'
+    headers:
+      Content-Length:
+      - "879"
+      Content-Security-Policy:
+      - default-src 'none'; frame-ancestors 'none'
+      Content-Type:
+      - application/json
+      Date:
+      - Thu, 27 Apr 2023 12:16:43 GMT
+      Server:
+      - Scaleway API-Gateway
+      Strict-Transport-Security:
+      - max-age=63072000
+      X-Content-Type-Options:
+      - nosniff
+      X-Frame-Options:
+      - DENY
+      X-Request-Id:
+      - 79d3fe38-a87e-437b-8220-6c9b221d36f7
+    status: 200 OK
+    code: 200
+    duration: ""
+- request:
+    body: ""
+    form: {}
+    headers:
+      User-Agent:
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1a1fbfa6-3a8a-477a-a1fa-308967cfb50c
+    method: GET
+  response:
+    body: '{"id":"1a1fbfa6-3a8a-477a-a1fa-308967cfb50c","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"PostgreSQL-14","upgradable_version":[],"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":[{"ip":"172.16.0.3","port":5432,"name":null,"id":"d469b4eb-4bf5-44ab-8b13-8d60140c635a","private_network":{"private_network_id":"2efff555-7f00-4d53-a370-42bd9eb75710","service_ip":"172.16.0.3/22","zone":"fr-par-1"}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-04-27T12:15:27.045220Z","region":"fr-par"}'
+    headers:
+      Content-Length:
+      - "879"
+      Content-Security-Policy:
+      - default-src 'none'; frame-ancestors 'none'
+      Content-Type:
+      - application/json
+      Date:
+      - Thu, 27 Apr 2023 12:16:58 GMT
+      Server:
+      - Scaleway API-Gateway
+      Strict-Transport-Security:
+      - max-age=63072000
+      X-Content-Type-Options:
+      - nosniff
+      X-Frame-Options:
+      - DENY
+      X-Request-Id:
+      - 89de6efb-f4be-4bce-a46f-010d547df8da
+    status: 200 OK
+    code: 200
+    duration: ""
+- request:
+    body: ""
+    form: {}
+    headers:
+      User-Agent:
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1a1fbfa6-3a8a-477a-a1fa-308967cfb50c
+    method: GET
+  response:
+    body: '{"id":"1a1fbfa6-3a8a-477a-a1fa-308967cfb50c","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"PostgreSQL-14","upgradable_version":[],"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":[{"ip":"172.16.0.3","port":5432,"name":null,"id":"d469b4eb-4bf5-44ab-8b13-8d60140c635a","private_network":{"private_network_id":"2efff555-7f00-4d53-a370-42bd9eb75710","service_ip":"172.16.0.3/22","zone":"fr-par-1"}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-04-27T12:15:27.045220Z","region":"fr-par"}'
+    headers:
+      Content-Length:
+      - "879"
+      Content-Security-Policy:
+      - default-src 'none'; frame-ancestors 'none'
+      Content-Type:
+      - application/json
+      Date:
+      - Thu, 27 Apr 2023 12:17:13 GMT
+      Server:
+      - Scaleway API-Gateway
+      Strict-Transport-Security:
+      - max-age=63072000
+      X-Content-Type-Options:
+      - nosniff
+      X-Frame-Options:
+      - DENY
+      X-Request-Id:
+      - f234bb2f-b96c-4113-ae81-b90d1de4863c
+    status: 200 OK
+    code: 200
+    duration: ""
+- request:
+    body: ""
+    form: {}
+    headers:
+      User-Agent:
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1a1fbfa6-3a8a-477a-a1fa-308967cfb50c
+    method: GET
+  response:
+    body: '{"id":"1a1fbfa6-3a8a-477a-a1fa-308967cfb50c","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"PostgreSQL-14","upgradable_version":[],"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":[{"ip":"172.16.0.3","port":5432,"name":null,"id":"d469b4eb-4bf5-44ab-8b13-8d60140c635a","private_network":{"private_network_id":"2efff555-7f00-4d53-a370-42bd9eb75710","service_ip":"172.16.0.3/22","zone":"fr-par-1"}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-04-27T12:15:27.045220Z","region":"fr-par"}'
+    headers:
+      Content-Length:
+      - "879"
+      Content-Security-Policy:
+      - default-src 'none'; frame-ancestors 'none'
+      Content-Type:
+      - application/json
+      Date:
+      - Thu, 27 Apr 2023 12:17:28 GMT
+      Server:
+      - Scaleway API-Gateway
+      Strict-Transport-Security:
+      - max-age=63072000
+      X-Content-Type-Options:
+      - nosniff
+      X-Frame-Options:
+      - DENY
+      X-Request-Id:
+      - 050746fb-c282-4211-b9ac-c27a7a017bdf
+    status: 200 OK
+    code: 200
+    duration: ""
+- request:
+    body: ""
+    form: {}
+    headers:
+      User-Agent:
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1a1fbfa6-3a8a-477a-a1fa-308967cfb50c
+    method: GET
+  response:
+    body: '{"id":"1a1fbfa6-3a8a-477a-a1fa-308967cfb50c","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"PostgreSQL-14","upgradable_version":[],"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":[{"ip":"172.16.0.3","port":5432,"name":null,"id":"d469b4eb-4bf5-44ab-8b13-8d60140c635a","private_network":{"private_network_id":"2efff555-7f00-4d53-a370-42bd9eb75710","service_ip":"172.16.0.3/22","zone":"fr-par-1"}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-04-27T12:15:27.045220Z","region":"fr-par"}'
+    headers:
+      Content-Length:
+      - "879"
+      Content-Security-Policy:
+      - default-src 'none'; frame-ancestors 'none'
+      Content-Type:
+      - application/json
+      Date:
+      - Thu, 27 Apr 2023 12:17:44 GMT
+      Server:
+      - Scaleway API-Gateway
+      Strict-Transport-Security:
+      - max-age=63072000
+      X-Content-Type-Options:
+      - nosniff
+      X-Frame-Options:
+      - DENY
+      X-Request-Id:
+      - 56bdd91c-6a6f-4e88-83c1-121ad7c8a99c
+    status: 200 OK
+    code: 200
+    duration: ""
+- request:
+    body: ""
+    form: {}
+    headers:
+      User-Agent:
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1a1fbfa6-3a8a-477a-a1fa-308967cfb50c
+    method: GET
+  response:
+    body: '{"id":"1a1fbfa6-3a8a-477a-a1fa-308967cfb50c","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"PostgreSQL-14","upgradable_version":[],"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":[{"ip":"172.16.0.3","port":5432,"name":null,"id":"d469b4eb-4bf5-44ab-8b13-8d60140c635a","private_network":{"private_network_id":"2efff555-7f00-4d53-a370-42bd9eb75710","service_ip":"172.16.0.3/22","zone":"fr-par-1"}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-04-27T12:15:27.045220Z","region":"fr-par"}'
+    headers:
+      Content-Length:
+      - "879"
+      Content-Security-Policy:
+      - default-src 'none'; frame-ancestors 'none'
+      Content-Type:
+      - application/json
+      Date:
+      - Thu, 27 Apr 2023 12:17:59 GMT
+      Server:
+      - Scaleway API-Gateway
+      Strict-Transport-Security:
+      - max-age=63072000
+      X-Content-Type-Options:
+      - nosniff
+      X-Frame-Options:
+      - DENY
+      X-Request-Id:
+      - a2c3c300-d3cc-49ce-b67d-7d9aedac5b85
+    status: 200 OK
+    code: 200
+    duration: ""
+- request:
+    body: ""
+    form: {}
+    headers:
+      User-Agent:
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1a1fbfa6-3a8a-477a-a1fa-308967cfb50c
+    method: GET
+  response:
+    body: '{"id":"1a1fbfa6-3a8a-477a-a1fa-308967cfb50c","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"PostgreSQL-14","upgradable_version":[],"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":[{"ip":"172.16.0.3","port":5432,"name":null,"id":"d469b4eb-4bf5-44ab-8b13-8d60140c635a","private_network":{"private_network_id":"2efff555-7f00-4d53-a370-42bd9eb75710","service_ip":"172.16.0.3/22","zone":"fr-par-1"}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-04-27T12:15:27.045220Z","region":"fr-par"}'
+    headers:
+      Content-Length:
+      - "879"
+      Content-Security-Policy:
+      - default-src 'none'; frame-ancestors 'none'
+      Content-Type:
+      - application/json
+      Date:
+      - Thu, 27 Apr 2023 12:18:14 GMT
+      Server:
+      - Scaleway API-Gateway
+      Strict-Transport-Security:
+      - max-age=63072000
+      X-Content-Type-Options:
+      - nosniff
+      X-Frame-Options:
+      - DENY
+      X-Request-Id:
+      - 7dfe7172-3d97-4ce0-b264-d7c6df3169d2
+    status: 200 OK
+    code: 200
+    duration: ""
+- request:
+    body: ""
+    form: {}
+    headers:
+      User-Agent:
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1a1fbfa6-3a8a-477a-a1fa-308967cfb50c
+    method: GET
+  response:
+    body: '{"id":"1a1fbfa6-3a8a-477a-a1fa-308967cfb50c","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"PostgreSQL-14","upgradable_version":[],"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":[{"ip":"172.16.0.3","port":5432,"name":null,"id":"d469b4eb-4bf5-44ab-8b13-8d60140c635a","private_network":{"private_network_id":"2efff555-7f00-4d53-a370-42bd9eb75710","service_ip":"172.16.0.3/22","zone":"fr-par-1"}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-04-27T12:15:27.045220Z","region":"fr-par"}'
+    headers:
+      Content-Length:
+      - "879"
+      Content-Security-Policy:
+      - default-src 'none'; frame-ancestors 'none'
+      Content-Type:
+      - application/json
+      Date:
+      - Thu, 27 Apr 2023 12:18:29 GMT
+      Server:
+      - Scaleway API-Gateway
+      Strict-Transport-Security:
+      - max-age=63072000
+      X-Content-Type-Options:
+      - nosniff
+      X-Frame-Options:
+      - DENY
+      X-Request-Id:
+      - 969c2142-14e5-4c31-820a-3bcb49439512
+    status: 200 OK
+    code: 200
+    duration: ""
+- request:
+    body: ""
+    form: {}
+    headers:
+      User-Agent:
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1a1fbfa6-3a8a-477a-a1fa-308967cfb50c
+    method: GET
+  response:
+    body: '{"id":"1a1fbfa6-3a8a-477a-a1fa-308967cfb50c","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"PostgreSQL-14","upgradable_version":[],"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":[{"ip":"172.16.0.3","port":5432,"name":null,"id":"d469b4eb-4bf5-44ab-8b13-8d60140c635a","private_network":{"private_network_id":"2efff555-7f00-4d53-a370-42bd9eb75710","service_ip":"172.16.0.3/22","zone":"fr-par-1"}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-04-27T12:15:27.045220Z","region":"fr-par"}'
+    headers:
+      Content-Length:
+      - "879"
+      Content-Security-Policy:
+      - default-src 'none'; frame-ancestors 'none'
+      Content-Type:
+      - application/json
+      Date:
+      - Thu, 27 Apr 2023 12:18:44 GMT
+      Server:
+      - Scaleway API-Gateway
+      Strict-Transport-Security:
+      - max-age=63072000
+      X-Content-Type-Options:
+      - nosniff
+      X-Frame-Options:
+      - DENY
+      X-Request-Id:
+      - 11e40baf-6602-4a5c-a177-5f8ec190b087
+    status: 200 OK
+    code: 200
+    duration: ""
+- request:
+    body: ""
+    form: {}
+    headers:
+      User-Agent:
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1a1fbfa6-3a8a-477a-a1fa-308967cfb50c
+    method: GET
+  response:
+    body: '{"id":"1a1fbfa6-3a8a-477a-a1fa-308967cfb50c","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","engine":"PostgreSQL-14","upgradable_version":[],"endpoint":{"ip":"51.158.57.6","port":7351,"name":null,"id":"85eb91d7-892f-43a2-b877-3766b33cbbf1","load_balancer":{}},"tags":[],"settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"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":"172.16.0.3","port":5432,"name":null,"id":"d469b4eb-4bf5-44ab-8b13-8d60140c635a","private_network":{"private_network_id":"2efff555-7f00-4d53-a370-42bd9eb75710","service_ip":"172.16.0.3/22","zone":"fr-par-1"}},{"ip":"51.158.57.6","port":7351,"name":null,"id":"85eb91d7-892f-43a2-b877-3766b33cbbf1","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-04-27T12:15:27.045220Z","region":"fr-par"}'
+    headers:
+      Content-Length:
+      - "1347"
+      Content-Security-Policy:
+      - default-src 'none'; frame-ancestors 'none'
+      Content-Type:
+      - application/json
+      Date:
+      - Thu, 27 Apr 2023 12:18:59 GMT
+      Server:
+      - Scaleway API-Gateway
+      Strict-Transport-Security:
+      - max-age=63072000
+      X-Content-Type-Options:
+      - nosniff
+      X-Frame-Options:
+      - DENY
+      X-Request-Id:
+      - d1fa85e9-75d3-45c2-bbca-bbe45c7f1e7a
+    status: 200 OK
+    code: 200
+    duration: ""
+- request:
+    body: ""
+    form: {}
+    headers:
+      User-Agent:
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1a1fbfa6-3a8a-477a-a1fa-308967cfb50c
+    method: GET
+  response:
+    body: '{"id":"1a1fbfa6-3a8a-477a-a1fa-308967cfb50c","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","engine":"PostgreSQL-14","upgradable_version":[],"endpoint":{"ip":"51.158.57.6","port":7351,"name":null,"id":"85eb91d7-892f-43a2-b877-3766b33cbbf1","load_balancer":{}},"tags":[],"settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"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":"172.16.0.3","port":5432,"name":null,"id":"d469b4eb-4bf5-44ab-8b13-8d60140c635a","private_network":{"private_network_id":"2efff555-7f00-4d53-a370-42bd9eb75710","service_ip":"172.16.0.3/22","zone":"fr-par-1"}},{"ip":"51.158.57.6","port":7351,"name":null,"id":"85eb91d7-892f-43a2-b877-3766b33cbbf1","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-04-27T12:15:27.045220Z","region":"fr-par"}'
+    headers:
+      Content-Length:
+      - "1347"
+      Content-Security-Policy:
+      - default-src 'none'; frame-ancestors 'none'
+      Content-Type:
+      - application/json
+      Date:
+      - Thu, 27 Apr 2023 12:23:49 GMT
+      Server:
+      - Scaleway API-Gateway
+      Strict-Transport-Security:
+      - max-age=63072000
+      X-Content-Type-Options:
+      - nosniff
+      X-Frame-Options:
+      - DENY
+      X-Request-Id:
+      - 889de7c6-aacb-4f1e-9950-40e82b392d96
+    status: 200 OK
+    code: 200
+    duration: ""
+- request:
+    body: ""
+    form: {}
+    headers:
+      User-Agent:
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1a1fbfa6-3a8a-477a-a1fa-308967cfb50c
+    method: DELETE
+  response:
+    body: '{"id":"1a1fbfa6-3a8a-477a-a1fa-308967cfb50c","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"deleting","engine":"PostgreSQL-14","upgradable_version":[],"endpoint":{"ip":"51.158.57.6","port":7351,"name":null,"id":"85eb91d7-892f-43a2-b877-3766b33cbbf1","load_balancer":{}},"tags":[],"settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"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":"172.16.0.3","port":5432,"name":null,"id":"d469b4eb-4bf5-44ab-8b13-8d60140c635a","private_network":{"private_network_id":"2efff555-7f00-4d53-a370-42bd9eb75710","service_ip":"172.16.0.3/22","zone":"fr-par-1"}},{"ip":"51.158.57.6","port":7351,"name":null,"id":"85eb91d7-892f-43a2-b877-3766b33cbbf1","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-04-27T12:15:27.045220Z","region":"fr-par"}'
+    headers:
+      Content-Length:
+      - "1350"
+      Content-Security-Policy:
+      - default-src 'none'; frame-ancestors 'none'
+      Content-Type:
+      - application/json
+      Date:
+      - Thu, 27 Apr 2023 12:24:05 GMT
+      Server:
+      - Scaleway API-Gateway
+      Strict-Transport-Security:
+      - max-age=63072000
+      X-Content-Type-Options:
+      - nosniff
+      X-Frame-Options:
+      - DENY
+      X-Request-Id:
+      - 777a1936-4e18-4efd-a7e1-400ff04d533d
+    status: 200 OK
+    code: 200
+    duration: ""
diff --git a/internal/namespaces/rdb/v1/testdata/test-connect-psql#01.golden b/internal/namespaces/rdb/v1/testdata/test-connect-psql#01.golden
new file mode 100644
index 00000000..995ad766
--- /dev/null
+++ b/internal/namespaces/rdb/v1/testdata/test-connect-psql#01.golden
@@ -0,0 +1,3 @@
+🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
+🟩🟩🟩 JSON STDOUT 🟩🟩🟩
+{}
diff --git a/internal/namespaces/rdb/v1/testdata/test-connect-psql.cassette.yaml b/internal/namespaces/rdb/v1/testdata/test-connect-psql.cassette.yaml
index 853f3b5e..94fab333 100644
--- a/internal/namespaces/rdb/v1/testdata/test-connect-psql.cassette.yaml
+++ b/internal/namespaces/rdb/v1/testdata/test-connect-psql.cassette.yaml
@@ -2,26 +2,26 @@
 version: 1
 interactions:
 - request:
-    body: '{"project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","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}'
+    body: '{"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","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.17; darwin; amd64) cli-e2e-test
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
     url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances
     method: POST
   response:
-    body: '{"id":"c4a27718-1ed9-47ea-bb7c-5e66917c3f33","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","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":[],"created_at":"2021-09-16T13:41:58.113586Z","region":"fr-par"}'
+    body: '{"id":"471ae30f-ff68-4076-bc79-16abf413b3a2","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"provisioning","engine":"PostgreSQL-12","upgradable_version":[],"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":"2023-04-27T08:47:09.296598Z","region":"fr-par"}'
     headers:
       Content-Length:
-      - "529"
+      - "665"
       Content-Security-Policy:
       - default-src 'none'; frame-ancestors 'none'
       Content-Type:
       - application/json
       Date:
-      - Thu, 16 Sep 2021 13:41:58 GMT
+      - Thu, 27 Apr 2023 08:47:09 GMT
       Server:
       - Scaleway API-Gateway
       Strict-Transport-Security:
@@ -31,7 +31,7 @@ interactions:
       X-Frame-Options:
       - DENY
       X-Request-Id:
-      - a23bca8c-b2d2-4e9d-87d6-ad1db9ef2ed3
+      - f4ad0c3d-0ead-4775-a181-f57d3c27072c
     status: 200 OK
     code: 200
     duration: ""
@@ -40,20 +40,20 @@ interactions:
     form: {}
     headers:
       User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c4a27718-1ed9-47ea-bb7c-5e66917c3f33
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/471ae30f-ff68-4076-bc79-16abf413b3a2
     method: GET
   response:
-    body: '{"id":"c4a27718-1ed9-47ea-bb7c-5e66917c3f33","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","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":[],"created_at":"2021-09-16T13:41:58.113586Z","region":"fr-par"}'
+    body: '{"id":"471ae30f-ff68-4076-bc79-16abf413b3a2","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"provisioning","engine":"PostgreSQL-12","upgradable_version":[],"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":"2023-04-27T08:47:09.296598Z","region":"fr-par"}'
     headers:
       Content-Length:
-      - "529"
+      - "665"
       Content-Security-Policy:
       - default-src 'none'; frame-ancestors 'none'
       Content-Type:
       - application/json
       Date:
-      - Thu, 16 Sep 2021 13:41:58 GMT
+      - Thu, 27 Apr 2023 08:47:10 GMT
       Server:
       - Scaleway API-Gateway
       Strict-Transport-Security:
@@ -63,7 +63,7 @@ interactions:
       X-Frame-Options:
       - DENY
       X-Request-Id:
-      - 1bfb222d-e48a-4172-8f23-9b45e759b8b0
+      - a928f9a5-c6b1-4071-a146-b84ef86f8326
     status: 200 OK
     code: 200
     duration: ""
@@ -72,20 +72,20 @@ interactions:
     form: {}
     headers:
       User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c4a27718-1ed9-47ea-bb7c-5e66917c3f33
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/471ae30f-ff68-4076-bc79-16abf413b3a2
     method: GET
   response:
-    body: '{"id":"c4a27718-1ed9-47ea-bb7c-5e66917c3f33","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","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":[],"created_at":"2021-09-16T13:41:58.113586Z","region":"fr-par"}'
+    body: '{"id":"471ae30f-ff68-4076-bc79-16abf413b3a2","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"provisioning","engine":"PostgreSQL-12","upgradable_version":[],"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":"2023-04-27T08:47:09.296598Z","region":"fr-par"}'
     headers:
       Content-Length:
-      - "529"
+      - "665"
       Content-Security-Policy:
       - default-src 'none'; frame-ancestors 'none'
       Content-Type:
       - application/json
       Date:
-      - Thu, 16 Sep 2021 13:42:13 GMT
+      - Thu, 27 Apr 2023 08:47:26 GMT
       Server:
       - Scaleway API-Gateway
       Strict-Transport-Security:
@@ -95,7 +95,7 @@ interactions:
       X-Frame-Options:
       - DENY
       X-Request-Id:
-      - 99947110-f7f1-4585-98e0-fb5b10fc609e
+      - 5957bd18-01e7-419e-9a1a-876404fbad95
     status: 200 OK
     code: 200
     duration: ""
@@ -104,20 +104,20 @@ interactions:
     form: {}
     headers:
       User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c4a27718-1ed9-47ea-bb7c-5e66917c3f33
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/471ae30f-ff68-4076-bc79-16abf413b3a2
     method: GET
   response:
-    body: '{"id":"c4a27718-1ed9-47ea-bb7c-5e66917c3f33","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","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":[],"created_at":"2021-09-16T13:41:58.113586Z","region":"fr-par"}'
+    body: '{"id":"471ae30f-ff68-4076-bc79-16abf413b3a2","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"provisioning","engine":"PostgreSQL-12","upgradable_version":[],"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":"2023-04-27T08:47:09.296598Z","region":"fr-par"}'
     headers:
       Content-Length:
-      - "529"
+      - "665"
       Content-Security-Policy:
       - default-src 'none'; frame-ancestors 'none'
       Content-Type:
       - application/json
       Date:
-      - Thu, 16 Sep 2021 13:42:29 GMT
+      - Thu, 27 Apr 2023 08:47:41 GMT
       Server:
       - Scaleway API-Gateway
       Strict-Transport-Security:
@@ -127,7 +127,7 @@ interactions:
       X-Frame-Options:
       - DENY
       X-Request-Id:
-      - 6a14e49f-6573-416e-984c-d79baca3828b
+      - 1eb16bca-ec39-4c5b-9e15-bd1a0ac5b9ca
     status: 200 OK
     code: 200
     duration: ""
@@ -136,20 +136,20 @@ interactions:
     form: {}
     headers:
       User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c4a27718-1ed9-47ea-bb7c-5e66917c3f33
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/471ae30f-ff68-4076-bc79-16abf413b3a2
     method: GET
   response:
-    body: '{"id":"c4a27718-1ed9-47ea-bb7c-5e66917c3f33","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","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":[],"created_at":"2021-09-16T13:41:58.113586Z","region":"fr-par"}'
+    body: '{"id":"471ae30f-ff68-4076-bc79-16abf413b3a2","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"PostgreSQL-12","upgradable_version":[],"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":"2023-04-27T08:47:09.296598Z","region":"fr-par"}'
     headers:
       Content-Length:
-      - "529"
+      - "665"
       Content-Security-Policy:
       - default-src 'none'; frame-ancestors 'none'
       Content-Type:
       - application/json
       Date:
-      - Thu, 16 Sep 2021 13:42:44 GMT
+      - Thu, 27 Apr 2023 08:47:56 GMT
       Server:
       - Scaleway API-Gateway
       Strict-Transport-Security:
@@ -159,7 +159,7 @@ interactions:
       X-Frame-Options:
       - DENY
       X-Request-Id:
-      - 3646d7fb-4cf8-455e-91a2-d84075a5d4ff
+      - 84c206cf-0df7-4ad9-9797-1592ead5e25a
     status: 200 OK
     code: 200
     duration: ""
@@ -168,20 +168,20 @@ interactions:
     form: {}
     headers:
       User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c4a27718-1ed9-47ea-bb7c-5e66917c3f33
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/471ae30f-ff68-4076-bc79-16abf413b3a2
     method: GET
   response:
-    body: '{"id":"c4a27718-1ed9-47ea-bb7c-5e66917c3f33","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","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":[],"created_at":"2021-09-16T13:41:58.113586Z","region":"fr-par"}'
+    body: '{"id":"471ae30f-ff68-4076-bc79-16abf413b3a2","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"PostgreSQL-12","upgradable_version":[],"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":"2023-04-27T08:47:09.296598Z","region":"fr-par"}'
     headers:
       Content-Length:
-      - "529"
+      - "665"
       Content-Security-Policy:
       - default-src 'none'; frame-ancestors 'none'
       Content-Type:
       - application/json
       Date:
-      - Thu, 16 Sep 2021 13:42:59 GMT
+      - Thu, 27 Apr 2023 08:48:11 GMT
       Server:
       - Scaleway API-Gateway
       Strict-Transport-Security:
@@ -191,7 +191,7 @@ interactions:
       X-Frame-Options:
       - DENY
       X-Request-Id:
-      - 5a565f6f-3140-4c4a-b3ee-b9163ca42b84
+      - 0f342db4-cbc6-4547-acc0-ed17eda813c8
     status: 200 OK
     code: 200
     duration: ""
@@ -200,20 +200,20 @@ interactions:
     form: {}
     headers:
       User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c4a27718-1ed9-47ea-bb7c-5e66917c3f33
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/471ae30f-ff68-4076-bc79-16abf413b3a2
     method: GET
   response:
-    body: '{"id":"c4a27718-1ed9-47ea-bb7c-5e66917c3f33","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","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":[],"created_at":"2021-09-16T13:41:58.113586Z","region":"fr-par"}'
+    body: '{"id":"471ae30f-ff68-4076-bc79-16abf413b3a2","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"PostgreSQL-12","upgradable_version":[],"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":"2023-04-27T08:47:09.296598Z","region":"fr-par"}'
     headers:
       Content-Length:
-      - "529"
+      - "665"
       Content-Security-Policy:
       - default-src 'none'; frame-ancestors 'none'
       Content-Type:
       - application/json
       Date:
-      - Thu, 16 Sep 2021 13:43:14 GMT
+      - Thu, 27 Apr 2023 08:48:27 GMT
       Server:
       - Scaleway API-Gateway
       Strict-Transport-Security:
@@ -223,7 +223,7 @@ interactions:
       X-Frame-Options:
       - DENY
       X-Request-Id:
-      - effbd66a-e5e4-4d0c-8925-1c5f88fe47e6
+      - 6edfa06d-854c-49ea-86c0-08035ab58a8a
     status: 200 OK
     code: 200
     duration: ""
@@ -232,20 +232,20 @@ interactions:
     form: {}
     headers:
       User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c4a27718-1ed9-47ea-bb7c-5e66917c3f33
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/471ae30f-ff68-4076-bc79-16abf413b3a2
     method: GET
   response:
-    body: '{"id":"c4a27718-1ed9-47ea-bb7c-5e66917c3f33","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","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":[],"created_at":"2021-09-16T13:41:58.113586Z","region":"fr-par"}'
+    body: '{"id":"471ae30f-ff68-4076-bc79-16abf413b3a2","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"PostgreSQL-12","upgradable_version":[],"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":"2023-04-27T08:47:09.296598Z","region":"fr-par"}'
     headers:
       Content-Length:
-      - "529"
+      - "665"
       Content-Security-Policy:
       - default-src 'none'; frame-ancestors 'none'
       Content-Type:
       - application/json
       Date:
-      - Thu, 16 Sep 2021 13:43:29 GMT
+      - Thu, 27 Apr 2023 08:48:42 GMT
       Server:
       - Scaleway API-Gateway
       Strict-Transport-Security:
@@ -255,7 +255,7 @@ interactions:
       X-Frame-Options:
       - DENY
       X-Request-Id:
-      - ec05c947-68ed-41ba-9fe1-8695e3df53f3
+      - af316909-2373-4ac3-a002-71385521d0d6
     status: 200 OK
     code: 200
     duration: ""
@@ -264,20 +264,20 @@ interactions:
     form: {}
     headers:
       User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c4a27718-1ed9-47ea-bb7c-5e66917c3f33
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/471ae30f-ff68-4076-bc79-16abf413b3a2
     method: GET
   response:
-    body: '{"id":"c4a27718-1ed9-47ea-bb7c-5e66917c3f33","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","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":[],"created_at":"2021-09-16T13:41:58.113586Z","region":"fr-par"}'
+    body: '{"id":"471ae30f-ff68-4076-bc79-16abf413b3a2","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"PostgreSQL-12","upgradable_version":[],"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":"2023-04-27T08:47:09.296598Z","region":"fr-par"}'
     headers:
       Content-Length:
-      - "529"
+      - "665"
       Content-Security-Policy:
       - default-src 'none'; frame-ancestors 'none'
       Content-Type:
       - application/json
       Date:
-      - Thu, 16 Sep 2021 13:43:44 GMT
+      - Thu, 27 Apr 2023 08:48:57 GMT
       Server:
       - Scaleway API-Gateway
       Strict-Transport-Security:
@@ -287,7 +287,7 @@ interactions:
       X-Frame-Options:
       - DENY
       X-Request-Id:
-      - beae9d25-e96b-42c2-9d16-4bd906c7e398
+      - 849185d7-3a8f-4c65-8a1d-789ebf8897bc
     status: 200 OK
     code: 200
     duration: ""
@@ -296,20 +296,20 @@ interactions:
     form: {}
     headers:
       User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c4a27718-1ed9-47ea-bb7c-5e66917c3f33
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/471ae30f-ff68-4076-bc79-16abf413b3a2
     method: GET
   response:
-    body: '{"id":"c4a27718-1ed9-47ea-bb7c-5e66917c3f33","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","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":[],"created_at":"2021-09-16T13:41:58.113586Z","region":"fr-par"}'
+    body: '{"id":"471ae30f-ff68-4076-bc79-16abf413b3a2","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"PostgreSQL-12","upgradable_version":[],"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":"2023-04-27T08:47:09.296598Z","region":"fr-par"}'
     headers:
       Content-Length:
-      - "529"
+      - "665"
       Content-Security-Policy:
       - default-src 'none'; frame-ancestors 'none'
       Content-Type:
       - application/json
       Date:
-      - Thu, 16 Sep 2021 13:43:59 GMT
+      - Thu, 27 Apr 2023 08:49:12 GMT
       Server:
       - Scaleway API-Gateway
       Strict-Transport-Security:
@@ -319,7 +319,7 @@ interactions:
       X-Frame-Options:
       - DENY
       X-Request-Id:
-      - 572ac52d-f020-4a9e-b0e4-c303ab571922
+      - 6bcd5fb9-d76a-468c-9dd7-984e5a494d86
     status: 200 OK
     code: 200
     duration: ""
@@ -328,20 +328,20 @@ interactions:
     form: {}
     headers:
       User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c4a27718-1ed9-47ea-bb7c-5e66917c3f33
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/471ae30f-ff68-4076-bc79-16abf413b3a2
     method: GET
   response:
-    body: '{"id":"c4a27718-1ed9-47ea-bb7c-5e66917c3f33","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","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":[],"created_at":"2021-09-16T13:41:58.113586Z","region":"fr-par"}'
+    body: '{"id":"471ae30f-ff68-4076-bc79-16abf413b3a2","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"PostgreSQL-12","upgradable_version":[],"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":"2023-04-27T08:47:09.296598Z","region":"fr-par"}'
     headers:
       Content-Length:
-      - "529"
+      - "665"
       Content-Security-Policy:
       - default-src 'none'; frame-ancestors 'none'
       Content-Type:
       - application/json
       Date:
-      - Thu, 16 Sep 2021 13:44:15 GMT
+      - Thu, 27 Apr 2023 08:49:27 GMT
       Server:
       - Scaleway API-Gateway
       Strict-Transport-Security:
@@ -351,7 +351,7 @@ interactions:
       X-Frame-Options:
       - DENY
       X-Request-Id:
-      - 2801f8be-8554-4995-8807-e2e93978d992
+      - 5354e3a1-d3d7-4ffe-b9cd-cefaecf85ae1
     status: 200 OK
     code: 200
     duration: ""
@@ -360,20 +360,20 @@ interactions:
     form: {}
     headers:
       User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c4a27718-1ed9-47ea-bb7c-5e66917c3f33
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/471ae30f-ff68-4076-bc79-16abf413b3a2
     method: GET
   response:
-    body: '{"id":"c4a27718-1ed9-47ea-bb7c-5e66917c3f33","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","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":[],"created_at":"2021-09-16T13:41:58.113586Z","region":"fr-par"}'
+    body: '{"id":"471ae30f-ff68-4076-bc79-16abf413b3a2","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"PostgreSQL-12","upgradable_version":[],"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":"2023-04-27T08:47:09.296598Z","region":"fr-par"}'
     headers:
       Content-Length:
-      - "529"
+      - "665"
       Content-Security-Policy:
       - default-src 'none'; frame-ancestors 'none'
       Content-Type:
       - application/json
       Date:
-      - Thu, 16 Sep 2021 13:44:30 GMT
+      - Thu, 27 Apr 2023 08:49:42 GMT
       Server:
       - Scaleway API-Gateway
       Strict-Transport-Security:
@@ -383,7 +383,7 @@ interactions:
       X-Frame-Options:
       - DENY
       X-Request-Id:
-      - 475e9996-066d-47cf-9154-ca77462a3878
+      - 95c0fcba-ce83-4a2e-b628-0b57ac551acb
     status: 200 OK
     code: 200
     duration: ""
@@ -392,20 +392,20 @@ interactions:
     form: {}
     headers:
       User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c4a27718-1ed9-47ea-bb7c-5e66917c3f33
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/471ae30f-ff68-4076-bc79-16abf413b3a2
     method: GET
   response:
-    body: '{"id":"c4a27718-1ed9-47ea-bb7c-5e66917c3f33","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","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":[],"created_at":"2021-09-16T13:41:58.113586Z","region":"fr-par"}'
+    body: '{"id":"471ae30f-ff68-4076-bc79-16abf413b3a2","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","engine":"PostgreSQL-12","upgradable_version":[],"endpoint":{"ip":"51.158.58.219","port":4719,"name":null,"id":"1ca1a0e5-6100-4851-89c1-84fa9b2bdc5f","load_balancer":{}},"tags":[],"settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"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.58.219","port":4719,"name":null,"id":"1ca1a0e5-6100-4851-89c1-84fa9b2bdc5f","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-04-27T08:47:09.296598Z","region":"fr-par"}'
     headers:
       Content-Length:
-      - "529"
+      - "1136"
       Content-Security-Policy:
       - default-src 'none'; frame-ancestors 'none'
       Content-Type:
       - application/json
       Date:
-      - Thu, 16 Sep 2021 13:44:45 GMT
+      - Thu, 27 Apr 2023 08:49:58 GMT
       Server:
       - Scaleway API-Gateway
       Strict-Transport-Security:
@@ -415,7 +415,7 @@ interactions:
       X-Frame-Options:
       - DENY
       X-Request-Id:
-      - 46c382e7-bed5-41aa-9fb5-2025a31c6aed
+      - a429e431-0708-4b27-b430-b2fa9e44a0b0
     status: 200 OK
     code: 200
     duration: ""
@@ -424,20 +424,20 @@ interactions:
     form: {}
     headers:
       User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c4a27718-1ed9-47ea-bb7c-5e66917c3f33
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/471ae30f-ff68-4076-bc79-16abf413b3a2
     method: GET
   response:
-    body: '{"id":"c4a27718-1ed9-47ea-bb7c-5e66917c3f33","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","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":[],"created_at":"2021-09-16T13:41:58.113586Z","region":"fr-par"}'
+    body: '{"id":"471ae30f-ff68-4076-bc79-16abf413b3a2","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","engine":"PostgreSQL-12","upgradable_version":[],"endpoint":{"ip":"51.158.58.219","port":4719,"name":null,"id":"1ca1a0e5-6100-4851-89c1-84fa9b2bdc5f","load_balancer":{}},"tags":[],"settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"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.58.219","port":4719,"name":null,"id":"1ca1a0e5-6100-4851-89c1-84fa9b2bdc5f","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-04-27T08:47:09.296598Z","region":"fr-par"}'
     headers:
       Content-Length:
-      - "529"
+      - "1136"
       Content-Security-Policy:
       - default-src 'none'; frame-ancestors 'none'
       Content-Type:
       - application/json
       Date:
-      - Thu, 16 Sep 2021 13:45:00 GMT
+      - Thu, 27 Apr 2023 08:49:58 GMT
       Server:
       - Scaleway API-Gateway
       Strict-Transport-Security:
@@ -447,7 +447,7 @@ interactions:
       X-Frame-Options:
       - DENY
       X-Request-Id:
-      - 853d965a-15cf-4d88-8cff-408348303de7
+      - a67d658d-c745-440b-86d4-0431d54c9d65
     status: 200 OK
     code: 200
     duration: ""
@@ -456,116 +456,20 @@ interactions:
     form: {}
     headers:
       User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c4a27718-1ed9-47ea-bb7c-5e66917c3f33
-    method: GET
-  response:
-    body: '{"id":"c4a27718-1ed9-47ea-bb7c-5e66917c3f33","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":{"ip":"51.159.115.246","port":53245,"name":null,"id":"d272f93e-d440-44eb-9a6b-c66a9ae2b19d"},"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.159.115.246","port":53245,"name":null,"id":"d272f93e-d440-44eb-9a6b-c66a9ae2b19d"}],"created_at":"2021-09-16T13:41:58.113586Z","region":"fr-par"}'
-    headers:
-      Content-Length:
-      - "973"
-      Content-Security-Policy:
-      - default-src 'none'; frame-ancestors 'none'
-      Content-Type:
-      - application/json
-      Date:
-      - Thu, 16 Sep 2021 13:45:15 GMT
-      Server:
-      - Scaleway API-Gateway
-      Strict-Transport-Security:
-      - max-age=63072000
-      X-Content-Type-Options:
-      - nosniff
-      X-Frame-Options:
-      - DENY
-      X-Request-Id:
-      - c33bd7ba-4ef5-4565-b8c1-857192d1a1ae
-    status: 200 OK
-    code: 200
-    duration: ""
-- request:
-    body: ""
-    form: {}
-    headers:
-      User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c4a27718-1ed9-47ea-bb7c-5e66917c3f33
-    method: GET
-  response:
-    body: '{"id":"c4a27718-1ed9-47ea-bb7c-5e66917c3f33","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.159.115.246","port":53245,"name":null,"id":"d272f93e-d440-44eb-9a6b-c66a9ae2b19d"},"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.159.115.246","port":53245,"name":null,"id":"d272f93e-d440-44eb-9a6b-c66a9ae2b19d"}],"created_at":"2021-09-16T13:41:58.113586Z","region":"fr-par"}'
-    headers:
-      Content-Length:
-      - "966"
-      Content-Security-Policy:
-      - default-src 'none'; frame-ancestors 'none'
-      Content-Type:
-      - application/json
-      Date:
-      - Thu, 16 Sep 2021 13:45:30 GMT
-      Server:
-      - Scaleway API-Gateway
-      Strict-Transport-Security:
-      - max-age=63072000
-      X-Content-Type-Options:
-      - nosniff
-      X-Frame-Options:
-      - DENY
-      X-Request-Id:
-      - f1269180-a7e5-4bf9-8300-534acb3771bf
-    status: 200 OK
-    code: 200
-    duration: ""
-- request:
-    body: ""
-    form: {}
-    headers:
-      User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c4a27718-1ed9-47ea-bb7c-5e66917c3f33
-    method: GET
-  response:
-    body: '{"id":"c4a27718-1ed9-47ea-bb7c-5e66917c3f33","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.159.115.246","port":53245,"name":null,"id":"d272f93e-d440-44eb-9a6b-c66a9ae2b19d"},"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.159.115.246","port":53245,"name":null,"id":"d272f93e-d440-44eb-9a6b-c66a9ae2b19d"}],"created_at":"2021-09-16T13:41:58.113586Z","region":"fr-par"}'
-    headers:
-      Content-Length:
-      - "966"
-      Content-Security-Policy:
-      - default-src 'none'; frame-ancestors 'none'
-      Content-Type:
-      - application/json
-      Date:
-      - Thu, 16 Sep 2021 13:45:30 GMT
-      Server:
-      - Scaleway API-Gateway
-      Strict-Transport-Security:
-      - max-age=63072000
-      X-Content-Type-Options:
-      - nosniff
-      X-Frame-Options:
-      - DENY
-      X-Request-Id:
-      - 6ef3b83d-d01b-48fb-8dfc-3604417647b4
-    status: 200 OK
-    code: 200
-    duration: ""
-- request:
-    body: ""
-    form: {}
-    headers:
-      User-Agent:
-      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
-    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c4a27718-1ed9-47ea-bb7c-5e66917c3f33
+      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; darwin; amd64) cli-e2e-test
+    url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/471ae30f-ff68-4076-bc79-16abf413b3a2
     method: DELETE
   response:
-    body: '{"id":"c4a27718-1ed9-47ea-bb7c-5e66917c3f33","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"deleting","engine":"PostgreSQL-12","endpoint":{"ip":"51.159.115.246","port":53245,"name":null,"id":"d272f93e-d440-44eb-9a6b-c66a9ae2b19d"},"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.159.115.246","port":53245,"name":null,"id":"d272f93e-d440-44eb-9a6b-c66a9ae2b19d"}],"created_at":"2021-09-16T13:41:58.113586Z","region":"fr-par"}'
+    body: '{"id":"471ae30f-ff68-4076-bc79-16abf413b3a2","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"deleting","engine":"PostgreSQL-12","upgradable_version":[],"endpoint":{"ip":"51.158.58.219","port":4719,"name":null,"id":"1ca1a0e5-6100-4851-89c1-84fa9b2bdc5f","load_balancer":{}},"tags":[],"settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"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.58.219","port":4719,"name":null,"id":"1ca1a0e5-6100-4851-89c1-84fa9b2bdc5f","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-04-27T08:47:09.296598Z","region":"fr-par"}'
     headers:
       Content-Length:
-      - "969"
+      - "1139"
       Content-Security-Policy:
       - default-src 'none'; frame-ancestors 'none'
       Content-Type:
       - application/json
       Date:
-      - Thu, 16 Sep 2021 13:45:31 GMT
+      - Thu, 27 Apr 2023 08:49:58 GMT
       Server:
       - Scaleway API-Gateway
       Strict-Transport-Security:
@@ -575,7 +479,7 @@ interactions:
       X-Frame-Options:
       - DENY
       X-Request-Id:
-      - e780ff0c-9872-44ef-99d9-9ed388f5b213
+      - 7478ccfd-d451-4c47-b537-dd88bb90ac71
     status: 200 OK
     code: 200
     duration: ""