diff --git a/.github/workflows/acceptance-tests.yaml b/.github/workflows/acceptance-tests.yaml index 434c5ecab..01fd414ad 100644 --- a/.github/workflows/acceptance-tests.yaml +++ b/.github/workflows/acceptance-tests.yaml @@ -16,6 +16,7 @@ jobs: - Cockpit - Container - Domain + - DocumentDB - Function - Iam - Instance diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 9cfbbd7b4..813e6fa0e 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -16,6 +16,7 @@ jobs: - Baremetal - Cockpit - Domain + - DocumentDB - Function - Container - Iam diff --git a/docs/data-sources/documentdb_database.md b/docs/data-sources/documentdb_database.md new file mode 100644 index 000000000..3b5266c2c --- /dev/null +++ b/docs/data-sources/documentdb_database.md @@ -0,0 +1,37 @@ +--- +subcategory: "Databases" +layout: "scaleway" +page_title: "Scaleway: scaleway_document_db_database" +--- + +# scaleway_document_db_database + +Gets information about DocumentDB database. More on our official [site](https://www.scaleway.com/en/developers/api/document_db/) + +## Example Usage + +```hcl +# Get the database foobar hosted on instance id 11111111-1111-1111-1111-111111111111 +data scaleway_document_db_database main { + instance_id = "11111111-1111-1111-1111-111111111111" + name = "foobar" +} +``` + +## Argument Reference + +- `instance_id` - (Required) The DocumentDB instance ID. + +- `name` - (Required) The name of the DocumentDB instance. + +## Attributes Reference + +In addition to all above arguments, the following attributes are exported: + +- `id` - The ID of the database. + +~> **Important:** DocumentDB databases' IDs are [regional](../guides/regions_and_zones.md#resource-ids), which means they are of the form `{region}/{instance-id}/{database-name}`, e.g. `fr-par/11111111-1111-1111-1111-111111111111/database` + +- `owner` - The name of the owner of the database. +- `managed` - Whether the database is managed or not. +- `size` - Size of the database (in bytes). diff --git a/docs/data-sources/documentdb_instance.md b/docs/data-sources/documentdb_instance.md new file mode 100644 index 000000000..711948a11 --- /dev/null +++ b/docs/data-sources/documentdb_instance.md @@ -0,0 +1,45 @@ +--- +subcategory: "Databases" +layout: "scaleway" +page_title: "Scaleway: scaleway_document_db_instance" +--- + +# scaleway_document_db_instance + +Gets information about an DocumentDB instance. For further information see our [developers website](https://www.scaleway.com/en/developers/api/document_db/) + +## Example Usage + +```hcl +# Get info by name +data "scaleway_document_db_instance" "db" { + name = "foobar" +} + +# Get info by instance ID +data "scaleway_document_db_instance" "db" { + instance_id = "11111111-1111-1111-1111-111111111111" +} +``` + +## Argument Reference + +- `name` - (Optional) The name of the DocumentDB instance. + Only one of `name` and `instance_id` should be specified. + +- `instance_id` - (Optional) The DocumentDB instance ID. + Only one of `name` and `instance_id` should be specified. + +- `region` - (Defaults to [provider](../index.md#region) `region`) The [region](../guides/regions_and_zones.md#zones) in which the DocumentDB instance exists. + +- `organization_id` - (Defaults to [provider](../index.md#organization_id) `organization_id`) The ID of the organization the DocumentDB instance is in. + +## Attributes Reference + +In addition to all above arguments, the following attributes are exported: + +- `id` - The ID of the DocumentDB instance. + +~> **Important:** DocumentDB instances' IDs are [regional](../guides/regions_and_zones.md#resource-ids), which means they are of the form `{region}/{id}`, e.g. `fr-par/11111111-1111-1111-1111-111111111111` + +Exported attributes are the ones from `scaleway_document_db_instance` [resource](../resources/documentdb_instance.md) diff --git a/docs/resources/documentdb_database.md b/docs/resources/documentdb_database.md new file mode 100644 index 000000000..24f569d93 --- /dev/null +++ b/docs/resources/documentdb_database.md @@ -0,0 +1,49 @@ +--- +subcategory: "Databases" +page_title: "Scaleway: scaleway_document_db_database" +--- + +# scaleway_document_db_database + +Creates and manages Scaleway DocumentDB database. +For more information, see [the documentation](https://developers.scaleway.com/en/products/rdb/api). + +## Examples + +### Basic + +```hcl +resource "scaleway_document_db_database" "main" { + instance_id = "11111111-1111-1111-1111-111111111111" + name = "my-new-database" +} +``` + +## Arguments Reference + +The following arguments are supported: + +- `instance_id` - (Required) UUID of the documentdb instance. + +~> **Important:** Updates to `instance_id` will recreate the Database. + +- `name` - (Required) Name of the database (e.g. `my-new-database`). + +- `region` - (Defaults to [provider](../index.md#region) `region`) The [region](../guides/regions_and_zones.md#regions) in which the resource exists. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +- `id` - The ID of the database, which is of the form `{region}/{id}/{DBNAME}` e.g. `fr-par/11111111-1111-1111-1111-111111111111/mydb` +- `owner` - The name of the owner of the database. +- `managed` - Whether the database is managed or not. +- `size` - Size in gigabytes of the database. + +## Import + +DocumentDB Database can be imported using the `{region}/{id}/{DBNAME}`, e.g. + +```bash +$ terraform import scaleway_document_db_database.mydb fr-par/11111111-1111-1111-1111-111111111111/mydb +``` diff --git a/docs/resources/documentdb_instance.md b/docs/resources/documentdb_instance.md new file mode 100644 index 000000000..aac0e259c --- /dev/null +++ b/docs/resources/documentdb_instance.md @@ -0,0 +1,83 @@ +--- +subcategory: "Databases" +page_title: "Scaleway: scaleway_documentdb_instance" +--- + +# scaleway_documentdb_instance + +Creates and manages Scaleway Database Instances. +For more information, see [the documentation](https://www.scaleway.com/en/developers/api/document_db/). + +## Examples + +### Example Basic + +```hcl +resource "scaleway_documentdb_instance" "main" { + name = "test-documentdb-instance-basic" + node_type = "docdb-play2-pico" + engine = "FerretDB-1" + user_name = "my_initial_user" + password = "thiZ_is_v&ry_s3cret" + tags = ["terraform-test", "scaleway_documentdb_instance", "minimal"] + volume_size_in_gb = 20 +} +``` + +## Arguments Reference + +The following arguments are supported: + +- `node_type` - (Required) The type of database instance you want to create (e.g. `docdb-play2-pico`). + +~> **Important:** Updates to `node_type` will upgrade the Database Instance to the desired `node_type` without any +interruption. Keep in mind that you cannot downgrade a Database Instance. + +- `engine` - (Required) Database Instance's engine version (e.g. `FerretDB-1`). + +~> **Important:** Updates to `engine` will recreate the Database Instance. + +- `volume_type` - (Optional, default to `lssd`) Type of volume where data are stored (`bssd` or `lssd`). + +- `volume_size_in_gb` - (Optional) Volume size (in GB) when `volume_type` is set to `bssd`. + +- `user_name` - (Optional) Identifier for the first user of the database instance. + +~> **Important:** Updates to `user_name` will recreate the Database Instance. + +- `password` - (Optional) Password for the first user of the database instance. + +- `is_ha_cluster` - (Optional) Enable or disable high availability for the database instance. + +- `telemetry_enabled` - (Optional) Enable telemetry to collects basic anonymous usage data and sends them to FerretDB telemetry service. More about the telemetry [here](https://docs.ferretdb.io/telemetry/#configure-telemetry). + +~> **Important:** Updates to `is_ha_cluster` will recreate the Database Instance. + +- `name` - (Optional) The name of the Database Instance. + +- `tags` - (Optional) The tags associated with the Database Instance. + +- `region` - (Defaults to [provider](../index.md#region) `region`) The [region](../guides/regions_and_zones.md#regions) + in which the Database Instance should be created. + +- `project_id` - (Defaults to [provider](../index.md#project_id) `project_id`) The ID of the project the Database + Instance is associated with. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +- `id` - The ID of the Database Instance. + +~> **Important:** Database instances' IDs are [regional](../guides/regions_and_zones.md#resource-ids), which means they +are of the form `{region}/{id}`, e.g. `fr-par/11111111-1111-1111-1111-111111111111` + +- `organization_id` - The organization ID the Database Instance is associated with. + +## Import + +Database Instance can be imported using the `{region}/{id}`, e.g. + +```bash +$ terraform import scaleway_documentdb_instance.db fr-par/11111111-1111-1111-1111-111111111111 +``` diff --git a/docs/resources/documentdb_private_network_endpoint.md b/docs/resources/documentdb_private_network_endpoint.md new file mode 100644 index 000000000..0185ff7c6 --- /dev/null +++ b/docs/resources/documentdb_private_network_endpoint.md @@ -0,0 +1,69 @@ +--- +subcategory: "Databases" +page_title: "Scaleway: scaleway_document_db_private_network_endpoint" +--- + +# scaleway_document_db_private_network_endpoint + +Creates and manages Scaleway Database Private Network Endpoint. +For more information, see [the documentation](https://www.scaleway.com/en/developers/api/document_db/). + +## Examples + +### Example Basic + +```hcl +resource "scaleway_vpc_private_network" "pn" { + name = "my_private_network" +} + +resource "scaleway_document_db_private_network_endpoint" "main" { + instance_id = "11111111-1111-1111-1111-111111111111" + private_network { + ip_net = "172.16.32.3/22" + id = scaleway_vpc_private_network.pn.id + } + depends_on = [scaleway_vpc_private_network.pn] +} +``` + +## Arguments Reference + +The following arguments are supported: + +- `instance_id` - (Required) UUID of the documentdb instance. + +- `ip_net` - (Optional) The IP network address within the private subnet. This must be an IPv4 address with a + CIDR notation. The IP network address within the private subnet is determined by the IP Address Management (IPAM) + service if not set. + +- `private_network_id` - (Required) The ID of the private network. + +## Private Network + +~> **Important:** Updates to `private_network_id` will recreate the attachment Instance. + +~> **NOTE:** Please calculate your host IP. +using [cirhost](https://developer.hashicorp.com/terraform/language/functions/cidrhost). Otherwise, lets IPAM service +handle the host IP on the network. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +- `ip` - IPv4 address on the network. +- `port` - Port in the Private Network. +- `name` - Name of the endpoint. +- `hostname` - Hostname of the endpoint. + + +~> **Important:** Database instances' IDs are [regional](../guides/regions_and_zones.md#resource-ids), which means they +are of the form `{region}/{id}`, e.g. `fr-par/11111111-1111-1111-1111-111111111111` + +## Import + +Database Instance Endpoint can be imported using the `{region}/{endpoint_id}`, e.g. + +```bash +$ terraform import scaleway_document_db_private_network_endpoint.end fr-par/11111111-1111-1111-1111-111111111111 +``` diff --git a/docs/resources/documentdb_privilege.md b/docs/resources/documentdb_privilege.md new file mode 100644 index 000000000..4acb2edf3 --- /dev/null +++ b/docs/resources/documentdb_privilege.md @@ -0,0 +1,49 @@ +--- +subcategory: "Databases" +page_title: "Scaleway: scaleway_document_db_privilege" +--- + +# scaleway_document_db_privilege + +Create and manage Scaleway DocumentDB database privilege. +For more information, see [the documentation](https://www.scaleway.com/en/developers/api/document_db/). + +## Example usage + +```hcl +resource "scaleway_document_db_privilege" "main" { + instance_id = "11111111-1111-1111-1111-111111111111" + user_name = "my-db-user" + database_name = "my-db-name" + permission = "all" +} + +``` + +## Argument Reference + +The following arguments are supported: + +- `instance_id` - (Required) UUID of the rdb instance. + +- `user_name` - (Required) Name of the user (e.g. `my-db-user`). + +- `database_name` - (Required) Name of the database (e.g. `my-db-name`). + +- `permission` - (Required) Permission to set. Valid values are `readonly`, `readwrite`, `all`, `custom` and `none`. + +- `region` - (Defaults to [provider](../index.md#region) `region`) The [region](../guides/regions_and_zones.md#regions) in which the resource exists. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +- `id` - The ID of the user privileges, which is of the form `{region}/{instance_id}/{database_name}/{user_name}`, e.g. `fr-par/11111111-1111-1111-1111-111111111111/database_name/foo` + +## Import + +The user privileges can be imported using the `{region}/{instance_id}/{database_name}/{user_name}`, e.g. + +```bash +$ terraform import scaleway_document_db_privilege.o fr-par/11111111-1111-1111-1111-111111111111/database_name/foo +``` diff --git a/docs/resources/documentdb_read_replica.md b/docs/resources/documentdb_read_replica.md new file mode 100644 index 000000000..4153c9416 --- /dev/null +++ b/docs/resources/documentdb_read_replica.md @@ -0,0 +1,84 @@ +--- +subcategory: "Databases" +page_title: "Scaleway: scaleway_document_db_read_replica" +--- + +# scaleway_document_db_read_replica + +Creates and manages Scaleway DocumentDB Database read replicas. +For more information, see [the documentation](https://www.scaleway.com/en/developers/api/document_db/). + +## Examples + +### Basic + +```hcl +resource scaleway_document_db_read_replica "replica" { + instance_id = "11111111-1111-1111-1111-111111111111" + direct_access {} +} +``` + +### Private network + +```hcl +resource "scaleway_vpc_private_network" "pn" {} + +resource "scaleway_document_db_read_replica" "replica" { + instance_id = scaleway_rdb_instance.instance.id + private_network { + private_network_id = scaleway_vpc_private_network.pn.id + service_ip = "192.168.1.254/24" // omit this attribute if private IP is determined by the IP Address Management (IPAM) + } +} +``` + +## Arguments Reference + +The following arguments are supported: + +- `instance_id` - (Required) UUID of the documentdb instance. + +~> **Important:** The replica musts contains at least one of `direct_access` or `private_network`. It can contain both. + +- `direct_access` - (Optional) Creates a direct access endpoint to documentdb replica. + +- `private_network` - (Optional) Create an endpoint in a private network. + - `private_network_id` - (Required) UUID of the private network to be connected to the read replica. + - `service_ip` - (Optional) The IP network address within the private subnet. This must be an IPv4 address with a + CIDR notation. The IP network address within the private subnet is determined by the IP Address Management (IPAM) + service if not set. + +- `region` - (Defaults to [provider](../index.md#region) `region`) The [region](../guides/regions_and_zones.md#regions) + in which the Database read replica should be created. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +- `id` - The ID of the Database read replica. + +~> **Important:** Database read replicas' IDs are [regional](../guides/regions_and_zones.md#resource-ids), which means +they are of the form `{region}/{id}`, e.g. `fr-par/11111111-1111-1111-1111-111111111111` + +- `direct_access` - List of load balancer endpoints of the database read replica. + - `endpoint_id` - The ID of the endpoint of the read replica. + - `ip` - IPv4 address of the endpoint (IP address). Only one of ip and hostname may be set. + - `port` - TCP port of the endpoint. + - `name` - Name of the endpoint. + - `hostname` - Hostname of the endpoint. Only one of ip and hostname may be set. + +- `private_network` - List of private networks endpoints of the database read replica. + - `endpoint_id` - The ID of the endpoint of the read replica. + - `ip` - IPv4 address of the endpoint (IP address). Only one of ip and hostname may be set. + - `port` - TCP port of the endpoint. + - `name` - Name of the endpoint. + - `hostname` - Hostname of the endpoint. Only one of ip and hostname may be set. + +## Import + +Database Read replica can be imported using the `{region}/{id}`, e.g. + +```bash +$ terraform import scaleway_document_db_read_replica.rr fr-par/11111111-1111-1111-1111-111111111111 +``` diff --git a/docs/resources/documentdb_user.md b/docs/resources/documentdb_user.md new file mode 100644 index 000000000..05d1ff6c5 --- /dev/null +++ b/docs/resources/documentdb_user.md @@ -0,0 +1,59 @@ +--- +subcategory: "Databases" +page_title: "Scaleway: scaleway_document_db_user" +--- + +# scaleway_document_db_user + +Creates and manages Scaleway Database DocumentDB Users. +For more information, see [the documentation](https://www.scaleway.com/en/developers/api/document_db/). + +## Examples + +### Basic + +```hcl +resource "random_password" "db_password" { + length = 16 + special = true +} + +resource "scaleway_document_db_user" "db_admin" { + instance_id = "11111111-1111-1111-1111-111111111111" + name = "devtools" + password = random_password.db_password.result + is_admin = true +} +``` + +## Arguments Reference + +The following arguments are supported: + +- `instance_id` - (Required) UUID of the documentDB instance. + +~> **Important:** Updates to `instance_id` will recreate the Database User. + +- `name` - (Required) Database Username. + +~> **Important:** Updates to `name` will recreate the Database User. + +- `password` - (Required) Database User password. + +- `is_admin` - (Optional) Grant admin permissions to the Database User. + +- `region` - The Scaleway region this resource resides in. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +- `id` - The ID of the user, which is of the form `{region}/{instance_id}/{user_name}`, e.g. `fr-par/11111111-1111-1111-1111-111111111111/admin` + +## Import + +Database User can be imported using `{region}/{instance_id}/{user_name}`, e.g. + +```bash +$ terraform import scaleway_document_db_user.admin fr-par/11111111-1111-1111-1111-111111111111/admin +``` diff --git a/scaleway/data_source_document_db_database.go b/scaleway/data_source_document_db_database.go new file mode 100644 index 000000000..0bf1bd1a6 --- /dev/null +++ b/scaleway/data_source_document_db_database.go @@ -0,0 +1,50 @@ +package scaleway + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" +) + +func dataSourceScalewayDocumentDBDatabase() *schema.Resource { + // Generate datasource schema from resource + dsSchema := datasourceSchemaFromResourceSchema(resourceScalewayDocumentDBDatabase().Schema) + + addOptionalFieldsToSchema(dsSchema, "name", "region") + + dsSchema["instance_id"].Required = true + dsSchema["instance_id"].Computed = false + + return &schema.Resource{ + ReadContext: dataSourceScalewayDocumentDBDatabaseRead, + Schema: dsSchema, + } +} + +func dataSourceScalewayDocumentDBDatabaseRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + _, region, err := documentDBAPIWithRegion(d, meta) + if err != nil { + return diag.FromErr(err) + } + + instanceID := expandID(d.Get("instance_id").(string)) + databaseName := d.Get("name").(string) + + id := resourceScalewayDocumentDBDatabaseID(region, instanceID, databaseName) + d.SetId(id) + if err != nil { + return diag.FromErr(err) + } + + diags := resourceScalewayDocumentDBDatabaseRead(ctx, d, meta) + if diags != nil { + return append(diags, diag.Errorf("failed to read database state")...) + } + + if d.Id() == "" { + return diag.Errorf("database (%s) not found", databaseName) + } + + return nil +} diff --git a/scaleway/data_source_document_db_database_test.go b/scaleway/data_source_document_db_database_test.go new file mode 100644 index 000000000..94fd42e68 --- /dev/null +++ b/scaleway/data_source_document_db_database_test.go @@ -0,0 +1,48 @@ +package scaleway + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestAccScalewayDataSourceDocumentDBDatabase_Basic(t *testing.T) { + tt := NewTestTools(t) + defer tt.Cleanup() + resource.ParallelTest(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + ProviderFactories: tt.ProviderFactories, + CheckDestroy: resource.ComposeTestCheckFunc( + testAccCheckScalewayDocumentDBInstanceDestroy(tt), + ), + Steps: []resource.TestStep{ + { + Config: ` + resource scaleway_document_db_instance main { + name = "test-ds-document_db-database-basic" + node_type = "docdb-play2-pico" + engine = "FerretDB-1" + user_name = "my_initial_user" + password = "thiZ_is_v&ry_s3cret" + volume_size_in_gb = 20 + } + + resource scaleway_document_db_database main { + instance_id = scaleway_document_db_instance.main.id + name = "test-ds-document_db-database-basic" + } + + data scaleway_document_db_database main { + instance_id = scaleway_document_db_instance.main.id + name = scaleway_document_db_database.main.name + } + `, + Check: resource.ComposeTestCheckFunc( + testAccCheckScalewayDocumentDBDatabaseExists(tt, "scaleway_document_db_database.main"), + + resource.TestCheckResourceAttrPair("scaleway_document_db_database.main", "id", "data.scaleway_document_db_database.main", "id"), + ), + }, + }, + }) +} diff --git a/scaleway/data_source_document_db_instance.go b/scaleway/data_source_document_db_instance.go new file mode 100644 index 000000000..2ed62590f --- /dev/null +++ b/scaleway/data_source_document_db_instance.go @@ -0,0 +1,77 @@ +package scaleway + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + documentdb "github.com/scaleway/scaleway-sdk-go/api/documentdb/v1beta1" +) + +func dataSourceScalewayDocumentDBInstance() *schema.Resource { + // Generate datasource schema from resource + dsSchema := datasourceSchemaFromResourceSchema(resourceScalewayDocumentDBInstance().Schema) + + addOptionalFieldsToSchema(dsSchema, "name", "region") + + dsSchema["instance_id"] = &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The ID of the instance", + ConflictsWith: []string{"name"}, + ValidateFunc: validationUUIDorUUIDWithLocality(), + } + + return &schema.Resource{ + ReadContext: dataSourceScalewayDocumentDBInstanceRead, + Schema: dsSchema, + } +} + +func dataSourceScalewayDocumentDBInstanceRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + api, region, err := documentDBAPIWithRegion(d, meta) + if err != nil { + return diag.FromErr(err) + } + + instanceID, instanceIDExists := d.GetOk("instance_id") + if !instanceIDExists { + res, err := api.ListInstances(&documentdb.ListInstancesRequest{ + Region: region, + Name: expandStringPtr(d.Get("name")), + ProjectID: expandStringPtr(d.Get("project_id")), + }) + if err != nil { + return diag.FromErr(err) + } + for _, instance := range res.Instances { + if instance.Name == d.Get("name").(string) { + if instanceID != "" { + return diag.Errorf("more than 1 instance found with the same name %s", d.Get("name")) + } + instanceID = instance.ID + } + } + if instanceID == "" { + return diag.Errorf("no instance found with the name %s", d.Get("name")) + } + } + + regionID := datasourceNewRegionalID(instanceID, region) + d.SetId(regionID) + err = d.Set("instance_id", regionID) + if err != nil { + return diag.FromErr(err) + } + + diags := resourceScalewayDocumentDBInstanceRead(ctx, d, meta) + if diags != nil { + return append(diags, diag.Errorf("failed to read instance state")...) + } + + if d.Id() == "" { + return diag.Errorf("instance (%s) not found", regionID) + } + + return nil +} diff --git a/scaleway/data_source_document_db_instance_test.go b/scaleway/data_source_document_db_instance_test.go new file mode 100644 index 000000000..e0a972e3a --- /dev/null +++ b/scaleway/data_source_document_db_instance_test.go @@ -0,0 +1,49 @@ +package scaleway + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestAccScalewayDataSourceDocumentDBInstance_Basic(t *testing.T) { + tt := NewTestTools(t) + defer tt.Cleanup() + resource.ParallelTest(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + ProviderFactories: tt.ProviderFactories, + CheckDestroy: resource.ComposeTestCheckFunc( + testAccCheckScalewayDocumentDBInstanceDestroy(tt), + ), + Steps: []resource.TestStep{ + { + Config: ` + resource scaleway_document_db_instance main { + name = "test-ds-document_db-instance-basic" + node_type = "docdb-play2-pico" + engine = "FerretDB-1" + user_name = "my_initial_user" + password = "thiZ_is_v&ry_s3cret" + volume_size_in_gb = 20 + } + + data scaleway_document_db_instance find_by_name { + name = scaleway_document_db_instance.main.name + } + + data scaleway_document_db_instance find_by_id { + instance_id = scaleway_document_db_instance.main.id + } + `, + Check: resource.ComposeTestCheckFunc( + testAccCheckScalewayDocumentDBInstanceExists(tt, "scaleway_document_db_instance.main"), + + resource.TestCheckResourceAttrPair("scaleway_document_db_instance.main", "name", "data.scaleway_document_db_instance.find_by_name", "name"), + resource.TestCheckResourceAttrPair("scaleway_document_db_instance.main", "name", "data.scaleway_document_db_instance.find_by_id", "name"), + resource.TestCheckResourceAttrPair("scaleway_document_db_instance.main", "id", "data.scaleway_document_db_instance.find_by_name", "id"), + resource.TestCheckResourceAttrPair("scaleway_document_db_instance.main", "id", "data.scaleway_document_db_instance.find_by_id", "id"), + ), + }, + }, + }) +} diff --git a/scaleway/data_source_document_db_load_balancer_endpoint.go b/scaleway/data_source_document_db_load_balancer_endpoint.go new file mode 100644 index 000000000..46266823b --- /dev/null +++ b/scaleway/data_source_document_db_load_balancer_endpoint.go @@ -0,0 +1,113 @@ +package scaleway + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + documentdb "github.com/scaleway/scaleway-sdk-go/api/documentdb/v1beta1" +) + +func dataSourceScalewayDocumentDBEndpointLoadBalancer() *schema.Resource { + return &schema.Resource{ + ReadContext: dataSourceScalewayDocumentDBLoadBalancerRead, + Schema: map[string]*schema.Schema{ + "instance_id": { + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "Instance on which the endpoint is attached", + ConflictsWith: []string{"instance_name"}, + ValidateFunc: validationUUIDorUUIDWithLocality(), + DiffSuppressFunc: diffSuppressFuncLocality, + }, + "instance_name": { + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "Instance Name on which the endpoint is attached", + ConflictsWith: []string{"instance_id"}, + }, + "ip": { + Type: schema.TypeString, + Computed: true, + Description: "The IP of your load balancer service", + }, + "port": { + Type: schema.TypeInt, + Computed: true, + Description: "The port of your load balancer service", + }, + "name": { + Type: schema.TypeString, + Computed: true, + Description: "The name of your load balancer service", + }, + "hostname": { + Type: schema.TypeString, + Computed: true, + Description: "The hostname of your endpoint", + }, + "region": regionSchema(), + "project_id": projectIDSchema(), + }, + } +} + +func dataSourceScalewayDocumentDBLoadBalancerRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + api, region, err := documentDBAPIWithRegion(d, meta) + if err != nil { + return diag.FromErr(err) + } + + rawInstanceID, instanceIDExists := d.GetOk("instance_id") + if !instanceIDExists { + res, err := api.ListInstances(&documentdb.ListInstancesRequest{ + Region: region, + Name: expandStringPtr(d.Get("instance_name")), + ProjectID: expandStringPtr(d.Get("project_id")), + }) + if err != nil { + return diag.FromErr(err) + } + for _, instance := range res.Instances { + if instance.Name == d.Get("instance_name").(string) { + if rawInstanceID != "" { + return diag.Errorf("more than 1 instance found with the same name %s", d.Get("name")) + } + rawInstanceID = instance.ID + } + } + if rawInstanceID == "" { + return diag.Errorf("no instance found with the name %s", d.Get("instance_name")) + } + } + + instanceID := expandID(rawInstanceID) + instance, err := waitForDocumentDBInstance(ctx, api, region, instanceID, d.Timeout(schema.TimeoutRead)) + if err != nil { + return diag.FromErr(err) + } + + lb := getEndPointDocumentDBLoadBalancer(instance.Endpoints) + _ = d.Set("instance_id", instanceID) + _ = d.Set("instance_name", instance.Name) + _ = d.Set("hostname", flattenStringPtr(lb.Hostname)) + _ = d.Set("port", int(lb.Port)) + _ = d.Set("ip", flattenIPPtr(lb.IP)) + _ = d.Set("name", lb.Name) + + d.SetId(datasourceNewRegionalID(lb.ID, region)) + + return nil +} + +func getEndPointDocumentDBLoadBalancer(endpoints []*documentdb.Endpoint) *documentdb.Endpoint { + for _, endpoint := range endpoints { + if endpoint.LoadBalancer != nil { + return endpoint + } + } + + return nil +} diff --git a/scaleway/data_source_document_db_load_balancer_endpoint_test.go b/scaleway/data_source_document_db_load_balancer_endpoint_test.go new file mode 100644 index 000000000..7940ff88e --- /dev/null +++ b/scaleway/data_source_document_db_load_balancer_endpoint_test.go @@ -0,0 +1,47 @@ +package scaleway + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestAccScalewayDataSourceDocumentDBInstanceLoadBalancer_Basic(t *testing.T) { + tt := NewTestTools(t) + defer tt.Cleanup() + resource.ParallelTest(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + ProviderFactories: tt.ProviderFactories, + CheckDestroy: resource.ComposeTestCheckFunc( + testAccCheckScalewayDocumentDBInstanceDestroy(tt), + ), + Steps: []resource.TestStep{ + { + Config: ` + resource "scaleway_document_db_instance" "main" { + name = "test-ds-document_db-instance-basic" + node_type = "docdb-play2-pico" + engine = "FerretDB-1" + user_name = "my_initial_user" + password = "thiZ_is_v&ry_s3cret" + volume_size_in_gb = 20 + } + + data "scaleway_document_db_load_balancer_endpoint" "find_by_name" { + instance_name = scaleway_document_db_instance.main.name + } + + data "scaleway_document_db_load_balancer_endpoint" "find_by_id" { + instance_id = scaleway_document_db_instance.main.id + } + `, + Check: resource.ComposeTestCheckFunc( + testAccCheckScalewayDocumentDBInstanceEndpointExists(tt, "data.scaleway_document_db_load_balancer_endpoint.find_by_name"), + testAccCheckScalewayDocumentDBInstanceEndpointExists(tt, "data.scaleway_document_db_load_balancer_endpoint.find_by_id"), + resource.TestCheckResourceAttrPair("scaleway_document_db_instance.main", "name", "data.scaleway_document_db_load_balancer_endpoint.find_by_name", "instance_name"), + resource.TestCheckResourceAttrPair("scaleway_document_db_instance.main", "name", "data.scaleway_document_db_load_balancer_endpoint.find_by_id", "instance_name"), + ), + }, + }, + }) +} diff --git a/scaleway/helpers_document_db.go b/scaleway/helpers_document_db.go new file mode 100644 index 000000000..6381b6446 --- /dev/null +++ b/scaleway/helpers_document_db.go @@ -0,0 +1,77 @@ +package scaleway + +import ( + "context" + "fmt" + "strings" + "time" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + documentdb "github.com/scaleway/scaleway-sdk-go/api/documentdb/v1beta1" + "github.com/scaleway/scaleway-sdk-go/scw" +) + +const ( + telemetryDocumentDBReporting = "telemetry_reporting" + defaultDocumentDBInstanceTimeout = defaultRdbInstanceTimeout + defaultWaitDocumentDBRetryInterval = defaultWaitRDBRetryInterval +) + +// documentDBAPIWithRegion returns a new documentdb API and the region for a Create request +func documentDBAPIWithRegion(d *schema.ResourceData, m interface{}) (*documentdb.API, scw.Region, error) { + meta := m.(*Meta) + api := documentdb.NewAPI(meta.scwClient) + + region, err := extractRegion(d, meta) + if err != nil { + return nil, "", err + } + + return api, region, nil +} + +// documentDBAPIWithRegionalAndID returns a new documentdb API with region and ID extracted from the state +func documentDBAPIWithRegionAndID(m interface{}, regionalID string) (*documentdb.API, scw.Region, string, error) { + meta := m.(*Meta) + api := documentdb.NewAPI(meta.scwClient) + + region, ID, err := parseRegionalID(regionalID) + if err != nil { + return nil, "", "", err + } + + return api, region, ID, nil +} + +func waitForDocumentDBInstance(ctx context.Context, api *documentdb.API, region scw.Region, id string, timeout time.Duration) (*documentdb.Instance, error) { + retryInterval := defaultWaitDocumentDBRetryInterval + if DefaultWaitRetryInterval != nil { + retryInterval = *DefaultWaitRetryInterval + } + + instance, err := api.WaitForInstance(&documentdb.WaitForInstanceRequest{ + Region: region, + InstanceID: id, + RetryInterval: &retryInterval, + Timeout: scw.TimeDurationPtr(timeout), + }, scw.WithContext(ctx)) + + return instance, err +} + +// Build the resource identifier +// The resource identifier format is "Region/InstanceId/DatabaseName" +func resourceScalewayDocumentDBDatabaseID(region scw.Region, instanceID string, databaseName string) (resourceID string) { + return fmt.Sprintf("%s/%s/%s", region, instanceID, databaseName) +} + +// resourceScalewayDocumentDBDatabaseName extract regional instanceID and databaseName from composed ID +// returned by resourceScalewayDocumentDBDatabaseID() +func resourceScalewayDocumentDBDatabaseName(id string) (string, string, error) { + elems := strings.Split(id, "/") + if len(elems) != 3 { + return "", "", fmt.Errorf("cant parse terraform database id: %s", id) + } + + return elems[0] + "/" + elems[1], elems[2], nil +} diff --git a/scaleway/helpers_document_db_test.go b/scaleway/helpers_document_db_test.go new file mode 100644 index 000000000..1dac6de17 --- /dev/null +++ b/scaleway/helpers_document_db_test.go @@ -0,0 +1,17 @@ +package scaleway + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func Test_resourceScalewayDocumentDBDatabaseName(t *testing.T) { + localizedInstanceID, databaseName, err := resourceScalewayDocumentDBDatabaseName("fr-par/uuid/name") + assert.Nil(t, err) + assert.Equal(t, "fr-par/uuid", localizedInstanceID) + assert.Equal(t, "name", databaseName) + + _, _, err = resourceScalewayDocumentDBDatabaseName("fr-par/uuid") + assert.NotNil(t, err) +} diff --git a/scaleway/provider.go b/scaleway/provider.go index cfc1c9651..d87b89251 100644 --- a/scaleway/provider.go +++ b/scaleway/provider.go @@ -84,90 +84,96 @@ func Provider(config *ProviderConfig) plugin.ProviderFunc { }, ResourcesMap: map[string]*schema.Resource{ - "scaleway_account_project": resourceScalewayAccountProject(), - "scaleway_account_ssh_key": resourceScalewayAccountSSKKey(), - "scaleway_apple_silicon_server": resourceScalewayAppleSiliconServer(), - "scaleway_baremetal_server": resourceScalewayBaremetalServer(), - "scaleway_cockpit": resourceScalewayCockpit(), - "scaleway_cockpit_token": resourceScalewayCockpitToken(), - "scaleway_cockpit_grafana_user": resourceScalewayCockpitGrafanaUser(), - "scaleway_container_namespace": resourceScalewayContainerNamespace(), - "scaleway_container_cron": resourceScalewayContainerCron(), - "scaleway_container_domain": resourceScalewayContainerDomain(), - "scaleway_container_trigger": resourceScalewayContainerTrigger(), - "scaleway_domain_record": resourceScalewayDomainRecord(), - "scaleway_domain_zone": resourceScalewayDomainZone(), - "scaleway_flexible_ip": resourceScalewayFlexibleIP(), - "scaleway_flexible_ip_mac_address": resourceScalewayFlexibleIPMACAddress(), - "scaleway_function": resourceScalewayFunction(), - "scaleway_function_cron": resourceScalewayFunctionCron(), - "scaleway_function_domain": resourceScalewayFunctionDomain(), - "scaleway_function_namespace": resourceScalewayFunctionNamespace(), - "scaleway_function_token": resourceScalewayFunctionToken(), - "scaleway_function_trigger": resourceScalewayFunctionTrigger(), - "scaleway_iam_api_key": resourceScalewayIamAPIKey(), - "scaleway_iam_application": resourceScalewayIamApplication(), - "scaleway_iam_group": resourceScalewayIamGroup(), - "scaleway_iam_group_membership": resourceScalewayIamGroupMembership(), - "scaleway_iam_policy": resourceScalewayIamPolicy(), - "scaleway_instance_user_data": resourceScalewayInstanceUserData(), - "scaleway_instance_image": resourceScalewayInstanceImage(), - "scaleway_instance_ip": resourceScalewayInstanceIP(), - "scaleway_instance_ip_reverse_dns": resourceScalewayInstanceIPReverseDNS(), - "scaleway_instance_volume": resourceScalewayInstanceVolume(), - "scaleway_instance_security_group": resourceScalewayInstanceSecurityGroup(), - "scaleway_instance_security_group_rules": resourceScalewayInstanceSecurityGroupRules(), - "scaleway_instance_server": resourceScalewayInstanceServer(), - "scaleway_instance_snapshot": resourceScalewayInstanceSnapshot(), - "scaleway_iam_ssh_key": resourceScalewayIamSSKKey(), - "scaleway_instance_placement_group": resourceScalewayInstancePlacementGroup(), - "scaleway_instance_private_nic": resourceScalewayInstancePrivateNIC(), - "scaleway_iot_hub": resourceScalewayIotHub(), - "scaleway_iot_device": resourceScalewayIotDevice(), - "scaleway_iot_route": resourceScalewayIotRoute(), - "scaleway_iot_network": resourceScalewayIotNetwork(), - "scaleway_k8s_cluster": resourceScalewayK8SCluster(), - "scaleway_k8s_pool": resourceScalewayK8SPool(), - "scaleway_lb": resourceScalewayLb(), - "scaleway_lb_acl": resourceScalewayLbACL(), - "scaleway_lb_ip": resourceScalewayLbIP(), - "scaleway_lb_backend": resourceScalewayLbBackend(), - "scaleway_lb_certificate": resourceScalewayLbCertificate(), - "scaleway_lb_frontend": resourceScalewayLbFrontend(), - "scaleway_lb_route": resourceScalewayLbRoute(), - "scaleway_registry_namespace": resourceScalewayRegistryNamespace(), - "scaleway_tem_domain": resourceScalewayTemDomain(), - "scaleway_container": resourceScalewayContainer(), - "scaleway_container_token": resourceScalewayContainerToken(), - "scaleway_rdb_acl": resourceScalewayRdbACL(), - "scaleway_rdb_database": resourceScalewayRdbDatabase(), - "scaleway_rdb_database_backup": resourceScalewayRdbDatabaseBackup(), - "scaleway_rdb_instance": resourceScalewayRdbInstance(), - "scaleway_rdb_privilege": resourceScalewayRdbPrivilege(), - "scaleway_rdb_user": resourceScalewayRdbUser(), - "scaleway_rdb_read_replica": resourceScalewayRdbReadReplica(), - "scaleway_redis_cluster": resourceScalewayRedisCluster(), - "scaleway_object": resourceScalewayObject(), - "scaleway_object_bucket": resourceScalewayObjectBucket(), - "scaleway_object_bucket_acl": resourceScalewayObjectBucketACL(), - "scaleway_object_bucket_lock_configuration": resourceObjectLockConfiguration(), - "scaleway_object_bucket_policy": resourceScalewayObjectBucketPolicy(), - "scaleway_object_bucket_website_configuration": ResourceBucketWebsiteConfiguration(), - "scaleway_mnq_namespace": resourceScalewayMNQNamespace(), - "scaleway_mnq_credential": resourceScalewayMNQCredential(), - "scaleway_mnq_queue": resourceScalewayMNQQueue(), - "scaleway_secret": resourceScalewaySecret(), - "scaleway_secret_version": resourceScalewaySecretVersion(), - "scaleway_vpc": resourceScalewayVPC(), - "scaleway_vpc_public_gateway": resourceScalewayVPCPublicGateway(), - "scaleway_vpc_gateway_network": resourceScalewayVPCGatewayNetwork(), - "scaleway_vpc_public_gateway_dhcp": resourceScalewayVPCPublicGatewayDHCP(), - "scaleway_vpc_public_gateway_dhcp_reservation": resourceScalewayVPCPublicGatewayDHCPReservation(), - "scaleway_vpc_public_gateway_ip": resourceScalewayVPCPublicGatewayIP(), - "scaleway_vpc_public_gateway_ip_reverse_dns": resourceScalewayVPCPublicGatewayIPReverseDNS(), - "scaleway_vpc_public_gateway_pat_rule": resourceScalewayVPCPublicGatewayPATRule(), - "scaleway_vpc_private_network": resourceScalewayVPCPrivateNetwork(), - "scaleway_webhosting": resourceScalewayWebhosting(), + "scaleway_account_project": resourceScalewayAccountProject(), + "scaleway_account_ssh_key": resourceScalewayAccountSSKKey(), + "scaleway_apple_silicon_server": resourceScalewayAppleSiliconServer(), + "scaleway_baremetal_server": resourceScalewayBaremetalServer(), + "scaleway_cockpit": resourceScalewayCockpit(), + "scaleway_cockpit_token": resourceScalewayCockpitToken(), + "scaleway_cockpit_grafana_user": resourceScalewayCockpitGrafanaUser(), + "scaleway_container_namespace": resourceScalewayContainerNamespace(), + "scaleway_container_cron": resourceScalewayContainerCron(), + "scaleway_container_domain": resourceScalewayContainerDomain(), + "scaleway_container_trigger": resourceScalewayContainerTrigger(), + "scaleway_document_db_instance": resourceScalewayDocumentDBInstance(), + "scaleway_document_db_database": resourceScalewayDocumentDBDatabase(), + "scaleway_document_db_private_network_endpoint": resourceScalewayDocumentDBInstancePrivateNetworkEndpoint(), + "scaleway_document_db_user": resourceScalewayDocumentDBUser(), + "scaleway_document_db_privilege": resourceScalewayDocumentDBPrivilege(), + "scaleway_document_db_read_replica": resourceScalewayDocumentDBReadReplica(), + "scaleway_domain_record": resourceScalewayDomainRecord(), + "scaleway_domain_zone": resourceScalewayDomainZone(), + "scaleway_flexible_ip": resourceScalewayFlexibleIP(), + "scaleway_flexible_ip_mac_address": resourceScalewayFlexibleIPMACAddress(), + "scaleway_function": resourceScalewayFunction(), + "scaleway_function_cron": resourceScalewayFunctionCron(), + "scaleway_function_domain": resourceScalewayFunctionDomain(), + "scaleway_function_namespace": resourceScalewayFunctionNamespace(), + "scaleway_function_token": resourceScalewayFunctionToken(), + "scaleway_function_trigger": resourceScalewayFunctionTrigger(), + "scaleway_iam_api_key": resourceScalewayIamAPIKey(), + "scaleway_iam_application": resourceScalewayIamApplication(), + "scaleway_iam_group": resourceScalewayIamGroup(), + "scaleway_iam_group_membership": resourceScalewayIamGroupMembership(), + "scaleway_iam_policy": resourceScalewayIamPolicy(), + "scaleway_instance_user_data": resourceScalewayInstanceUserData(), + "scaleway_instance_image": resourceScalewayInstanceImage(), + "scaleway_instance_ip": resourceScalewayInstanceIP(), + "scaleway_instance_ip_reverse_dns": resourceScalewayInstanceIPReverseDNS(), + "scaleway_instance_volume": resourceScalewayInstanceVolume(), + "scaleway_instance_security_group": resourceScalewayInstanceSecurityGroup(), + "scaleway_instance_security_group_rules": resourceScalewayInstanceSecurityGroupRules(), + "scaleway_instance_server": resourceScalewayInstanceServer(), + "scaleway_instance_snapshot": resourceScalewayInstanceSnapshot(), + "scaleway_iam_ssh_key": resourceScalewayIamSSKKey(), + "scaleway_instance_placement_group": resourceScalewayInstancePlacementGroup(), + "scaleway_instance_private_nic": resourceScalewayInstancePrivateNIC(), + "scaleway_iot_hub": resourceScalewayIotHub(), + "scaleway_iot_device": resourceScalewayIotDevice(), + "scaleway_iot_route": resourceScalewayIotRoute(), + "scaleway_iot_network": resourceScalewayIotNetwork(), + "scaleway_k8s_cluster": resourceScalewayK8SCluster(), + "scaleway_k8s_pool": resourceScalewayK8SPool(), + "scaleway_lb": resourceScalewayLb(), + "scaleway_lb_acl": resourceScalewayLbACL(), + "scaleway_lb_ip": resourceScalewayLbIP(), + "scaleway_lb_backend": resourceScalewayLbBackend(), + "scaleway_lb_certificate": resourceScalewayLbCertificate(), + "scaleway_lb_frontend": resourceScalewayLbFrontend(), + "scaleway_lb_route": resourceScalewayLbRoute(), + "scaleway_registry_namespace": resourceScalewayRegistryNamespace(), + "scaleway_tem_domain": resourceScalewayTemDomain(), + "scaleway_container": resourceScalewayContainer(), + "scaleway_container_token": resourceScalewayContainerToken(), + "scaleway_rdb_acl": resourceScalewayRdbACL(), + "scaleway_rdb_database": resourceScalewayRdbDatabase(), + "scaleway_rdb_database_backup": resourceScalewayRdbDatabaseBackup(), + "scaleway_rdb_instance": resourceScalewayRdbInstance(), + "scaleway_rdb_privilege": resourceScalewayRdbPrivilege(), + "scaleway_rdb_user": resourceScalewayRdbUser(), + "scaleway_rdb_read_replica": resourceScalewayRdbReadReplica(), + "scaleway_redis_cluster": resourceScalewayRedisCluster(), + "scaleway_object": resourceScalewayObject(), + "scaleway_object_bucket": resourceScalewayObjectBucket(), + "scaleway_object_bucket_acl": resourceScalewayObjectBucketACL(), + "scaleway_object_bucket_lock_configuration": resourceObjectLockConfiguration(), + "scaleway_object_bucket_policy": resourceScalewayObjectBucketPolicy(), + "scaleway_object_bucket_website_configuration": ResourceBucketWebsiteConfiguration(), + "scaleway_mnq_namespace": resourceScalewayMNQNamespace(), + "scaleway_mnq_credential": resourceScalewayMNQCredential(), + "scaleway_mnq_queue": resourceScalewayMNQQueue(), + "scaleway_secret": resourceScalewaySecret(), + "scaleway_secret_version": resourceScalewaySecretVersion(), + "scaleway_vpc": resourceScalewayVPC(), + "scaleway_vpc_public_gateway": resourceScalewayVPCPublicGateway(), + "scaleway_vpc_gateway_network": resourceScalewayVPCGatewayNetwork(), + "scaleway_vpc_public_gateway_dhcp": resourceScalewayVPCPublicGatewayDHCP(), + "scaleway_vpc_public_gateway_dhcp_reservation": resourceScalewayVPCPublicGatewayDHCPReservation(), + "scaleway_vpc_public_gateway_ip": resourceScalewayVPCPublicGatewayIP(), + "scaleway_vpc_public_gateway_ip_reverse_dns": resourceScalewayVPCPublicGatewayIPReverseDNS(), + "scaleway_vpc_public_gateway_pat_rule": resourceScalewayVPCPublicGatewayPATRule(), + "scaleway_vpc_private_network": resourceScalewayVPCPrivateNetwork(), + "scaleway_webhosting": resourceScalewayWebhosting(), }, DataSourcesMap: map[string]*schema.Resource{ @@ -182,6 +188,9 @@ func Provider(config *ProviderConfig) plugin.ProviderFunc { "scaleway_cockpit_plan": dataSourceScalewayCockpitPlan(), "scaleway_domain_record": dataSourceScalewayDomainRecord(), "scaleway_domain_zone": dataSourceScalewayDomainZone(), + "scaleway_document_db_instance": dataSourceScalewayDocumentDBInstance(), + "scaleway_document_db_database": dataSourceScalewayDocumentDBDatabase(), + "scaleway_document_db_load_balancer_endpoint": dataSourceScalewayDocumentDBEndpointLoadBalancer(), "scaleway_container_namespace": dataSourceScalewayContainerNamespace(), "scaleway_container": dataSourceScalewayContainer(), "scaleway_function": dataSourceScalewayFunction(), diff --git a/scaleway/resource_document_db_database.go b/scaleway/resource_document_db_database.go new file mode 100644 index 000000000..6002cf9b2 --- /dev/null +++ b/scaleway/resource_document_db_database.go @@ -0,0 +1,180 @@ +package scaleway + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + documentdb "github.com/scaleway/scaleway-sdk-go/api/documentdb/v1beta1" + "github.com/scaleway/scaleway-sdk-go/scw" +) + +func resourceScalewayDocumentDBDatabase() *schema.Resource { + return &schema.Resource{ + CreateContext: resourceScalewayDocumentDBDatabaseCreate, + ReadContext: resourceScalewayDocumentDBDatabaseRead, + DeleteContext: resourceScalewayDocumentDBDatabaseDelete, + Importer: &schema.ResourceImporter{ + StateContext: schema.ImportStatePassthroughContext, + }, + Timeouts: &schema.ResourceTimeout{ + Create: schema.DefaultTimeout(defaultRdbInstanceTimeout), + Delete: schema.DefaultTimeout(defaultRdbInstanceTimeout), + Default: schema.DefaultTimeout(defaultRdbInstanceTimeout), + }, + SchemaVersion: 0, + Schema: map[string]*schema.Schema{ + "instance_id": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: validationUUIDorUUIDWithLocality(), + Description: "Instance on which the database is created", + }, + "name": { + Type: schema.TypeString, + Computed: true, + Optional: true, + ForceNew: true, + Description: "The database name", + }, + "managed": { + Type: schema.TypeBool, + Description: "Whether or not the database is managed", + Computed: true, + }, + "owner": { + Type: schema.TypeString, + Description: "User that own the database", + Computed: true, + }, + "size": { + Type: schema.TypeString, + Description: "Size of the database", + Computed: true, + }, + "region": regionSchema(), + "project_id": projectIDSchema(), + }, + } +} + +func resourceScalewayDocumentDBDatabaseCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + api, region, err := documentDBAPIWithRegion(d, meta) + if err != nil { + return diag.FromErr(err) + } + + instanceID := expandID(d.Get("instance_id")) + + _, err = waitForDocumentDBInstance(ctx, api, region, instanceID, d.Timeout(schema.TimeoutCreate)) + if err != nil { + return diag.FromErr(err) + } + + database, err := api.CreateDatabase(&documentdb.CreateDatabaseRequest{ + Region: region, + InstanceID: instanceID, + Name: expandOrGenerateString(d.Get("name").(string), "database"), + }, scw.WithContext(ctx)) + if err != nil { + return diag.FromErr(err) + } + + d.SetId(resourceScalewayDocumentDBDatabaseID(region, instanceID, database.Name)) + + _, err = waitForDocumentDBInstance(ctx, api, region, instanceID, d.Timeout(schema.TimeoutCreate)) + if err != nil { + return diag.FromErr(err) + } + + return resourceScalewayDocumentDBDatabaseRead(ctx, d, meta) +} + +func getDocumentDBDatabase(ctx context.Context, api *documentdb.API, region scw.Region, instanceID string, dbName string) (*documentdb.Database, error) { + res, err := api.ListDatabases(&documentdb.ListDatabasesRequest{ + Region: region, + InstanceID: instanceID, + Name: &dbName, + }, scw.WithContext(ctx)) + if err != nil { + return nil, err + } + + if len(res.Databases) == 0 { + return nil, fmt.Errorf("database %q not found", dbName) + } + + return res.Databases[0], nil +} + +func resourceScalewayDocumentDBDatabaseRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + instanceLocalizedID, databaseName, err := resourceScalewayDocumentDBDatabaseName(d.Id()) + if err != nil { + return diag.FromErr(err) + } + api, region, instanceID, err := documentDBAPIWithRegionAndID(meta, instanceLocalizedID) + if err != nil { + return diag.FromErr(err) + } + + instance, err := waitForDocumentDBInstance(ctx, api, region, instanceID, d.Timeout(schema.TimeoutRead)) + if err != nil { + if is404Error(err) { + d.SetId("") + return nil + } + return diag.FromErr(err) + } + + database, err := getDocumentDBDatabase(ctx, api, region, instanceID, databaseName) + if err != nil { + return diag.FromErr(err) + } + + _ = d.Set("name", database.Name) + _ = d.Set("region", instance.Region) + _ = d.Set("owner", database.Owner) + _ = d.Set("managed", database.Managed) + _ = d.Set("size", database.Size.String()) + _ = d.Set("project_id", instance.ProjectID) + + return nil +} + +func resourceScalewayDocumentDBDatabaseDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + instanceLocalizedID, databaseName, err := resourceScalewayDocumentDBDatabaseName(d.Id()) + if err != nil { + return diag.FromErr(err) + } + api, region, instanceID, err := documentDBAPIWithRegionAndID(meta, instanceLocalizedID) + if err != nil { + return diag.FromErr(err) + } + + _, err = waitForDocumentDBInstance(ctx, api, region, instanceID, d.Timeout(schema.TimeoutDelete)) + if err != nil { + if is404Error(err) { + d.SetId("") + return nil + } + return diag.FromErr(err) + } + + err = api.DeleteDatabase(&documentdb.DeleteDatabaseRequest{ + Region: region, + Name: databaseName, + InstanceID: instanceID, + }, scw.WithContext(ctx)) + if err != nil { + return diag.FromErr(err) + } + + _, err = waitForDocumentDBInstance(ctx, api, region, instanceID, d.Timeout(schema.TimeoutDelete)) + if err != nil && !is404Error(err) { + return diag.FromErr(err) + } + + return nil +} diff --git a/scaleway/resource_document_db_database_test.go b/scaleway/resource_document_db_database_test.go new file mode 100644 index 000000000..d5635e54f --- /dev/null +++ b/scaleway/resource_document_db_database_test.go @@ -0,0 +1,80 @@ +package scaleway + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" + document_db "github.com/scaleway/scaleway-sdk-go/api/documentdb/v1beta1" +) + +func TestAccScalewayDocumentDBDatabase_Basic(t *testing.T) { + tt := NewTestTools(t) + defer tt.Cleanup() + + resource.ParallelTest(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + ProviderFactories: tt.ProviderFactories, + CheckDestroy: testAccCheckScalewayDocumentDBInstanceDestroy(tt), + Steps: []resource.TestStep{ + { + Config: ` + resource scaleway_document_db_instance main { + name = "test-document_db-database-basic" + node_type = "docdb-play2-pico" + engine = "FerretDB-1" + user_name = "my_initial_user" + password = "thiZ_is_v&ry_s3cret" + tags = [ "terraform-test", "scaleway_document_db_database", "minimal" ] + volume_size_in_gb = 20 + } + + resource scaleway_document_db_database main { + instance_id = scaleway_document_db_instance.main.id + name = "test-document_db-database-basic" + } + `, + Check: resource.ComposeTestCheckFunc( + testAccCheckScalewayDocumentDBDatabaseExists(tt, "scaleway_document_db_database.main"), + testCheckResourceAttrUUID("scaleway_document_db_database.main", "id"), + resource.TestCheckResourceAttr("scaleway_document_db_database.main", "name", "test-document_db-database-basic"), + ), + }, + }, + }) +} + +func testAccCheckScalewayDocumentDBDatabaseExists(tt *TestTools, n string) resource.TestCheckFunc { + return func(state *terraform.State) error { + rs, ok := state.RootModule().Resources[n] + if !ok { + return fmt.Errorf("resource not found: %s", n) + } + + localizedInstanceID, databaseName, err := resourceScalewayDocumentDBDatabaseName(rs.Primary.ID) + if err != nil { + return err + } + + api, region, instanceID, err := documentDBAPIWithRegionAndID(tt.Meta, localizedInstanceID) + if err != nil { + return err + } + + resp, err := api.ListDatabases(&document_db.ListDatabasesRequest{ + InstanceID: instanceID, + Name: &databaseName, + Region: region, + }) + if err != nil { + return err + } + + if len(resp.Databases) != 1 { + return fmt.Errorf("no database found") + } + + return nil + } +} diff --git a/scaleway/resource_document_db_instance.go b/scaleway/resource_document_db_instance.go new file mode 100644 index 000000000..241a5b001 --- /dev/null +++ b/scaleway/resource_document_db_instance.go @@ -0,0 +1,345 @@ +package scaleway + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + documentdb "github.com/scaleway/scaleway-sdk-go/api/documentdb/v1beta1" + "github.com/scaleway/scaleway-sdk-go/scw" +) + +func resourceScalewayDocumentDBInstance() *schema.Resource { + return &schema.Resource{ + CreateContext: resourceScalewayDocumentDBInstanceCreate, + ReadContext: resourceScalewayDocumentDBInstanceRead, + UpdateContext: resourceScalewayDocumentDBInstanceUpdate, + DeleteContext: resourceScalewayDocumentDBInstanceDelete, + Importer: &schema.ResourceImporter{ + StateContext: schema.ImportStatePassthroughContext, + }, + Timeouts: &schema.ResourceTimeout{ + Create: schema.DefaultTimeout(defaultDocumentDBInstanceTimeout), + Read: schema.DefaultTimeout(defaultDocumentDBInstanceTimeout), + Update: schema.DefaultTimeout(defaultDocumentDBInstanceTimeout), + Delete: schema.DefaultTimeout(defaultDocumentDBInstanceTimeout), + Default: schema.DefaultTimeout(defaultDocumentDBInstanceTimeout), + }, + SchemaVersion: 0, + Schema: map[string]*schema.Schema{ + "name": { + Type: schema.TypeString, + Computed: true, + Optional: true, + Description: "The document db instance name", + }, + "node_type": { + Type: schema.TypeString, + Required: true, + Description: "The type of database instance you want to create", + DiffSuppressFunc: diffSuppressFuncIgnoreCase, + }, + "engine": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + Description: "Database's engine version id", + }, + "is_ha_cluster": { + Type: schema.TypeBool, + Optional: true, + Default: false, + Description: "Enable or disable high availability for the database instance", + }, + "user_name": { + Type: schema.TypeString, + ForceNew: true, + Optional: true, + Description: "Identifier for the first user of the database instance", + }, + "password": { + Type: schema.TypeString, + Sensitive: true, + Optional: true, + ForceNew: true, + Description: "Password for the first user of the database instance", + }, + "volume_type": { + Type: schema.TypeString, + Default: documentdb.VolumeTypeBssd, + Optional: true, + ValidateFunc: validation.StringInSlice([]string{ + documentdb.VolumeTypeLssd.String(), + documentdb.VolumeTypeBssd.String(), + }, false), + Description: "Type of volume where data are stored", + }, + "volume_size_in_gb": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + Description: "Volume size (in GB) when volume_type is not lssd", + }, + "tags": { + Type: schema.TypeList, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + Optional: true, + Description: "List of tags [\"tag1\", \"tag2\", ...] attached to a database instance", + }, + "telemetry_enabled": { + Type: schema.TypeBool, + Optional: true, + Description: " Enable telemetry to collects basic anonymous usage data and sends them to FerretDB telemetry service", + }, + "region": regionSchema(), + "project_id": projectIDSchema(), + }, + } +} + +func resourceScalewayDocumentDBInstanceCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + api, region, err := documentDBAPIWithRegion(d, meta) + if err != nil { + return diag.FromErr(err) + } + + createReq := &documentdb.CreateInstanceRequest{ + Region: region, + ProjectID: expandStringPtr(d.Get("project_id")), + Name: expandOrGenerateString(d.Get("name").(string), "document-instance"), + NodeType: d.Get("node_type").(string), + Engine: d.Get("engine").(string), + IsHaCluster: d.Get("is_ha_cluster").(bool), + UserName: d.Get("user_name").(string), + Password: d.Get("password").(string), + Tags: expandStrings(d.Get("tags")), + VolumeType: documentdb.VolumeType(d.Get("volume_type").(string)), + } + + if size, ok := d.GetOk("volume_size_in_gb"); ok { + if createReq.VolumeType != documentdb.VolumeTypeBssd { + return diag.FromErr(fmt.Errorf("volume_size_in_gb should be used with volume_type %s only", documentdb.VolumeTypeBssd.String())) + } + createReq.VolumeSize = scw.Size(uint64(size.(int)) * uint64(scw.GB)) + } + + if d.Get("telemetry_enabled").(bool) { + createReq.InitSettings = append(createReq.InitSettings, &documentdb.InstanceSetting{ + Name: telemetryDocumentDBReporting, + Value: "true", + }) + } + + instance, err := api.CreateInstance(createReq, scw.WithContext(ctx)) + if err != nil { + return diag.FromErr(err) + } + + d.SetId(newRegionalIDString(region, instance.ID)) + + _, err = waitForDocumentDBInstance(ctx, api, region, instance.ID, d.Timeout(schema.TimeoutCreate)) + if err != nil { + return diag.FromErr(err) + } + + return resourceScalewayDocumentDBInstanceRead(ctx, d, meta) +} + +func resourceScalewayDocumentDBInstanceRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + api, region, id, err := documentDBAPIWithRegionAndID(meta, d.Id()) + if err != nil { + return diag.FromErr(err) + } + + instance, err := waitForDocumentDBInstance(ctx, api, region, id, d.Timeout(schema.TimeoutRead)) + if err != nil { + if is404Error(err) { + d.SetId("") + return nil + } + return diag.FromErr(err) + } + + _ = d.Set("name", instance.Name) + _ = d.Set("node_type", instance.NodeType) + _ = d.Set("engine", instance.Engine) + _ = d.Set("is_ha_cluster", instance.IsHaCluster) + _ = d.Set("region", instance.Region) + _ = d.Set("project_id", instance.ProjectID) + _ = d.Set("tags", instance.Tags) + + if instance.Volume != nil { + _ = d.Set("volume_type", instance.Volume.Type) + _ = d.Set("volume_size_in_gb", int(instance.Volume.Size/scw.GB)) + } + + _ = setInitSettings(d, instance.InitSettings) + + return nil +} + +func setInitSettings(d *schema.ResourceData, settings []*documentdb.InstanceSetting) error { + for _, s := range settings { + if s.Name == telemetryDocumentDBReporting { + _ = d.Set("telemetry_enabled", s.Value) + } + } + + return nil +} + +func resourceScalewayDocumentDBInstanceUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + api, region, id, err := documentDBAPIWithRegionAndID(meta, d.Id()) + if err != nil { + return diag.FromErr(err) + } + + instance, err := waitForDocumentDBInstance(ctx, api, region, id, d.Timeout(schema.TimeoutUpdate)) + if err != nil { + if is404Error(err) { + d.SetId("") + return nil + } + return diag.FromErr(err) + } + + req := &documentdb.UpdateInstanceRequest{ + Region: region, + InstanceID: instance.ID, + } + + if d.HasChange("name") { + req.Name = expandUpdatedStringPtr(d.Get("name")) + } + + if d.HasChange("tags") { + req.Tags = expandUpdatedStringsPtr(d.Get("tags")) + } + + _, err = waitForDocumentDBInstance(ctx, api, region, id, d.Timeout(schema.TimeoutUpdate)) + if err != nil { + return diag.FromErr(err) + } + + if _, err := api.UpdateInstance(req, scw.WithContext(ctx)); err != nil { + return diag.FromErr(err) + } + + upgradeRequests := []*documentdb.UpgradeInstanceRequest(nil) + + if d.HasChanges("volume_type", "volume_size_in_gb") { + volType := documentdb.VolumeType(d.Get("volume_type").(string)) + + switch volType { + case documentdb.VolumeTypeBssd: + if d.HasChange("volume_type") { + upgradeRequests = append(upgradeRequests, + &documentdb.UpgradeInstanceRequest{ + Region: region, + InstanceID: id, + VolumeType: &volType, + }) + } + if d.HasChange("volume_size_in_gb") { + oldSizeInterface, newSizeInterface := d.GetChange("volume_size_in_gb") + oldSize := uint64(oldSizeInterface.(int)) + newSize := uint64(newSizeInterface.(int)) + if newSize < oldSize { + return diag.FromErr(fmt.Errorf("volume_size_in_gb cannot be decreased")) + } + + if newSize%5 != 0 { + return diag.FromErr(fmt.Errorf("volume_size_in_gb must be a multiple of 5")) + } + + upgradeRequests = append(upgradeRequests, + &documentdb.UpgradeInstanceRequest{ + Region: region, + InstanceID: id, + VolumeSize: scw.Uint64Ptr(newSize * uint64(scw.GB)), + }) + } + case documentdb.VolumeTypeLssd: + _, ok := d.GetOk("volume_size_in_gb") + if d.HasChange("volume_size_in_gb") && ok { + return diag.FromErr(fmt.Errorf("volume_size_in_gb should be used with volume_type %s only", documentdb.VolumeTypeBssd.String())) + } + if d.HasChange("volume_type") { + upgradeRequests = append(upgradeRequests, + &documentdb.UpgradeInstanceRequest{ + Region: region, + InstanceID: id, + VolumeType: &volType, + }) + } + default: + return diag.FromErr(fmt.Errorf("unknown volume_type %s", volType.String())) + } + + if d.HasChanges("node_type") { + upgradeRequests = append(upgradeRequests, &documentdb.UpgradeInstanceRequest{ + Region: region, + InstanceID: id, + NodeType: expandStringPtr(d.Get("node_type")), + }) + } + + if d.HasChange("is_ha_cluster") { + upgradeRequests = append(upgradeRequests, &documentdb.UpgradeInstanceRequest{ + Region: region, + InstanceID: id, + EnableHa: expandBoolPtr(d.Get("is_ha_cluster")), + }) + } + } + + for _, upgradeRequest := range upgradeRequests { + _, err = waitForDocumentDBInstance(ctx, api, region, id, d.Timeout(schema.TimeoutUpdate)) + if err != nil { + return diag.FromErr(err) + } + + _, err = api.UpgradeInstance(upgradeRequest, scw.WithContext(ctx)) + if err != nil { + return diag.FromErr(err) + } + + _, err = waitForDocumentDBInstance(ctx, api, region, id, d.Timeout(schema.TimeoutUpdate)) + if err != nil { + return diag.FromErr(err) + } + } + + return resourceScalewayDocumentDBInstanceRead(ctx, d, meta) +} + +func resourceScalewayDocumentDBInstanceDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + api, region, id, err := documentDBAPIWithRegionAndID(meta, d.Id()) + if err != nil { + return diag.FromErr(err) + } + + _, err = waitForDocumentDBInstance(ctx, api, region, id, d.Timeout(schema.TimeoutDelete)) + if err != nil { + return diag.FromErr(err) + } + + _, err = api.DeleteInstance(&documentdb.DeleteInstanceRequest{ + Region: region, + InstanceID: id, + }, scw.WithContext(ctx)) + if err != nil { + return diag.FromErr(err) + } + + _, err = waitForDocumentDBInstance(ctx, api, region, id, d.Timeout(schema.TimeoutDelete)) + if err != nil && !is404Error(err) { + return diag.FromErr(err) + } + + return nil +} diff --git a/scaleway/resource_document_db_instance_test.go b/scaleway/resource_document_db_instance_test.go new file mode 100644 index 000000000..31077281c --- /dev/null +++ b/scaleway/resource_document_db_instance_test.go @@ -0,0 +1,132 @@ +package scaleway + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" + documentdb "github.com/scaleway/scaleway-sdk-go/api/documentdb/v1beta1" + "github.com/scaleway/scaleway-sdk-go/scw" +) + +func init() { + resource.AddTestSweepers("scaleway_document_db_instance", &resource.Sweeper{ + Name: "scaleway_document_db_instance", + F: testSweepDocumentDBInstance, + }) +} + +func testSweepDocumentDBInstance(_ string) error { + return sweepRegions((&documentdb.API{}).Regions(), func(scwClient *scw.Client, region scw.Region) error { + api := documentdb.NewAPI(scwClient) + l.Debugf("sweeper: destroying the documentdb instances in (%s)", region) + listInstances, err := api.ListInstances( + &documentdb.ListInstancesRequest{ + Region: region, + }, scw.WithAllPages()) + if err != nil { + return fmt.Errorf("error listing instance in (%s) in sweeper: %s", region, err) + } + + for _, instance := range listInstances.Instances { + _, err := api.DeleteInstance(&documentdb.DeleteInstanceRequest{ + InstanceID: instance.ID, + Region: region, + }) + if err != nil { + l.Debugf("sweeper: error (%s)", err) + + return fmt.Errorf("error deleting instance in sweeper: %s", err) + } + } + + return nil + }) +} + +func TestAccScalewayDocumentDBInstance_Basic(t *testing.T) { + tt := NewTestTools(t) + defer tt.Cleanup() + + resource.ParallelTest(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + ProviderFactories: tt.ProviderFactories, + CheckDestroy: testAccCheckScalewayDocumentDBInstanceDestroy(tt), + Steps: []resource.TestStep{ + { + Config: ` + resource "scaleway_document_db_instance" "main" { + name = "test-documentdb-instance-basic" + node_type = "docdb-play2-pico" + engine = "FerretDB-1" + user_name = "my_initial_user" + password = "thiZ_is_v&ry_s3cret" + tags = ["terraform-test", "scaleway_document_db_instance", "minimal"] + volume_size_in_gb = 20 + } + `, + Check: resource.ComposeTestCheckFunc( + testAccCheckScalewayDocumentDBInstanceExists(tt, "scaleway_document_db_instance.main"), + testCheckResourceAttrUUID("scaleway_document_db_instance.main", "id"), + resource.TestCheckResourceAttr("scaleway_document_db_instance.main", "name", "test-documentdb-instance-basic"), + ), + }, + }, + }) +} + +func testAccCheckScalewayDocumentDBInstanceExists(tt *TestTools, n string) resource.TestCheckFunc { + return func(state *terraform.State) error { + rs, ok := state.RootModule().Resources[n] + if !ok { + return fmt.Errorf("resource not found: %s", n) + } + + api, region, id, err := documentDBAPIWithRegionAndID(tt.Meta, rs.Primary.ID) + if err != nil { + return err + } + + _, err = api.GetInstance(&documentdb.GetInstanceRequest{ + InstanceID: id, + Region: region, + }) + + if err != nil { + return err + } + + return nil + } +} + +func testAccCheckScalewayDocumentDBInstanceDestroy(tt *TestTools) resource.TestCheckFunc { + return func(state *terraform.State) error { + for _, rs := range state.RootModule().Resources { + if rs.Type != "scaleway_document_db_instance" { + continue + } + + api, region, id, err := documentDBAPIWithRegionAndID(tt.Meta, rs.Primary.ID) + if err != nil { + return err + } + + _, err = api.DeleteInstance(&documentdb.DeleteInstanceRequest{ + InstanceID: id, + Region: region, + }) + + if err == nil { + return fmt.Errorf("documentdb instance (%s) still exists", rs.Primary.ID) + } + + if !is404Error(err) { + return err + } + } + + return nil + } +} diff --git a/scaleway/resource_document_db_private_network_endpoint.go b/scaleway/resource_document_db_private_network_endpoint.go new file mode 100644 index 000000000..0666f6133 --- /dev/null +++ b/scaleway/resource_document_db_private_network_endpoint.go @@ -0,0 +1,212 @@ +package scaleway + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + documentdb "github.com/scaleway/scaleway-sdk-go/api/documentdb/v1beta1" + "github.com/scaleway/scaleway-sdk-go/scw" +) + +func resourceScalewayDocumentDBInstancePrivateNetworkEndpoint() *schema.Resource { + return &schema.Resource{ + CreateContext: resourceScalewayDocumentDBInstanceEndpointCreate, + ReadContext: resourceScalewayDocumentDBInstanceEndpointRead, + UpdateContext: resourceScalewayDocumentDBInstanceEndpointUpdate, + DeleteContext: resourceScalewayDocumentDBInstanceEndpointDelete, + Importer: &schema.ResourceImporter{ + StateContext: schema.ImportStatePassthroughContext, + }, + Timeouts: &schema.ResourceTimeout{ + Default: schema.DefaultTimeout(defaultRdbInstanceTimeout), + }, + SchemaVersion: 0, + Schema: map[string]*schema.Schema{ + "instance_id": { + Type: schema.TypeString, + Required: true, + Description: "Instance on which the endpoint is attached", + }, + "private_network_id": { + Type: schema.TypeString, + Required: true, + ValidateFunc: validationUUIDorUUIDWithLocality(), + DiffSuppressFunc: diffSuppressFuncLocality, + Description: "The private network ID", + ForceNew: true, + }, + // Computed + "ip_net": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + ValidateFunc: validation.IsCIDR, + Description: "The IP with the given mask within the private subnet", + }, + "ip": { + Type: schema.TypeString, + Computed: true, + Description: "The IP of your private network service", + }, + "port": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + ValidateFunc: validation.IsPortNumber, + Description: "The port of your private service", + }, + "name": { + Type: schema.TypeString, + Computed: true, + Description: "The name of your private service", + }, + "hostname": { + Type: schema.TypeString, + Computed: true, + Description: "The hostname of your endpoint", + }, + "zone": zoneSchema(), + "region": regionSchema(), + }, + } +} + +func resourceScalewayDocumentDBInstanceEndpointCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + api, region, err := documentDBAPIWithRegion(d, meta) + if err != nil { + return diag.FromErr(err) + } + + instanceID := expandID(d.Get("instance_id")) + endpointSpecPN := &documentdb.EndpointSpecPrivateNetwork{} + createEndpointRequest := &documentdb.CreateEndpointRequest{ + Region: region, + InstanceID: instanceID, + EndpointSpec: &documentdb.EndpointSpec{}, + } + + endpointSpecPN.PrivateNetworkID = expandID(d.Get("private_network_id").(string)) + ipNet := d.Get("ip_net").(string) + if len(ipNet) > 0 { + ip, err := expandIPNet(ipNet) + if err != nil { + return diag.FromErr(err) + } + endpointSpecPN.ServiceIP = &ip + } else { + endpointSpecPN.IpamConfig = &documentdb.EndpointSpecPrivateNetworkIpamConfig{} + } + + createEndpointRequest.EndpointSpec.PrivateNetwork = endpointSpecPN + _, err = waitForDocumentDBInstance(ctx, api, region, instanceID, d.Timeout(schema.TimeoutCreate)) + if err != nil { + if is404Error(err) { + d.SetId("") + return nil + } + return diag.FromErr(err) + } + + endpoint, err := api.CreateEndpoint(createEndpointRequest, scw.WithContext(ctx)) + if err != nil { + return diag.FromErr(err) + } + + _, err = waitForDocumentDBInstance(ctx, api, region, instanceID, d.Timeout(schema.TimeoutCreate)) + if err != nil { + if is404Error(err) { + d.SetId("") + return nil + } + return diag.FromErr(err) + } + + d.SetId(newRegionalIDString(region, endpoint.ID)) + + return resourceScalewayDocumentDBInstanceEndpointRead(ctx, d, meta) +} + +func resourceScalewayDocumentDBInstanceEndpointRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + api, region, id, err := documentDBAPIWithRegionAndID(meta, d.Id()) + if err != nil { + return diag.FromErr(err) + } + + endpoint, err := api.GetEndpoint(&documentdb.GetEndpointRequest{ + EndpointID: id, + Region: region, + }, scw.WithContext(ctx)) + if err != nil { + if is404Error(err) { + d.SetId("") + return nil + } + return diag.FromErr(err) + } + + pnID := newRegionalIDString(region, endpoint.PrivateNetwork.PrivateNetworkID) + serviceIP, err := flattenIPNet(endpoint.PrivateNetwork.ServiceIP) + if err != nil { + return diag.FromErr(err) + } + + _ = d.Set("private_network_id", pnID) + _ = d.Set("ip_net", serviceIP) + _ = d.Set("zone", endpoint.PrivateNetwork.Zone) + _ = d.Set("port", int(endpoint.Port)) + _ = d.Set("name", endpoint.Name) + _ = d.Set("hostname", endpoint.Hostname) + _ = d.Set("ip", flattenIPPtr(endpoint.IP)) + _ = d.Set("region", region.String()) + + return nil +} + +func resourceScalewayDocumentDBInstanceEndpointUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + api, region, id, err := documentDBAPIWithRegionAndID(meta, d.Id()) + if err != nil { + return diag.FromErr(err) + } + + req := &documentdb.MigrateEndpointRequest{ + EndpointID: id, + Region: region, + } + + if d.HasChange("instance_id") { + req.InstanceID = expandID(d.Get("instance_id")) + + if _, err := api.MigrateEndpoint(req, scw.WithContext(ctx)); err != nil { + return diag.FromErr(err) + } + + _, err = waitForDocumentDBInstance(ctx, api, region, req.InstanceID, d.Timeout(schema.TimeoutCreate)) + + if err != nil { + return diag.FromErr(err) + } + } + + return resourceScalewayDocumentDBInstanceEndpointRead(ctx, d, meta) +} + +func resourceScalewayDocumentDBInstanceEndpointDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + api, region, id, err := documentDBAPIWithRegionAndID(meta, d.Id()) + if err != nil { + return diag.FromErr(err) + } + + err = api.DeleteEndpoint(&documentdb.DeleteEndpointRequest{ + Region: region, + EndpointID: id, + }, scw.WithContext(ctx)) + + if err != nil { + return diag.FromErr(err) + } + + return nil +} diff --git a/scaleway/resource_document_db_private_network_endpoint_test.go b/scaleway/resource_document_db_private_network_endpoint_test.go new file mode 100644 index 000000000..820a2f296 --- /dev/null +++ b/scaleway/resource_document_db_private_network_endpoint_test.go @@ -0,0 +1,273 @@ +package scaleway + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" + documentdb "github.com/scaleway/scaleway-sdk-go/api/documentdb/v1beta1" +) + +func TestAccScalewayDocumentDBPrivateNetworkEndpoint_Basic(t *testing.T) { + tt := NewTestTools(t) + defer tt.Cleanup() + + resource.ParallelTest(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + ProviderFactories: tt.ProviderFactories, + CheckDestroy: testAccCheckScalewayDocumentDBInstanceEndpointDestroy(tt), + Steps: []resource.TestStep{ + { + Config: ` + resource "scaleway_document_db_instance" "main" { + name = "test-documentdb-instance-endpoint-basic" + node_type = "docdb-play2-pico" + engine = "FerretDB-1" + user_name = "my_initial_user" + password = "thiZ_is_v&ry_s3cret" + volume_size_in_gb = 20 + } + + resource "scaleway_vpc_private_network" "pn" { + name = "my_private_network" + } + + resource "scaleway_document_db_private_network_endpoint" "main" { + instance_id = scaleway_document_db_instance.main.id + ip_net = "172.16.32.3/22" + private_network_id = scaleway_vpc_private_network.pn.id + depends_on = [scaleway_vpc_private_network.pn] + } + `, + Check: resource.ComposeTestCheckFunc( + testAccCheckScalewayDocumentDBInstanceEndpointExists(tt, "scaleway_document_db_private_network_endpoint.main"), + testCheckResourceAttrUUID("scaleway_document_db_private_network_endpoint.main", "id"), + resource.TestCheckResourceAttr("scaleway_document_db_instance.main", "name", "test-documentdb-instance-endpoint-basic"), + resource.TestCheckResourceAttr( + "scaleway_document_db_private_network_endpoint.main", "ip_net", "172.16.32.3/22"), + ), + }, + { + Config: ` + resource "scaleway_document_db_instance" "main" { + name = "test-documentdb-instance-endpoint-basic" + node_type = "docdb-play2-pico" + engine = "FerretDB-1" + user_name = "my_initial_user" + password = "thiZ_is_v&ry_s3cret" + volume_size_in_gb = 20 + } + + resource "scaleway_vpc_private_network" "pn" { + name = "my_private_network" + } + + resource "scaleway_vpc" "vpc" { + name = "my vpc" + } + + // Creation to the new private network with new subnet + resource "scaleway_vpc_private_network" "pn02" { + ipv4_subnet { + subnet = "172.16.64.0/22" + } + vpc_id = scaleway_vpc.vpc.id + } + + resource "scaleway_document_db_private_network_endpoint" "main" { + instance_id = scaleway_document_db_instance.main.id + ip_net = "172.16.32.3/22" + private_network_id = scaleway_vpc_private_network.pn.id + depends_on = [scaleway_vpc_private_network.pn02, scaleway_vpc.vpc] + } + `, + Check: resource.ComposeTestCheckFunc( + testAccCheckScalewayDocumentDBInstanceEndpointExists(tt, "scaleway_document_db_private_network_endpoint.main"), + testCheckResourceAttrUUID("scaleway_document_db_private_network_endpoint.main", "id"), + resource.TestCheckResourceAttr("scaleway_document_db_instance.main", "name", "test-documentdb-instance-endpoint-basic"), + resource.TestCheckResourceAttr( + "scaleway_document_db_private_network_endpoint.main", "ip_net", "172.16.32.3/22"), + ), + }, + { + Config: ` + resource "scaleway_document_db_instance" "main" { + name = "test-documentdb-instance-endpoint-basic" + node_type = "docdb-play2-pico" + engine = "FerretDB-1" + user_name = "my_initial_user" + password = "thiZ_is_v&ry_s3cret" + volume_size_in_gb = 20 + } + + resource "scaleway_vpc_private_network" "pn" { + name = "my_private_network" + } + + resource "scaleway_vpc" "vpc" { + name = "my vpc" + } + + resource "scaleway_vpc_private_network" "pn02" { + ipv4_subnet { + subnet = "172.16.64.0/22" + } + vpc_id = scaleway_vpc.vpc.id + } + + // Replace the ip on the new private network + resource "scaleway_document_db_private_network_endpoint" "main" { + instance_id = scaleway_document_db_instance.main.id + ip_net = "172.16.64.4/22" + private_network_id = scaleway_vpc_private_network.pn02.id + depends_on = [scaleway_vpc_private_network.pn02, scaleway_vpc.vpc] + } + `, + Check: resource.ComposeTestCheckFunc( + testAccCheckScalewayDocumentDBInstanceEndpointExists(tt, "scaleway_document_db_private_network_endpoint.main"), + testCheckResourceAttrUUID("scaleway_document_db_private_network_endpoint.main", "id"), + resource.TestCheckResourceAttr("scaleway_document_db_instance.main", "name", "test-documentdb-instance-endpoint-basic"), + resource.TestCheckResourceAttr( + "scaleway_document_db_private_network_endpoint.main", "ip_net", "172.16.64.4/22"), + ), + }, + { + Config: ` + resource "scaleway_vpc_private_network" "pn" { + name = "my_private_network" + } + + resource "scaleway_vpc" "vpc" { + name = "my vpc" + } + + resource "scaleway_vpc_private_network" "pn02" { + ipv4_subnet { + subnet = "172.16.64.0/22" + } + vpc_id = scaleway_vpc.vpc.id + } + `, + }, + }, + }) +} + +func TestAccScalewayDocumentDBPrivateNetworkEndpoint_Migration(t *testing.T) { + tt := NewTestTools(t) + defer tt.Cleanup() + + resource.ParallelTest(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + ProviderFactories: tt.ProviderFactories, + CheckDestroy: testAccCheckScalewayDocumentDBInstanceEndpointDestroy(tt), + Steps: []resource.TestStep{ + { + Config: ` + resource "scaleway_document_db_instance" "main" { + name = "test-documentdb-instance-endpoint-migration" + node_type = "docdb-play2-pico" + engine = "FerretDB-1" + user_name = "my_initial_user" + password = "thiZ_is_v&ry_s3cret" + tags = ["terraform-test", "scaleway_document_db_instance_migration", "minimal"] + volume_size_in_gb = 20 + } + + resource "scaleway_vpc" "vpc" { + name = "vpcDocumentDB" + } + + resource "scaleway_vpc_private_network" "pn" { + ipv4_subnet { + subnet = "10.10.64.0/22" + } + vpc_id = scaleway_vpc.vpc.id + } + + resource "scaleway_document_db_private_network_endpoint" "main" { + instance_id = scaleway_document_db_instance.main.id + ip_net = "10.10.64.4/22" + private_network_id = scaleway_vpc_private_network.pn.id + } + `, + Check: resource.ComposeTestCheckFunc( + testAccCheckScalewayDocumentDBInstanceEndpointExists(tt, "scaleway_document_db_private_network_endpoint.main"), + testCheckResourceAttrUUID("scaleway_document_db_private_network_endpoint.main", "id"), + resource.TestCheckResourceAttr( + "scaleway_document_db_private_network_endpoint.main", "ip_net", "10.10.64.4/22"), + ), + }, + { + Config: ` + resource scaleway_vpc vpc { + name = "vpc" + } + + resource "scaleway_vpc_private_network" "pn" { + ipv4_subnet { + subnet = "10.10.64.0/22" + } + vpc_id = scaleway_vpc.vpc.id + } + `, + }, + }, + }) +} + +func testAccCheckScalewayDocumentDBInstanceEndpointDestroy(tt *TestTools) resource.TestCheckFunc { + return func(state *terraform.State) error { + for _, rs := range state.RootModule().Resources { + if rs.Type != "scaleway_document_db_private_network_endpoint" { + continue + } + + api, region, id, err := documentDBAPIWithRegionAndID(tt.Meta, rs.Primary.ID) + if err != nil { + return err + } + + err = api.DeleteEndpoint(&documentdb.DeleteEndpointRequest{ + Region: region, + EndpointID: id, + }) + + if err == nil { + return fmt.Errorf("documentdb documentdb instance endpoint (%s) still exists", rs.Primary.ID) + } + + if !is404Error(err) { + return err + } + } + + return nil + } +} + +func testAccCheckScalewayDocumentDBInstanceEndpointExists(tt *TestTools, n string) resource.TestCheckFunc { + return func(state *terraform.State) error { + rs, ok := state.RootModule().Resources[n] + if !ok { + return fmt.Errorf("resource not found: %s", n) + } + + api, region, id, err := documentDBAPIWithRegionAndID(tt.Meta, rs.Primary.ID) + if err != nil { + return err + } + + _, err = api.GetEndpoint(&documentdb.GetEndpointRequest{ + EndpointID: id, + Region: region, + }) + + if err != nil { + return err + } + + return nil + } +} diff --git a/scaleway/resource_document_db_privilege.go b/scaleway/resource_document_db_privilege.go new file mode 100644 index 000000000..d4bd678e0 --- /dev/null +++ b/scaleway/resource_document_db_privilege.go @@ -0,0 +1,352 @@ +package scaleway + +import ( + "context" + "fmt" + "strings" + + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + documentdb "github.com/scaleway/scaleway-sdk-go/api/documentdb/v1beta1" + "github.com/scaleway/scaleway-sdk-go/scw" +) + +func resourceScalewayDocumentDBPrivilege() *schema.Resource { + return &schema.Resource{ + CreateContext: resourceScalewayDocumentDBPrivilegeCreate, + ReadContext: resourceScalewayDocumentDBPrivilegeRead, + DeleteContext: resourceScalewayDocumentDBPrivilegeDelete, + UpdateContext: resourceScalewayDocumentDBPrivilegeUpdate, + Importer: &schema.ResourceImporter{ + StateContext: schema.ImportStatePassthroughContext, + }, + Timeouts: &schema.ResourceTimeout{ + Create: schema.DefaultTimeout(defaultRdbInstanceTimeout), + Read: schema.DefaultTimeout(defaultRdbInstanceTimeout), + Update: schema.DefaultTimeout(defaultRdbInstanceTimeout), + Delete: schema.DefaultTimeout(defaultRdbInstanceTimeout), + Default: schema.DefaultTimeout(defaultRdbInstanceTimeout), + }, + SchemaVersion: 0, + Schema: map[string]*schema.Schema{ + "instance_id": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: validationUUIDorUUIDWithLocality(), + Description: "Instance on which the database is created", + }, + "user_name": { + Type: schema.TypeString, + Description: "User name", + Required: true, + }, + "database_name": { + Type: schema.TypeString, + Description: "Database name", + Required: true, + }, + "permission": { + Type: schema.TypeString, + Description: "Privilege", + ValidateFunc: validation.StringInSlice([]string{ + documentdb.PermissionReadonly.String(), + documentdb.PermissionReadwrite.String(), + documentdb.PermissionAll.String(), + documentdb.PermissionCustom.String(), + documentdb.PermissionNone.String(), + }, false), + Required: true, + }, + // Common + "region": regionSchema(), + }, + CustomizeDiff: customizeDiffLocalityCheck("instance_id"), + } +} + +func resourceScalewayDocumentDBPrivilegeCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + api, region, err := documentDBAPIWithRegion(d, meta) + if err != nil { + return diag.FromErr(err) + } + + instanceID := expandID(d.Get("instance_id").(string)) + _, err = waitForDocumentDBInstance(ctx, api, region, instanceID, d.Timeout(schema.TimeoutCreate)) + if err != nil { + return diag.FromErr(err) + } + + userName, _ := d.Get("user_name").(string) + databaseName, _ := d.Get("database_name").(string) + createReq := &documentdb.SetPrivilegeRequest{ + Region: region, + InstanceID: instanceID, + DatabaseName: databaseName, + UserName: userName, + Permission: documentdb.Permission(d.Get("permission").(string)), + } + + // wrapper around StateChangeConf that will just retry write on database + err = resource.RetryContext(ctx, d.Timeout(schema.TimeoutCreate), func() *resource.RetryError { + _, errSetPrivilege := api.SetPrivilege(createReq, scw.WithContext(ctx)) + if errSetPrivilege != nil { + if is409Error(errSetPrivilege) { + _, errWait := waitForDocumentDBInstance(ctx, api, region, instanceID, d.Timeout(schema.TimeoutCreate)) + if errWait != nil { + return resource.NonRetryableError(errWait) + } + return resource.RetryableError(errSetPrivilege) + } + return resource.NonRetryableError(errSetPrivilege) + } + return nil + }) + if err != nil { + return diag.FromErr(err) + } + + _, err = waitForDocumentDBInstance(ctx, api, region, instanceID, d.Timeout(schema.TimeoutCreate)) + if err != nil { + return diag.FromErr(err) + } + + d.SetId(resourceScalewayDocumentDBUserPrivilegeID(region, expandID(instanceID), databaseName, userName)) + + return resourceScalewayDocumentDBPrivilegeRead(ctx, d, meta) +} + +func resourceScalewayDocumentDBPrivilegeRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + api, _, err := documentDBAPIWithRegion(d, meta) + if err != nil { + return diag.FromErr(err) + } + + region, instanceID, databaseName, userName, err := resourceScalewayDocumentDBUserPrivilegeParseID(d.Id()) + if err != nil { + return diag.FromErr(err) + } + + _, err = waitForDocumentDBInstance(ctx, api, region, instanceID, d.Timeout(schema.TimeoutCreate)) + if err != nil { + return diag.FromErr(err) + } + + listUsers, err := api.ListUsers(&documentdb.ListUsersRequest{ + Region: region, + InstanceID: instanceID, + Name: &userName, + }, scw.WithContext(ctx)) + if err != nil { + if is404Error(err) { + d.SetId("") + return nil + } + return diag.FromErr(err) + } + + if listUsers == nil || len(listUsers.Users) == 0 { + d.SetId("") + return nil + } + + res, err := api.ListPrivileges(&documentdb.ListPrivilegesRequest{ + Region: region, + InstanceID: instanceID, + DatabaseName: &databaseName, + UserName: &userName, + }, scw.WithContext(ctx)) + if err != nil { + if is404Error(err) { + d.SetId("") + return nil + } + return diag.FromErr(err) + } + + if len(res.Privileges) == 0 { + return diag.FromErr(fmt.Errorf("couldn't retrieve privileges for user[%s] on database [%s]", userName, databaseName)) + } + privilege := res.Privileges[0] + _ = d.Set("database_name", privilege.DatabaseName) + _ = d.Set("user_name", privilege.UserName) + _ = d.Set("permission", privilege.Permission) + _ = d.Set("instance_id", newRegionalIDString(region, instanceID)) + _ = d.Set("region", region) + + return nil +} + +func resourceScalewayDocumentDBPrivilegeUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + api, region, err := documentDBAPIWithRegion(d, meta) + if err != nil { + return diag.FromErr(err) + } + region, instanceID, databaseName, userName, err := resourceScalewayDocumentDBUserPrivilegeParseID(d.Id()) + if err != nil { + return diag.FromErr(err) + } + + _, err = waitForDocumentDBInstance(ctx, api, region, instanceID, d.Timeout(schema.TimeoutCreate)) + if err != nil { + return diag.FromErr(err) + } + + listUsers, err := api.ListUsers(&documentdb.ListUsersRequest{ + Region: region, + InstanceID: instanceID, + Name: &userName, + }, scw.WithContext(ctx)) + if err != nil { + if is404Error(err) { + d.SetId("") + return nil + } + return diag.FromErr(err) + } + + if listUsers == nil || len(listUsers.Users) == 0 { + d.SetId("") + return nil + } + + updateReq := &documentdb.SetPrivilegeRequest{ + Region: region, + InstanceID: instanceID, + DatabaseName: databaseName, + UserName: userName, + Permission: documentdb.Permission(d.Get("permission").(string)), + } + + // wrapper around StateChangeConf that will just retry the database creation + err = resource.RetryContext(ctx, d.Timeout(schema.TimeoutUpdate), func() *resource.RetryError { + _, errSet := api.SetPrivilege(updateReq, scw.WithContext(ctx)) + if errSet != nil { + if is409Error(errSet) { + _, errWait := waitForDocumentDBInstance(ctx, api, region, instanceID, d.Timeout(schema.TimeoutUpdate)) + if errWait != nil { + return resource.NonRetryableError(errWait) + } + return resource.RetryableError(errSet) + } + return resource.NonRetryableError(errSet) + } + return nil + }) + if err != nil { + return diag.FromErr(err) + } + + _, err = waitForDocumentDBInstance(ctx, api, region, instanceID, d.Timeout(schema.TimeoutUpdate)) + if err != nil { + return diag.FromErr(err) + } + + return nil +} + +//gocyclo:ignore +func resourceScalewayDocumentDBPrivilegeDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + api, region, err := documentDBAPIWithRegion(d, meta) + if err != nil { + return diag.FromErr(err) + } + + region, instanceID, databaseName, userName, err := resourceScalewayDocumentDBUserPrivilegeParseID(d.Id()) + if err != nil { + return diag.FromErr(err) + } + + _, err = waitForDocumentDBInstance(ctx, api, region, instanceID, d.Timeout(schema.TimeoutDelete)) + if err != nil { + return diag.FromErr(err) + } + + _ = d.Set("permission", documentdb.PermissionNone) + listUsers, err := api.ListUsers(&documentdb.ListUsersRequest{ + Region: region, + InstanceID: instanceID, + Name: &userName, + }, scw.WithContext(ctx)) + if err != nil { + if is404Error(err) { + d.SetId("") + return nil + } + return diag.FromErr(err) + } + + if listUsers != nil && len(listUsers.Users) == 0 { + d.SetId("") + return nil + } + + updateReq := &documentdb.SetPrivilegeRequest{ + Region: region, + InstanceID: instanceID, + DatabaseName: databaseName, + UserName: userName, + Permission: documentdb.PermissionNone, + } + + // wrapper around StateChangeConf that will just retry the database creation + err = resource.RetryContext(ctx, defaultRdbInstanceTimeout, func() *resource.RetryError { + // check if user exist on retry + listUsers, errUserExist := api.ListUsers(&documentdb.ListUsersRequest{ + Region: region, + InstanceID: instanceID, + Name: &userName, + }, scw.WithContext(ctx)) + if err != nil { + if is404Error(err) { + d.SetId("") + return nil + } + return resource.NonRetryableError(errUserExist) + } + + if listUsers != nil && len(listUsers.Users) == 0 { + d.SetId("") + return nil + } + _, errSet := api.SetPrivilege(updateReq, scw.WithContext(ctx)) + if errSet != nil { + if is409Error(errSet) { + _, errWait := waitForDocumentDBInstance(ctx, api, region, instanceID, d.Timeout(schema.TimeoutDelete)) + if errWait != nil { + return resource.NonRetryableError(errWait) + } + return resource.RetryableError(errSet) + } + return resource.NonRetryableError(errSet) + } + return nil + }) + if err != nil { + return diag.FromErr(err) + } + + _, err = waitForDocumentDBInstance(ctx, api, region, instanceID, d.Timeout(schema.TimeoutDelete)) + if err != nil { + return diag.FromErr(err) + } + + return nil +} + +// Build the resource identifier +// The resource identifier format is "Region/InstanceId/database/UserName" +func resourceScalewayDocumentDBUserPrivilegeID(region scw.Region, instanceID, database, userName string) (resourceID string) { + return fmt.Sprintf("%s/%s/%s/%s", region, instanceID, database, userName) +} + +// resourceScalewayDocumentDBUserPrivilegeParseID: The resource identifier format is "Region/InstanceId/DatabaseName/UserName" +func resourceScalewayDocumentDBUserPrivilegeParseID(resourceID string) (region scw.Region, instanceID, databaseName, userName string, err error) { + idParts := strings.Split(resourceID, "/") + if len(idParts) != 4 { + return "", "", "", "", fmt.Errorf("can't parse user privilege resource id: %s", resourceID) + } + return scw.Region(idParts[0]), idParts[1], idParts[2], idParts[3], nil +} diff --git a/scaleway/resource_document_db_privilege_test.go b/scaleway/resource_document_db_privilege_test.go new file mode 100644 index 000000000..1ea8ae07f --- /dev/null +++ b/scaleway/resource_document_db_privilege_test.go @@ -0,0 +1,219 @@ +package scaleway + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" + documentdb "github.com/scaleway/scaleway-sdk-go/api/documentdb/v1beta1" +) + +func TestAccScalewayDocumentDBPrivilege_Basic(t *testing.T) { + tt := NewTestTools(t) + defer tt.Cleanup() + resource.ParallelTest(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + ProviderFactories: tt.ProviderFactories, + CheckDestroy: testAccCheckScalewayDocumentDBInstanceDestroy(tt), + Steps: []resource.TestStep{ + { + Config: ` + resource "scaleway_document_db_instance" "instance" { + name = "test-document_db-instance-privilege" + node_type = "docdb-play2-pico" + engine = "FerretDB-1" + user_name = "my_initial_user" + password = "thiZ_is_v&ry_s3cret" + tags = ["terraform-test", "scaleway_document_db_instance", "minimal"] + volume_size_in_gb = 20 + } + + resource "scaleway_document_db_database" "db01" { + instance_id = scaleway_document_db_instance.instance.id + name = "test-document_db-database-basic" + } + + resource "scaleway_document_db_user" "foo1" { + instance_id = scaleway_document_db_instance.instance.id + name = "user_01" + password = "R34lP4sSw#Rd" + is_admin = true + } + + // Privilege creation with all permission + resource "scaleway_document_db_privilege" "priv_admin" { + instance_id = scaleway_document_db_instance.instance.id + user_name = scaleway_document_db_user.foo1.name + database_name = scaleway_document_db_database.db01.name + permission = "all" + }`, + Check: resource.ComposeTestCheckFunc( + testAccCheckDocumentDBPrivilegeExists(tt, "scaleway_document_db_instance.instance", "scaleway_document_db_database.db01", "scaleway_document_db_user.foo1"), + resource.TestCheckResourceAttr("scaleway_document_db_privilege.priv_admin", "permission", "all"), + ), + }, + { + Config: ` + resource "scaleway_document_db_instance" "instance" { + name = "test-document_db-instance-privilege" + node_type = "docdb-play2-pico" + engine = "FerretDB-1" + user_name = "my_initial_user" + password = "thiZ_is_v&ry_s3cret" + tags = ["terraform-test", "scaleway_document_db_instance", "minimal"] + volume_size_in_gb = 20 + } + + resource "scaleway_document_db_database" "db01" { + instance_id = scaleway_document_db_instance.instance.id + name = "test-document_db-database-basic" + } + + resource "scaleway_document_db_user" "foo1" { + instance_id = scaleway_document_db_instance.instance.id + name = "user_01" + password = "R34lP4sSw#Rd" + is_admin = true + } + + resource "scaleway_document_db_privilege" "priv_admin" { + instance_id = scaleway_document_db_instance.instance.id + user_name = scaleway_document_db_user.foo1.name + database_name = scaleway_document_db_database.db01.name + permission = "all" + } + + resource "scaleway_document_db_user" "foo2" { + instance_id = scaleway_document_db_instance.instance.id + name = "user_02" + password = "R34lP4sSw#Rd" + } + + // Add new privilege for user foo2 with readwrite permission + resource "scaleway_document_db_privilege" "priv_foo_02" { + instance_id = scaleway_document_db_instance.instance.id + user_name = scaleway_document_db_user.foo2.name + database_name = scaleway_document_db_database.db01.name + permission = "readwrite" + }`, + Check: resource.ComposeTestCheckFunc( + testAccCheckDocumentDBPrivilegeExists(tt, "scaleway_document_db_instance.instance", "scaleway_document_db_database.db01", "scaleway_document_db_user.foo2"), + resource.TestCheckResourceAttr("scaleway_document_db_privilege.priv_foo_02", "permission", "readwrite"), + ), + }, + { + Config: ` + resource "scaleway_document_db_instance" "instance" { + name = "test-document_db-instance-privilege" + node_type = "docdb-play2-pico" + engine = "FerretDB-1" + user_name = "my_initial_user" + password = "thiZ_is_v&ry_s3cret" + tags = ["terraform-test", "scaleway_document_db_instance", "minimal"] + volume_size_in_gb = 20 + } + + resource "scaleway_document_db_database" "db01" { + instance_id = scaleway_document_db_instance.instance.id + name = "test-document_db-database-basic" + } + + resource "scaleway_document_db_user" "foo1" { + instance_id = scaleway_document_db_instance.instance.id + name = "user_01" + password = "R34lP4sSw#Rd" + is_admin = true + } + + resource "scaleway_document_db_privilege" "priv_admin" { + instance_id = scaleway_document_db_instance.instance.id + user_name = scaleway_document_db_user.foo1.name + database_name = scaleway_document_db_database.db01.name + permission = "all" + } + + resource "scaleway_document_db_user" "foo2" { + instance_id = scaleway_document_db_instance.instance.id + name = "user_02" + password = "R34lP4sSw#Rd" + } + + resource "scaleway_document_db_privilege" "priv_foo_02" { + instance_id = scaleway_document_db_instance.instance.id + user_name = scaleway_document_db_user.foo2.name + database_name = scaleway_document_db_database.db01.name + permission = "readwrite" + } + + resource "scaleway_document_db_user" "foo3" { + instance_id = scaleway_document_db_instance.instance.id + name = "user_03" + password = "R34lP4sSw#Rd" + } + + // Add a new user privilege with none permission + resource "scaleway_document_db_privilege" "priv_foo_03" { + instance_id = scaleway_document_db_instance.instance.id + user_name = scaleway_document_db_user.foo3.name + database_name = scaleway_document_db_database.db01.name + permission = "none" + }`, + Check: resource.ComposeTestCheckFunc( + testAccCheckDocumentDBPrivilegeExists(tt, "scaleway_document_db_instance.instance", "scaleway_document_db_database.db01", "scaleway_document_db_user.foo3"), + resource.TestCheckResourceAttr("scaleway_document_db_privilege.priv_foo_03", "permission", "none"), + ), + }, + }, + }) +} + +func testAccCheckDocumentDBPrivilegeExists(tt *TestTools, instance string, database string, user string) resource.TestCheckFunc { + return func(state *terraform.State) error { + instanceResource, ok := state.RootModule().Resources[instance] + if !ok { + return fmt.Errorf("resource not found: %s", instance) + } + + databaseResource, ok := state.RootModule().Resources[database] + if !ok { + return fmt.Errorf("resource database not found: %s", database) + } + + userResource, ok := state.RootModule().Resources[user] + if !ok { + return fmt.Errorf("resource not found: %s", user) + } + + api, _, _, err := documentDBAPIWithRegionAndID(tt.Meta, instanceResource.Primary.ID) + if err != nil { + return err + } + + region, instanceID, userName, err := resourceScalewayDocumentDBUserParseID(userResource.Primary.ID) + if err != nil { + return err + } + + _, databaseName, err := resourceScalewayDocumentDBDatabaseName(databaseResource.Primary.ID) + if err != nil { + return err + } + + databases, err := api.ListPrivileges(&documentdb.ListPrivilegesRequest{ + Region: region, + InstanceID: instanceID, + DatabaseName: &databaseName, + UserName: &userName, + }) + if err != nil { + return err + } + + if len(databases.Privileges) != 1 { + return fmt.Errorf("no privilege found") + } + + return nil + } +} diff --git a/scaleway/resource_document_db_read_replica.go b/scaleway/resource_document_db_read_replica.go new file mode 100644 index 000000000..c1042e34a --- /dev/null +++ b/scaleway/resource_document_db_read_replica.go @@ -0,0 +1,393 @@ +package scaleway + +import ( + "context" + "fmt" + "time" + + "github.com/hashicorp/terraform-plugin-log/tflog" + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + documentdb "github.com/scaleway/scaleway-sdk-go/api/documentdb/v1beta1" + "github.com/scaleway/scaleway-sdk-go/scw" +) + +func resourceScalewayDocumentDBReadReplica() *schema.Resource { + return &schema.Resource{ + CreateContext: resourceScalewayDocumentDBReadReplicaCreate, + ReadContext: resourceScalewayDocumentDBReadReplicaRead, + UpdateContext: resourceScalewayDocumentDBReadReplicaUpdate, + DeleteContext: resourceScalewayDocumentDBReadReplicaDelete, + Timeouts: &schema.ResourceTimeout{ + Create: schema.DefaultTimeout(defaultRdbInstanceTimeout), + Read: schema.DefaultTimeout(defaultRdbInstanceTimeout), + Update: schema.DefaultTimeout(defaultRdbInstanceTimeout), + Delete: schema.DefaultTimeout(defaultRdbInstanceTimeout), + Default: schema.DefaultTimeout(defaultRdbInstanceTimeout), + }, + Importer: &schema.ResourceImporter{ + StateContext: schema.ImportStatePassthroughContext, + }, + SchemaVersion: 0, + Schema: map[string]*schema.Schema{ + "instance_id": { + Type: schema.TypeString, + Required: true, + Description: "Id of the rdb instance to replicate", + }, + "direct_access": { + Type: schema.TypeList, + Optional: true, + Description: "Direct access endpoint, it gives you an IP and a port to access your read-replica", + MaxItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Endpoints common + "endpoint_id": { + Type: schema.TypeString, + Description: "UUID of the endpoint (UUID format).", + Computed: true, + }, + "ip": { + Type: schema.TypeString, + Description: "IPv4 address of the endpoint (IP address). Only one of ip and hostname may be set.", + Computed: true, + }, + "port": { + Type: schema.TypeInt, + Description: "TCP port of the endpoint.", + Computed: true, + }, + "name": { + Type: schema.TypeString, + Description: "Name of the endpoint.", + Computed: true, + }, + "hostname": { + Type: schema.TypeString, + Description: "Hostname of the endpoint. Only one of ip and hostname may be set.", + Computed: true, + }, + }, + }, + }, + "private_network": { + Type: schema.TypeList, + Optional: true, + Description: "Private network endpoints", + MaxItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Private network specific + "private_network_id": { + Type: schema.TypeString, + Description: "UUID of the private network to be connected to the read replica (UUID format)", + ValidateFunc: validationUUIDorUUIDWithLocality(), + DiffSuppressFunc: diffSuppressFuncLocality, + Required: true, + }, + "service_ip": { + Type: schema.TypeString, + Description: "The IP network address within the private subnet", + Optional: true, + Computed: true, + ValidateFunc: validation.IsCIDR, + }, + "zone": { + Type: schema.TypeString, + Description: "Private network zone", + Computed: true, + }, + // Endpoints common + "endpoint_id": { + Type: schema.TypeString, + Description: "UUID of the endpoint (UUID format).", + Computed: true, + }, + "ip": { + Type: schema.TypeString, + Description: "IPv4 address of the endpoint (IP address). Only one of ip and hostname may be set", + Computed: true, + }, + "port": { + Type: schema.TypeInt, + Description: "TCP port of the endpoint", + Computed: true, + }, + "name": { + Type: schema.TypeString, + Description: "Name of the endpoints", + Computed: true, + }, + "hostname": { + Type: schema.TypeString, + Description: "Hostname of the endpoint. Only one of ip and hostname may be set", + Computed: true, + }, + }, + }, + }, + // Common + "region": regionSchema(), + }, + CustomizeDiff: customizeDiffLocalityCheck("instance_id", "private_network.#.private_network_id"), + } +} + +func expandDocumentDBReadReplicaEndpointsSpecDirectAccess(data interface{}) *documentdb.ReadReplicaEndpointSpec { + if data == nil || len(data.([]interface{})) == 0 { + return nil + } + + return &documentdb.ReadReplicaEndpointSpec{ + DirectAccess: new(documentdb.ReadReplicaEndpointSpecDirectAccess), + } +} + +// expandDocumentDBReadReplicaEndpointsSpecPrivateNetwork expand read-replica private network endpoints from schema to specs +func expandDocumentDBReadReplicaEndpointsSpecPrivateNetwork(data interface{}) (*documentdb.ReadReplicaEndpointSpec, error) { + if data == nil || len(data.([]interface{})) == 0 { + return nil, nil + } + // private_network is a list of size 1 + data = data.([]interface{})[0] + + rawEndpoint := data.(map[string]interface{}) + + endpoint := new(documentdb.ReadReplicaEndpointSpec) + + serviceIP := rawEndpoint["service_ip"].(string) + endpoint.PrivateNetwork = &documentdb.ReadReplicaEndpointSpecPrivateNetwork{ + PrivateNetworkID: expandID(rawEndpoint["private_network_id"]), + } + if len(serviceIP) > 0 { + ipNet, err := expandIPNet(serviceIP) + if err != nil { + return nil, fmt.Errorf("failed to parse private_network service_ip (%s): %w", rawEndpoint["service_ip"], err) + } + endpoint.PrivateNetwork.ServiceIP = &ipNet + } else { + endpoint.PrivateNetwork.IpamConfig = &documentdb.ReadReplicaEndpointSpecPrivateNetworkIpamConfig{} + } + + return endpoint, nil +} + +func waitForDocumentDBReadReplica(ctx context.Context, api *documentdb.API, region scw.Region, id string, timeout time.Duration) (*documentdb.ReadReplica, error) { + retryInterval := defaultWaitDocumentDBRetryInterval + if DefaultWaitRetryInterval != nil { + retryInterval = *DefaultWaitRetryInterval + } + + return api.WaitForReadReplica(&documentdb.WaitForReadReplicaRequest{ + Region: region, + Timeout: scw.TimeDurationPtr(timeout), + ReadReplicaID: id, + RetryInterval: &retryInterval, + }, scw.WithContext(ctx)) +} + +// flattenDocumentDBReadReplicaEndpoints flatten read-replica endpoints to directAccess and privateNetwork +func flattenDocumentDBReadReplicaEndpoints(endpoints []*documentdb.Endpoint) (directAccess, privateNetwork interface{}) { + for _, endpoint := range endpoints { + rawEndpoint := map[string]interface{}{ + "endpoint_id": endpoint.ID, + "ip": flattenIPPtr(endpoint.IP), + "port": int(endpoint.Port), + "name": endpoint.Name, + "hostname": flattenStringPtr(endpoint.Hostname), + } + if endpoint.DirectAccess != nil { + directAccess = rawEndpoint + } + if endpoint.PrivateNetwork != nil { + fetchRegion, err := endpoint.PrivateNetwork.Zone.Region() + if err != nil { + return diag.FromErr(err), false + } + pnRegionalID := newRegionalIDString(fetchRegion, endpoint.PrivateNetwork.PrivateNetworkID) + rawEndpoint["private_network_id"] = pnRegionalID + rawEndpoint["service_ip"] = endpoint.PrivateNetwork.ServiceIP.String() + rawEndpoint["zone"] = endpoint.PrivateNetwork.Zone + privateNetwork = rawEndpoint + } + } + + // direct_access and private_network are lists + + if directAccess != nil { + directAccess = []interface{}{directAccess} + } + if privateNetwork != nil { + privateNetwork = []interface{}{privateNetwork} + } + + return directAccess, privateNetwork +} + +func resourceScalewayDocumentDBReadReplicaCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + api, region, err := documentDBAPIWithRegion(d, meta) + if err != nil { + return diag.FromErr(err) + } + + endpointSpecs := []*documentdb.ReadReplicaEndpointSpec(nil) + if directAccess := expandDocumentDBReadReplicaEndpointsSpecDirectAccess(d.Get("direct_access")); directAccess != nil { + endpointSpecs = append(endpointSpecs, directAccess) + } + if pn, err := expandDocumentDBReadReplicaEndpointsSpecPrivateNetwork(d.Get("private_network")); err != nil || pn != nil { + if err != nil { + return diag.FromErr(err) + } + endpointSpecs = append(endpointSpecs, pn) + } + + rr, err := api.CreateReadReplica(&documentdb.CreateReadReplicaRequest{ + Region: region, + InstanceID: expandID(d.Get("instance_id")), + EndpointSpec: endpointSpecs, + }, scw.WithContext(ctx)) + if err != nil { + return diag.FromErr(fmt.Errorf("failed to create read-replica: %w", err)) + } + + d.SetId(newRegionalIDString(region, rr.ID)) + + _, err = waitForDocumentDBReadReplica(ctx, api, region, rr.ID, d.Timeout(schema.TimeoutCreate)) + if err != nil { + return diag.FromErr(err) + } + + return resourceScalewayDocumentDBReadReplicaRead(ctx, d, meta) +} + +func resourceScalewayDocumentDBReadReplicaRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + api, region, id, err := documentDBAPIWithRegionAndID(meta, d.Id()) + if err != nil { + return diag.FromErr(err) + } + + rr, err := waitForDocumentDBReadReplica(ctx, api, region, id, d.Timeout(schema.TimeoutRead)) + if err != nil { + if is404Error(err) { + d.SetId("") + return nil + } + return diag.FromErr(err) + } + + directAccess, privateNetwork := flattenDocumentDBReadReplicaEndpoints(rr.Endpoints) + _ = d.Set("direct_access", directAccess) + _ = d.Set("private_network", privateNetwork) + + _ = d.Set("region", string(region)) + + return nil +} + +//gocyclo:ignore +func resourceScalewayDocumentDBReadReplicaUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + api, region, id, err := documentDBAPIWithRegionAndID(meta, d.Id()) + if err != nil { + return diag.FromErr(err) + } + + _, err = waitForDocumentDBReadReplica(ctx, api, region, id, d.Timeout(schema.TimeoutUpdate)) + if err != nil { + if is404Error(err) { + d.SetId("") + return nil + } + return diag.FromErr(err) + } + + newEndpoints := []*documentdb.ReadReplicaEndpointSpec(nil) + + if d.HasChange("direct_access") { + _, directAccessExists := d.GetOk("direct_access") + tflog.Debug(ctx, "direct_access", map[string]interface{}{ + "exists": directAccessExists, + }) + if !directAccessExists { + err := api.DeleteEndpoint(&documentdb.DeleteEndpointRequest{ + Region: region, + EndpointID: expandID(d.Get("direct_access.0.endpoint_id")), + }, scw.WithContext(ctx)) + if err != nil { + return diag.FromErr(err) + } + } else { + newEndpoints = append(newEndpoints, expandDocumentDBReadReplicaEndpointsSpecDirectAccess(d.Get("direct_access"))) + } + } + + if d.HasChange("private_network") { + _, privateNetworkExists := d.GetOk("private_network") + if !privateNetworkExists { + err := api.DeleteEndpoint(&documentdb.DeleteEndpointRequest{ + Region: region, + EndpointID: expandID(d.Get("private_network.0.endpoint_id")), + }, scw.WithContext(ctx)) + if err != nil { + return diag.FromErr(err) + } + } else { + pnEndpoint, err := expandDocumentDBReadReplicaEndpointsSpecPrivateNetwork(d.Get("private_network")) + if err != nil { + return diag.FromErr(err) + } + newEndpoints = append(newEndpoints, pnEndpoint) + } + } + + if len(newEndpoints) > 0 { + _, err = waitForDocumentDBReadReplica(ctx, api, region, id, d.Timeout(schema.TimeoutUpdate)) + if err != nil { + return diag.FromErr(err) + } + + _, err = api.CreateReadReplicaEndpoint(&documentdb.CreateReadReplicaEndpointRequest{ + Region: region, + ReadReplicaID: id, + EndpointSpec: newEndpoints, + }) + if err != nil { + return diag.FromErr(err) + } + } + + _, err = waitForDocumentDBReadReplica(ctx, api, region, id, d.Timeout(schema.TimeoutUpdate)) + if err != nil { + return diag.FromErr(err) + } + + return resourceScalewayDocumentDBReadReplicaRead(ctx, d, meta) +} + +func resourceScalewayDocumentDBReadReplicaDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + api, region, id, err := documentDBAPIWithRegionAndID(meta, d.Id()) + if err != nil { + return diag.FromErr(err) + } + + _, err = waitForDocumentDBReadReplica(ctx, api, region, id, d.Timeout(schema.TimeoutDelete)) + if err != nil { + return diag.FromErr(err) + } + + _, err = api.DeleteReadReplica(&documentdb.DeleteReadReplicaRequest{ + Region: region, + ReadReplicaID: id, + }, scw.WithContext(ctx)) + if err != nil { + return diag.FromErr(err) + } + + _, err = waitForDocumentDBReadReplica(ctx, api, region, id, d.Timeout(schema.TimeoutDelete)) + if err != nil && !is404Error(err) { + return diag.FromErr(err) + } + + return nil +} diff --git a/scaleway/resource_document_db_read_replica_test.go b/scaleway/resource_document_db_read_replica_test.go new file mode 100644 index 000000000..b68c76ec9 --- /dev/null +++ b/scaleway/resource_document_db_read_replica_test.go @@ -0,0 +1,267 @@ +package scaleway + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" + documentdb "github.com/scaleway/scaleway-sdk-go/api/documentdb/v1beta1" +) + +func TestAccScalewayDocumentDBReadReplica_Basic(t *testing.T) { + tt := NewTestTools(t) + defer tt.Cleanup() + resource.ParallelTest(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + ProviderFactories: tt.ProviderFactories, + CheckDestroy: resource.ComposeTestCheckFunc( + testAccCheckScalewayDocumentDBInstanceDestroy(tt), + testAccCheckScalewayDocumentDBReadReplicaDestroy(tt), + ), + Steps: []resource.TestStep{ + { + Config: ` + resource "scaleway_document_db_instance" "instance" { + name = "test-document_db-read-replica-basic" + node_type = "docdb-play2-pico" + engine = "FerretDB-1" + user_name = "my_initial_user" + password = "thiZ_is_v&ry_s3cret" + volume_size_in_gb = 20 + } + + resource "scaleway_document_db_read_replica" "replica" { + instance_id = scaleway_document_db_instance.instance.id + direct_access {} + }`, + Check: resource.ComposeTestCheckFunc( + testAccCheckDocumentDBReadReplicaExists(tt, "scaleway_document_db_read_replica.replica"), + resource.TestCheckResourceAttrPair("scaleway_document_db_read_replica.replica", "instance_id", "scaleway_document_db_instance.instance", "id"), + resource.TestCheckResourceAttrSet("scaleway_document_db_read_replica.replica", "direct_access.0.ip"), + resource.TestCheckResourceAttrSet("scaleway_document_db_read_replica.replica", "direct_access.0.port"), + resource.TestCheckResourceAttrSet("scaleway_document_db_read_replica.replica", "direct_access.0.endpoint_id"), + ), + }, + }, + }) +} + +func TestAccScalewayDocumentDBReadReplica_PrivateNetwork(t *testing.T) { + tt := NewTestTools(t) + defer tt.Cleanup() + resource.ParallelTest(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + ProviderFactories: tt.ProviderFactories, + CheckDestroy: resource.ComposeTestCheckFunc( + testAccCheckScalewayDocumentDBInstanceDestroy(tt), + testAccCheckScalewayDocumentDBReadReplicaDestroy(tt), + ), + Steps: []resource.TestStep{ + { + Config: ` + resource "scaleway_document_db_instance" "instance" { + name = "test-document_db-read-replica-basic" + node_type = "docdb-play2-pico" + engine = "FerretDB-1" + user_name = "my_initial_user" + password = "thiZ_is_v&ry_s3cret" + volume_size_in_gb = 20 + } + + resource "scaleway_vpc_private_network" "pn" {} + + resource "scaleway_document_db_read_replica" "replica" { + instance_id = scaleway_document_db_instance.instance.id + private_network { + private_network_id = scaleway_vpc_private_network.pn.id + service_ip = "10.12.1.0/20" + } + depends_on = [scaleway_vpc_private_network.pn] + }`, + Check: resource.ComposeTestCheckFunc( + testAccCheckDocumentDBReadReplicaExists(tt, "scaleway_document_db_read_replica.replica"), + resource.TestCheckResourceAttrPair("scaleway_document_db_read_replica.replica", "instance_id", "scaleway_document_db_instance.instance", "id"), + resource.TestCheckResourceAttrSet("scaleway_document_db_read_replica.replica", "private_network.0.ip"), + resource.TestCheckResourceAttrSet("scaleway_document_db_read_replica.replica", "private_network.0.port"), + resource.TestCheckResourceAttrSet("scaleway_document_db_read_replica.replica", "private_network.0.endpoint_id"), + ), + }, + }, + }) +} + +func TestAccScalewayDocumentDBReadReplica_Update(t *testing.T) { + tt := NewTestTools(t) + defer tt.Cleanup() + resource.ParallelTest(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + ProviderFactories: tt.ProviderFactories, + CheckDestroy: resource.ComposeTestCheckFunc( + testAccCheckScalewayDocumentDBInstanceDestroy(tt), + testAccCheckScalewayDocumentDBReadReplicaDestroy(tt), + ), + Steps: []resource.TestStep{ + { + Config: ` + resource "scaleway_document_db_instance" "instance" { + name = "test-document_db-read-replica-basic" + node_type = "docdb-play2-pico" + engine = "FerretDB-1" + user_name = "my_initial_user" + password = "thiZ_is_v&ry_s3cret" + volume_size_in_gb = 20 + } + + resource "scaleway_document_db_read_replica" "replica" { + instance_id = scaleway_document_db_instance.instance.id + direct_access {} + } + `, + Check: resource.ComposeTestCheckFunc( + testAccCheckDocumentDBReadReplicaExists(tt, "scaleway_document_db_read_replica.replica"), + resource.TestCheckResourceAttrPair("scaleway_document_db_read_replica.replica", "instance_id", "scaleway_document_db_instance.instance", "id"), + resource.TestCheckResourceAttrSet("scaleway_document_db_read_replica.replica", "direct_access.0.ip"), + resource.TestCheckResourceAttrSet("scaleway_document_db_read_replica.replica", "direct_access.0.port"), + resource.TestCheckResourceAttrSet("scaleway_document_db_read_replica.replica", "direct_access.0.endpoint_id"), + ), + }, + { + Config: ` + resource "scaleway_document_db_instance" "instance" { + name = "test-document_db-read-replica-basic" + node_type = "docdb-play2-pico" + engine = "FerretDB-1" + user_name = "my_initial_user" + password = "thiZ_is_v&ry_s3cret" + volume_size_in_gb = 20 + } + + resource "scaleway_vpc_private_network" "pn" {} + + resource "scaleway_document_db_read_replica" "replica" { + instance_id = scaleway_document_db_instance.instance.id + private_network { + private_network_id = scaleway_vpc_private_network.pn.id + service_ip = "10.12.1.0/20" + } + depends_on = [scaleway_vpc_private_network.pn] + } + `, + Check: resource.ComposeTestCheckFunc( + testAccCheckDocumentDBReadReplicaExists(tt, "scaleway_document_db_read_replica.replica"), + resource.TestCheckResourceAttrPair("scaleway_document_db_read_replica.replica", "instance_id", "scaleway_document_db_instance.instance", "id"), + resource.TestCheckResourceAttrSet("scaleway_document_db_read_replica.replica", "private_network.0.ip"), + resource.TestCheckResourceAttrSet("scaleway_document_db_read_replica.replica", "private_network.0.port"), + resource.TestCheckResourceAttrSet("scaleway_document_db_read_replica.replica", "private_network.0.endpoint_id"), + resource.TestCheckResourceAttr("scaleway_document_db_read_replica.replica", "direct_access.#", "0"), + ), + }, + }, + }) +} + +func TestAccScalewayDocumentDBReadReplica_MultipleEndpoints(t *testing.T) { + tt := NewTestTools(t) + defer tt.Cleanup() + resource.ParallelTest(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + ProviderFactories: tt.ProviderFactories, + CheckDestroy: resource.ComposeTestCheckFunc( + testAccCheckScalewayDocumentDBInstanceDestroy(tt), + testAccCheckScalewayDocumentDBReadReplicaDestroy(tt), + ), + Steps: []resource.TestStep{ + { + Config: ` + resource "scaleway_document_db_instance" "instance" { + name = "test-document_db-read-replica-basic" + node_type = "docdb-play2-pico" + engine = "FerretDB-1" + user_name = "my_initial_user" + password = "thiZ_is_v&ry_s3cret" + volume_size_in_gb = 20 + } + + resource "scaleway_vpc_private_network" "pn" {} + + resource "scaleway_document_db_read_replica" "replica" { + instance_id = scaleway_document_db_instance.instance.id + private_network { + private_network_id = scaleway_vpc_private_network.pn.id + service_ip = "10.12.1.0/20" + } + direct_access {} + depends_on = [scaleway_vpc_private_network.pn] + } + `, + Check: resource.ComposeTestCheckFunc( + testAccCheckDocumentDBReadReplicaExists(tt, "scaleway_document_db_read_replica.replica"), + resource.TestCheckResourceAttrPair("scaleway_document_db_read_replica.replica", "instance_id", "scaleway_document_db_instance.instance", "id"), + resource.TestCheckResourceAttrSet("scaleway_document_db_read_replica.replica", "private_network.0.ip"), + resource.TestCheckResourceAttrSet("scaleway_document_db_read_replica.replica", "private_network.0.port"), + resource.TestCheckResourceAttrSet("scaleway_document_db_read_replica.replica", "private_network.0.endpoint_id"), + resource.TestCheckResourceAttrSet("scaleway_document_db_read_replica.replica", "direct_access.0.ip"), + resource.TestCheckResourceAttrSet("scaleway_document_db_read_replica.replica", "direct_access.0.port"), + resource.TestCheckResourceAttrSet("scaleway_document_db_read_replica.replica", "direct_access.0.endpoint_id"), + ), + }, + }, + }) +} + +func testAccCheckDocumentDBReadReplicaExists(tt *TestTools, readReplica string) resource.TestCheckFunc { + return func(state *terraform.State) error { + readReplicaResource, ok := state.RootModule().Resources[readReplica] + if !ok { + return fmt.Errorf("resource not found: %s", readReplica) + } + + api, region, id, err := documentDBAPIWithRegionAndID(tt.Meta, readReplicaResource.Primary.ID) + if err != nil { + return err + } + + _, err = api.GetReadReplica(&documentdb.GetReadReplicaRequest{ + Region: region, + ReadReplicaID: id, + }) + if err != nil { + return err + } + + return nil + } +} + +func testAccCheckScalewayDocumentDBReadReplicaDestroy(tt *TestTools) resource.TestCheckFunc { + return func(state *terraform.State) error { + for _, rs := range state.RootModule().Resources { + if rs.Type != "scaleway_document_db_read_replica" { + continue + } + + api, region, id, err := documentDBAPIWithRegionAndID(tt.Meta, rs.Primary.ID) + if err != nil { + return err + } + + _, err = api.GetReadReplica(&documentdb.GetReadReplicaRequest{ + ReadReplicaID: id, + Region: region, + }) + + // If no error resource still exist + if err == nil { + return fmt.Errorf("read_replica (%s) still exists", rs.Primary.ID) + } + + // Unexpected api error we return it + if !is404Error(err) { + return err + } + } + + return nil + } +} diff --git a/scaleway/resource_document_db_user.go b/scaleway/resource_document_db_user.go new file mode 100644 index 000000000..ef45c7861 --- /dev/null +++ b/scaleway/resource_document_db_user.go @@ -0,0 +1,253 @@ +package scaleway + +import ( + "context" + "fmt" + "strings" + + "github.com/hashicorp/terraform-plugin-log/tflog" + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + documentdb "github.com/scaleway/scaleway-sdk-go/api/documentdb/v1beta1" + "github.com/scaleway/scaleway-sdk-go/scw" +) + +func resourceScalewayDocumentDBUser() *schema.Resource { + return &schema.Resource{ + CreateContext: resourceScalewayDocumentDBUserCreate, + ReadContext: resourceScalewayDocumentDBUserRead, + UpdateContext: resourceScalewayDocumentDBUpdate, + DeleteContext: resourceScalewayDocumentDBUserDelete, + Importer: &schema.ResourceImporter{ + StateContext: schema.ImportStatePassthroughContext, + }, + Timeouts: &schema.ResourceTimeout{ + Create: schema.DefaultTimeout(defaultRdbInstanceTimeout), + Read: schema.DefaultTimeout(defaultRdbInstanceTimeout), + Update: schema.DefaultTimeout(defaultRdbInstanceTimeout), + Delete: schema.DefaultTimeout(defaultRdbInstanceTimeout), + Default: schema.DefaultTimeout(defaultRdbInstanceTimeout), + }, + SchemaVersion: 0, + Schema: map[string]*schema.Schema{ + "instance_id": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: validationUUIDorUUIDWithLocality(), + Description: "Instance on which the user is created", + }, + "name": { + Type: schema.TypeString, + Description: "Database user name", + Required: true, + ForceNew: true, + }, + "password": { + Type: schema.TypeString, + Required: true, + Sensitive: true, + Description: "Database user password", + }, + "is_admin": { + Type: schema.TypeBool, + Optional: true, + Description: "Grant admin permissions to database user", + }, + // Common + "region": regionSchema(), + }, + CustomizeDiff: customizeDiffLocalityCheck("instance_id"), + } +} + +func resourceScalewayDocumentDBUserCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + api, region, err := documentDBAPIWithRegion(d, meta) + if err != nil { + return diag.FromErr(err) + } + + // resource depends on the instance locality + regionalID := d.Get("instance_id").(string) + region, instanceID, err := parseRegionalID(regionalID) + if err != nil { + diag.FromErr(err) + } + + _, err = waitForDocumentDBInstance(ctx, api, region, instanceID, d.Timeout(schema.TimeoutCreate)) + if err != nil { + return diag.FromErr(err) + } + + createUserReq := &documentdb.CreateUserRequest{ + Region: region, + InstanceID: instanceID, + Name: d.Get("name").(string), + Password: d.Get("password").(string), + IsAdmin: d.Get("is_admin").(bool), + } + + var user *documentdb.User + // wrapper around StateChangeConf that will just retry write on database + err = resource.RetryContext(ctx, d.Timeout(schema.TimeoutCreate), func() *resource.RetryError { + currentUser, errCreateUser := api.CreateUser(createUserReq, scw.WithContext(ctx)) + if errCreateUser != nil { + if is409Error(errCreateUser) { + _, errWait := waitForDocumentDBInstance(ctx, api, region, instanceID, d.Timeout(schema.TimeoutCreate)) + if errWait != nil { + return resource.NonRetryableError(errWait) + } + return resource.RetryableError(errCreateUser) + } + return resource.NonRetryableError(errCreateUser) + } + // set database information + user = currentUser + return nil + }) + if err != nil { + return diag.FromErr(err) + } + + d.SetId(resourceScalewayDocumentDBUserID(region, expandID(instanceID), user.Name)) + + return resourceScalewayDocumentDBUserRead(ctx, d, meta) +} + +func resourceScalewayDocumentDBUserRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + api, _, err := documentDBAPIWithRegion(d, meta) + if err != nil { + return diag.FromErr(err) + } + + region, instanceID, userName, err := resourceScalewayDocumentDBUserParseID(d.Id()) + if err != nil { + return diag.FromErr(err) + } + + res, err := api.ListUsers(&documentdb.ListUsersRequest{ + Region: region, + InstanceID: instanceID, + Name: &userName, + }, scw.WithContext(ctx)) + if err != nil { + if is404Error(err) { + d.SetId("") + return nil + } + return diag.FromErr(err) + } + if len(res.Users) == 0 { + tflog.Warn(ctx, fmt.Sprintf("couldn'd find documentDB user with name: [%s]", userName)) + d.SetId("") + return nil + } + + user := res.Users[0] + _ = d.Set("instance_id", newRegionalID(region, instanceID).String()) + _ = d.Set("name", user.Name) + _ = d.Set("is_admin", user.IsAdmin) + _ = d.Set("region", string(region)) + + d.SetId(resourceScalewayDocumentDBUserID(region, instanceID, user.Name)) + + return nil +} + +func resourceScalewayDocumentDBUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + api, _, err := documentDBAPIWithRegion(d, meta) + if err != nil { + return diag.FromErr(err) + } + + // resource depends on the instance locality + region, instanceID, userName, err := resourceScalewayDocumentDBUserParseID(d.Id()) + if err != nil { + return diag.FromErr(err) + } + + _, err = waitForDocumentDBInstance(ctx, api, region, instanceID, d.Timeout(schema.TimeoutCreate)) + if err != nil { + return diag.FromErr(err) + } + + req := &documentdb.UpdateUserRequest{ + Region: region, + InstanceID: instanceID, + Name: userName, + } + + if d.HasChange("password") { + req.Password = expandStringPtr(d.Get("password")) + } + if d.HasChange("is_admin") { + req.IsAdmin = scw.BoolPtr(d.Get("is_admin").(bool)) + } + + _, err = api.UpdateUser(req, scw.WithContext(ctx)) + if err != nil { + return diag.FromErr(err) + } + + return resourceScalewayDocumentDBUserRead(ctx, d, meta) +} + +func resourceScalewayDocumentDBUserDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + api, region, err := documentDBAPIWithRegion(d, meta) + if err != nil { + return diag.FromErr(err) + } + // resource depends on the instance locality + region, instanceID, userName, err := resourceScalewayDocumentDBUserParseID(d.Id()) + if err != nil { + return diag.FromErr(err) + } + + _, err = waitForDocumentDBInstance(ctx, api, region, instanceID, d.Timeout(schema.TimeoutUpdate)) + if err != nil { + return diag.FromErr(err) + } + + err = resource.RetryContext(ctx, d.Timeout(schema.TimeoutDelete), func() *resource.RetryError { + errDeleteUser := api.DeleteUser(&documentdb.DeleteUserRequest{ + Region: region, + InstanceID: instanceID, + Name: userName, + }, scw.WithContext(ctx)) + if errDeleteUser != nil { + if is409Error(errDeleteUser) { + _, errWait := waitForDocumentDBInstance(ctx, api, region, instanceID, d.Timeout(schema.TimeoutDelete)) + if errWait != nil { + return resource.NonRetryableError(errWait) + } + return resource.RetryableError(errDeleteUser) + } + return resource.NonRetryableError(errDeleteUser) + } + // set database information + return nil + }) + + if err != nil && !is404Error(err) { + return diag.FromErr(err) + } + + return nil +} + +// Build the resource identifier +// The resource identifier format is "Region/InstanceId/UserName" +func resourceScalewayDocumentDBUserID(region scw.Region, instanceID string, userName string) (resourceID string) { + return fmt.Sprintf("%s/%s/%s", region, instanceID, userName) +} + +// Extract instance ID and username from the resource identifier. +// The resource identifier format is "Region/InstanceId/UserName" +func resourceScalewayDocumentDBUserParseID(resourceID string) (region scw.Region, instanceID string, userName string, err error) { + idParts := strings.Split(resourceID, "/") + if len(idParts) != 3 { + return "", "", "", fmt.Errorf("can't parse user resource id: %s", resourceID) + } + return scw.Region(idParts[0]), idParts[1], idParts[2], nil +} diff --git a/scaleway/resource_document_db_user_test.go b/scaleway/resource_document_db_user_test.go new file mode 100644 index 000000000..e46e09792 --- /dev/null +++ b/scaleway/resource_document_db_user_test.go @@ -0,0 +1,109 @@ +package scaleway + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" + documentdb "github.com/scaleway/scaleway-sdk-go/api/documentdb/v1beta1" +) + +func TestAccScalewayDocumentDBUser_Basic(t *testing.T) { + tt := NewTestTools(t) + defer tt.Cleanup() + resource.ParallelTest(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + ProviderFactories: tt.ProviderFactories, + CheckDestroy: testAccCheckScalewayDocumentDBInstanceDestroy(tt), + Steps: []resource.TestStep{ + { + Config: ` + resource "scaleway_document_db_instance" "main" { + name = "test-documentdb-instance-endpoint-migration" + node_type = "docdb-play2-pico" + engine = "FerretDB-1" + user_name = "my_initial_user" + password = "thiZ_is_v&ry_s3cret" + volume_size_in_gb = 20 + } + + resource "scaleway_document_db_user" "db_user" { + instance_id = scaleway_document_db_instance.main.id + name = "foo" + password = "R34lP4sSw#Rd" + is_admin = true + } + `, + Check: resource.ComposeTestCheckFunc( + testAccCheckDocumentDBUserExists(tt, "scaleway_document_db_instance.main", "scaleway_document_db_user.db_user"), + resource.TestCheckResourceAttr("scaleway_document_db_user.db_user", "name", "foo"), + resource.TestCheckResourceAttr("scaleway_document_db_user.db_user", "is_admin", "true"), + ), + }, + { + Config: ` + resource "scaleway_document_db_instance" "main" { + name = "test-documentdb-instance-endpoint-migration" + node_type = "docdb-play2-pico" + engine = "FerretDB-1" + user_name = "my_initial_user" + password = "thiZ_is_v&ry_s3cret" + volume_size_in_gb = 20 + } + + resource "scaleway_document_db_user" "db_user" { + instance_id = scaleway_document_db_instance.main.id + name = "bar" + password = "R34lP4sSw#Rd" + is_admin = false + } + `, + Check: resource.ComposeTestCheckFunc( + testAccCheckDocumentDBUserExists(tt, "scaleway_document_db_instance.main", "scaleway_document_db_user.db_user"), + resource.TestCheckResourceAttr("scaleway_document_db_user.db_user", "name", "bar"), + resource.TestCheckResourceAttr("scaleway_document_db_user.db_user", "is_admin", "false"), + ), + }, + }, + }) +} + +func testAccCheckDocumentDBUserExists(tt *TestTools, instance string, user string) resource.TestCheckFunc { + return func(state *terraform.State) error { + rs, ok := state.RootModule().Resources[instance] + if !ok { + return fmt.Errorf("resource not found: %s", instance) + } + + userResource, okUser := state.RootModule().Resources[user] + if !okUser { + return fmt.Errorf("resource not found: %s", user) + } + + api, _, _, err := documentDBAPIWithRegionAndID(tt.Meta, rs.Primary.ID) + if err != nil { + return err + } + + region, instanceID, userName, err := resourceScalewayDocumentDBUserParseID(userResource.Primary.ID) + if err != nil { + return err + } + + users, err := api.ListUsers(&documentdb.ListUsersRequest{ + InstanceID: instanceID, + Region: region, + Name: &userName, + }) + if err != nil { + return err + } + + if len(users.Users) != 1 { + return fmt.Errorf("no user found") + } + + return nil + } +} diff --git a/scaleway/testdata/data-source-document-db-database-basic.cassette.yaml b/scaleway/testdata/data-source-document-db-database-basic.cassette.yaml new file mode 100644 index 000000000..5682e4a11 --- /dev/null +++ b/scaleway/testdata/data-source-document-db-database-basic.cassette.yaml @@ -0,0 +1,1391 @@ +--- +version: 1 +interactions: +- request: + body: '{"project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","name":"test-ds-document_db-database-basic","engine":"FerretDB-1","user_name":"my_initial_user","password":"thiZ_is_v\u0026ry_s3cret","node_type":"docdb-play2-pico","is_ha_cluster":false,"disable_backup":false,"tags":null,"init_settings":null,"volume_type":"bssd","volume_size":20000000000,"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.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances + method: POST + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:03:46.891555Z","retention":7},"created_at":"2023-10-03T12:03:46.891555Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"b962b8fd-0504-4fe9-af30-f65c16654bd6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "767" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:03:47 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f9e0a33a-951e-43d0-8556-91537fd233cc + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:03:46.891555Z","retention":7},"created_at":"2023-10-03T12:03:46.891555Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"b962b8fd-0504-4fe9-af30-f65c16654bd6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "767" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:03:47 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5bcb8a06-9099-4b6d-a94f-0e964ddc522b + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:03:46.891555Z","retention":7},"created_at":"2023-10-03T12:03:46.891555Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"b962b8fd-0504-4fe9-af30-f65c16654bd6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "767" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:04:20 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e3cbf850-fc08-489e-8ac1-03bfb3997657 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:03:46.891555Z","retention":7},"created_at":"2023-10-03T12:03:46.891555Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"b962b8fd-0504-4fe9-af30-f65c16654bd6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "767" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:04:50 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 31a2fe19-4a01-4d3c-ad4b-d615fa19fd5f + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:03:46.891555Z","retention":7},"created_at":"2023-10-03T12:03:46.891555Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"b962b8fd-0504-4fe9-af30-f65c16654bd6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "767" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:05:22 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ca4d90a1-a8e9-4342-831a-e8c0f15a73ea + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:03:46.891555Z","retention":7},"created_at":"2023-10-03T12:03:46.891555Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"b962b8fd-0504-4fe9-af30-f65c16654bd6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "767" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:05:52 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ee87e21e-a005-478b-9d9f-b6430a94804a + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:03:46.891555Z","retention":7},"created_at":"2023-10-03T12:03:46.891555Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"b962b8fd-0504-4fe9-af30-f65c16654bd6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "767" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:06:23 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7649ab01-9e6a-4530-896b-da0c980e3814 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:03:46.891555Z","retention":7},"created_at":"2023-10-03T12:03:46.891555Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"b962b8fd-0504-4fe9-af30-f65c16654bd6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "767" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:06:54 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 35d2575c-fbfc-4c16-a496-f0b24ff2e596 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:03:46.891555Z","retention":7},"created_at":"2023-10-03T12:03:46.891555Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"b962b8fd-0504-4fe9-af30-f65c16654bd6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "767" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:07:25 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 81aebc82-b7a4-46c4-ac0d-4fd382d7a52a + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:03:46.891555Z","retention":7},"created_at":"2023-10-03T12:03:46.891555Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"b962b8fd-0504-4fe9-af30-f65c16654bd6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "767" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:07:55 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f9cdb8e4-8dad-4b24-a5cf-db4c482da11d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:03:46.891555Z","retention":7},"created_at":"2023-10-03T12:03:46.891555Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"b962b8fd-0504-4fe9-af30-f65c16654bd6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "767" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:08:26 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - df30c61c-83fb-46e0-ba2f-9ac59c8474d5 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:03:46.891555Z","retention":7},"created_at":"2023-10-03T12:03:46.891555Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"b962b8fd-0504-4fe9-af30-f65c16654bd6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "767" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:08:56 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 43bb2494-f897-40f8-8fad-6f2796a3052a + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:03:46.891555Z","retention":7},"created_at":"2023-10-03T12:03:46.891555Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"b962b8fd-0504-4fe9-af30-f65c16654bd6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "767" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:09:26 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3684151e-f3bd-4421-bf34-559952272ae9 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:03:46.891555Z","retention":7},"created_at":"2023-10-03T12:03:46.891555Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"b962b8fd-0504-4fe9-af30-f65c16654bd6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "767" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:09:56 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b485d4a3-713f-443d-a8e7-34a2f2f9fca7 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:03:46.891555Z","retention":7},"created_at":"2023-10-03T12:03:46.891555Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"b962b8fd-0504-4fe9-af30-f65c16654bd6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "767" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:10:26 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - efd333b5-dada-4f1d-9baa-86734743ca64 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:03:46.891555Z","retention":7},"created_at":"2023-10-03T12:03:46.891555Z","endpoint":{"id":"085c2e9e-85f9-42b8-abdc-e00afe817d71","ip":"51.158.56.171","load_balancer":{},"name":null,"port":7854},"endpoints":[{"id":"085c2e9e-85f9-42b8-abdc-e00afe817d71","ip":"51.158.56.171","load_balancer":{},"name":null,"port":7854}],"engine":"FerretDB-1","id":"b962b8fd-0504-4fe9-af30-f65c16654bd6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1023" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:10:57 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c3bc5240-e6fe-4fae-8479-352759da6b74 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:03:46.891555Z","retention":7},"created_at":"2023-10-03T12:03:46.891555Z","endpoint":{"id":"085c2e9e-85f9-42b8-abdc-e00afe817d71","ip":"51.158.56.171","load_balancer":{},"name":null,"port":7854},"endpoints":[{"id":"085c2e9e-85f9-42b8-abdc-e00afe817d71","ip":"51.158.56.171","load_balancer":{},"name":null,"port":7854}],"engine":"FerretDB-1","id":"b962b8fd-0504-4fe9-af30-f65c16654bd6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1023" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:10:57 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2ab8bb43-02d8-479d-9833-e6d2c2002e12 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:03:46.891555Z","retention":7},"created_at":"2023-10-03T12:03:46.891555Z","endpoint":{"id":"085c2e9e-85f9-42b8-abdc-e00afe817d71","ip":"51.158.56.171","load_balancer":{},"name":null,"port":7854},"endpoints":[{"id":"085c2e9e-85f9-42b8-abdc-e00afe817d71","ip":"51.158.56.171","load_balancer":{},"name":null,"port":7854}],"engine":"FerretDB-1","id":"b962b8fd-0504-4fe9-af30-f65c16654bd6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1023" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:10:58 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 14283374-286b-4066-9fba-c02005ee8dc0 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"name":"test-ds-document_db-database-basic"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6/databases + method: POST + response: + body: '{"managed":true,"name":"test-ds-document_db-database-basic","owner":"","size":0}' + headers: + Content-Length: + - "83" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:10:58 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 70213dcd-7bd7-4bb4-9ed1-178cc3f8560f + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:03:46.891555Z","retention":7},"created_at":"2023-10-03T12:03:46.891555Z","endpoint":{"id":"085c2e9e-85f9-42b8-abdc-e00afe817d71","ip":"51.158.56.171","load_balancer":{},"name":null,"port":7854},"endpoints":[{"id":"085c2e9e-85f9-42b8-abdc-e00afe817d71","ip":"51.158.56.171","load_balancer":{},"name":null,"port":7854}],"engine":"FerretDB-1","id":"b962b8fd-0504-4fe9-af30-f65c16654bd6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1023" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:10:58 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - aea295f0-a86b-49e0-9d4b-a8b2811da112 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:03:46.891555Z","retention":7},"created_at":"2023-10-03T12:03:46.891555Z","endpoint":{"id":"085c2e9e-85f9-42b8-abdc-e00afe817d71","ip":"51.158.56.171","load_balancer":{},"name":null,"port":7854},"endpoints":[{"id":"085c2e9e-85f9-42b8-abdc-e00afe817d71","ip":"51.158.56.171","load_balancer":{},"name":null,"port":7854}],"engine":"FerretDB-1","id":"b962b8fd-0504-4fe9-af30-f65c16654bd6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1023" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:10:58 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 048b166b-aea9-4f2e-919d-d0e150de4c90 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6/databases?name=test-ds-document_db-database-basic&order_by=name_asc + method: GET + response: + body: '{"databases":[{"managed":true,"name":"test-ds-document_db-database-basic","owner":"_rdb_superadmin","size":8758051}],"total_count":1}' + headers: + Content-Length: + - "137" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:10:59 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9c96a21b-be68-461e-921d-2c7bbf93417c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:03:46.891555Z","retention":7},"created_at":"2023-10-03T12:03:46.891555Z","endpoint":{"id":"085c2e9e-85f9-42b8-abdc-e00afe817d71","ip":"51.158.56.171","load_balancer":{},"name":null,"port":7854},"endpoints":[{"id":"085c2e9e-85f9-42b8-abdc-e00afe817d71","ip":"51.158.56.171","load_balancer":{},"name":null,"port":7854}],"engine":"FerretDB-1","id":"b962b8fd-0504-4fe9-af30-f65c16654bd6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1023" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:10:59 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 142b6bb0-0d8d-40df-b601-0d63cb030ef9 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6/databases?name=test-ds-document_db-database-basic&order_by=name_asc + method: GET + response: + body: '{"databases":[{"managed":true,"name":"test-ds-document_db-database-basic","owner":"_rdb_superadmin","size":8758051}],"total_count":1}' + headers: + Content-Length: + - "137" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:10:59 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ceaeb09b-f172-4a31-be87-867d60390118 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6/databases?name=test-ds-document_db-database-basic&order_by=name_asc + method: GET + response: + body: '{"databases":[{"managed":true,"name":"test-ds-document_db-database-basic","owner":"_rdb_superadmin","size":8758051}],"total_count":1}' + headers: + Content-Length: + - "137" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:10:59 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3b8aaa40-79b8-4dbe-b8a3-2e5723bf4f28 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:03:46.891555Z","retention":7},"created_at":"2023-10-03T12:03:46.891555Z","endpoint":{"id":"085c2e9e-85f9-42b8-abdc-e00afe817d71","ip":"51.158.56.171","load_balancer":{},"name":null,"port":7854},"endpoints":[{"id":"085c2e9e-85f9-42b8-abdc-e00afe817d71","ip":"51.158.56.171","load_balancer":{},"name":null,"port":7854}],"engine":"FerretDB-1","id":"b962b8fd-0504-4fe9-af30-f65c16654bd6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1023" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:10:59 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 93724b74-d3af-41b6-9e6e-e4272516207b + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6/databases?name=test-ds-document_db-database-basic&order_by=name_asc + method: GET + response: + body: '{"databases":[{"managed":true,"name":"test-ds-document_db-database-basic","owner":"_rdb_superadmin","size":8758051}],"total_count":1}' + headers: + Content-Length: + - "137" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:11:00 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 143f52af-6eb4-4754-8236-03fae9d7419c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:03:46.891555Z","retention":7},"created_at":"2023-10-03T12:03:46.891555Z","endpoint":{"id":"085c2e9e-85f9-42b8-abdc-e00afe817d71","ip":"51.158.56.171","load_balancer":{},"name":null,"port":7854},"endpoints":[{"id":"085c2e9e-85f9-42b8-abdc-e00afe817d71","ip":"51.158.56.171","load_balancer":{},"name":null,"port":7854}],"engine":"FerretDB-1","id":"b962b8fd-0504-4fe9-af30-f65c16654bd6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1023" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:11:00 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f80be3dc-8790-4e06-84dd-06e75821c086 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:03:46.891555Z","retention":7},"created_at":"2023-10-03T12:03:46.891555Z","endpoint":{"id":"085c2e9e-85f9-42b8-abdc-e00afe817d71","ip":"51.158.56.171","load_balancer":{},"name":null,"port":7854},"endpoints":[{"id":"085c2e9e-85f9-42b8-abdc-e00afe817d71","ip":"51.158.56.171","load_balancer":{},"name":null,"port":7854}],"engine":"FerretDB-1","id":"b962b8fd-0504-4fe9-af30-f65c16654bd6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1023" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:11:00 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ae7525ad-2eba-4524-8dc6-2865b9a16864 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6/databases?name=test-ds-document_db-database-basic&order_by=name_asc + method: GET + response: + body: '{"databases":[{"managed":true,"name":"test-ds-document_db-database-basic","owner":"_rdb_superadmin","size":8758051}],"total_count":1}' + headers: + Content-Length: + - "137" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:11:00 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - dd2dbe76-31a1-4392-993a-665e7d0967f0 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:03:46.891555Z","retention":7},"created_at":"2023-10-03T12:03:46.891555Z","endpoint":{"id":"085c2e9e-85f9-42b8-abdc-e00afe817d71","ip":"51.158.56.171","load_balancer":{},"name":null,"port":7854},"endpoints":[{"id":"085c2e9e-85f9-42b8-abdc-e00afe817d71","ip":"51.158.56.171","load_balancer":{},"name":null,"port":7854}],"engine":"FerretDB-1","id":"b962b8fd-0504-4fe9-af30-f65c16654bd6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1023" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:11:01 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7d00273c-afb1-459e-a15a-a9d713d6a7a7 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6/databases?name=test-ds-document_db-database-basic&order_by=name_asc + method: GET + response: + body: '{"databases":[{"managed":true,"name":"test-ds-document_db-database-basic","owner":"_rdb_superadmin","size":8758051}],"total_count":1}' + headers: + Content-Length: + - "137" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:11:01 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 18f32ff6-40c3-4dca-b3ff-41099783c226 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:03:46.891555Z","retention":7},"created_at":"2023-10-03T12:03:46.891555Z","endpoint":{"id":"085c2e9e-85f9-42b8-abdc-e00afe817d71","ip":"51.158.56.171","load_balancer":{},"name":null,"port":7854},"endpoints":[{"id":"085c2e9e-85f9-42b8-abdc-e00afe817d71","ip":"51.158.56.171","load_balancer":{},"name":null,"port":7854}],"engine":"FerretDB-1","id":"b962b8fd-0504-4fe9-af30-f65c16654bd6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1023" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:11:01 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - cde1be57-7725-452c-b877-2caa537a30da + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6/databases?name=test-ds-document_db-database-basic&order_by=name_asc + method: GET + response: + body: '{"databases":[{"managed":true,"name":"test-ds-document_db-database-basic","owner":"_rdb_superadmin","size":8758051}],"total_count":1}' + headers: + Content-Length: + - "137" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:11:01 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5c84af94-80a0-4c02-b5b9-7e032276ec21 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:03:46.891555Z","retention":7},"created_at":"2023-10-03T12:03:46.891555Z","endpoint":{"id":"085c2e9e-85f9-42b8-abdc-e00afe817d71","ip":"51.158.56.171","load_balancer":{},"name":null,"port":7854},"endpoints":[{"id":"085c2e9e-85f9-42b8-abdc-e00afe817d71","ip":"51.158.56.171","load_balancer":{},"name":null,"port":7854}],"engine":"FerretDB-1","id":"b962b8fd-0504-4fe9-af30-f65c16654bd6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1023" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:11:02 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - df1382ad-db2c-4974-88e5-1be307185a4b + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6/databases/test-ds-document_db-database-basic + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:11:02 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ad0aed0a-e94b-424b-8352-a50c23fd06e1 + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:03:46.891555Z","retention":7},"created_at":"2023-10-03T12:03:46.891555Z","endpoint":{"id":"085c2e9e-85f9-42b8-abdc-e00afe817d71","ip":"51.158.56.171","load_balancer":{},"name":null,"port":7854},"endpoints":[{"id":"085c2e9e-85f9-42b8-abdc-e00afe817d71","ip":"51.158.56.171","load_balancer":{},"name":null,"port":7854}],"engine":"FerretDB-1","id":"b962b8fd-0504-4fe9-af30-f65c16654bd6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1023" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:11:02 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 31722fdc-b8c7-4a9d-bf42-84ca5f6456c9 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:03:46.891555Z","retention":7},"created_at":"2023-10-03T12:03:46.891555Z","endpoint":{"id":"085c2e9e-85f9-42b8-abdc-e00afe817d71","ip":"51.158.56.171","load_balancer":{},"name":null,"port":7854},"endpoints":[{"id":"085c2e9e-85f9-42b8-abdc-e00afe817d71","ip":"51.158.56.171","load_balancer":{},"name":null,"port":7854}],"engine":"FerretDB-1","id":"b962b8fd-0504-4fe9-af30-f65c16654bd6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1023" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:11:02 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f6facb0c-52ed-479b-afa8-749119a30153 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6 + method: DELETE + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:03:46.891555Z","retention":7},"created_at":"2023-10-03T12:03:46.891555Z","endpoint":{"id":"085c2e9e-85f9-42b8-abdc-e00afe817d71","ip":"51.158.56.171","load_balancer":{},"name":null,"port":7854},"endpoints":[{"id":"085c2e9e-85f9-42b8-abdc-e00afe817d71","ip":"51.158.56.171","load_balancer":{},"name":null,"port":7854}],"engine":"FerretDB-1","id":"b962b8fd-0504-4fe9-af30-f65c16654bd6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"deleting","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1026" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:11:02 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8ab762a3-ce89-46ab-a4ff-1f88eb63b723 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:03:46.891555Z","retention":7},"created_at":"2023-10-03T12:03:46.891555Z","endpoint":{"id":"085c2e9e-85f9-42b8-abdc-e00afe817d71","ip":"51.158.56.171","load_balancer":{},"name":null,"port":7854},"endpoints":[{"id":"085c2e9e-85f9-42b8-abdc-e00afe817d71","ip":"51.158.56.171","load_balancer":{},"name":null,"port":7854}],"engine":"FerretDB-1","id":"b962b8fd-0504-4fe9-af30-f65c16654bd6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"deleting","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1026" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:11:03 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e93e246e-fdd7-407b-951b-c3ee00e00453 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6 + method: GET + response: + body: '{"message":"resource is not found","resource":"instance","resource_id":"b962b8fd-0504-4fe9-af30-f65c16654bd6","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:11:33 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 54bb42af-7678-4c05-bc93-0d29674a8ab6 + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/b962b8fd-0504-4fe9-af30-f65c16654bd6 + method: DELETE + response: + body: '{"message":"resource is not found","resource":"instance","resource_id":"b962b8fd-0504-4fe9-af30-f65c16654bd6","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:11:33 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - de8558cf-73e3-4bc0-97ad-ab1fb7e339e2 + status: 404 Not Found + code: 404 + duration: "" diff --git a/scaleway/testdata/data-source-document-db-instance-basic.cassette.yaml b/scaleway/testdata/data-source-document-db-instance-basic.cassette.yaml new file mode 100644 index 000000000..171bbaabf --- /dev/null +++ b/scaleway/testdata/data-source-document-db-instance-basic.cassette.yaml @@ -0,0 +1,1028 @@ +--- +version: 1 +interactions: +- request: + body: '{"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","name":"test-ds-document_db-instance-basic","engine":"FerretDB-1","user_name":"my_initial_user","password":"thiZ_is_v\u0026ry_s3cret","node_type":"docdb-play2-pico","is_ha_cluster":false,"disable_backup":false,"tags":null,"init_settings":null,"volume_type":"bssd","volume_size":20000000000,"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.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances + method: POST + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:13:00.496603Z","retention":7},"created_at":"2023-10-02T20:13:00.496603Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"f52a65b1-beb1-4166-ba81-17916a995be9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "767" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:13:00 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 64d583f2-21b7-4dd6-b36f-63c3b4d7a737 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f52a65b1-beb1-4166-ba81-17916a995be9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:13:00.496603Z","retention":7},"created_at":"2023-10-02T20:13:00.496603Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"f52a65b1-beb1-4166-ba81-17916a995be9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "767" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:13:00 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 300b7ab9-d70c-4e71-a18b-9a8a9d3032f3 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f52a65b1-beb1-4166-ba81-17916a995be9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:13:00.496603Z","retention":7},"created_at":"2023-10-02T20:13:00.496603Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"f52a65b1-beb1-4166-ba81-17916a995be9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "767" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:13:31 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9c1d7753-5392-43ba-8bb5-e5ccb4197d7f + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f52a65b1-beb1-4166-ba81-17916a995be9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:13:00.496603Z","retention":7},"created_at":"2023-10-02T20:13:00.496603Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"f52a65b1-beb1-4166-ba81-17916a995be9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "767" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:14:02 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 402d8065-8229-411e-9604-cbf7fd4e66b1 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f52a65b1-beb1-4166-ba81-17916a995be9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:13:00.496603Z","retention":7},"created_at":"2023-10-02T20:13:00.496603Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"f52a65b1-beb1-4166-ba81-17916a995be9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "767" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:14:32 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 860321b5-e1b3-4fce-bc8b-1a0c551d177e + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f52a65b1-beb1-4166-ba81-17916a995be9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:13:00.496603Z","retention":7},"created_at":"2023-10-02T20:13:00.496603Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"f52a65b1-beb1-4166-ba81-17916a995be9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "767" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:15:03 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8a16a078-25d7-46b1-a706-c22ea93eb021 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f52a65b1-beb1-4166-ba81-17916a995be9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:13:00.496603Z","retention":7},"created_at":"2023-10-02T20:13:00.496603Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"f52a65b1-beb1-4166-ba81-17916a995be9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "767" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:15:33 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4f27adb8-9e23-4eb0-ab5c-690b5ac2c5d2 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f52a65b1-beb1-4166-ba81-17916a995be9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:13:00.496603Z","retention":7},"created_at":"2023-10-02T20:13:00.496603Z","endpoint":{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634},"endpoints":[{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634}],"engine":"FerretDB-1","id":"f52a65b1-beb1-4166-ba81-17916a995be9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1034" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:03 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b67f1801-106f-4dad-b6c4-7d414aefae30 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f52a65b1-beb1-4166-ba81-17916a995be9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:13:00.496603Z","retention":7},"created_at":"2023-10-02T20:13:00.496603Z","endpoint":{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634},"endpoints":[{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634}],"engine":"FerretDB-1","id":"f52a65b1-beb1-4166-ba81-17916a995be9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1027" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:34 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1aee4517-29ba-4dfe-859e-425dbfcc30c4 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f52a65b1-beb1-4166-ba81-17916a995be9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:13:00.496603Z","retention":7},"created_at":"2023-10-02T20:13:00.496603Z","endpoint":{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634},"endpoints":[{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634}],"engine":"FerretDB-1","id":"f52a65b1-beb1-4166-ba81-17916a995be9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1027" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:34 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9a7f8fa0-6bc2-45c0-8a83-58ff5d3ac182 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f52a65b1-beb1-4166-ba81-17916a995be9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:13:00.496603Z","retention":7},"created_at":"2023-10-02T20:13:00.496603Z","endpoint":{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634},"endpoints":[{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634}],"engine":"FerretDB-1","id":"f52a65b1-beb1-4166-ba81-17916a995be9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1027" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:34 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 78f15089-1214-4ae1-901f-0b3e0beb8d6c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances?name=test-ds-document_db-instance-basic&order_by=created_at_asc + method: GET + response: + body: '{"instances":[{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:13:00.496603Z","retention":7},"created_at":"2023-10-02T20:13:00.496603Z","endpoint":{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634},"endpoints":[{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634}],"engine":"FerretDB-1","id":"f52a65b1-beb1-4166-ba81-17916a995be9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}],"total_count":1}' + headers: + Content-Length: + - "1060" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:34 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4f161aa4-740a-4110-b50c-5c5e424c87ef + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f52a65b1-beb1-4166-ba81-17916a995be9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:13:00.496603Z","retention":7},"created_at":"2023-10-02T20:13:00.496603Z","endpoint":{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634},"endpoints":[{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634}],"engine":"FerretDB-1","id":"f52a65b1-beb1-4166-ba81-17916a995be9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1027" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:34 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 870ff487-3f6b-4518-a69e-a1c48eb07d99 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f52a65b1-beb1-4166-ba81-17916a995be9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:13:00.496603Z","retention":7},"created_at":"2023-10-02T20:13:00.496603Z","endpoint":{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634},"endpoints":[{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634}],"engine":"FerretDB-1","id":"f52a65b1-beb1-4166-ba81-17916a995be9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1027" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:35 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 320ce33f-f54a-4056-b5b7-29194c71a14d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f52a65b1-beb1-4166-ba81-17916a995be9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:13:00.496603Z","retention":7},"created_at":"2023-10-02T20:13:00.496603Z","endpoint":{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634},"endpoints":[{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634}],"engine":"FerretDB-1","id":"f52a65b1-beb1-4166-ba81-17916a995be9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1027" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:35 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 16c7f9f7-1ebe-4877-917d-703245956264 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances?name=test-ds-document_db-instance-basic&order_by=created_at_asc + method: GET + response: + body: '{"instances":[{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:13:00.496603Z","retention":7},"created_at":"2023-10-02T20:13:00.496603Z","endpoint":{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634},"endpoints":[{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634}],"engine":"FerretDB-1","id":"f52a65b1-beb1-4166-ba81-17916a995be9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}],"total_count":1}' + headers: + Content-Length: + - "1060" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:35 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e41f0ab0-2948-4dd3-8f55-3cbe3ca4a391 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f52a65b1-beb1-4166-ba81-17916a995be9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:13:00.496603Z","retention":7},"created_at":"2023-10-02T20:13:00.496603Z","endpoint":{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634},"endpoints":[{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634}],"engine":"FerretDB-1","id":"f52a65b1-beb1-4166-ba81-17916a995be9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1027" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:35 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 20da8d54-1c4d-4f58-b1be-6740ec582bd1 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f52a65b1-beb1-4166-ba81-17916a995be9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:13:00.496603Z","retention":7},"created_at":"2023-10-02T20:13:00.496603Z","endpoint":{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634},"endpoints":[{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634}],"engine":"FerretDB-1","id":"f52a65b1-beb1-4166-ba81-17916a995be9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1027" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:36 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - fd2f820a-85d9-4773-8350-e8cacb1914c8 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f52a65b1-beb1-4166-ba81-17916a995be9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:13:00.496603Z","retention":7},"created_at":"2023-10-02T20:13:00.496603Z","endpoint":{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634},"endpoints":[{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634}],"engine":"FerretDB-1","id":"f52a65b1-beb1-4166-ba81-17916a995be9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1027" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:36 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1b1750ed-b7b7-4e4b-ad2b-9f252b8c5b14 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances?name=test-ds-document_db-instance-basic&order_by=created_at_asc + method: GET + response: + body: '{"instances":[{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:13:00.496603Z","retention":7},"created_at":"2023-10-02T20:13:00.496603Z","endpoint":{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634},"endpoints":[{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634}],"engine":"FerretDB-1","id":"f52a65b1-beb1-4166-ba81-17916a995be9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}],"total_count":1}' + headers: + Content-Length: + - "1060" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:36 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5a58be95-ff86-4be3-92dc-321706090ece + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f52a65b1-beb1-4166-ba81-17916a995be9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:13:00.496603Z","retention":7},"created_at":"2023-10-02T20:13:00.496603Z","endpoint":{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634},"endpoints":[{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634}],"engine":"FerretDB-1","id":"f52a65b1-beb1-4166-ba81-17916a995be9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1027" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:36 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e0c54242-2f6e-4af4-9234-2d89d1bebbfe + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f52a65b1-beb1-4166-ba81-17916a995be9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:13:00.496603Z","retention":7},"created_at":"2023-10-02T20:13:00.496603Z","endpoint":{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634},"endpoints":[{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634}],"engine":"FerretDB-1","id":"f52a65b1-beb1-4166-ba81-17916a995be9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1027" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:36 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2a7cbbc9-ae37-40c6-90c9-3a8856f08484 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances?name=test-ds-document_db-instance-basic&order_by=created_at_asc + method: GET + response: + body: '{"instances":[{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:13:00.496603Z","retention":7},"created_at":"2023-10-02T20:13:00.496603Z","endpoint":{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634},"endpoints":[{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634}],"engine":"FerretDB-1","id":"f52a65b1-beb1-4166-ba81-17916a995be9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}],"total_count":1}' + headers: + Content-Length: + - "1060" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:36 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 449bd347-73c2-4dc6-8e7a-c5e9c0863d43 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f52a65b1-beb1-4166-ba81-17916a995be9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:13:00.496603Z","retention":7},"created_at":"2023-10-02T20:13:00.496603Z","endpoint":{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634},"endpoints":[{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634}],"engine":"FerretDB-1","id":"f52a65b1-beb1-4166-ba81-17916a995be9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1027" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:36 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - acf638f8-597d-4500-a1f1-e05482d1131d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f52a65b1-beb1-4166-ba81-17916a995be9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:13:00.496603Z","retention":7},"created_at":"2023-10-02T20:13:00.496603Z","endpoint":{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634},"endpoints":[{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634}],"engine":"FerretDB-1","id":"f52a65b1-beb1-4166-ba81-17916a995be9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1027" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:37 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c86b6c29-c710-4402-96b7-ecab00e3d075 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f52a65b1-beb1-4166-ba81-17916a995be9 + method: DELETE + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:13:00.496603Z","retention":7},"created_at":"2023-10-02T20:13:00.496603Z","endpoint":{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634},"endpoints":[{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634}],"engine":"FerretDB-1","id":"f52a65b1-beb1-4166-ba81-17916a995be9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"deleting","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1030" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:37 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 835891e1-7597-4e89-80bd-79245edc3ff4 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f52a65b1-beb1-4166-ba81-17916a995be9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:13:00.496603Z","retention":7},"created_at":"2023-10-02T20:13:00.496603Z","endpoint":{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634},"endpoints":[{"id":"f575fce0-8608-4c8b-ad07-04a9a9a35b18","ip":"51.159.113.128","load_balancer":{},"name":null,"port":26634}],"engine":"FerretDB-1","id":"f52a65b1-beb1-4166-ba81-17916a995be9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"deleting","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1030" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:37 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3428b142-7bc9-4879-9a9d-1634488529bd + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f52a65b1-beb1-4166-ba81-17916a995be9 + method: GET + response: + body: '{"message":"resource is not found","resource":"instance","resource_id":"f52a65b1-beb1-4166-ba81-17916a995be9","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:17:08 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c7ae4b87-957d-431b-b1c8-9ea16d36883a + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f52a65b1-beb1-4166-ba81-17916a995be9 + method: DELETE + response: + body: '{"message":"resource is not found","resource":"instance","resource_id":"f52a65b1-beb1-4166-ba81-17916a995be9","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:17:11 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 495505aa-a818-42b1-bb0e-fed1e69a534a + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f52a65b1-beb1-4166-ba81-17916a995be9 + method: DELETE + response: + body: '{"message":"resource is not found","resource":"instance","resource_id":"f52a65b1-beb1-4166-ba81-17916a995be9","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:17:11 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 502e6ed5-34c1-417c-b9af-bed836a1511c + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f52a65b1-beb1-4166-ba81-17916a995be9 + method: DELETE + response: + body: '{"message":"resource is not found","resource":"instance","resource_id":"f52a65b1-beb1-4166-ba81-17916a995be9","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:17:12 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 52b3a5f6-ab8f-44e2-958f-cd59a3fbcc25 + status: 404 Not Found + code: 404 + duration: "" diff --git a/scaleway/testdata/data-source-document-db-instance-load-balancer-basic.cassette.yaml b/scaleway/testdata/data-source-document-db-instance-load-balancer-basic.cassette.yaml new file mode 100644 index 000000000..96cd71dd1 --- /dev/null +++ b/scaleway/testdata/data-source-document-db-instance-load-balancer-basic.cassette.yaml @@ -0,0 +1,995 @@ +--- +version: 1 +interactions: +- request: + body: '{"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","name":"test-ds-document_db-instance-basic","engine":"FerretDB-1","user_name":"my_initial_user","password":"thiZ_is_v\u0026ry_s3cret","node_type":"docdb-play2-pico","is_ha_cluster":false,"disable_backup":false,"tags":null,"init_settings":null,"volume_type":"bssd","volume_size":20000000000,"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.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances + method: POST + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.862646Z","retention":7},"created_at":"2023-10-02T20:08:44.862646Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"bd73cd2c-4cf7-4fdf-978f-8352df27bd3d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "767" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:08:45 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3985e0a9-5456-477d-a40c-2575f62f9706 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/bd73cd2c-4cf7-4fdf-978f-8352df27bd3d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.862646Z","retention":7},"created_at":"2023-10-02T20:08:44.862646Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"bd73cd2c-4cf7-4fdf-978f-8352df27bd3d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "767" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:08:45 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 30458f3d-46ea-4727-9801-ff64244f6d1f + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/bd73cd2c-4cf7-4fdf-978f-8352df27bd3d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.862646Z","retention":7},"created_at":"2023-10-02T20:08:44.862646Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"bd73cd2c-4cf7-4fdf-978f-8352df27bd3d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "767" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:09:19 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7a3e4314-1413-4f96-805d-fb56749edfff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/bd73cd2c-4cf7-4fdf-978f-8352df27bd3d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.862646Z","retention":7},"created_at":"2023-10-02T20:08:44.862646Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"bd73cd2c-4cf7-4fdf-978f-8352df27bd3d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "767" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:09:49 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 752ef8c7-758d-4eb9-8bf4-d28473bcca22 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/bd73cd2c-4cf7-4fdf-978f-8352df27bd3d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.862646Z","retention":7},"created_at":"2023-10-02T20:08:44.862646Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"bd73cd2c-4cf7-4fdf-978f-8352df27bd3d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "767" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:10:19 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7be5da43-a1cb-4ac8-98ef-532a7001de12 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/bd73cd2c-4cf7-4fdf-978f-8352df27bd3d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.862646Z","retention":7},"created_at":"2023-10-02T20:08:44.862646Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"bd73cd2c-4cf7-4fdf-978f-8352df27bd3d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "767" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:10:50 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9bab5aaa-9806-4e10-ba4d-6f0566421f5d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/bd73cd2c-4cf7-4fdf-978f-8352df27bd3d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.862646Z","retention":7},"created_at":"2023-10-02T20:08:44.862646Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"bd73cd2c-4cf7-4fdf-978f-8352df27bd3d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "767" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:11:21 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - eea3e35c-0cc0-4654-98de-dc1e0de65edc + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/bd73cd2c-4cf7-4fdf-978f-8352df27bd3d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.862646Z","retention":7},"created_at":"2023-10-02T20:08:44.862646Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"bd73cd2c-4cf7-4fdf-978f-8352df27bd3d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "767" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:02 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - adabfe4b-4479-416c-8db2-97d9c3c5cda6 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/bd73cd2c-4cf7-4fdf-978f-8352df27bd3d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.862646Z","retention":7},"created_at":"2023-10-02T20:08:44.862646Z","endpoint":{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345},"endpoints":[{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345}],"engine":"FerretDB-1","id":"bd73cd2c-4cf7-4fdf-978f-8352df27bd3d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1025" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:33 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 367cbd20-e053-4952-b30c-a0fca7b8c6d3 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/bd73cd2c-4cf7-4fdf-978f-8352df27bd3d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.862646Z","retention":7},"created_at":"2023-10-02T20:08:44.862646Z","endpoint":{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345},"endpoints":[{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345}],"engine":"FerretDB-1","id":"bd73cd2c-4cf7-4fdf-978f-8352df27bd3d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1025" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:33 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e0fc4719-bfbb-425e-b1f1-b40f5636120c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/bd73cd2c-4cf7-4fdf-978f-8352df27bd3d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.862646Z","retention":7},"created_at":"2023-10-02T20:08:44.862646Z","endpoint":{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345},"endpoints":[{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345}],"engine":"FerretDB-1","id":"bd73cd2c-4cf7-4fdf-978f-8352df27bd3d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1025" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:33 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1113af2f-ca7a-44b6-9ce5-2f71800c6b5f + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances?name=test-ds-document_db-instance-basic&order_by=created_at_asc + method: GET + response: + body: '{"instances":[{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.862646Z","retention":7},"created_at":"2023-10-02T20:08:44.862646Z","endpoint":{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345},"endpoints":[{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345}],"engine":"FerretDB-1","id":"bd73cd2c-4cf7-4fdf-978f-8352df27bd3d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}],"total_count":1}' + headers: + Content-Length: + - "1058" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:33 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a35a4843-4422-4504-b916-919bea78b8a4 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/bd73cd2c-4cf7-4fdf-978f-8352df27bd3d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.862646Z","retention":7},"created_at":"2023-10-02T20:08:44.862646Z","endpoint":{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345},"endpoints":[{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345}],"engine":"FerretDB-1","id":"bd73cd2c-4cf7-4fdf-978f-8352df27bd3d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1025" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:33 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 50642f66-f9e0-47a7-8eef-67477a34a74d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/endpoints/0d09c2ac-7a12-416b-ac87-01098498d3d3 + method: GET + response: + body: '{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345}' + headers: + Content-Length: + - "114" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:34 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a8f657cb-6113-48dd-ab22-9d8b00f89ff0 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/endpoints/0d09c2ac-7a12-416b-ac87-01098498d3d3 + method: GET + response: + body: '{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345}' + headers: + Content-Length: + - "114" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:34 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c057d68a-65a3-4c03-b794-6f9442dada99 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/bd73cd2c-4cf7-4fdf-978f-8352df27bd3d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.862646Z","retention":7},"created_at":"2023-10-02T20:08:44.862646Z","endpoint":{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345},"endpoints":[{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345}],"engine":"FerretDB-1","id":"bd73cd2c-4cf7-4fdf-978f-8352df27bd3d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1025" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:34 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e6bd792e-6b9d-4d14-812a-42310378042d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances?name=test-ds-document_db-instance-basic&order_by=created_at_asc + method: GET + response: + body: '{"instances":[{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.862646Z","retention":7},"created_at":"2023-10-02T20:08:44.862646Z","endpoint":{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345},"endpoints":[{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345}],"engine":"FerretDB-1","id":"bd73cd2c-4cf7-4fdf-978f-8352df27bd3d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}],"total_count":1}' + headers: + Content-Length: + - "1058" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:34 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 23459020-025d-455a-90f3-f3c208490d86 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/bd73cd2c-4cf7-4fdf-978f-8352df27bd3d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.862646Z","retention":7},"created_at":"2023-10-02T20:08:44.862646Z","endpoint":{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345},"endpoints":[{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345}],"engine":"FerretDB-1","id":"bd73cd2c-4cf7-4fdf-978f-8352df27bd3d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1025" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:34 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2db0c38a-7671-488d-aad0-a040f9989c99 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/bd73cd2c-4cf7-4fdf-978f-8352df27bd3d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.862646Z","retention":7},"created_at":"2023-10-02T20:08:44.862646Z","endpoint":{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345},"endpoints":[{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345}],"engine":"FerretDB-1","id":"bd73cd2c-4cf7-4fdf-978f-8352df27bd3d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1025" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:35 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5b7b0f43-d5cd-4748-8e51-cf7608101886 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances?name=test-ds-document_db-instance-basic&order_by=created_at_asc + method: GET + response: + body: '{"instances":[{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.862646Z","retention":7},"created_at":"2023-10-02T20:08:44.862646Z","endpoint":{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345},"endpoints":[{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345}],"engine":"FerretDB-1","id":"bd73cd2c-4cf7-4fdf-978f-8352df27bd3d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}],"total_count":1}' + headers: + Content-Length: + - "1058" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:36 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - de7ee73b-feb5-40bd-a5b3-0841f25682b0 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/bd73cd2c-4cf7-4fdf-978f-8352df27bd3d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.862646Z","retention":7},"created_at":"2023-10-02T20:08:44.862646Z","endpoint":{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345},"endpoints":[{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345}],"engine":"FerretDB-1","id":"bd73cd2c-4cf7-4fdf-978f-8352df27bd3d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1025" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:36 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2380421e-3ea4-4415-919b-01d63cb5208f + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/bd73cd2c-4cf7-4fdf-978f-8352df27bd3d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.862646Z","retention":7},"created_at":"2023-10-02T20:08:44.862646Z","endpoint":{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345},"endpoints":[{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345}],"engine":"FerretDB-1","id":"bd73cd2c-4cf7-4fdf-978f-8352df27bd3d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1025" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:37 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3cdc377d-d5e4-425c-9832-73be211c2bcd + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/bd73cd2c-4cf7-4fdf-978f-8352df27bd3d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.862646Z","retention":7},"created_at":"2023-10-02T20:08:44.862646Z","endpoint":{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345},"endpoints":[{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345}],"engine":"FerretDB-1","id":"bd73cd2c-4cf7-4fdf-978f-8352df27bd3d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1025" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:37 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 298e7a62-4ca7-44f9-8e4d-a46a8e6a2add + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances?name=test-ds-document_db-instance-basic&order_by=created_at_asc + method: GET + response: + body: '{"instances":[{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.862646Z","retention":7},"created_at":"2023-10-02T20:08:44.862646Z","endpoint":{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345},"endpoints":[{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345}],"engine":"FerretDB-1","id":"bd73cd2c-4cf7-4fdf-978f-8352df27bd3d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}],"total_count":1}' + headers: + Content-Length: + - "1058" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:37 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d43509b8-7abc-4b1c-8948-1ca0e6ffbe38 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/bd73cd2c-4cf7-4fdf-978f-8352df27bd3d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.862646Z","retention":7},"created_at":"2023-10-02T20:08:44.862646Z","endpoint":{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345},"endpoints":[{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345}],"engine":"FerretDB-1","id":"bd73cd2c-4cf7-4fdf-978f-8352df27bd3d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1025" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:37 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - dabdadff-6e0b-4beb-b5f8-e6b8250e902e + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/bd73cd2c-4cf7-4fdf-978f-8352df27bd3d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.862646Z","retention":7},"created_at":"2023-10-02T20:08:44.862646Z","endpoint":{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345},"endpoints":[{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345}],"engine":"FerretDB-1","id":"bd73cd2c-4cf7-4fdf-978f-8352df27bd3d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1025" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:38 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4c18ccec-8b40-4481-b90d-4206cf0d3569 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/bd73cd2c-4cf7-4fdf-978f-8352df27bd3d + method: DELETE + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.862646Z","retention":7},"created_at":"2023-10-02T20:08:44.862646Z","endpoint":{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345},"endpoints":[{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345}],"engine":"FerretDB-1","id":"bd73cd2c-4cf7-4fdf-978f-8352df27bd3d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"deleting","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1028" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:41 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6f753a41-9fc7-4be5-9eb4-9f80de2fa81f + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/bd73cd2c-4cf7-4fdf-978f-8352df27bd3d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.862646Z","retention":7},"created_at":"2023-10-02T20:08:44.862646Z","endpoint":{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345},"endpoints":[{"id":"0d09c2ac-7a12-416b-ac87-01098498d3d3","ip":"51.159.26.243","load_balancer":{},"name":null,"port":27345}],"engine":"FerretDB-1","id":"bd73cd2c-4cf7-4fdf-978f-8352df27bd3d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-ds-document_db-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"deleting","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1028" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:43 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9be15519-ffcb-4469-ab21-f31e742f0963 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/bd73cd2c-4cf7-4fdf-978f-8352df27bd3d + method: GET + response: + body: '{"message":"resource is not found","resource":"instance","resource_id":"bd73cd2c-4cf7-4fdf-978f-8352df27bd3d","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:13:13 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8433adda-6a29-4715-8663-251ece2d32e3 + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/bd73cd2c-4cf7-4fdf-978f-8352df27bd3d + method: DELETE + response: + body: '{"message":"resource is not found","resource":"instance","resource_id":"bd73cd2c-4cf7-4fdf-978f-8352df27bd3d","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:13:13 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1bd6a3b1-00bb-4906-9052-f3e7b670a657 + status: 404 Not Found + code: 404 + duration: "" diff --git a/scaleway/testdata/document-db-database-basic.cassette.yaml b/scaleway/testdata/document-db-database-basic.cassette.yaml new file mode 100644 index 000000000..f382fce9a --- /dev/null +++ b/scaleway/testdata/document-db-database-basic.cassette.yaml @@ -0,0 +1,863 @@ +--- +version: 1 +interactions: +- request: + body: '{"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","name":"test-document_db-database-basic","engine":"FerretDB-1","user_name":"my_initial_user","password":"thiZ_is_v\u0026ry_s3cret","node_type":"docdb-play2-pico","is_ha_cluster":false,"disable_backup":false,"tags":["terraform-test","scaleway_document_db_database","minimal"],"init_settings":null,"volume_type":"bssd","volume_size":20000000000,"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.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances + method: POST + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.885992Z","retention":7},"created_at":"2023-10-02T20:08:44.885992Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"fe63bde9-5740-4f34-a66f-128f28fa152d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":["terraform-test","scaleway_document_db_database","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "824" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:08:45 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 86ae3b1c-1d72-4105-8786-e8e5601a6d8b + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/fe63bde9-5740-4f34-a66f-128f28fa152d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.885992Z","retention":7},"created_at":"2023-10-02T20:08:44.885992Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"fe63bde9-5740-4f34-a66f-128f28fa152d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":["terraform-test","scaleway_document_db_database","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "824" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:08:45 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 95308c10-9b5c-479a-8a06-66fba8216e82 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/fe63bde9-5740-4f34-a66f-128f28fa152d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.885992Z","retention":7},"created_at":"2023-10-02T20:08:44.885992Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"fe63bde9-5740-4f34-a66f-128f28fa152d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":["terraform-test","scaleway_document_db_database","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "824" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:09:22 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c2600da6-6123-4fef-af8f-27ee969f8d79 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/fe63bde9-5740-4f34-a66f-128f28fa152d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.885992Z","retention":7},"created_at":"2023-10-02T20:08:44.885992Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"fe63bde9-5740-4f34-a66f-128f28fa152d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":["terraform-test","scaleway_document_db_database","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "824" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:09:53 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2f1f5601-21bd-4359-ae2a-5fcaddca77e0 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/fe63bde9-5740-4f34-a66f-128f28fa152d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.885992Z","retention":7},"created_at":"2023-10-02T20:08:44.885992Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"fe63bde9-5740-4f34-a66f-128f28fa152d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":["terraform-test","scaleway_document_db_database","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "824" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:10:23 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ac5dd641-8117-495e-9a33-c75a4fd80b50 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/fe63bde9-5740-4f34-a66f-128f28fa152d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.885992Z","retention":7},"created_at":"2023-10-02T20:08:44.885992Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"fe63bde9-5740-4f34-a66f-128f28fa152d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":["terraform-test","scaleway_document_db_database","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "824" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:10:53 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 202849b1-9bb3-4afa-b0d2-7948abc5f8ab + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/fe63bde9-5740-4f34-a66f-128f28fa152d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.885992Z","retention":7},"created_at":"2023-10-02T20:08:44.885992Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"fe63bde9-5740-4f34-a66f-128f28fa152d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":["terraform-test","scaleway_document_db_database","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "824" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:11:24 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0d5a8e98-9525-4cdf-b9f3-3b7f1280bb08 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/fe63bde9-5740-4f34-a66f-128f28fa152d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.885992Z","retention":7},"created_at":"2023-10-02T20:08:44.885992Z","endpoint":{"id":"b412d8fa-e7db-45fe-9946-7ea89293156b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":20455},"endpoints":[{"id":"b412d8fa-e7db-45fe-9946-7ea89293156b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":20455}],"engine":"FerretDB-1","id":"fe63bde9-5740-4f34-a66f-128f28fa152d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_database","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1084" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:02 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7a8461a5-53bc-4f20-9824-3e3726d5f7ef + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/fe63bde9-5740-4f34-a66f-128f28fa152d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.885992Z","retention":7},"created_at":"2023-10-02T20:08:44.885992Z","endpoint":{"id":"b412d8fa-e7db-45fe-9946-7ea89293156b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":20455},"endpoints":[{"id":"b412d8fa-e7db-45fe-9946-7ea89293156b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":20455}],"engine":"FerretDB-1","id":"fe63bde9-5740-4f34-a66f-128f28fa152d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_database","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1084" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:04 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f39499f2-7fce-43ff-a302-d8fbc4f9c07a + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/fe63bde9-5740-4f34-a66f-128f28fa152d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.885992Z","retention":7},"created_at":"2023-10-02T20:08:44.885992Z","endpoint":{"id":"b412d8fa-e7db-45fe-9946-7ea89293156b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":20455},"endpoints":[{"id":"b412d8fa-e7db-45fe-9946-7ea89293156b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":20455}],"engine":"FerretDB-1","id":"fe63bde9-5740-4f34-a66f-128f28fa152d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_database","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1084" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:04 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e494277c-18ea-41ee-b289-3db2262fcf3d + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"name":"test-document_db-database-basic"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/fe63bde9-5740-4f34-a66f-128f28fa152d/databases + method: POST + response: + body: '{"managed":true,"name":"test-document_db-database-basic","owner":"","size":0}' + headers: + Content-Length: + - "80" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:04 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f421faae-87f2-448f-a08f-f3939ee145e3 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/fe63bde9-5740-4f34-a66f-128f28fa152d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.885992Z","retention":7},"created_at":"2023-10-02T20:08:44.885992Z","endpoint":{"id":"b412d8fa-e7db-45fe-9946-7ea89293156b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":20455},"endpoints":[{"id":"b412d8fa-e7db-45fe-9946-7ea89293156b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":20455}],"engine":"FerretDB-1","id":"fe63bde9-5740-4f34-a66f-128f28fa152d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_database","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1084" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:05 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9cc2cd62-1911-4ba3-b8a4-ce6a5b78cbbf + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/fe63bde9-5740-4f34-a66f-128f28fa152d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.885992Z","retention":7},"created_at":"2023-10-02T20:08:44.885992Z","endpoint":{"id":"b412d8fa-e7db-45fe-9946-7ea89293156b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":20455},"endpoints":[{"id":"b412d8fa-e7db-45fe-9946-7ea89293156b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":20455}],"engine":"FerretDB-1","id":"fe63bde9-5740-4f34-a66f-128f28fa152d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_database","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1084" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:05 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 48dd5cb6-3a58-452d-a5b1-3d16a39c5715 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/fe63bde9-5740-4f34-a66f-128f28fa152d/databases?name=test-document_db-database-basic&order_by=name_asc + method: GET + response: + body: '{"databases":[{"managed":true,"name":"test-document_db-database-basic","owner":"_rdb_superadmin","size":8758051}],"total_count":1}' + headers: + Content-Length: + - "134" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:05 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 524c22f1-1346-4768-a97b-45b9c047c0dd + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/fe63bde9-5740-4f34-a66f-128f28fa152d/databases?name=test-document_db-database-basic&order_by=name_asc + method: GET + response: + body: '{"databases":[{"managed":true,"name":"test-document_db-database-basic","owner":"_rdb_superadmin","size":8758051}],"total_count":1}' + headers: + Content-Length: + - "134" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:05 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9ddccaae-62bc-4cb8-9ea8-8ea989666f1c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/fe63bde9-5740-4f34-a66f-128f28fa152d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.885992Z","retention":7},"created_at":"2023-10-02T20:08:44.885992Z","endpoint":{"id":"b412d8fa-e7db-45fe-9946-7ea89293156b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":20455},"endpoints":[{"id":"b412d8fa-e7db-45fe-9946-7ea89293156b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":20455}],"engine":"FerretDB-1","id":"fe63bde9-5740-4f34-a66f-128f28fa152d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_database","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1084" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:06 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c4c31a31-9468-4470-baaa-33f0192ecaff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/fe63bde9-5740-4f34-a66f-128f28fa152d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.885992Z","retention":7},"created_at":"2023-10-02T20:08:44.885992Z","endpoint":{"id":"b412d8fa-e7db-45fe-9946-7ea89293156b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":20455},"endpoints":[{"id":"b412d8fa-e7db-45fe-9946-7ea89293156b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":20455}],"engine":"FerretDB-1","id":"fe63bde9-5740-4f34-a66f-128f28fa152d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_database","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1084" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:06 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - dd01941d-351c-4dfb-86ec-984ce956519f + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/fe63bde9-5740-4f34-a66f-128f28fa152d/databases?name=test-document_db-database-basic&order_by=name_asc + method: GET + response: + body: '{"databases":[{"managed":true,"name":"test-document_db-database-basic","owner":"_rdb_superadmin","size":8758051}],"total_count":1}' + headers: + Content-Length: + - "134" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:06 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9738a99e-1306-48af-9e91-10e55631979e + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/fe63bde9-5740-4f34-a66f-128f28fa152d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.885992Z","retention":7},"created_at":"2023-10-02T20:08:44.885992Z","endpoint":{"id":"b412d8fa-e7db-45fe-9946-7ea89293156b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":20455},"endpoints":[{"id":"b412d8fa-e7db-45fe-9946-7ea89293156b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":20455}],"engine":"FerretDB-1","id":"fe63bde9-5740-4f34-a66f-128f28fa152d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_database","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1084" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:07 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b621903d-b9d1-438b-b522-55d0cc965544 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/fe63bde9-5740-4f34-a66f-128f28fa152d/databases/test-document_db-database-basic + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:07 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 906be57d-8797-4b63-a861-e2b5c6ca5371 + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/fe63bde9-5740-4f34-a66f-128f28fa152d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.885992Z","retention":7},"created_at":"2023-10-02T20:08:44.885992Z","endpoint":{"id":"b412d8fa-e7db-45fe-9946-7ea89293156b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":20455},"endpoints":[{"id":"b412d8fa-e7db-45fe-9946-7ea89293156b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":20455}],"engine":"FerretDB-1","id":"fe63bde9-5740-4f34-a66f-128f28fa152d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_database","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1084" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:08 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ad37372c-3b13-4f48-acf2-07b9c8346d99 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/fe63bde9-5740-4f34-a66f-128f28fa152d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.885992Z","retention":7},"created_at":"2023-10-02T20:08:44.885992Z","endpoint":{"id":"b412d8fa-e7db-45fe-9946-7ea89293156b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":20455},"endpoints":[{"id":"b412d8fa-e7db-45fe-9946-7ea89293156b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":20455}],"engine":"FerretDB-1","id":"fe63bde9-5740-4f34-a66f-128f28fa152d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_database","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1084" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:11 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 07328c10-34ed-48fa-9b81-59a00540c87b + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/fe63bde9-5740-4f34-a66f-128f28fa152d + method: DELETE + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.885992Z","retention":7},"created_at":"2023-10-02T20:08:44.885992Z","endpoint":{"id":"b412d8fa-e7db-45fe-9946-7ea89293156b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":20455},"endpoints":[{"id":"b412d8fa-e7db-45fe-9946-7ea89293156b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":20455}],"engine":"FerretDB-1","id":"fe63bde9-5740-4f34-a66f-128f28fa152d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"deleting","tags":["terraform-test","scaleway_document_db_database","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1087" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:12 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 99278391-7a61-48f5-aaab-f23614477167 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/fe63bde9-5740-4f34-a66f-128f28fa152d + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.885992Z","retention":7},"created_at":"2023-10-02T20:08:44.885992Z","endpoint":{"id":"b412d8fa-e7db-45fe-9946-7ea89293156b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":20455},"endpoints":[{"id":"b412d8fa-e7db-45fe-9946-7ea89293156b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":20455}],"engine":"FerretDB-1","id":"fe63bde9-5740-4f34-a66f-128f28fa152d","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-database-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"deleting","tags":["terraform-test","scaleway_document_db_database","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1087" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:13 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b1ed992b-ffc7-4ae7-a4d3-8098a0103dd4 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/fe63bde9-5740-4f34-a66f-128f28fa152d + method: GET + response: + body: '{"message":"resource is not found","resource":"instance","resource_id":"fe63bde9-5740-4f34-a66f-128f28fa152d","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:44 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 162f0c34-1f85-4179-a923-4f24acf58f7a + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/fe63bde9-5740-4f34-a66f-128f28fa152d + method: DELETE + response: + body: '{"message":"resource is not found","resource":"instance","resource_id":"fe63bde9-5740-4f34-a66f-128f28fa152d","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:44 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9e2f851d-7953-4bb4-8a82-7e6482734dd7 + status: 404 Not Found + code: 404 + duration: "" diff --git a/scaleway/testdata/document-db-instance-basic.cassette.yaml b/scaleway/testdata/document-db-instance-basic.cassette.yaml new file mode 100644 index 000000000..a1ecc8406 --- /dev/null +++ b/scaleway/testdata/document-db-instance-basic.cassette.yaml @@ -0,0 +1,566 @@ +--- +version: 1 +interactions: +- request: + body: '{"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","name":"test-documentdb-instance-basic","engine":"FerretDB-1","user_name":"my_initial_user","password":"thiZ_is_v\u0026ry_s3cret","node_type":"docdb-play2-pico","is_ha_cluster":false,"disable_backup":false,"tags":["terraform-test","scaleway_document_db_instance","minimal"],"init_settings":null,"volume_type":"bssd","volume_size":20000000000,"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.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances + method: POST + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.966122Z","retention":7},"created_at":"2023-10-02T20:08:44.966122Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"00d1d864-d3ae-4df8-a665-dfef4c4b389e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "823" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:08:45 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d6da0b33-0236-4b6d-93a6-c8efe1b7f6f0 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/00d1d864-d3ae-4df8-a665-dfef4c4b389e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.966122Z","retention":7},"created_at":"2023-10-02T20:08:44.966122Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"00d1d864-d3ae-4df8-a665-dfef4c4b389e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "823" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:08:45 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d2997d3b-7f5f-4bf9-bdb8-e3ade0dd71ea + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/00d1d864-d3ae-4df8-a665-dfef4c4b389e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.966122Z","retention":7},"created_at":"2023-10-02T20:08:44.966122Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"00d1d864-d3ae-4df8-a665-dfef4c4b389e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "823" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:09:20 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3c879e1e-a721-44d8-a16b-1465a411d94e + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/00d1d864-d3ae-4df8-a665-dfef4c4b389e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.966122Z","retention":7},"created_at":"2023-10-02T20:08:44.966122Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"00d1d864-d3ae-4df8-a665-dfef4c4b389e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "823" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:09:50 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ca5efb7d-225d-428b-bf57-57304177ebb5 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/00d1d864-d3ae-4df8-a665-dfef4c4b389e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.966122Z","retention":7},"created_at":"2023-10-02T20:08:44.966122Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"00d1d864-d3ae-4df8-a665-dfef4c4b389e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "823" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:10:21 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c09673ca-b494-4e17-9077-77f7f5beffc4 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/00d1d864-d3ae-4df8-a665-dfef4c4b389e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.966122Z","retention":7},"created_at":"2023-10-02T20:08:44.966122Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"00d1d864-d3ae-4df8-a665-dfef4c4b389e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "823" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:10:51 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d486adb8-bc4c-46b8-849e-42e81d15e846 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/00d1d864-d3ae-4df8-a665-dfef4c4b389e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.966122Z","retention":7},"created_at":"2023-10-02T20:08:44.966122Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"00d1d864-d3ae-4df8-a665-dfef4c4b389e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "823" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:11:22 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 79f074ac-7b96-4c46-be73-7bcfbb956f73 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/00d1d864-d3ae-4df8-a665-dfef4c4b389e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.966122Z","retention":7},"created_at":"2023-10-02T20:08:44.966122Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"00d1d864-d3ae-4df8-a665-dfef4c4b389e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "823" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:02 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c635ca5b-e54c-42c3-b6e9-1e5815a11c6a + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/00d1d864-d3ae-4df8-a665-dfef4c4b389e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.966122Z","retention":7},"created_at":"2023-10-02T20:08:44.966122Z","endpoint":{"id":"9269064a-0c89-4bcd-aa63-f8e778ae4105","ip":"51.159.26.243","load_balancer":{},"name":null,"port":6075},"endpoints":[{"id":"9269064a-0c89-4bcd-aa63-f8e778ae4105","ip":"51.159.26.243","load_balancer":{},"name":null,"port":6075}],"engine":"FerretDB-1","id":"00d1d864-d3ae-4df8-a665-dfef4c4b389e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1079" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:33 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0b5c7d04-358d-4634-9215-a6bc813bccf3 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/00d1d864-d3ae-4df8-a665-dfef4c4b389e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.966122Z","retention":7},"created_at":"2023-10-02T20:08:44.966122Z","endpoint":{"id":"9269064a-0c89-4bcd-aa63-f8e778ae4105","ip":"51.159.26.243","load_balancer":{},"name":null,"port":6075},"endpoints":[{"id":"9269064a-0c89-4bcd-aa63-f8e778ae4105","ip":"51.159.26.243","load_balancer":{},"name":null,"port":6075}],"engine":"FerretDB-1","id":"00d1d864-d3ae-4df8-a665-dfef4c4b389e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1079" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:33 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 207f1470-ed6d-4f15-84e4-83d518f381e8 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/00d1d864-d3ae-4df8-a665-dfef4c4b389e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.966122Z","retention":7},"created_at":"2023-10-02T20:08:44.966122Z","endpoint":{"id":"9269064a-0c89-4bcd-aa63-f8e778ae4105","ip":"51.159.26.243","load_balancer":{},"name":null,"port":6075},"endpoints":[{"id":"9269064a-0c89-4bcd-aa63-f8e778ae4105","ip":"51.159.26.243","load_balancer":{},"name":null,"port":6075}],"engine":"FerretDB-1","id":"00d1d864-d3ae-4df8-a665-dfef4c4b389e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1079" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:33 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d2d0412d-186d-4950-935b-01ab3df0dd49 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/00d1d864-d3ae-4df8-a665-dfef4c4b389e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.966122Z","retention":7},"created_at":"2023-10-02T20:08:44.966122Z","endpoint":{"id":"9269064a-0c89-4bcd-aa63-f8e778ae4105","ip":"51.159.26.243","load_balancer":{},"name":null,"port":6075},"endpoints":[{"id":"9269064a-0c89-4bcd-aa63-f8e778ae4105","ip":"51.159.26.243","load_balancer":{},"name":null,"port":6075}],"engine":"FerretDB-1","id":"00d1d864-d3ae-4df8-a665-dfef4c4b389e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1079" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:34 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 49e770a3-a3d2-43fd-8da0-97153f173303 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/00d1d864-d3ae-4df8-a665-dfef4c4b389e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.966122Z","retention":7},"created_at":"2023-10-02T20:08:44.966122Z","endpoint":{"id":"9269064a-0c89-4bcd-aa63-f8e778ae4105","ip":"51.159.26.243","load_balancer":{},"name":null,"port":6075},"endpoints":[{"id":"9269064a-0c89-4bcd-aa63-f8e778ae4105","ip":"51.159.26.243","load_balancer":{},"name":null,"port":6075}],"engine":"FerretDB-1","id":"00d1d864-d3ae-4df8-a665-dfef4c4b389e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1079" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:34 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 81a156fa-8b21-405b-a65e-432e0a1c926f + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/00d1d864-d3ae-4df8-a665-dfef4c4b389e + method: DELETE + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.966122Z","retention":7},"created_at":"2023-10-02T20:08:44.966122Z","endpoint":{"id":"9269064a-0c89-4bcd-aa63-f8e778ae4105","ip":"51.159.26.243","load_balancer":{},"name":null,"port":6075},"endpoints":[{"id":"9269064a-0c89-4bcd-aa63-f8e778ae4105","ip":"51.159.26.243","load_balancer":{},"name":null,"port":6075}],"engine":"FerretDB-1","id":"00d1d864-d3ae-4df8-a665-dfef4c4b389e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"deleting","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1082" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:34 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 642055fd-b0f7-4dd1-a067-697b60ae098d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/00d1d864-d3ae-4df8-a665-dfef4c4b389e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.966122Z","retention":7},"created_at":"2023-10-02T20:08:44.966122Z","endpoint":{"id":"9269064a-0c89-4bcd-aa63-f8e778ae4105","ip":"51.159.26.243","load_balancer":{},"name":null,"port":6075},"endpoints":[{"id":"9269064a-0c89-4bcd-aa63-f8e778ae4105","ip":"51.159.26.243","load_balancer":{},"name":null,"port":6075}],"engine":"FerretDB-1","id":"00d1d864-d3ae-4df8-a665-dfef4c4b389e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-basic","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"deleting","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1082" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:35 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a1684a34-5ad7-43fa-951d-e78102d88b6a + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/00d1d864-d3ae-4df8-a665-dfef4c4b389e + method: GET + response: + body: '{"message":"resource is not found","resource":"instance","resource_id":"00d1d864-d3ae-4df8-a665-dfef4c4b389e","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:13:05 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 47600fda-c49a-40e6-8901-072e914a104f + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/00d1d864-d3ae-4df8-a665-dfef4c4b389e + method: DELETE + response: + body: '{"message":"resource is not found","resource":"instance","resource_id":"00d1d864-d3ae-4df8-a665-dfef4c4b389e","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:13:07 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3522ed1f-c1a6-4b3a-a218-6b7f15e19586 + status: 404 Not Found + code: 404 + duration: "" diff --git a/scaleway/testdata/document-db-private-network-endpoint-basic.cassette.yaml b/scaleway/testdata/document-db-private-network-endpoint-basic.cassette.yaml new file mode 100644 index 000000000..68bc96def --- /dev/null +++ b/scaleway/testdata/document-db-private-network-endpoint-basic.cassette.yaml @@ -0,0 +1,2621 @@ +--- +version: 1 +interactions: +- request: + body: '{"name":"my_private_network","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","tags":null,"subnets":null,"vpc_id":null}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks + method: POST + response: + body: '{"created_at":"2023-10-02T20:40:58.456984Z","dhcp_enabled":true,"id":"f7f9617c-f287-43c8-8b4f-f5aeebfae52a","name":"my_private_network","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","subnets":[{"created_at":"2023-10-02T20:40:58.456984Z","id":"56e357ef-338f-409c-84ad-947a1f6e4244","subnet":"172.16.16.0/22","updated_at":"2023-10-02T20:40:58.456984Z"},{"created_at":"2023-10-02T20:40:58.456984Z","id":"48e3922f-f6a2-4b4f-89a8-4f848c6f561b","subnet":"fdfc:1ffc:be97:2393::/64","updated_at":"2023-10-02T20:40:58.456984Z"}],"tags":[],"updated_at":"2023-10-02T20:40:58.456984Z","vpc_id":"f30db962-6029-4ae2-bb33-8b32693afadf"}' + headers: + Content-Length: + - "719" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:40:59 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2050ede1-8c6f-4579-b2ec-1297b3723713 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/f7f9617c-f287-43c8-8b4f-f5aeebfae52a + method: GET + response: + body: '{"created_at":"2023-10-02T20:40:58.456984Z","dhcp_enabled":true,"id":"f7f9617c-f287-43c8-8b4f-f5aeebfae52a","name":"my_private_network","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","subnets":[{"created_at":"2023-10-02T20:40:58.456984Z","id":"56e357ef-338f-409c-84ad-947a1f6e4244","subnet":"172.16.16.0/22","updated_at":"2023-10-02T20:40:58.456984Z"},{"created_at":"2023-10-02T20:40:58.456984Z","id":"48e3922f-f6a2-4b4f-89a8-4f848c6f561b","subnet":"fdfc:1ffc:be97:2393::/64","updated_at":"2023-10-02T20:40:58.456984Z"}],"tags":[],"updated_at":"2023-10-02T20:40:58.456984Z","vpc_id":"f30db962-6029-4ae2-bb33-8b32693afadf"}' + headers: + Content-Length: + - "719" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:40:59 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 231a0d8b-8719-4684-9aad-1a901052fc5e + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","name":"test-documentdb-instance-endpoint-basic","engine":"FerretDB-1","user_name":"my_initial_user","password":"thiZ_is_v\u0026ry_s3cret","node_type":"docdb-play2-pico","is_ha_cluster":false,"disable_backup":false,"tags":null,"init_settings":null,"volume_type":"bssd","volume_size":20000000000,"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.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances + method: POST + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:40:59.102717Z","retention":7},"created_at":"2023-10-02T20:40:59.102717Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"4e83edf2-5e62-4bcd-8f05-1f34c756aee5","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "772" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:40:59 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0d3dad43-9dc7-4714-b95f-55179b517ccd + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/4e83edf2-5e62-4bcd-8f05-1f34c756aee5 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:40:59.102717Z","retention":7},"created_at":"2023-10-02T20:40:59.102717Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"4e83edf2-5e62-4bcd-8f05-1f34c756aee5","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "772" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:40:59 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e30ee475-6a9f-4992-aaa9-a3db0b0e3ed0 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/4e83edf2-5e62-4bcd-8f05-1f34c756aee5 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:40:59.102717Z","retention":7},"created_at":"2023-10-02T20:40:59.102717Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"4e83edf2-5e62-4bcd-8f05-1f34c756aee5","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "772" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20: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: + - 4dbb45a7-4f98-4ea1-9e26-e446a98f2d9e + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/4e83edf2-5e62-4bcd-8f05-1f34c756aee5 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:40:59.102717Z","retention":7},"created_at":"2023-10-02T20:40:59.102717Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"4e83edf2-5e62-4bcd-8f05-1f34c756aee5","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "772" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:41:59 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 126becd2-c83a-42a6-ac82-d33fc2068e14 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/4e83edf2-5e62-4bcd-8f05-1f34c756aee5 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:40:59.102717Z","retention":7},"created_at":"2023-10-02T20:40:59.102717Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"4e83edf2-5e62-4bcd-8f05-1f34c756aee5","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "772" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:42:29 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5af083a6-f931-4f7c-a572-936ab4f3848a + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/4e83edf2-5e62-4bcd-8f05-1f34c756aee5 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:40:59.102717Z","retention":7},"created_at":"2023-10-02T20:40:59.102717Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"4e83edf2-5e62-4bcd-8f05-1f34c756aee5","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "772" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:43:00 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b7e1a1b3-1a48-4818-9472-1080c037d1b3 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/4e83edf2-5e62-4bcd-8f05-1f34c756aee5 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:40:59.102717Z","retention":7},"created_at":"2023-10-02T20:40:59.102717Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"4e83edf2-5e62-4bcd-8f05-1f34c756aee5","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "772" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:43:30 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 72ddfabb-fe6c-4645-b678-58693a878709 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/4e83edf2-5e62-4bcd-8f05-1f34c756aee5 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:40:59.102717Z","retention":7},"created_at":"2023-10-02T20:40:59.102717Z","endpoint":{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306},"endpoints":[{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306}],"engine":"FerretDB-1","id":"4e83edf2-5e62-4bcd-8f05-1f34c756aee5","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1032" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:44:00 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ac879dc3-fac5-4e60-a87c-b24ca3580d74 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/4e83edf2-5e62-4bcd-8f05-1f34c756aee5 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:40:59.102717Z","retention":7},"created_at":"2023-10-02T20:40:59.102717Z","endpoint":{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306},"endpoints":[{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306}],"engine":"FerretDB-1","id":"4e83edf2-5e62-4bcd-8f05-1f34c756aee5","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1032" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:44:01 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f897f06f-24b3-422b-9ce4-acf848f2b279 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/4e83edf2-5e62-4bcd-8f05-1f34c756aee5 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:40:59.102717Z","retention":7},"created_at":"2023-10-02T20:40:59.102717Z","endpoint":{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306},"endpoints":[{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306}],"engine":"FerretDB-1","id":"4e83edf2-5e62-4bcd-8f05-1f34c756aee5","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1032" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:44:01 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 10b913d2-90cd-4ea6-b678-b7f12ed9e372 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"endpoint_spec":{"private_network":{"private_network_id":"f7f9617c-f287-43c8-8b4f-f5aeebfae52a","service_ip":"172.16.32.3/22"}}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/4e83edf2-5e62-4bcd-8f05-1f34c756aee5/endpoints + method: POST + response: + body: '{"id":"21761f8f-941f-4c73-b8ad-c7ec97d2445c","ip":"172.16.32.3","name":null,"port":27017,"private_network":{"private_network_id":"f7f9617c-f287-43c8-8b4f-f5aeebfae52a","service_ip":"172.16.32.3/22","zone":"fr-par-1"}}' + headers: + Content-Length: + - "223" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:44:01 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 41a121dc-2662-4257-85cb-36002bb0c447 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/4e83edf2-5e62-4bcd-8f05-1f34c756aee5 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:40:59.102717Z","retention":7},"created_at":"2023-10-02T20:40:59.102717Z","endpoint":{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306},"endpoints":[{"id":"21761f8f-941f-4c73-b8ad-c7ec97d2445c","ip":"172.16.32.3","name":null,"port":27017,"private_network":{"private_network_id":"f7f9617c-f287-43c8-8b4f-f5aeebfae52a","service_ip":"172.16.32.3/22","zone":"fr-par-1"}},{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306}],"engine":"FerretDB-1","id":"4e83edf2-5e62-4bcd-8f05-1f34c756aee5","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1264" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:44:01 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a923f0cb-3704-4c68-a864-a97f51590e0a + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/4e83edf2-5e62-4bcd-8f05-1f34c756aee5 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:40:59.102717Z","retention":7},"created_at":"2023-10-02T20:40:59.102717Z","endpoint":{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306},"endpoints":[{"id":"21761f8f-941f-4c73-b8ad-c7ec97d2445c","ip":"172.16.32.3","name":null,"port":27017,"private_network":{"private_network_id":"f7f9617c-f287-43c8-8b4f-f5aeebfae52a","service_ip":"172.16.32.3/22","zone":"fr-par-1"}},{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306}],"engine":"FerretDB-1","id":"4e83edf2-5e62-4bcd-8f05-1f34c756aee5","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1257" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:44:32 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 899adba3-0e8a-413b-a578-7d7e7f993f10 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/endpoints/21761f8f-941f-4c73-b8ad-c7ec97d2445c + method: GET + response: + body: '{"id":"21761f8f-941f-4c73-b8ad-c7ec97d2445c","ip":"172.16.32.3","name":null,"port":27017,"private_network":{"private_network_id":"f7f9617c-f287-43c8-8b4f-f5aeebfae52a","service_ip":"172.16.32.3/22","zone":"fr-par-1"}}' + headers: + Content-Length: + - "223" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:44:32 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a5480aae-469e-4d19-a23e-246384190040 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/endpoints/21761f8f-941f-4c73-b8ad-c7ec97d2445c + method: GET + response: + body: '{"id":"21761f8f-941f-4c73-b8ad-c7ec97d2445c","ip":"172.16.32.3","name":null,"port":27017,"private_network":{"private_network_id":"f7f9617c-f287-43c8-8b4f-f5aeebfae52a","service_ip":"172.16.32.3/22","zone":"fr-par-1"}}' + headers: + Content-Length: + - "223" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:44:32 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f64153b6-7b0b-4da1-a6d0-e0ed1ed53ff2 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/f7f9617c-f287-43c8-8b4f-f5aeebfae52a + method: GET + response: + body: '{"created_at":"2023-10-02T20:40:58.456984Z","dhcp_enabled":true,"id":"f7f9617c-f287-43c8-8b4f-f5aeebfae52a","name":"my_private_network","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","subnets":[{"created_at":"2023-10-02T20:40:58.456984Z","id":"56e357ef-338f-409c-84ad-947a1f6e4244","subnet":"172.16.16.0/22","updated_at":"2023-10-02T20:40:58.456984Z"},{"created_at":"2023-10-02T20:40:58.456984Z","id":"48e3922f-f6a2-4b4f-89a8-4f848c6f561b","subnet":"fdfc:1ffc:be97:2393::/64","updated_at":"2023-10-02T20:40:58.456984Z"}],"tags":[],"updated_at":"2023-10-02T20:40:58.456984Z","vpc_id":"f30db962-6029-4ae2-bb33-8b32693afadf"}' + headers: + Content-Length: + - "719" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:44:32 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7eb7f466-b30b-46e7-a8ab-ccc90dbf2418 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/4e83edf2-5e62-4bcd-8f05-1f34c756aee5 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:40:59.102717Z","retention":7},"created_at":"2023-10-02T20:40:59.102717Z","endpoint":{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306},"endpoints":[{"id":"21761f8f-941f-4c73-b8ad-c7ec97d2445c","ip":"172.16.32.3","name":null,"port":27017,"private_network":{"private_network_id":"f7f9617c-f287-43c8-8b4f-f5aeebfae52a","service_ip":"172.16.32.3/22","zone":"fr-par-1"}},{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306}],"engine":"FerretDB-1","id":"4e83edf2-5e62-4bcd-8f05-1f34c756aee5","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1257" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:44:32 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 614f94eb-2d98-4385-b1f7-9f5ad0790c84 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/endpoints/21761f8f-941f-4c73-b8ad-c7ec97d2445c + method: GET + response: + body: '{"id":"21761f8f-941f-4c73-b8ad-c7ec97d2445c","ip":"172.16.32.3","name":null,"port":27017,"private_network":{"private_network_id":"f7f9617c-f287-43c8-8b4f-f5aeebfae52a","service_ip":"172.16.32.3/22","zone":"fr-par-1"}}' + headers: + Content-Length: + - "223" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:44:33 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8c97c019-7e5e-4351-8ba9-9fed1dab7968 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/f7f9617c-f287-43c8-8b4f-f5aeebfae52a + method: GET + response: + body: '{"created_at":"2023-10-02T20:40:58.456984Z","dhcp_enabled":true,"id":"f7f9617c-f287-43c8-8b4f-f5aeebfae52a","name":"my_private_network","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","subnets":[{"created_at":"2023-10-02T20:40:58.456984Z","id":"56e357ef-338f-409c-84ad-947a1f6e4244","subnet":"172.16.16.0/22","updated_at":"2023-10-02T20:40:58.456984Z"},{"created_at":"2023-10-02T20:40:58.456984Z","id":"48e3922f-f6a2-4b4f-89a8-4f848c6f561b","subnet":"fdfc:1ffc:be97:2393::/64","updated_at":"2023-10-02T20:40:58.456984Z"}],"tags":[],"updated_at":"2023-10-02T20:40:58.456984Z","vpc_id":"f30db962-6029-4ae2-bb33-8b32693afadf"}' + headers: + Content-Length: + - "719" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:44:33 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1b003612-37f8-475b-98f0-7e5c6ea3ea1f + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/4e83edf2-5e62-4bcd-8f05-1f34c756aee5 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:40:59.102717Z","retention":7},"created_at":"2023-10-02T20:40:59.102717Z","endpoint":{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306},"endpoints":[{"id":"21761f8f-941f-4c73-b8ad-c7ec97d2445c","ip":"172.16.32.3","name":null,"port":27017,"private_network":{"private_network_id":"f7f9617c-f287-43c8-8b4f-f5aeebfae52a","service_ip":"172.16.32.3/22","zone":"fr-par-1"}},{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306}],"engine":"FerretDB-1","id":"4e83edf2-5e62-4bcd-8f05-1f34c756aee5","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1257" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:44:33 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3a824ac7-9807-41c6-b002-c85635539c24 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/endpoints/21761f8f-941f-4c73-b8ad-c7ec97d2445c + method: GET + response: + body: '{"id":"21761f8f-941f-4c73-b8ad-c7ec97d2445c","ip":"172.16.32.3","name":null,"port":27017,"private_network":{"private_network_id":"f7f9617c-f287-43c8-8b4f-f5aeebfae52a","service_ip":"172.16.32.3/22","zone":"fr-par-1"}}' + headers: + Content-Length: + - "223" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:44:33 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 34fd0b7d-0509-4917-8678-b754c921d000 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"name":"my vpc","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","tags":null}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs + method: POST + response: + body: '{"created_at":"2023-10-02T20:44:34.152362Z","id":"98fa9839-c13e-4710-a322-0ada29e90aca","is_default":false,"name":"my + vpc","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","private_network_count":0,"project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","tags":[],"updated_at":"2023-10-02T20:44:34.152362Z"}' + headers: + Content-Length: + - "338" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:44:34 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f7ec7c65-1928-49b2-9f18-c34d468282c4 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs/98fa9839-c13e-4710-a322-0ada29e90aca + method: GET + response: + body: '{"created_at":"2023-10-02T20:44:34.152362Z","id":"98fa9839-c13e-4710-a322-0ada29e90aca","is_default":false,"name":"my + vpc","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","private_network_count":0,"project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","tags":[],"updated_at":"2023-10-02T20:44:34.152362Z"}' + headers: + Content-Length: + - "338" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:44:34 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d2238f54-ec66-402e-afb4-24199bdf9f5e + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"name":"tf-pn-great-vaughan","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","tags":null,"subnets":["172.16.64.0/22"],"vpc_id":"98fa9839-c13e-4710-a322-0ada29e90aca"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks + method: POST + response: + body: '{"created_at":"2023-10-02T20:44:34.549388Z","dhcp_enabled":true,"id":"92475e80-64b6-45b7-bbcb-784c6ca138b1","name":"tf-pn-great-vaughan","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","subnets":[{"created_at":"2023-10-02T20:44:34.549388Z","id":"dad482c9-4f1b-495a-928d-263af44aad96","subnet":"172.16.64.0/22","updated_at":"2023-10-02T20:44:34.549388Z"},{"created_at":"2023-10-02T20:44:34.549388Z","id":"de16145f-858b-439d-b8e6-8d85331fa04a","subnet":"fdfc:1ffc:be97:da0b::/64","updated_at":"2023-10-02T20:44:34.549388Z"}],"tags":[],"updated_at":"2023-10-02T20:44:34.549388Z","vpc_id":"98fa9839-c13e-4710-a322-0ada29e90aca"}' + headers: + Content-Length: + - "720" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:44:35 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f9f859dd-5423-4b4e-b990-b81de02b5976 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/92475e80-64b6-45b7-bbcb-784c6ca138b1 + method: GET + response: + body: '{"created_at":"2023-10-02T20:44:34.549388Z","dhcp_enabled":true,"id":"92475e80-64b6-45b7-bbcb-784c6ca138b1","name":"tf-pn-great-vaughan","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","subnets":[{"created_at":"2023-10-02T20:44:34.549388Z","id":"dad482c9-4f1b-495a-928d-263af44aad96","subnet":"172.16.64.0/22","updated_at":"2023-10-02T20:44:34.549388Z"},{"created_at":"2023-10-02T20:44:34.549388Z","id":"de16145f-858b-439d-b8e6-8d85331fa04a","subnet":"fdfc:1ffc:be97:da0b::/64","updated_at":"2023-10-02T20:44:34.549388Z"}],"tags":[],"updated_at":"2023-10-02T20:44:34.549388Z","vpc_id":"98fa9839-c13e-4710-a322-0ada29e90aca"}' + headers: + Content-Length: + - "720" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:44:35 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8166ef56-0cae-4f97-a368-f94746010d42 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/endpoints/21761f8f-941f-4c73-b8ad-c7ec97d2445c + method: GET + response: + body: '{"id":"21761f8f-941f-4c73-b8ad-c7ec97d2445c","ip":"172.16.32.3","name":null,"port":27017,"private_network":{"private_network_id":"f7f9617c-f287-43c8-8b4f-f5aeebfae52a","service_ip":"172.16.32.3/22","zone":"fr-par-1"}}' + headers: + Content-Length: + - "223" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:44:35 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - fa2bb495-9517-41ab-98a2-48c1905054c7 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/f7f9617c-f287-43c8-8b4f-f5aeebfae52a + method: GET + response: + body: '{"created_at":"2023-10-02T20:40:58.456984Z","dhcp_enabled":true,"id":"f7f9617c-f287-43c8-8b4f-f5aeebfae52a","name":"my_private_network","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","subnets":[{"created_at":"2023-10-02T20:40:58.456984Z","id":"56e357ef-338f-409c-84ad-947a1f6e4244","subnet":"172.16.16.0/22","updated_at":"2023-10-02T20:40:58.456984Z"},{"created_at":"2023-10-02T20:40:58.456984Z","id":"48e3922f-f6a2-4b4f-89a8-4f848c6f561b","subnet":"fdfc:1ffc:be97:2393::/64","updated_at":"2023-10-02T20:40:58.456984Z"}],"tags":[],"updated_at":"2023-10-02T20:40:58.456984Z","vpc_id":"f30db962-6029-4ae2-bb33-8b32693afadf"}' + headers: + Content-Length: + - "719" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:44:36 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2670ea3c-d307-4993-b1a2-14366e566a50 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs/98fa9839-c13e-4710-a322-0ada29e90aca + method: GET + response: + body: '{"created_at":"2023-10-02T20:44:34.152362Z","id":"98fa9839-c13e-4710-a322-0ada29e90aca","is_default":false,"name":"my + vpc","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","private_network_count":1,"project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","tags":[],"updated_at":"2023-10-02T20:44:34.152362Z"}' + headers: + Content-Length: + - "338" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:44:36 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0e126f1d-d1c1-4500-9dd4-626ee2952908 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/4e83edf2-5e62-4bcd-8f05-1f34c756aee5 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:40:59.102717Z","retention":7},"created_at":"2023-10-02T20:40:59.102717Z","endpoint":{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306},"endpoints":[{"id":"21761f8f-941f-4c73-b8ad-c7ec97d2445c","ip":"172.16.32.3","name":null,"port":27017,"private_network":{"private_network_id":"f7f9617c-f287-43c8-8b4f-f5aeebfae52a","service_ip":"172.16.32.3/22","zone":"fr-par-1"}},{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306}],"engine":"FerretDB-1","id":"4e83edf2-5e62-4bcd-8f05-1f34c756aee5","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1257" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:44:36 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f8b4aa60-01f6-484a-91e0-a328aeb20b67 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/92475e80-64b6-45b7-bbcb-784c6ca138b1 + method: GET + response: + body: '{"created_at":"2023-10-02T20:44:34.549388Z","dhcp_enabled":true,"id":"92475e80-64b6-45b7-bbcb-784c6ca138b1","name":"tf-pn-great-vaughan","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","subnets":[{"created_at":"2023-10-02T20:44:34.549388Z","id":"dad482c9-4f1b-495a-928d-263af44aad96","subnet":"172.16.64.0/22","updated_at":"2023-10-02T20:44:34.549388Z"},{"created_at":"2023-10-02T20:44:34.549388Z","id":"de16145f-858b-439d-b8e6-8d85331fa04a","subnet":"fdfc:1ffc:be97:da0b::/64","updated_at":"2023-10-02T20:44:34.549388Z"}],"tags":[],"updated_at":"2023-10-02T20:44:34.549388Z","vpc_id":"98fa9839-c13e-4710-a322-0ada29e90aca"}' + headers: + Content-Length: + - "720" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:44:36 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f05ff4e7-d8a1-4843-a60b-a283d6830cec + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/endpoints/21761f8f-941f-4c73-b8ad-c7ec97d2445c + method: GET + response: + body: '{"id":"21761f8f-941f-4c73-b8ad-c7ec97d2445c","ip":"172.16.32.3","name":null,"port":27017,"private_network":{"private_network_id":"f7f9617c-f287-43c8-8b4f-f5aeebfae52a","service_ip":"172.16.32.3/22","zone":"fr-par-1"}}' + headers: + Content-Length: + - "223" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:44:36 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 33f4082e-ca2d-4c06-8b21-c67dd095fd14 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/f7f9617c-f287-43c8-8b4f-f5aeebfae52a + method: GET + response: + body: '{"created_at":"2023-10-02T20:40:58.456984Z","dhcp_enabled":true,"id":"f7f9617c-f287-43c8-8b4f-f5aeebfae52a","name":"my_private_network","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","subnets":[{"created_at":"2023-10-02T20:40:58.456984Z","id":"56e357ef-338f-409c-84ad-947a1f6e4244","subnet":"172.16.16.0/22","updated_at":"2023-10-02T20:40:58.456984Z"},{"created_at":"2023-10-02T20:40:58.456984Z","id":"48e3922f-f6a2-4b4f-89a8-4f848c6f561b","subnet":"fdfc:1ffc:be97:2393::/64","updated_at":"2023-10-02T20:40:58.456984Z"}],"tags":[],"updated_at":"2023-10-02T20:40:58.456984Z","vpc_id":"f30db962-6029-4ae2-bb33-8b32693afadf"}' + headers: + Content-Length: + - "719" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:44:36 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0823a097-48ec-46c5-9a10-befd7f4f104f + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs/98fa9839-c13e-4710-a322-0ada29e90aca + method: GET + response: + body: '{"created_at":"2023-10-02T20:44:34.152362Z","id":"98fa9839-c13e-4710-a322-0ada29e90aca","is_default":false,"name":"my + vpc","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","private_network_count":1,"project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","tags":[],"updated_at":"2023-10-02T20:44:34.152362Z"}' + headers: + Content-Length: + - "338" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:44:36 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 52178734-e27a-47cc-8911-481740c91d1f + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/4e83edf2-5e62-4bcd-8f05-1f34c756aee5 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:40:59.102717Z","retention":7},"created_at":"2023-10-02T20:40:59.102717Z","endpoint":{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306},"endpoints":[{"id":"21761f8f-941f-4c73-b8ad-c7ec97d2445c","ip":"172.16.32.3","name":null,"port":27017,"private_network":{"private_network_id":"f7f9617c-f287-43c8-8b4f-f5aeebfae52a","service_ip":"172.16.32.3/22","zone":"fr-par-1"}},{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306}],"engine":"FerretDB-1","id":"4e83edf2-5e62-4bcd-8f05-1f34c756aee5","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1257" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:44:36 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8729aee0-e877-4b31-a538-835b9bf6a6c2 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/92475e80-64b6-45b7-bbcb-784c6ca138b1 + method: GET + response: + body: '{"created_at":"2023-10-02T20:44:34.549388Z","dhcp_enabled":true,"id":"92475e80-64b6-45b7-bbcb-784c6ca138b1","name":"tf-pn-great-vaughan","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","subnets":[{"created_at":"2023-10-02T20:44:34.549388Z","id":"dad482c9-4f1b-495a-928d-263af44aad96","subnet":"172.16.64.0/22","updated_at":"2023-10-02T20:44:34.549388Z"},{"created_at":"2023-10-02T20:44:34.549388Z","id":"de16145f-858b-439d-b8e6-8d85331fa04a","subnet":"fdfc:1ffc:be97:da0b::/64","updated_at":"2023-10-02T20:44:34.549388Z"}],"tags":[],"updated_at":"2023-10-02T20:44:34.549388Z","vpc_id":"98fa9839-c13e-4710-a322-0ada29e90aca"}' + headers: + Content-Length: + - "720" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:44:36 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f8cf3b74-9970-4cc5-9874-6431cc31abcf + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/endpoints/21761f8f-941f-4c73-b8ad-c7ec97d2445c + method: GET + response: + body: '{"id":"21761f8f-941f-4c73-b8ad-c7ec97d2445c","ip":"172.16.32.3","name":null,"port":27017,"private_network":{"private_network_id":"f7f9617c-f287-43c8-8b4f-f5aeebfae52a","service_ip":"172.16.32.3/22","zone":"fr-par-1"}}' + headers: + Content-Length: + - "223" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:44:36 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 35ece758-885d-420f-957c-6087698f98c3 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/endpoints/21761f8f-941f-4c73-b8ad-c7ec97d2445c + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:44:37 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 13ff6f2f-5990-41ed-80d3-3aff21148caa + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/4e83edf2-5e62-4bcd-8f05-1f34c756aee5 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:40:59.102717Z","retention":7},"created_at":"2023-10-02T20:40:59.102717Z","endpoint":{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306},"endpoints":[{"id":"21761f8f-941f-4c73-b8ad-c7ec97d2445c","ip":"172.16.32.3","name":null,"port":27017,"private_network":{"private_network_id":"f7f9617c-f287-43c8-8b4f-f5aeebfae52a","service_ip":"172.16.32.3/22","zone":"fr-par-1"}},{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306}],"engine":"FerretDB-1","id":"4e83edf2-5e62-4bcd-8f05-1f34c756aee5","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"configuring","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1263" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:44:37 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7bce91ac-cd2a-4c98-9775-094a2a4654fd + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/4e83edf2-5e62-4bcd-8f05-1f34c756aee5 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:40:59.102717Z","retention":7},"created_at":"2023-10-02T20:40:59.102717Z","endpoint":{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306},"endpoints":[{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306}],"engine":"FerretDB-1","id":"4e83edf2-5e62-4bcd-8f05-1f34c756aee5","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1032" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:45:07 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 85a171a8-11fe-4f79-b13e-cef25f202256 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"endpoint_spec":{"private_network":{"private_network_id":"92475e80-64b6-45b7-bbcb-784c6ca138b1","service_ip":"172.16.64.4/22"}}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/4e83edf2-5e62-4bcd-8f05-1f34c756aee5/endpoints + method: POST + response: + body: '{"id":"2297fcb1-5394-4daf-a144-3b4c056fbd40","ip":"172.16.64.4","name":null,"port":27017,"private_network":{"private_network_id":"92475e80-64b6-45b7-bbcb-784c6ca138b1","service_ip":"172.16.64.4/22","zone":"fr-par-1"}}' + headers: + Content-Length: + - "223" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:45:09 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d60f07c1-7c9f-4f4b-b52c-fe0209b5ee49 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/4e83edf2-5e62-4bcd-8f05-1f34c756aee5 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:40:59.102717Z","retention":7},"created_at":"2023-10-02T20:40:59.102717Z","endpoint":{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306},"endpoints":[{"id":"2297fcb1-5394-4daf-a144-3b4c056fbd40","ip":"172.16.64.4","name":null,"port":27017,"private_network":{"private_network_id":"92475e80-64b6-45b7-bbcb-784c6ca138b1","service_ip":"172.16.64.4/22","zone":"fr-par-1"}},{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306}],"engine":"FerretDB-1","id":"4e83edf2-5e62-4bcd-8f05-1f34c756aee5","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1264" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:45:14 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2241f88a-8c78-40cc-801e-a497bf9cbdf6 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/4e83edf2-5e62-4bcd-8f05-1f34c756aee5 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:40:59.102717Z","retention":7},"created_at":"2023-10-02T20:40:59.102717Z","endpoint":{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306},"endpoints":[{"id":"2297fcb1-5394-4daf-a144-3b4c056fbd40","ip":"172.16.64.4","name":null,"port":27017,"private_network":{"private_network_id":"92475e80-64b6-45b7-bbcb-784c6ca138b1","service_ip":"172.16.64.4/22","zone":"fr-par-1"}},{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306}],"engine":"FerretDB-1","id":"4e83edf2-5e62-4bcd-8f05-1f34c756aee5","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1257" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:45:44 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 91b9b1bf-9087-47c0-9203-2e45e7d8de77 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/endpoints/2297fcb1-5394-4daf-a144-3b4c056fbd40 + method: GET + response: + body: '{"id":"2297fcb1-5394-4daf-a144-3b4c056fbd40","ip":"172.16.64.4","name":null,"port":27017,"private_network":{"private_network_id":"92475e80-64b6-45b7-bbcb-784c6ca138b1","service_ip":"172.16.64.4/22","zone":"fr-par-1"}}' + headers: + Content-Length: + - "223" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:45:44 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - dc93d19c-ae20-418c-a779-1a23dcff49c5 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/endpoints/2297fcb1-5394-4daf-a144-3b4c056fbd40 + method: GET + response: + body: '{"id":"2297fcb1-5394-4daf-a144-3b4c056fbd40","ip":"172.16.64.4","name":null,"port":27017,"private_network":{"private_network_id":"92475e80-64b6-45b7-bbcb-784c6ca138b1","service_ip":"172.16.64.4/22","zone":"fr-par-1"}}' + headers: + Content-Length: + - "223" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:45:45 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 87f09638-da59-4475-85fb-3c54f7c86cd6 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs/98fa9839-c13e-4710-a322-0ada29e90aca + method: GET + response: + body: '{"created_at":"2023-10-02T20:44:34.152362Z","id":"98fa9839-c13e-4710-a322-0ada29e90aca","is_default":false,"name":"my + vpc","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","private_network_count":1,"project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","tags":[],"updated_at":"2023-10-02T20:44:34.152362Z"}' + headers: + Content-Length: + - "338" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:45:45 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b940acbf-255f-410b-b4e6-2b7addfb08b2 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/f7f9617c-f287-43c8-8b4f-f5aeebfae52a + method: GET + response: + body: '{"created_at":"2023-10-02T20:40:58.456984Z","dhcp_enabled":true,"id":"f7f9617c-f287-43c8-8b4f-f5aeebfae52a","name":"my_private_network","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","subnets":[{"created_at":"2023-10-02T20:40:58.456984Z","id":"56e357ef-338f-409c-84ad-947a1f6e4244","subnet":"172.16.16.0/22","updated_at":"2023-10-02T20:40:58.456984Z"},{"created_at":"2023-10-02T20:40:58.456984Z","id":"48e3922f-f6a2-4b4f-89a8-4f848c6f561b","subnet":"fdfc:1ffc:be97:2393::/64","updated_at":"2023-10-02T20:40:58.456984Z"}],"tags":[],"updated_at":"2023-10-02T20:40:58.456984Z","vpc_id":"f30db962-6029-4ae2-bb33-8b32693afadf"}' + headers: + Content-Length: + - "719" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:45:45 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8b6d0ab7-bab1-44db-b6d1-1c79dd313952 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/4e83edf2-5e62-4bcd-8f05-1f34c756aee5 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:40:59.102717Z","retention":7},"created_at":"2023-10-02T20:40:59.102717Z","endpoint":{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306},"endpoints":[{"id":"2297fcb1-5394-4daf-a144-3b4c056fbd40","ip":"172.16.64.4","name":null,"port":27017,"private_network":{"private_network_id":"92475e80-64b6-45b7-bbcb-784c6ca138b1","service_ip":"172.16.64.4/22","zone":"fr-par-1"}},{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306}],"engine":"FerretDB-1","id":"4e83edf2-5e62-4bcd-8f05-1f34c756aee5","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1257" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:45:45 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a93ba2e6-99a1-4e90-bbf6-b2e9cb6569e1 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/92475e80-64b6-45b7-bbcb-784c6ca138b1 + method: GET + response: + body: '{"created_at":"2023-10-02T20:44:34.549388Z","dhcp_enabled":true,"id":"92475e80-64b6-45b7-bbcb-784c6ca138b1","name":"tf-pn-great-vaughan","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","subnets":[{"created_at":"2023-10-02T20:44:34.549388Z","id":"dad482c9-4f1b-495a-928d-263af44aad96","subnet":"172.16.64.0/22","updated_at":"2023-10-02T20:44:34.549388Z"},{"created_at":"2023-10-02T20:44:34.549388Z","id":"de16145f-858b-439d-b8e6-8d85331fa04a","subnet":"fdfc:1ffc:be97:da0b::/64","updated_at":"2023-10-02T20:44:34.549388Z"}],"tags":[],"updated_at":"2023-10-02T20:44:34.549388Z","vpc_id":"98fa9839-c13e-4710-a322-0ada29e90aca"}' + headers: + Content-Length: + - "720" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:45:45 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4f28a431-e9c4-4222-80b6-f7315e456900 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/endpoints/2297fcb1-5394-4daf-a144-3b4c056fbd40 + method: GET + response: + body: '{"id":"2297fcb1-5394-4daf-a144-3b4c056fbd40","ip":"172.16.64.4","name":null,"port":27017,"private_network":{"private_network_id":"92475e80-64b6-45b7-bbcb-784c6ca138b1","service_ip":"172.16.64.4/22","zone":"fr-par-1"}}' + headers: + Content-Length: + - "223" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:45:45 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0ebc24e8-f678-42f3-be0f-cf31766c3910 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/f7f9617c-f287-43c8-8b4f-f5aeebfae52a + method: GET + response: + body: '{"created_at":"2023-10-02T20:40:58.456984Z","dhcp_enabled":true,"id":"f7f9617c-f287-43c8-8b4f-f5aeebfae52a","name":"my_private_network","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","subnets":[{"created_at":"2023-10-02T20:40:58.456984Z","id":"56e357ef-338f-409c-84ad-947a1f6e4244","subnet":"172.16.16.0/22","updated_at":"2023-10-02T20:40:58.456984Z"},{"created_at":"2023-10-02T20:40:58.456984Z","id":"48e3922f-f6a2-4b4f-89a8-4f848c6f561b","subnet":"fdfc:1ffc:be97:2393::/64","updated_at":"2023-10-02T20:40:58.456984Z"}],"tags":[],"updated_at":"2023-10-02T20:40:58.456984Z","vpc_id":"f30db962-6029-4ae2-bb33-8b32693afadf"}' + headers: + Content-Length: + - "719" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:45:46 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0562a915-e85c-4bf8-933f-d0616f06c0f6 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs/98fa9839-c13e-4710-a322-0ada29e90aca + method: GET + response: + body: '{"created_at":"2023-10-02T20:44:34.152362Z","id":"98fa9839-c13e-4710-a322-0ada29e90aca","is_default":false,"name":"my + vpc","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","private_network_count":1,"project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","tags":[],"updated_at":"2023-10-02T20:44:34.152362Z"}' + headers: + Content-Length: + - "338" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:45:46 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 787ae174-84b6-441d-b3bd-a4a61aa974d5 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/92475e80-64b6-45b7-bbcb-784c6ca138b1 + method: GET + response: + body: '{"created_at":"2023-10-02T20:44:34.549388Z","dhcp_enabled":true,"id":"92475e80-64b6-45b7-bbcb-784c6ca138b1","name":"tf-pn-great-vaughan","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","subnets":[{"created_at":"2023-10-02T20:44:34.549388Z","id":"dad482c9-4f1b-495a-928d-263af44aad96","subnet":"172.16.64.0/22","updated_at":"2023-10-02T20:44:34.549388Z"},{"created_at":"2023-10-02T20:44:34.549388Z","id":"de16145f-858b-439d-b8e6-8d85331fa04a","subnet":"fdfc:1ffc:be97:da0b::/64","updated_at":"2023-10-02T20:44:34.549388Z"}],"tags":[],"updated_at":"2023-10-02T20:44:34.549388Z","vpc_id":"98fa9839-c13e-4710-a322-0ada29e90aca"}' + headers: + Content-Length: + - "720" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:45:46 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a82493a2-6fd9-48ee-bfd3-1274c447d95b + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/4e83edf2-5e62-4bcd-8f05-1f34c756aee5 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:40:59.102717Z","retention":7},"created_at":"2023-10-02T20:40:59.102717Z","endpoint":{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306},"endpoints":[{"id":"2297fcb1-5394-4daf-a144-3b4c056fbd40","ip":"172.16.64.4","name":null,"port":27017,"private_network":{"private_network_id":"92475e80-64b6-45b7-bbcb-784c6ca138b1","service_ip":"172.16.64.4/22","zone":"fr-par-1"}},{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306}],"engine":"FerretDB-1","id":"4e83edf2-5e62-4bcd-8f05-1f34c756aee5","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1257" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:45:46 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d7d81efb-af89-4d3b-9751-7483e0e2d87b + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/endpoints/2297fcb1-5394-4daf-a144-3b4c056fbd40 + method: GET + response: + body: '{"id":"2297fcb1-5394-4daf-a144-3b4c056fbd40","ip":"172.16.64.4","name":null,"port":27017,"private_network":{"private_network_id":"92475e80-64b6-45b7-bbcb-784c6ca138b1","service_ip":"172.16.64.4/22","zone":"fr-par-1"}}' + headers: + Content-Length: + - "223" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:45:46 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 97e92b8b-cdd6-4d71-a4fd-b05ff5bbbca3 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/endpoints/2297fcb1-5394-4daf-a144-3b4c056fbd40 + method: GET + response: + body: '{"id":"2297fcb1-5394-4daf-a144-3b4c056fbd40","ip":"172.16.64.4","name":null,"port":27017,"private_network":{"private_network_id":"92475e80-64b6-45b7-bbcb-784c6ca138b1","service_ip":"172.16.64.4/22","zone":"fr-par-1"}}' + headers: + Content-Length: + - "223" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:45:46 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4a38ca71-6079-4066-92d7-a58db7a3866a + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs/98fa9839-c13e-4710-a322-0ada29e90aca + method: GET + response: + body: '{"created_at":"2023-10-02T20:44:34.152362Z","id":"98fa9839-c13e-4710-a322-0ada29e90aca","is_default":false,"name":"my + vpc","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","private_network_count":1,"project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","tags":[],"updated_at":"2023-10-02T20:44:34.152362Z"}' + headers: + Content-Length: + - "338" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:45:47 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 40f34de5-3ac5-4bbc-95b0-0c643d520de3 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/f7f9617c-f287-43c8-8b4f-f5aeebfae52a + method: GET + response: + body: '{"created_at":"2023-10-02T20:40:58.456984Z","dhcp_enabled":true,"id":"f7f9617c-f287-43c8-8b4f-f5aeebfae52a","name":"my_private_network","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","subnets":[{"created_at":"2023-10-02T20:40:58.456984Z","id":"56e357ef-338f-409c-84ad-947a1f6e4244","subnet":"172.16.16.0/22","updated_at":"2023-10-02T20:40:58.456984Z"},{"created_at":"2023-10-02T20:40:58.456984Z","id":"48e3922f-f6a2-4b4f-89a8-4f848c6f561b","subnet":"fdfc:1ffc:be97:2393::/64","updated_at":"2023-10-02T20:40:58.456984Z"}],"tags":[],"updated_at":"2023-10-02T20:40:58.456984Z","vpc_id":"f30db962-6029-4ae2-bb33-8b32693afadf"}' + headers: + Content-Length: + - "719" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:45:47 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bf8e4891-cf08-4f58-acd4-4b1accbb5a54 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/92475e80-64b6-45b7-bbcb-784c6ca138b1 + method: GET + response: + body: '{"created_at":"2023-10-02T20:44:34.549388Z","dhcp_enabled":true,"id":"92475e80-64b6-45b7-bbcb-784c6ca138b1","name":"tf-pn-great-vaughan","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","subnets":[{"created_at":"2023-10-02T20:44:34.549388Z","id":"dad482c9-4f1b-495a-928d-263af44aad96","subnet":"172.16.64.0/22","updated_at":"2023-10-02T20:44:34.549388Z"},{"created_at":"2023-10-02T20:44:34.549388Z","id":"de16145f-858b-439d-b8e6-8d85331fa04a","subnet":"fdfc:1ffc:be97:da0b::/64","updated_at":"2023-10-02T20:44:34.549388Z"}],"tags":[],"updated_at":"2023-10-02T20:44:34.549388Z","vpc_id":"98fa9839-c13e-4710-a322-0ada29e90aca"}' + headers: + Content-Length: + - "720" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:45:47 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 88c872e0-c05e-4877-b0d9-fc842d14c386 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/4e83edf2-5e62-4bcd-8f05-1f34c756aee5 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:40:59.102717Z","retention":7},"created_at":"2023-10-02T20:40:59.102717Z","endpoint":{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306},"endpoints":[{"id":"2297fcb1-5394-4daf-a144-3b4c056fbd40","ip":"172.16.64.4","name":null,"port":27017,"private_network":{"private_network_id":"92475e80-64b6-45b7-bbcb-784c6ca138b1","service_ip":"172.16.64.4/22","zone":"fr-par-1"}},{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306}],"engine":"FerretDB-1","id":"4e83edf2-5e62-4bcd-8f05-1f34c756aee5","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1257" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:45:47 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b72c51dc-d2d8-4f86-96e8-b328fa6b8f70 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/endpoints/2297fcb1-5394-4daf-a144-3b4c056fbd40 + method: GET + response: + body: '{"id":"2297fcb1-5394-4daf-a144-3b4c056fbd40","ip":"172.16.64.4","name":null,"port":27017,"private_network":{"private_network_id":"92475e80-64b6-45b7-bbcb-784c6ca138b1","service_ip":"172.16.64.4/22","zone":"fr-par-1"}}' + headers: + Content-Length: + - "223" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:45:47 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4bca6d4c-bb5d-4bef-b641-cbdcd7d0a16d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/f7f9617c-f287-43c8-8b4f-f5aeebfae52a + method: GET + response: + body: '{"created_at":"2023-10-02T20:40:58.456984Z","dhcp_enabled":true,"id":"f7f9617c-f287-43c8-8b4f-f5aeebfae52a","name":"my_private_network","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","subnets":[{"created_at":"2023-10-02T20:40:58.456984Z","id":"56e357ef-338f-409c-84ad-947a1f6e4244","subnet":"172.16.16.0/22","updated_at":"2023-10-02T20:40:58.456984Z"},{"created_at":"2023-10-02T20:40:58.456984Z","id":"48e3922f-f6a2-4b4f-89a8-4f848c6f561b","subnet":"fdfc:1ffc:be97:2393::/64","updated_at":"2023-10-02T20:40:58.456984Z"}],"tags":[],"updated_at":"2023-10-02T20:40:58.456984Z","vpc_id":"f30db962-6029-4ae2-bb33-8b32693afadf"}' + headers: + Content-Length: + - "719" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:45:47 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9515865d-f858-4daf-a83b-b8d77f300c6a + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs/98fa9839-c13e-4710-a322-0ada29e90aca + method: GET + response: + body: '{"created_at":"2023-10-02T20:44:34.152362Z","id":"98fa9839-c13e-4710-a322-0ada29e90aca","is_default":false,"name":"my + vpc","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","private_network_count":1,"project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","tags":[],"updated_at":"2023-10-02T20:44:34.152362Z"}' + headers: + Content-Length: + - "338" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:45:47 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5781c241-f6c3-4942-a138-445651d023e8 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/endpoints/2297fcb1-5394-4daf-a144-3b4c056fbd40 + method: GET + response: + body: '{"id":"2297fcb1-5394-4daf-a144-3b4c056fbd40","ip":"172.16.64.4","name":null,"port":27017,"private_network":{"private_network_id":"92475e80-64b6-45b7-bbcb-784c6ca138b1","service_ip":"172.16.64.4/22","zone":"fr-par-1"}}' + headers: + Content-Length: + - "223" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:45:47 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7afa660c-fb86-460f-8431-f86b81765347 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/92475e80-64b6-45b7-bbcb-784c6ca138b1 + method: GET + response: + body: '{"created_at":"2023-10-02T20:44:34.549388Z","dhcp_enabled":true,"id":"92475e80-64b6-45b7-bbcb-784c6ca138b1","name":"tf-pn-great-vaughan","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","subnets":[{"created_at":"2023-10-02T20:44:34.549388Z","id":"dad482c9-4f1b-495a-928d-263af44aad96","subnet":"172.16.64.0/22","updated_at":"2023-10-02T20:44:34.549388Z"},{"created_at":"2023-10-02T20:44:34.549388Z","id":"de16145f-858b-439d-b8e6-8d85331fa04a","subnet":"fdfc:1ffc:be97:da0b::/64","updated_at":"2023-10-02T20:44:34.549388Z"}],"tags":[],"updated_at":"2023-10-02T20:44:34.549388Z","vpc_id":"98fa9839-c13e-4710-a322-0ada29e90aca"}' + headers: + Content-Length: + - "720" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:45:47 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d49074c4-beeb-4f66-8e98-6ae5b859f336 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/4e83edf2-5e62-4bcd-8f05-1f34c756aee5 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:40:59.102717Z","retention":7},"created_at":"2023-10-02T20:40:59.102717Z","endpoint":{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306},"endpoints":[{"id":"2297fcb1-5394-4daf-a144-3b4c056fbd40","ip":"172.16.64.4","name":null,"port":27017,"private_network":{"private_network_id":"92475e80-64b6-45b7-bbcb-784c6ca138b1","service_ip":"172.16.64.4/22","zone":"fr-par-1"}},{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306}],"engine":"FerretDB-1","id":"4e83edf2-5e62-4bcd-8f05-1f34c756aee5","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1257" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:45:47 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 874722f7-04a2-42db-adcf-e64011ee53e6 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/endpoints/2297fcb1-5394-4daf-a144-3b4c056fbd40 + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:45:48 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 409f4233-7537-4f86-a538-39ee2798b835 + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/4e83edf2-5e62-4bcd-8f05-1f34c756aee5 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:40:59.102717Z","retention":7},"created_at":"2023-10-02T20:40:59.102717Z","endpoint":{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306},"endpoints":[{"id":"2297fcb1-5394-4daf-a144-3b4c056fbd40","ip":"172.16.64.4","name":null,"port":27017,"private_network":{"private_network_id":"92475e80-64b6-45b7-bbcb-784c6ca138b1","service_ip":"172.16.64.4/22","zone":"fr-par-1"}},{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306}],"engine":"FerretDB-1","id":"4e83edf2-5e62-4bcd-8f05-1f34c756aee5","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"configuring","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1263" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:45:48 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8fe42b92-1514-4e03-ae17-d7218ce5804d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/4e83edf2-5e62-4bcd-8f05-1f34c756aee5 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:40:59.102717Z","retention":7},"created_at":"2023-10-02T20:40:59.102717Z","endpoint":{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306},"endpoints":[{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306}],"engine":"FerretDB-1","id":"4e83edf2-5e62-4bcd-8f05-1f34c756aee5","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1032" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:46:21 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a8af8dec-1411-4613-a5fa-c39a54d3daca + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/4e83edf2-5e62-4bcd-8f05-1f34c756aee5 + method: DELETE + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:40:59.102717Z","retention":7},"created_at":"2023-10-02T20:40:59.102717Z","endpoint":{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306},"endpoints":[{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306}],"engine":"FerretDB-1","id":"4e83edf2-5e62-4bcd-8f05-1f34c756aee5","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"deleting","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1035" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:46:22 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8b1fe555-7737-4550-9f4a-6cd91872668a + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/4e83edf2-5e62-4bcd-8f05-1f34c756aee5 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:40:59.102717Z","retention":7},"created_at":"2023-10-02T20:40:59.102717Z","endpoint":{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306},"endpoints":[{"id":"5715eda6-ad38-491c-8999-4a123e943f1c","ip":"51.159.113.146","load_balancer":{},"name":null,"port":16306}],"engine":"FerretDB-1","id":"4e83edf2-5e62-4bcd-8f05-1f34c756aee5","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"deleting","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1035" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:46:22 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 76f1c405-091f-4f0d-ac75-4f17fb3dfe7f + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/4e83edf2-5e62-4bcd-8f05-1f34c756aee5 + method: GET + response: + body: '{"message":"resource is not found","resource":"instance","resource_id":"4e83edf2-5e62-4bcd-8f05-1f34c756aee5","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:46:52 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0f8d7ff7-434c-481e-925a-1139783e0f83 + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/f7f9617c-f287-43c8-8b4f-f5aeebfae52a + method: GET + response: + body: '{"created_at":"2023-10-02T20:40:58.456984Z","dhcp_enabled":true,"id":"f7f9617c-f287-43c8-8b4f-f5aeebfae52a","name":"my_private_network","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","subnets":[{"created_at":"2023-10-02T20:40:58.456984Z","id":"56e357ef-338f-409c-84ad-947a1f6e4244","subnet":"172.16.16.0/22","updated_at":"2023-10-02T20:40:58.456984Z"},{"created_at":"2023-10-02T20:40:58.456984Z","id":"48e3922f-f6a2-4b4f-89a8-4f848c6f561b","subnet":"fdfc:1ffc:be97:2393::/64","updated_at":"2023-10-02T20:40:58.456984Z"}],"tags":[],"updated_at":"2023-10-02T20:40:58.456984Z","vpc_id":"f30db962-6029-4ae2-bb33-8b32693afadf"}' + headers: + Content-Length: + - "719" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:46:53 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2a437798-ea30-4957-86a7-91d4a34f05ed + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs/98fa9839-c13e-4710-a322-0ada29e90aca + method: GET + response: + body: '{"created_at":"2023-10-02T20:44:34.152362Z","id":"98fa9839-c13e-4710-a322-0ada29e90aca","is_default":false,"name":"my + vpc","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","private_network_count":1,"project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","tags":[],"updated_at":"2023-10-02T20:44:34.152362Z"}' + headers: + Content-Length: + - "338" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:46:53 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 94f27b3f-53f7-41f0-8b5d-a7f7aca732ef + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/92475e80-64b6-45b7-bbcb-784c6ca138b1 + method: GET + response: + body: '{"created_at":"2023-10-02T20:44:34.549388Z","dhcp_enabled":true,"id":"92475e80-64b6-45b7-bbcb-784c6ca138b1","name":"tf-pn-great-vaughan","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","subnets":[{"created_at":"2023-10-02T20:44:34.549388Z","id":"dad482c9-4f1b-495a-928d-263af44aad96","subnet":"172.16.64.0/22","updated_at":"2023-10-02T20:44:34.549388Z"},{"created_at":"2023-10-02T20:44:34.549388Z","id":"de16145f-858b-439d-b8e6-8d85331fa04a","subnet":"fdfc:1ffc:be97:da0b::/64","updated_at":"2023-10-02T20:44:34.549388Z"}],"tags":[],"updated_at":"2023-10-02T20:44:34.549388Z","vpc_id":"98fa9839-c13e-4710-a322-0ada29e90aca"}' + headers: + Content-Length: + - "720" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:46:53 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d62cd010-49e0-4654-ab90-de711ef53734 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/92475e80-64b6-45b7-bbcb-784c6ca138b1 + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:46:54 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f557a917-89bb-44d4-847e-67430fcdec1b + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/f7f9617c-f287-43c8-8b4f-f5aeebfae52a + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:46:54 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4326423d-e0bf-48d4-a360-9002881ee471 + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs/98fa9839-c13e-4710-a322-0ada29e90aca + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:46:54 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 062e4d51-1a4e-448f-ba86-efaaae863ce3 + status: 204 No Content + code: 204 + duration: "" diff --git a/scaleway/testdata/document-db-private-network-endpoint-migration.cassette.yaml b/scaleway/testdata/document-db-private-network-endpoint-migration.cassette.yaml new file mode 100644 index 000000000..2147eef83 --- /dev/null +++ b/scaleway/testdata/document-db-private-network-endpoint-migration.cassette.yaml @@ -0,0 +1,1327 @@ +--- +version: 1 +interactions: +- request: + body: '{"name":"vpcDocumentDB","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","tags":null}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs + method: POST + response: + body: '{"created_at":"2023-10-02T20:12:45.635259Z","id":"2c0897f0-1195-47fd-9229-9dce6c5616d6","is_default":false,"name":"vpcDocumentDB","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","private_network_count":0,"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","tags":[],"updated_at":"2023-10-02T20:12:45.635259Z"}' + headers: + Content-Length: + - "345" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:45 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 429ab563-ded5-4ba4-a873-59074a3bde1d + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","name":"test-documentdb-instance-endpoint-migration","engine":"FerretDB-1","user_name":"my_initial_user","password":"thiZ_is_v\u0026ry_s3cret","node_type":"docdb-play2-pico","is_ha_cluster":false,"disable_backup":false,"tags":["terraform-test","scaleway_document_db_instance_migration","minimal"],"init_settings":null,"volume_type":"bssd","volume_size":20000000000,"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.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances + method: POST + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:12:45.919450Z","retention":7},"created_at":"2023-10-02T20:12:45.919450Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"a2e94215-f247-4f60-b63c-abdff89fbe00","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":["terraform-test","scaleway_document_db_instance_migration","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "846" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:46 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - aba943e0-7ba8-4039-81d3-f74249444422 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs/2c0897f0-1195-47fd-9229-9dce6c5616d6 + method: GET + response: + body: '{"created_at":"2023-10-02T20:12:45.635259Z","id":"2c0897f0-1195-47fd-9229-9dce6c5616d6","is_default":false,"name":"vpcDocumentDB","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","private_network_count":0,"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","tags":[],"updated_at":"2023-10-02T20:12:45.635259Z"}' + headers: + Content-Length: + - "345" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:48 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c3ad194d-0bf9-4976-9dfe-ec975167e413 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/a2e94215-f247-4f60-b63c-abdff89fbe00 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:12:45.919450Z","retention":7},"created_at":"2023-10-02T20:12:45.919450Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"a2e94215-f247-4f60-b63c-abdff89fbe00","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":["terraform-test","scaleway_document_db_instance_migration","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "846" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:48 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 88b07b1c-a01c-450f-a2c0-50e96c3cf7eb + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"name":"tf-pn-blissful-hugle","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","tags":null,"subnets":["10.10.64.0/22"],"vpc_id":"2c0897f0-1195-47fd-9229-9dce6c5616d6"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks + method: POST + response: + body: '{"created_at":"2023-10-02T20:12:48.618233Z","dhcp_enabled":true,"id":"421b6454-25dd-43e6-851d-cfbe637672ef","name":"tf-pn-blissful-hugle","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","subnets":[{"created_at":"2023-10-02T20:12:48.618233Z","id":"cbddf581-1068-471c-987f-f4af256c0751","subnet":"10.10.64.0/22","updated_at":"2023-10-02T20:12:48.618233Z"},{"created_at":"2023-10-02T20:12:48.618233Z","id":"d89bbb43-fd69-4078-be4c-b3467acdaf70","subnet":"fd5f:519c:6d46:5f51::/64","updated_at":"2023-10-02T20:12:48.618233Z"}],"tags":[],"updated_at":"2023-10-02T20:12:48.618233Z","vpc_id":"2c0897f0-1195-47fd-9229-9dce6c5616d6"}' + headers: + Content-Length: + - "720" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:49 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4425c179-a1ef-459c-8b1d-510e92da9d5f + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/421b6454-25dd-43e6-851d-cfbe637672ef + method: GET + response: + body: '{"created_at":"2023-10-02T20:12:48.618233Z","dhcp_enabled":true,"id":"421b6454-25dd-43e6-851d-cfbe637672ef","name":"tf-pn-blissful-hugle","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","subnets":[{"created_at":"2023-10-02T20:12:48.618233Z","id":"cbddf581-1068-471c-987f-f4af256c0751","subnet":"10.10.64.0/22","updated_at":"2023-10-02T20:12:48.618233Z"},{"created_at":"2023-10-02T20:12:48.618233Z","id":"d89bbb43-fd69-4078-be4c-b3467acdaf70","subnet":"fd5f:519c:6d46:5f51::/64","updated_at":"2023-10-02T20:12:48.618233Z"}],"tags":[],"updated_at":"2023-10-02T20:12:48.618233Z","vpc_id":"2c0897f0-1195-47fd-9229-9dce6c5616d6"}' + headers: + Content-Length: + - "720" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:49 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9e1bcfc0-8e8a-4db9-adfb-1727f1025338 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/a2e94215-f247-4f60-b63c-abdff89fbe00 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:12:45.919450Z","retention":7},"created_at":"2023-10-02T20:12:45.919450Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"a2e94215-f247-4f60-b63c-abdff89fbe00","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":["terraform-test","scaleway_document_db_instance_migration","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "846" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:13:19 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6908bea6-e708-4965-804f-22fbfde1be03 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/a2e94215-f247-4f60-b63c-abdff89fbe00 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:12:45.919450Z","retention":7},"created_at":"2023-10-02T20:12:45.919450Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"a2e94215-f247-4f60-b63c-abdff89fbe00","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":["terraform-test","scaleway_document_db_instance_migration","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "846" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:13:49 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 29bf070d-eecf-4f69-a4f8-66ba08ce24e9 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/a2e94215-f247-4f60-b63c-abdff89fbe00 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:12:45.919450Z","retention":7},"created_at":"2023-10-02T20:12:45.919450Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"a2e94215-f247-4f60-b63c-abdff89fbe00","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":["terraform-test","scaleway_document_db_instance_migration","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "846" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:14:19 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1e51871d-a008-4e68-91ff-db42d397d46e + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/a2e94215-f247-4f60-b63c-abdff89fbe00 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:12:45.919450Z","retention":7},"created_at":"2023-10-02T20:12:45.919450Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"a2e94215-f247-4f60-b63c-abdff89fbe00","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":["terraform-test","scaleway_document_db_instance_migration","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "846" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:14:49 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 84bea966-dd71-4784-a65a-471ebfd7ca10 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/a2e94215-f247-4f60-b63c-abdff89fbe00 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:12:45.919450Z","retention":7},"created_at":"2023-10-02T20:12:45.919450Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"a2e94215-f247-4f60-b63c-abdff89fbe00","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":["terraform-test","scaleway_document_db_instance_migration","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "846" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:15:20 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0e7f5870-348d-43b0-8c33-5d9bf7343c05 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/a2e94215-f247-4f60-b63c-abdff89fbe00 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:12:45.919450Z","retention":7},"created_at":"2023-10-02T20:12:45.919450Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"a2e94215-f247-4f60-b63c-abdff89fbe00","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":["terraform-test","scaleway_document_db_instance_migration","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "846" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:15:50 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 40e0c1ae-f9e6-4165-a1f7-ac11da5e651e + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/a2e94215-f247-4f60-b63c-abdff89fbe00 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:12:45.919450Z","retention":7},"created_at":"2023-10-02T20:12:45.919450Z","endpoint":{"id":"4cf7e167-70e6-4c20-ad27-3c9a5767b35b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":18472},"endpoints":[{"id":"4cf7e167-70e6-4c20-ad27-3c9a5767b35b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":18472}],"engine":"FerretDB-1","id":"a2e94215-f247-4f60-b63c-abdff89fbe00","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance_migration","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1106" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:22 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c10e7cd9-b40c-44f9-a501-fa6c6bc55833 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/a2e94215-f247-4f60-b63c-abdff89fbe00 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:12:45.919450Z","retention":7},"created_at":"2023-10-02T20:12:45.919450Z","endpoint":{"id":"4cf7e167-70e6-4c20-ad27-3c9a5767b35b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":18472},"endpoints":[{"id":"4cf7e167-70e6-4c20-ad27-3c9a5767b35b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":18472}],"engine":"FerretDB-1","id":"a2e94215-f247-4f60-b63c-abdff89fbe00","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance_migration","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1106" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:23 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 81c01c14-c8c1-42d3-9c2e-897a33a2328d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/a2e94215-f247-4f60-b63c-abdff89fbe00 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:12:45.919450Z","retention":7},"created_at":"2023-10-02T20:12:45.919450Z","endpoint":{"id":"4cf7e167-70e6-4c20-ad27-3c9a5767b35b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":18472},"endpoints":[{"id":"4cf7e167-70e6-4c20-ad27-3c9a5767b35b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":18472}],"engine":"FerretDB-1","id":"a2e94215-f247-4f60-b63c-abdff89fbe00","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance_migration","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1106" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:23 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b20ecc6d-60e6-48ee-96b5-2a4e59121cd4 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"endpoint_spec":{"private_network":{"private_network_id":"421b6454-25dd-43e6-851d-cfbe637672ef","service_ip":"10.10.64.4/22"}}}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/a2e94215-f247-4f60-b63c-abdff89fbe00/endpoints + method: POST + response: + body: '{"id":"fea4d213-1ea5-41b2-b4b4-027caa2aa93d","ip":"10.10.64.4","name":null,"port":27017,"private_network":{"private_network_id":"421b6454-25dd-43e6-851d-cfbe637672ef","service_ip":"10.10.64.4/22","zone":"fr-par-1"}}' + headers: + Content-Length: + - "221" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:24 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 52c4911a-a88a-4884-bc2d-07ceecfc632d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/a2e94215-f247-4f60-b63c-abdff89fbe00 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:12:45.919450Z","retention":7},"created_at":"2023-10-02T20:12:45.919450Z","endpoint":{"id":"4cf7e167-70e6-4c20-ad27-3c9a5767b35b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":18472},"endpoints":[{"id":"fea4d213-1ea5-41b2-b4b4-027caa2aa93d","ip":"10.10.64.4","name":null,"port":27017,"private_network":{"private_network_id":"421b6454-25dd-43e6-851d-cfbe637672ef","service_ip":"10.10.64.4/22","zone":"fr-par-1"}},{"id":"4cf7e167-70e6-4c20-ad27-3c9a5767b35b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":18472}],"engine":"FerretDB-1","id":"a2e94215-f247-4f60-b63c-abdff89fbe00","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"initializing","tags":["terraform-test","scaleway_document_db_instance_migration","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1336" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:24 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d9d16e56-9a34-4554-b5c3-4a8f14eeea25 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/a2e94215-f247-4f60-b63c-abdff89fbe00 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:12:45.919450Z","retention":7},"created_at":"2023-10-02T20:12:45.919450Z","endpoint":{"id":"4cf7e167-70e6-4c20-ad27-3c9a5767b35b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":18472},"endpoints":[{"id":"fea4d213-1ea5-41b2-b4b4-027caa2aa93d","ip":"10.10.64.4","name":null,"port":27017,"private_network":{"private_network_id":"421b6454-25dd-43e6-851d-cfbe637672ef","service_ip":"10.10.64.4/22","zone":"fr-par-1"}},{"id":"4cf7e167-70e6-4c20-ad27-3c9a5767b35b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":18472}],"engine":"FerretDB-1","id":"a2e94215-f247-4f60-b63c-abdff89fbe00","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance_migration","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1329" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:54 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8d19a3c1-7915-4504-99f2-86f66af39160 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/endpoints/fea4d213-1ea5-41b2-b4b4-027caa2aa93d + method: GET + response: + body: '{"id":"fea4d213-1ea5-41b2-b4b4-027caa2aa93d","ip":"10.10.64.4","name":null,"port":27017,"private_network":{"private_network_id":"421b6454-25dd-43e6-851d-cfbe637672ef","service_ip":"10.10.64.4/22","zone":"fr-par-1"}}' + headers: + Content-Length: + - "221" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:54 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - efa7cf64-c4f5-4424-a580-7369d3bebe74 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/endpoints/fea4d213-1ea5-41b2-b4b4-027caa2aa93d + method: GET + response: + body: '{"id":"fea4d213-1ea5-41b2-b4b4-027caa2aa93d","ip":"10.10.64.4","name":null,"port":27017,"private_network":{"private_network_id":"421b6454-25dd-43e6-851d-cfbe637672ef","service_ip":"10.10.64.4/22","zone":"fr-par-1"}}' + headers: + Content-Length: + - "221" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:55 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 94afc72c-bb7a-488a-9912-d2a4b62ba2ac + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs/2c0897f0-1195-47fd-9229-9dce6c5616d6 + method: GET + response: + body: '{"created_at":"2023-10-02T20:12:45.635259Z","id":"2c0897f0-1195-47fd-9229-9dce6c5616d6","is_default":false,"name":"vpcDocumentDB","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","private_network_count":1,"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","tags":[],"updated_at":"2023-10-02T20:12:45.635259Z"}' + headers: + Content-Length: + - "345" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:55 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 96f8b550-81f4-411c-b8ee-ea03c8949b46 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/421b6454-25dd-43e6-851d-cfbe637672ef + method: GET + response: + body: '{"created_at":"2023-10-02T20:12:48.618233Z","dhcp_enabled":true,"id":"421b6454-25dd-43e6-851d-cfbe637672ef","name":"tf-pn-blissful-hugle","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","subnets":[{"created_at":"2023-10-02T20:12:48.618233Z","id":"cbddf581-1068-471c-987f-f4af256c0751","subnet":"10.10.64.0/22","updated_at":"2023-10-02T20:12:48.618233Z"},{"created_at":"2023-10-02T20:12:48.618233Z","id":"d89bbb43-fd69-4078-be4c-b3467acdaf70","subnet":"fd5f:519c:6d46:5f51::/64","updated_at":"2023-10-02T20:12:48.618233Z"}],"tags":[],"updated_at":"2023-10-02T20:12:48.618233Z","vpc_id":"2c0897f0-1195-47fd-9229-9dce6c5616d6"}' + headers: + Content-Length: + - "720" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:55 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ce791b75-3e50-4312-bfb5-801fe34384bb + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/a2e94215-f247-4f60-b63c-abdff89fbe00 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:12:45.919450Z","retention":7},"created_at":"2023-10-02T20:12:45.919450Z","endpoint":{"id":"4cf7e167-70e6-4c20-ad27-3c9a5767b35b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":18472},"endpoints":[{"id":"fea4d213-1ea5-41b2-b4b4-027caa2aa93d","ip":"10.10.64.4","name":null,"port":27017,"private_network":{"private_network_id":"421b6454-25dd-43e6-851d-cfbe637672ef","service_ip":"10.10.64.4/22","zone":"fr-par-1"}},{"id":"4cf7e167-70e6-4c20-ad27-3c9a5767b35b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":18472}],"engine":"FerretDB-1","id":"a2e94215-f247-4f60-b63c-abdff89fbe00","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance_migration","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1329" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:55 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2c5bbcb2-1e39-4e23-b7ff-f9f2cd0dd282 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/endpoints/fea4d213-1ea5-41b2-b4b4-027caa2aa93d + method: GET + response: + body: '{"id":"fea4d213-1ea5-41b2-b4b4-027caa2aa93d","ip":"10.10.64.4","name":null,"port":27017,"private_network":{"private_network_id":"421b6454-25dd-43e6-851d-cfbe637672ef","service_ip":"10.10.64.4/22","zone":"fr-par-1"}}' + headers: + Content-Length: + - "221" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:55 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - cef1a3c0-89e7-42fe-a362-7971439ebc9e + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/endpoints/fea4d213-1ea5-41b2-b4b4-027caa2aa93d + method: GET + response: + body: '{"id":"fea4d213-1ea5-41b2-b4b4-027caa2aa93d","ip":"10.10.64.4","name":null,"port":27017,"private_network":{"private_network_id":"421b6454-25dd-43e6-851d-cfbe637672ef","service_ip":"10.10.64.4/22","zone":"fr-par-1"}}' + headers: + Content-Length: + - "221" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:56 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8e3deda3-7ffe-4926-9ede-e377397db0bd + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs/2c0897f0-1195-47fd-9229-9dce6c5616d6 + method: GET + response: + body: '{"created_at":"2023-10-02T20:12:45.635259Z","id":"2c0897f0-1195-47fd-9229-9dce6c5616d6","is_default":false,"name":"vpcDocumentDB","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","private_network_count":1,"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","tags":[],"updated_at":"2023-10-02T20:12:45.635259Z"}' + headers: + Content-Length: + - "345" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:56 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 11ceb0d7-e025-4604-9b97-1bb63e10f312 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/a2e94215-f247-4f60-b63c-abdff89fbe00 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:12:45.919450Z","retention":7},"created_at":"2023-10-02T20:12:45.919450Z","endpoint":{"id":"4cf7e167-70e6-4c20-ad27-3c9a5767b35b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":18472},"endpoints":[{"id":"fea4d213-1ea5-41b2-b4b4-027caa2aa93d","ip":"10.10.64.4","name":null,"port":27017,"private_network":{"private_network_id":"421b6454-25dd-43e6-851d-cfbe637672ef","service_ip":"10.10.64.4/22","zone":"fr-par-1"}},{"id":"4cf7e167-70e6-4c20-ad27-3c9a5767b35b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":18472}],"engine":"FerretDB-1","id":"a2e94215-f247-4f60-b63c-abdff89fbe00","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance_migration","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1329" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:56 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8cba2c99-10d5-4792-bc4e-65d1f0e9a8a6 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/421b6454-25dd-43e6-851d-cfbe637672ef + method: GET + response: + body: '{"created_at":"2023-10-02T20:12:48.618233Z","dhcp_enabled":true,"id":"421b6454-25dd-43e6-851d-cfbe637672ef","name":"tf-pn-blissful-hugle","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","subnets":[{"created_at":"2023-10-02T20:12:48.618233Z","id":"cbddf581-1068-471c-987f-f4af256c0751","subnet":"10.10.64.0/22","updated_at":"2023-10-02T20:12:48.618233Z"},{"created_at":"2023-10-02T20:12:48.618233Z","id":"d89bbb43-fd69-4078-be4c-b3467acdaf70","subnet":"fd5f:519c:6d46:5f51::/64","updated_at":"2023-10-02T20:12:48.618233Z"}],"tags":[],"updated_at":"2023-10-02T20:12:48.618233Z","vpc_id":"2c0897f0-1195-47fd-9229-9dce6c5616d6"}' + headers: + Content-Length: + - "720" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:56 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3ad992f8-c8d5-41bd-b63d-17e91de57de6 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/endpoints/fea4d213-1ea5-41b2-b4b4-027caa2aa93d + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:57 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b1632ad2-349f-4750-82e3-8895f23c34f7 + status: 204 No Content + code: 204 + duration: "" +- request: + body: '{"name":"vpc","tags":[]}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs/2c0897f0-1195-47fd-9229-9dce6c5616d6 + method: PATCH + response: + body: '{"created_at":"2023-10-02T20:12:45.635259Z","id":"2c0897f0-1195-47fd-9229-9dce6c5616d6","is_default":false,"name":"vpc","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","private_network_count":1,"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","tags":[],"updated_at":"2023-10-02T20:16:57.458974Z"}' + headers: + Content-Length: + - "335" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:57 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 650d9228-172c-45e5-ac55-e14a8ea91c5c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/a2e94215-f247-4f60-b63c-abdff89fbe00 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:12:45.919450Z","retention":7},"created_at":"2023-10-02T20:12:45.919450Z","endpoint":{"id":"4cf7e167-70e6-4c20-ad27-3c9a5767b35b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":18472},"endpoints":[{"id":"fea4d213-1ea5-41b2-b4b4-027caa2aa93d","ip":"10.10.64.4","name":null,"port":27017,"private_network":{"private_network_id":"421b6454-25dd-43e6-851d-cfbe637672ef","service_ip":"10.10.64.4/22","zone":"fr-par-1"}},{"id":"4cf7e167-70e6-4c20-ad27-3c9a5767b35b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":18472}],"engine":"FerretDB-1","id":"a2e94215-f247-4f60-b63c-abdff89fbe00","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"configuring","tags":["terraform-test","scaleway_document_db_instance_migration","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1335" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:57 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 81f49202-1aeb-483a-ab52-2e4386b2ad4e + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs/2c0897f0-1195-47fd-9229-9dce6c5616d6 + method: GET + response: + body: '{"created_at":"2023-10-02T20:12:45.635259Z","id":"2c0897f0-1195-47fd-9229-9dce6c5616d6","is_default":false,"name":"vpc","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","private_network_count":1,"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","tags":[],"updated_at":"2023-10-02T20:16:57.458974Z"}' + headers: + Content-Length: + - "335" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:16:57 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 06d96b4c-ca7f-405e-a087-eda097fb12cc + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/a2e94215-f247-4f60-b63c-abdff89fbe00 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:12:45.919450Z","retention":7},"created_at":"2023-10-02T20:12:45.919450Z","endpoint":{"id":"4cf7e167-70e6-4c20-ad27-3c9a5767b35b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":18472},"endpoints":[{"id":"4cf7e167-70e6-4c20-ad27-3c9a5767b35b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":18472}],"engine":"FerretDB-1","id":"a2e94215-f247-4f60-b63c-abdff89fbe00","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance_migration","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1106" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:17:27 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 05997477-e125-47f0-ad41-fa26f3932ebc + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/a2e94215-f247-4f60-b63c-abdff89fbe00 + method: DELETE + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:12:45.919450Z","retention":7},"created_at":"2023-10-02T20:12:45.919450Z","endpoint":{"id":"4cf7e167-70e6-4c20-ad27-3c9a5767b35b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":18472},"endpoints":[{"id":"4cf7e167-70e6-4c20-ad27-3c9a5767b35b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":18472}],"engine":"FerretDB-1","id":"a2e94215-f247-4f60-b63c-abdff89fbe00","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"deleting","tags":["terraform-test","scaleway_document_db_instance_migration","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1109" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20: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: + - 413cd622-a165-44d4-9386-6be28d89439c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/a2e94215-f247-4f60-b63c-abdff89fbe00 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:12:45.919450Z","retention":7},"created_at":"2023-10-02T20:12:45.919450Z","endpoint":{"id":"4cf7e167-70e6-4c20-ad27-3c9a5767b35b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":18472},"endpoints":[{"id":"4cf7e167-70e6-4c20-ad27-3c9a5767b35b","ip":"51.159.113.146","load_balancer":{},"name":null,"port":18472}],"engine":"FerretDB-1","id":"a2e94215-f247-4f60-b63c-abdff89fbe00","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"deleting","tags":["terraform-test","scaleway_document_db_instance_migration","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1109" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20: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: + - 3d89a105-39e7-4748-a206-49faa36bc118 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/a2e94215-f247-4f60-b63c-abdff89fbe00 + method: GET + response: + body: '{"message":"resource is not found","resource":"instance","resource_id":"a2e94215-f247-4f60-b63c-abdff89fbe00","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:17:58 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ebfb1538-2a83-452d-897a-239e44e02e52 + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs/2c0897f0-1195-47fd-9229-9dce6c5616d6 + method: GET + response: + body: '{"created_at":"2023-10-02T20:12:45.635259Z","id":"2c0897f0-1195-47fd-9229-9dce6c5616d6","is_default":false,"name":"vpc","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","private_network_count":1,"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","tags":[],"updated_at":"2023-10-02T20:16:57.458974Z"}' + headers: + Content-Length: + - "335" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:17:58 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ed0322cc-7dfd-43b0-83c8-b92473baf164 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/421b6454-25dd-43e6-851d-cfbe637672ef + method: GET + response: + body: '{"created_at":"2023-10-02T20:12:48.618233Z","dhcp_enabled":true,"id":"421b6454-25dd-43e6-851d-cfbe637672ef","name":"tf-pn-blissful-hugle","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","subnets":[{"created_at":"2023-10-02T20:12:48.618233Z","id":"cbddf581-1068-471c-987f-f4af256c0751","subnet":"10.10.64.0/22","updated_at":"2023-10-02T20:12:48.618233Z"},{"created_at":"2023-10-02T20:12:48.618233Z","id":"d89bbb43-fd69-4078-be4c-b3467acdaf70","subnet":"fd5f:519c:6d46:5f51::/64","updated_at":"2023-10-02T20:12:48.618233Z"}],"tags":[],"updated_at":"2023-10-02T20:12:48.618233Z","vpc_id":"2c0897f0-1195-47fd-9229-9dce6c5616d6"}' + headers: + Content-Length: + - "720" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:17:58 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a5349cf2-853c-48d4-bd8d-91edd2f8d776 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/421b6454-25dd-43e6-851d-cfbe637672ef + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:18:00 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 56ba6579-5450-49a5-8650-42a1514b35f3 + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs/2c0897f0-1195-47fd-9229-9dce6c5616d6 + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:18:00 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6543426d-2b24-464e-be1a-2c4834bd430b + status: 204 No Content + code: 204 + duration: "" diff --git a/scaleway/testdata/document-db-privilege-basic.cassette.yaml b/scaleway/testdata/document-db-privilege-basic.cassette.yaml new file mode 100644 index 000000000..bc7992cd9 --- /dev/null +++ b/scaleway/testdata/document-db-privilege-basic.cassette.yaml @@ -0,0 +1,4109 @@ +--- +version: 1 +interactions: +- request: + body: '{"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","name":"test-document_db-instance-privilege","engine":"FerretDB-1","user_name":"my_initial_user","password":"thiZ_is_v\u0026ry_s3cret","node_type":"docdb-play2-pico","is_ha_cluster":false,"disable_backup":false,"tags":["terraform-test","scaleway_document_db_instance","minimal"],"init_settings":null,"volume_type":"bssd","volume_size":20000000000,"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.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances + method: POST + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "828" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:08:45 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9a36e190-6dcd-4e01-97e8-b2765dfa9618 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "828" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:08:45 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 59400151-fd36-4a95-8b02-ad5a2bdf693c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "828" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:09:20 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 70b89b13-81bc-44c7-8444-e2eedce779e7 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "828" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:09:50 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ea8ac7fd-07df-4cc8-bb09-4d60810e0b06 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "828" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:10:22 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - cbcb3be4-9412-435a-979b-389149486476 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "828" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:10:53 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bfd7f111-8f55-4337-a2a1-510f3d39c3c0 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "828" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:11:23 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - de399c28-8fdb-4ce5-a835-2416b001c48f + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:02 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7de61e50-317c-4447-90e8-561a4dbfa361 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:04 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f3ba99f4-371a-4efe-a1a9-a4ed22bd1dc1 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:04 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7c95dead-4d33-4aee-b15b-157762e79dc1 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:04 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - cbe2c961-2cc9-4e9d-9570-29dd2dbb0e67 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"name":"user_01","password":"R34lP4sSw#Rd","is_admin":true}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users + method: POST + response: + body: '{"is_admin":true,"name":"user_01"}' + headers: + Content-Length: + - "35" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:04 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b2b21794-662e-4fe6-a7ff-5c3081126b17 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users?name=user_01&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":true,"name":"user_01"}]}' + headers: + Content-Length: + - "64" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:04 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b7277499-7235-4f30-8cbb-2deb1beae272 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"name":"test-document_db-database-basic"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/databases + method: POST + response: + body: '{"managed":true,"name":"test-document_db-database-basic","owner":"","size":0}' + headers: + Content-Length: + - "80" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:05 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - eb91bb8c-286b-498e-aea7-db0a9de766c2 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:05 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f804ca21-3e9c-4223-b7da-fbc7c8de6ba6 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:05 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0de7288f-559d-4c9d-82e1-23e8c9f7d43e + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/databases?name=test-document_db-database-basic&order_by=name_asc + method: GET + response: + body: '{"databases":[{"managed":true,"name":"test-document_db-database-basic","owner":"_rdb_superadmin","size":8758051}],"total_count":1}' + headers: + Content-Length: + - "134" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:05 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c1efbc4b-967e-443e-bfac-98c6fb6002fd + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:05 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ebe429df-21d7-489b-9e53-b2bd5c801e11 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"database_name":"test-document_db-database-basic","user_name":"user_01","permission":"all"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/privileges + method: PUT + response: + body: '{"database_name":"test-document_db-database-basic","permission":"all","user_name":"user_01"}' + headers: + Content-Length: + - "94" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:05 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 60e5b4eb-c975-4ce1-9944-3f44f96c271d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:06 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5049c5db-9279-4544-ada0-7eb786515d6e + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:06 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c1b27e69-2cab-4a1d-ac26-74c8479fa8af + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users?name=user_01&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":true,"name":"user_01"}]}' + headers: + Content-Length: + - "64" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:06 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 67caaea7-cdb9-4a52-916b-c2c6feeda6a5 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/privileges?database_name=test-document_db-database-basic&order_by=user_name_asc&user_name=user_01 + method: GET + response: + body: '{"privileges":[{"database_name":"test-document_db-database-basic","permission":"all","user_name":"user_01"}],"total_count":1}' + headers: + Content-Length: + - "128" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:06 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a9a375c7-6900-4051-a104-4228b0e3e210 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/privileges?database_name=test-document_db-database-basic&order_by=user_name_asc&user_name=user_01 + method: GET + response: + body: '{"privileges":[{"database_name":"test-document_db-database-basic","permission":"all","user_name":"user_01"}],"total_count":1}' + headers: + Content-Length: + - "128" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:06 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c7aab44a-da21-4054-b569-62cd50618025 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:07 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 72e45fc7-fb16-4087-9604-685a0a8e2832 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users?name=user_01&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":true,"name":"user_01"}]}' + headers: + Content-Length: + - "64" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:08 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 46115271-7289-424f-9048-8819505e2f26 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:11 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ed31c743-aeab-476e-96b7-1008ec31c0d9 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/databases?name=test-document_db-database-basic&order_by=name_asc + method: GET + response: + body: '{"databases":[{"managed":true,"name":"test-document_db-database-basic","owner":"_rdb_superadmin","size":8782627}],"total_count":1}' + headers: + Content-Length: + - "134" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:14 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5e3240ce-7cbf-4f8c-8655-3eefa8713393 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:15 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4f3f5185-2fe6-4d8d-9d30-feaef8ca07e4 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users?name=user_01&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":true,"name":"user_01"}]}' + headers: + Content-Length: + - "64" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:15 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 43d4c1d1-fede-4deb-8b67-194afa10854d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/privileges?database_name=test-document_db-database-basic&order_by=user_name_asc&user_name=user_01 + method: GET + response: + body: '{"privileges":[{"database_name":"test-document_db-database-basic","permission":"all","user_name":"user_01"}],"total_count":1}' + headers: + Content-Length: + - "128" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:15 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bbc85afb-b94d-40c4-9a1b-78900c611ef5 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:16 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f2d1c628-b72e-48ae-aa0c-d6980c11d388 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users?name=user_01&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":true,"name":"user_01"}]}' + headers: + Content-Length: + - "64" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:21 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5bb8a3e5-0b8d-45f2-8260-b2f5853ec8fb + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:21 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 06dd843d-3f19-4c6f-9bb0-217bab0a8e4b + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/databases?name=test-document_db-database-basic&order_by=name_asc + method: GET + response: + body: '{"databases":[{"managed":true,"name":"test-document_db-database-basic","owner":"_rdb_superadmin","size":8782627}],"total_count":1}' + headers: + Content-Length: + - "134" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:21 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bef2132b-2bf6-4614-9af5-9e8672fef784 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:22 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - da53cdbf-cd7a-4b18-a108-80e34ceb50f3 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users?name=user_01&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":true,"name":"user_01"}]}' + headers: + Content-Length: + - "64" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:22 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ea898d81-ab52-4f6e-8736-848b4d03b693 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/privileges?database_name=test-document_db-database-basic&order_by=user_name_asc&user_name=user_01 + method: GET + response: + body: '{"privileges":[{"database_name":"test-document_db-database-basic","permission":"all","user_name":"user_01"}],"total_count":1}' + headers: + Content-Length: + - "128" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:22 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 810d49b0-6db2-431d-93f8-58e5338ba8af + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:23 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 43a51381-636f-4a34-b279-bf45e294f148 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"name":"user_02","password":"R34lP4sSw#Rd","is_admin":false}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users + method: POST + response: + body: '{"is_admin":false,"name":"user_02"}' + headers: + Content-Length: + - "36" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:24 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c816a7fa-4755-4f47-aa67-93969e6be535 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users?name=user_02&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":false,"name":"user_02"}]}' + headers: + Content-Length: + - "65" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:24 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 80c4bf37-ab35-4614-820e-9343a35c85b7 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:24 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8d8a72c0-c97e-42e0-9ab3-a58351a7a985 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"database_name":"test-document_db-database-basic","user_name":"user_02","permission":"readwrite"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/privileges + method: PUT + response: + body: '{"database_name":"test-document_db-database-basic","permission":"readwrite","user_name":"user_02"}' + headers: + Content-Length: + - "100" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:24 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 848e2c54-cf9d-49d2-acbd-0f6a91fefdaa + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:24 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f6aabc40-efed-409c-9a01-c4adc3823278 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:24 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b1d98c4d-1c83-47b3-99b3-ff55bbe01fb3 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users?name=user_02&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":false,"name":"user_02"}]}' + headers: + Content-Length: + - "65" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:25 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - dc3ee911-fade-4ebf-aa95-fcf14a54b4b9 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/privileges?database_name=test-document_db-database-basic&order_by=user_name_asc&user_name=user_02 + method: GET + response: + body: '{"privileges":[{"database_name":"test-document_db-database-basic","permission":"readwrite","user_name":"user_02"}],"total_count":1}' + headers: + Content-Length: + - "134" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:25 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f4fedc10-0636-48a5-81d5-ca2b4547b274 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/privileges?database_name=test-document_db-database-basic&order_by=user_name_asc&user_name=user_02 + method: GET + response: + body: '{"privileges":[{"database_name":"test-document_db-database-basic","permission":"readwrite","user_name":"user_02"}],"total_count":1}' + headers: + Content-Length: + - "134" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:25 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9a7c7a60-0570-415f-9071-330dd2184acb + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:26 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 150efe21-fcbb-421f-81d6-179a31d1177a + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users?name=user_02&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":false,"name":"user_02"}]}' + headers: + Content-Length: + - "65" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:26 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 82db5a0d-22e1-4ae7-af7b-8eef067ee573 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:26 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bcfe4f41-f9f7-4ffa-89ad-dfb7cd5ee2c8 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users?name=user_01&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":true,"name":"user_01"}]}' + headers: + Content-Length: + - "64" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:26 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6d8ea3d9-3584-401a-ba15-1f009ac4be3c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/databases?name=test-document_db-database-basic&order_by=name_asc + method: GET + response: + body: '{"databases":[{"managed":true,"name":"test-document_db-database-basic","owner":"_rdb_superadmin","size":8782627}],"total_count":1}' + headers: + Content-Length: + - "134" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:27 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 21a8b827-dfed-4634-ab7f-265b3ff32c0c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:27 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2f9e130d-7e57-4fd1-a2df-7591115b28b8 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:27 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6a909986-84fc-4a04-91e8-2b0183b0a873 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users?name=user_01&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":true,"name":"user_01"}]}' + headers: + Content-Length: + - "64" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:27 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 59dfe9ac-6019-4e4a-9c81-29d2a9de6c8a + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users?name=user_02&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":false,"name":"user_02"}]}' + headers: + Content-Length: + - "65" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:27 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 31d9965e-ca3a-488e-a1a6-c14942bddd5a + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/privileges?database_name=test-document_db-database-basic&order_by=user_name_asc&user_name=user_02 + method: GET + response: + body: '{"privileges":[{"database_name":"test-document_db-database-basic","permission":"readwrite","user_name":"user_02"}],"total_count":1}' + headers: + Content-Length: + - "134" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:28 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2120792f-4274-4407-8ead-e6b926510cc3 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/privileges?database_name=test-document_db-database-basic&order_by=user_name_asc&user_name=user_01 + method: GET + response: + body: '{"privileges":[{"database_name":"test-document_db-database-basic","permission":"all","user_name":"user_01"}],"total_count":1}' + headers: + Content-Length: + - "128" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:28 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6f46a5ba-d4d0-479c-b0e3-e0d42f5db130 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:28 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - fe36329b-9ab9-4bca-bfb3-7a17c04cf047 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users?name=user_01&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":true,"name":"user_01"}]}' + headers: + Content-Length: + - "64" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:28 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ea872171-8a72-4fc5-914f-a7facecdc044 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users?name=user_02&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":false,"name":"user_02"}]}' + headers: + Content-Length: + - "65" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:28 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c77be5ba-1ded-4a45-afda-2b9f3b12ab5a + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:28 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7e7504bd-0739-406f-b0b6-c1810d17c7f0 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/databases?name=test-document_db-database-basic&order_by=name_asc + method: GET + response: + body: '{"databases":[{"managed":true,"name":"test-document_db-database-basic","owner":"_rdb_superadmin","size":8782627}],"total_count":1}' + headers: + Content-Length: + - "134" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:28 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0a9a2e9e-a909-4d08-9dc8-367f69d27eaa + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:29 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0b31477b-a75f-43c9-89a2-7227be8cb1bc + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:29 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1b6ceae7-aabf-456d-bd9a-5be01dc18cfa + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users?name=user_01&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":true,"name":"user_01"}]}' + headers: + Content-Length: + - "64" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:29 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - cdd7af27-42b1-411d-8bef-0d2cca325185 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users?name=user_02&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":false,"name":"user_02"}]}' + headers: + Content-Length: + - "65" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:29 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 38370066-601d-42e6-95eb-8328611c29b1 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/privileges?database_name=test-document_db-database-basic&order_by=user_name_asc&user_name=user_02 + method: GET + response: + body: '{"privileges":[{"database_name":"test-document_db-database-basic","permission":"readwrite","user_name":"user_02"}],"total_count":1}' + headers: + Content-Length: + - "134" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:30 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0988d64e-3281-470c-a273-b69f1e0a7919 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/privileges?database_name=test-document_db-database-basic&order_by=user_name_asc&user_name=user_01 + method: GET + response: + body: '{"privileges":[{"database_name":"test-document_db-database-basic","permission":"all","user_name":"user_01"}],"total_count":1}' + headers: + Content-Length: + - "128" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:30 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d0e888cc-fb7c-4be3-8889-eae41999b499 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:30 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 31300cda-1aeb-4c5c-b81a-b7503303606a + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"name":"user_03","password":"R34lP4sSw#Rd","is_admin":false}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users + method: POST + response: + body: '{"is_admin":false,"name":"user_03"}' + headers: + Content-Length: + - "36" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:30 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 32eeef29-e7c1-4ca6-8bfa-47334568dd48 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users?name=user_03&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":false,"name":"user_03"}]}' + headers: + Content-Length: + - "65" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:31 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - dbe7808f-b8bc-49ef-ae92-18d5ae4ac46d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:31 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - cf3d889d-c2ef-4e37-a248-8a5f581a3c61 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"database_name":"test-document_db-database-basic","user_name":"user_03","permission":"none"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/privileges + method: PUT + response: + body: '{"database_name":"test-document_db-database-basic","permission":"none","user_name":"user_03"}' + headers: + Content-Length: + - "95" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:31 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5406dc52-144c-43c0-b315-5a5d4f127022 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:31 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3579e8a9-e094-431b-9609-b87835593c28 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:31 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a78be8ac-13a2-4f8d-b910-df02c2cc42f0 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users?name=user_03&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":false,"name":"user_03"}]}' + headers: + Content-Length: + - "65" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:31 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6872bbcd-08ee-46fc-a441-68f713b7f270 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/privileges?database_name=test-document_db-database-basic&order_by=user_name_asc&user_name=user_03 + method: GET + response: + body: '{"privileges":[{"database_name":"test-document_db-database-basic","permission":"none","user_name":"user_03"}],"total_count":1}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:32 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9c563474-a06e-4770-a70c-9106540ab881 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/privileges?database_name=test-document_db-database-basic&order_by=user_name_asc&user_name=user_03 + method: GET + response: + body: '{"privileges":[{"database_name":"test-document_db-database-basic","permission":"none","user_name":"user_03"}],"total_count":1}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:32 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 48e7daa3-76f3-4223-9ce2-7c05a07fbaf1 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:33 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - dfa1182c-f6e7-48f9-a255-78e139a0ead1 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:33 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f51625c4-495c-4635-9916-c1af3cb34fac + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users?name=user_02&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":false,"name":"user_02"}]}' + headers: + Content-Length: + - "65" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:33 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4c2b8069-4a93-42b4-b2b6-ff0bffba5b8f + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users?name=user_03&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":false,"name":"user_03"}]}' + headers: + Content-Length: + - "65" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:33 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5c952c63-9846-47b6-86bc-eae68be9d87d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users?name=user_01&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":true,"name":"user_01"}]}' + headers: + Content-Length: + - "64" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:33 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e34bd5ac-50a9-4fb1-acac-3d90f0948bb3 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/databases?name=test-document_db-database-basic&order_by=name_asc + method: GET + response: + body: '{"databases":[{"managed":true,"name":"test-document_db-database-basic","owner":"_rdb_superadmin","size":8782627}],"total_count":1}' + headers: + Content-Length: + - "134" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:33 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - fabf68fd-970e-4a3d-85da-f0da6ef61172 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:33 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 00ead352-3a60-458c-bbba-1621bbb2754f + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:33 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f65120df-1cad-4c29-a1c3-9f884528552e + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:33 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 263d0d77-7493-4ed1-94bb-e955fe4c4f2b + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users?name=user_03&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":false,"name":"user_03"}]}' + headers: + Content-Length: + - "65" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:33 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1692e318-3237-4d67-9fbe-e8c272dd59f9 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users?name=user_01&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":true,"name":"user_01"}]}' + headers: + Content-Length: + - "64" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:33 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3f612382-d73f-4169-a2f7-e7c8f1c54b25 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users?name=user_02&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":false,"name":"user_02"}]}' + headers: + Content-Length: + - "65" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:34 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7455cc5e-c8a0-45a4-93be-e5ab09d4721b + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/privileges?database_name=test-document_db-database-basic&order_by=user_name_asc&user_name=user_03 + method: GET + response: + body: '{"privileges":[{"database_name":"test-document_db-database-basic","permission":"none","user_name":"user_03"}],"total_count":1}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:34 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 00f5bc34-b020-47ce-b777-c1511fb908d1 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/privileges?database_name=test-document_db-database-basic&order_by=user_name_asc&user_name=user_02 + method: GET + response: + body: '{"privileges":[{"database_name":"test-document_db-database-basic","permission":"readwrite","user_name":"user_02"}],"total_count":1}' + headers: + Content-Length: + - "134" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:34 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b16c1551-7dd4-4e51-a534-901776b0ccc3 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/privileges?database_name=test-document_db-database-basic&order_by=user_name_asc&user_name=user_01 + method: GET + response: + body: '{"privileges":[{"database_name":"test-document_db-database-basic","permission":"all","user_name":"user_01"}],"total_count":1}' + headers: + Content-Length: + - "128" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:34 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - eb226217-1f99-4169-9f6d-e8d3beb009da + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:35 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bb19db28-bf43-4d84-a05b-3e33070d879a + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:35 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2e7ef18f-056b-4a29-ab91-3b94fc4a77a2 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:35 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 35338745-6b33-4b58-bf17-01a7a78fb6d0 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users?name=user_03&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":false,"name":"user_03"}]}' + headers: + Content-Length: + - "65" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:35 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - fb510732-a737-4c49-ae3c-e29a202305ec + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users?name=user_01&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":true,"name":"user_01"}]}' + headers: + Content-Length: + - "64" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:36 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a9912e5b-f864-4175-ae8b-b2fda49b6b7b + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users?name=user_02&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":false,"name":"user_02"}]}' + headers: + Content-Length: + - "65" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:36 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 72c781a9-0cf7-4f47-9d31-2c6f117a50cb + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users?name=user_03&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":false,"name":"user_03"}]}' + headers: + Content-Length: + - "65" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:36 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f1cde7ac-0e45-49af-b34f-affaceec232f + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users?name=user_01&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":true,"name":"user_01"}]}' + headers: + Content-Length: + - "64" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:37 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 21f08d18-cc40-4471-9540-8cdf9b8eff83 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users?name=user_02&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":false,"name":"user_02"}]}' + headers: + Content-Length: + - "65" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:37 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b7748e1d-743b-4e08-b3f7-ec494dd0ac70 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"database_name":"test-document_db-database-basic","user_name":"user_03","permission":"none"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/privileges + method: PUT + response: + body: '{"database_name":"test-document_db-database-basic","permission":"none","user_name":"user_03"}' + headers: + Content-Length: + - "95" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:37 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 38071a53-e163-4de6-94be-f7cdba3fbc1d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:37 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 38779418-0830-44bf-a96b-c75619661c2f + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"database_name":"test-document_db-database-basic","user_name":"user_01","permission":"none"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/privileges + method: PUT + response: + body: '{"database_name":"test-document_db-database-basic","permission":"none","user_name":"user_01"}' + headers: + Content-Length: + - "95" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:37 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b6933330-0d74-495d-8dd4-9eae38e14748 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"database_name":"test-document_db-database-basic","user_name":"user_02","permission":"none"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/privileges + method: PUT + response: + body: '{"database_name":"test-document_db-database-basic","permission":"none","user_name":"user_02"}' + headers: + Content-Length: + - "95" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:37 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c6773104-1b2d-4d28-9742-6d191189d1ab + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:37 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - eadb460f-57cf-4876-94a5-953a1b792c90 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:37 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - cf8f2944-b07d-4402-b260-cb18f7472af7 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:37 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 731de80a-1706-4651-b296-913b209d77f1 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users/user_03 + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:38 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6e9b70f4-1fdb-499a-826d-0d2a784ffa23 + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:38 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3ac7e9a5-bb21-4fd7-aebb-29c0ac586c7c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:38 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 86ab4a60-b775-4f53-863b-ec7ee498c760 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:38 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 31df715f-b142-40e0-a6e8-f24c18fe888c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users/user_01 + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:39 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5a705f41-0b33-40f4-9291-c83c619fa975 + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/users/user_02 + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:40 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 85eb202b-b77f-4e37-b431-f7f0c38eefe6 + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e/databases/test-document_db-database-basic + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:41 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5d184723-4a66-44fb-a898-91f98250a8de + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:43 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c5a2c8f7-d7b7-4d6f-80d4-b73c50e8a0a4 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1088" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:43 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 275f6fb5-33d5-46bc-b39c-e25d7da4a4ca + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: DELETE + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"deleting","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1091" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:44 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9f8b3b90-8aac-4214-a070-afb272340416 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:08:44.906550Z","retention":7},"created_at":"2023-10-02T20:08:44.906550Z","endpoint":{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638},"endpoints":[{"id":"55e4f1b7-4cf3-4ec3-bf40-8365cb946d79","ip":"51.159.113.128","load_balancer":{},"name":null,"port":14638}],"engine":"FerretDB-1","id":"509c2199-a8a5-4577-aec3-256ea858811e","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-instance-privilege","node_type":"docdb-play2-pico","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"deleting","tags":["terraform-test","scaleway_document_db_instance","minimal"],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1091" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:12:45 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c124ab40-5393-442a-9135-e7716adf35f3 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: GET + response: + body: '{"message":"resource is not found","resource":"instance","resource_id":"509c2199-a8a5-4577-aec3-256ea858811e","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:13:19 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 41fbb09f-6afd-40e5-bea8-9c7e319074eb + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/509c2199-a8a5-4577-aec3-256ea858811e + method: DELETE + response: + body: '{"message":"resource is not found","resource":"instance","resource_id":"509c2199-a8a5-4577-aec3-256ea858811e","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:13:21 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 833dcba9-2ef1-4fc5-b04a-15319a53eeca + status: 404 Not Found + code: 404 + duration: "" diff --git a/scaleway/testdata/document-db-read-replica-basic.cassette.yaml b/scaleway/testdata/document-db-read-replica-basic.cassette.yaml new file mode 100644 index 000000000..264b75dad --- /dev/null +++ b/scaleway/testdata/document-db-read-replica-basic.cassette.yaml @@ -0,0 +1,1063 @@ +--- +version: 1 +interactions: +- request: + body: '{"project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","name":"test-document_db-read-replica-basic","engine":"FerretDB-1","user_name":"my_initial_user","password":"thiZ_is_v\u0026ry_s3cret","node_type":"docdb-play2-pico","is_ha_cluster":false,"disable_backup":false,"tags":null,"init_settings":null,"volume_type":"bssd","volume_size":20000000000,"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.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances + method: POST + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:47:20.627502Z","retention":7},"created_at":"2023-10-02T20:47:20.627502Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"ef8322c4-5119-4a0a-b361-4f2cb2da91c6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "768" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:47:20 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 28011710-4f9b-4dac-b62c-2fc974850436 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/ef8322c4-5119-4a0a-b361-4f2cb2da91c6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:47:20.627502Z","retention":7},"created_at":"2023-10-02T20:47:20.627502Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"ef8322c4-5119-4a0a-b361-4f2cb2da91c6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "768" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:47:22 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1b224313-5bac-4de1-bb7b-1c16ceace678 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/ef8322c4-5119-4a0a-b361-4f2cb2da91c6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:47:20.627502Z","retention":7},"created_at":"2023-10-02T20:47:20.627502Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"ef8322c4-5119-4a0a-b361-4f2cb2da91c6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "768" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:47:52 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c88193a5-8b54-4f3f-9880-c6fa6cf55479 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/ef8322c4-5119-4a0a-b361-4f2cb2da91c6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:47:20.627502Z","retention":7},"created_at":"2023-10-02T20:47:20.627502Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"ef8322c4-5119-4a0a-b361-4f2cb2da91c6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "768" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:48:22 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8f758ac7-9ecd-4c66-b1f3-a3ddb5d7dfe3 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/ef8322c4-5119-4a0a-b361-4f2cb2da91c6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:47:20.627502Z","retention":7},"created_at":"2023-10-02T20:47:20.627502Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"ef8322c4-5119-4a0a-b361-4f2cb2da91c6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "768" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:48:53 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 93f4d676-718b-4e87-a66c-ff69a215ba4d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/ef8322c4-5119-4a0a-b361-4f2cb2da91c6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:47:20.627502Z","retention":7},"created_at":"2023-10-02T20:47:20.627502Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"ef8322c4-5119-4a0a-b361-4f2cb2da91c6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "768" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:49:23 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ad96602d-e171-4d50-b005-09c7d5321c7f + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/ef8322c4-5119-4a0a-b361-4f2cb2da91c6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:47:20.627502Z","retention":7},"created_at":"2023-10-02T20:47:20.627502Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"ef8322c4-5119-4a0a-b361-4f2cb2da91c6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "768" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:49:53 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6bbf56f5-3196-4bc7-a069-8e8997775e9a + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/ef8322c4-5119-4a0a-b361-4f2cb2da91c6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:47:20.627502Z","retention":7},"created_at":"2023-10-02T20:47:20.627502Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"ef8322c4-5119-4a0a-b361-4f2cb2da91c6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "768" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:50:24 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3cae9830-665e-45fa-9c6c-3862c97876f5 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/ef8322c4-5119-4a0a-b361-4f2cb2da91c6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:47:20.627502Z","retention":7},"created_at":"2023-10-02T20:47:20.627502Z","endpoint":{"id":"9ef03008-7abe-4ee0-ba97-cb06096022f3","ip":"51.159.113.146","load_balancer":{},"name":null,"port":9451},"endpoints":[{"id":"9ef03008-7abe-4ee0-ba97-cb06096022f3","ip":"51.159.113.146","load_balancer":{},"name":null,"port":9451}],"engine":"FerretDB-1","id":"ef8322c4-5119-4a0a-b361-4f2cb2da91c6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1026" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:50:54 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - fbcac1ff-b017-4420-a0c0-c45445de5d41 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/ef8322c4-5119-4a0a-b361-4f2cb2da91c6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:47:20.627502Z","retention":7},"created_at":"2023-10-02T20:47:20.627502Z","endpoint":{"id":"9ef03008-7abe-4ee0-ba97-cb06096022f3","ip":"51.159.113.146","load_balancer":{},"name":null,"port":9451},"endpoints":[{"id":"9ef03008-7abe-4ee0-ba97-cb06096022f3","ip":"51.159.113.146","load_balancer":{},"name":null,"port":9451}],"engine":"FerretDB-1","id":"ef8322c4-5119-4a0a-b361-4f2cb2da91c6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1026" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:50:54 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bc69a25a-89bb-4b1a-b34d-bbe43d7a53d1 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"instance_id":"ef8322c4-5119-4a0a-b361-4f2cb2da91c6","endpoint_spec":[{"direct_access":{}}],"same_zone":null}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas + method: POST + response: + body: '{"endpoints":[],"id":"b08e9467-d627-4b4d-93db-2fd190a52dd0","region":"fr-par","same_zone":true,"status":"provisioning"}' + headers: + Content-Length: + - "123" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:50:55 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d284fb76-7b4f-4a30-9b6c-003a0503ea60 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/b08e9467-d627-4b4d-93db-2fd190a52dd0 + method: GET + response: + body: '{"endpoints":[],"id":"b08e9467-d627-4b4d-93db-2fd190a52dd0","region":"fr-par","same_zone":true,"status":"provisioning"}' + headers: + Content-Length: + - "123" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:50:55 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ae0b75d7-c7e7-4be9-a61f-b2b59a9484bf + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/b08e9467-d627-4b4d-93db-2fd190a52dd0 + method: GET + response: + body: '{"endpoints":[],"id":"b08e9467-d627-4b4d-93db-2fd190a52dd0","region":"fr-par","same_zone":true,"status":"provisioning"}' + headers: + Content-Length: + - "123" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:51:25 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4d8918ff-0e29-45c1-9581-96fce97d0f48 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/b08e9467-d627-4b4d-93db-2fd190a52dd0 + method: GET + response: + body: '{"endpoints":[{"direct_access":{},"id":"47d2aff1-8fa0-40fd-a0f8-a712c4b0e42e","ip":"163.172.136.171","name":null,"port":27017}],"id":"b08e9467-d627-4b4d-93db-2fd190a52dd0","region":"fr-par","same_zone":true,"status":"initializing"}' + headers: + Content-Length: + - "239" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:51:56 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ecf4dfd6-8d1b-418d-8e76-3163096e2faa + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/b08e9467-d627-4b4d-93db-2fd190a52dd0 + method: GET + response: + body: '{"endpoints":[{"direct_access":{},"id":"47d2aff1-8fa0-40fd-a0f8-a712c4b0e42e","ip":"163.172.136.171","name":null,"port":27017}],"id":"b08e9467-d627-4b4d-93db-2fd190a52dd0","region":"fr-par","same_zone":true,"status":"initializing"}' + headers: + Content-Length: + - "239" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:52:26 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 957d1c3e-e345-436b-b1c0-7570db1cdaf4 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/b08e9467-d627-4b4d-93db-2fd190a52dd0 + method: GET + response: + body: '{"endpoints":[{"direct_access":{},"id":"47d2aff1-8fa0-40fd-a0f8-a712c4b0e42e","ip":"163.172.136.171","name":null,"port":27017}],"id":"b08e9467-d627-4b4d-93db-2fd190a52dd0","region":"fr-par","same_zone":true,"status":"initializing"}' + headers: + Content-Length: + - "239" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:52:56 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 96954f48-a2de-49fc-89ec-9ce446250bd6 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/b08e9467-d627-4b4d-93db-2fd190a52dd0 + method: GET + response: + body: '{"endpoints":[{"direct_access":{},"id":"47d2aff1-8fa0-40fd-a0f8-a712c4b0e42e","ip":"163.172.136.171","name":null,"port":27017}],"id":"b08e9467-d627-4b4d-93db-2fd190a52dd0","region":"fr-par","same_zone":true,"status":"initializing"}' + headers: + Content-Length: + - "239" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:53:26 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 530482ec-fb52-4ff5-9e9f-e93a7328d3fc + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/b08e9467-d627-4b4d-93db-2fd190a52dd0 + method: GET + response: + body: '{"endpoints":[{"direct_access":{},"id":"47d2aff1-8fa0-40fd-a0f8-a712c4b0e42e","ip":"163.172.136.171","name":null,"port":27017}],"id":"b08e9467-d627-4b4d-93db-2fd190a52dd0","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "232" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:53:57 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 320b84ef-ccd3-4700-89d5-bb33ad029ead + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/b08e9467-d627-4b4d-93db-2fd190a52dd0 + method: GET + response: + body: '{"endpoints":[{"direct_access":{},"id":"47d2aff1-8fa0-40fd-a0f8-a712c4b0e42e","ip":"163.172.136.171","name":null,"port":27017}],"id":"b08e9467-d627-4b4d-93db-2fd190a52dd0","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "232" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:53:57 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5a8d3117-35c5-4e8a-8a1c-6171d96da0db + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/b08e9467-d627-4b4d-93db-2fd190a52dd0 + method: GET + response: + body: '{"endpoints":[{"direct_access":{},"id":"47d2aff1-8fa0-40fd-a0f8-a712c4b0e42e","ip":"163.172.136.171","name":null,"port":27017}],"id":"b08e9467-d627-4b4d-93db-2fd190a52dd0","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "232" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:53:57 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1af173e5-485a-4ce0-84d7-6353633984c3 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/ef8322c4-5119-4a0a-b361-4f2cb2da91c6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:47:20.627502Z","retention":7},"created_at":"2023-10-02T20:47:20.627502Z","endpoint":{"id":"9ef03008-7abe-4ee0-ba97-cb06096022f3","ip":"51.159.113.146","load_balancer":{},"name":null,"port":9451},"endpoints":[{"id":"9ef03008-7abe-4ee0-ba97-cb06096022f3","ip":"51.159.113.146","load_balancer":{},"name":null,"port":9451}],"engine":"FerretDB-1","id":"ef8322c4-5119-4a0a-b361-4f2cb2da91c6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[{"endpoints":[{"direct_access":{},"id":"47d2aff1-8fa0-40fd-a0f8-a712c4b0e42e","ip":"163.172.136.171","name":null,"port":27017}],"id":"b08e9467-d627-4b4d-93db-2fd190a52dd0","region":"fr-par","same_zone":true,"status":"ready"}],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1258" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:53:58 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b283beff-8fc2-4312-a64f-feb06349e930 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/b08e9467-d627-4b4d-93db-2fd190a52dd0 + method: GET + response: + body: '{"endpoints":[{"direct_access":{},"id":"47d2aff1-8fa0-40fd-a0f8-a712c4b0e42e","ip":"163.172.136.171","name":null,"port":27017}],"id":"b08e9467-d627-4b4d-93db-2fd190a52dd0","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "232" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:53:58 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b5b1f253-241a-41b8-afa0-381d695a642d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/b08e9467-d627-4b4d-93db-2fd190a52dd0 + method: GET + response: + body: '{"endpoints":[{"direct_access":{},"id":"47d2aff1-8fa0-40fd-a0f8-a712c4b0e42e","ip":"163.172.136.171","name":null,"port":27017}],"id":"b08e9467-d627-4b4d-93db-2fd190a52dd0","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "232" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:53:59 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4f2b8b5d-0ec6-4631-9ee7-ab6074b1c1e2 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/b08e9467-d627-4b4d-93db-2fd190a52dd0 + method: DELETE + response: + body: '{"endpoints":[{"direct_access":{},"id":"47d2aff1-8fa0-40fd-a0f8-a712c4b0e42e","ip":"163.172.136.171","name":null,"port":27017}],"id":"b08e9467-d627-4b4d-93db-2fd190a52dd0","region":"fr-par","same_zone":true,"status":"deleting"}' + headers: + Content-Length: + - "235" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:53:59 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 629fa5b1-f0ec-41a6-9161-58379bf5bb4b + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/b08e9467-d627-4b4d-93db-2fd190a52dd0 + method: GET + response: + body: '{"endpoints":[{"direct_access":{},"id":"47d2aff1-8fa0-40fd-a0f8-a712c4b0e42e","ip":"163.172.136.171","name":null,"port":27017}],"id":"b08e9467-d627-4b4d-93db-2fd190a52dd0","region":"fr-par","same_zone":true,"status":"deleting"}' + headers: + Content-Length: + - "235" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:53:59 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - fbedf9ee-19c4-49f4-aabc-780d51ef5211 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/b08e9467-d627-4b4d-93db-2fd190a52dd0 + method: GET + response: + body: '{"message":"resource is not found","resource":"read_replica","resource_id":"b08e9467-d627-4b4d-93db-2fd190a52dd0","type":"not_found"}' + headers: + Content-Length: + - "133" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:54:29 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 536e8503-26b9-4ff0-a3be-fee353df660c + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/ef8322c4-5119-4a0a-b361-4f2cb2da91c6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:47:20.627502Z","retention":7},"created_at":"2023-10-02T20:47:20.627502Z","endpoint":{"id":"9ef03008-7abe-4ee0-ba97-cb06096022f3","ip":"51.159.113.146","load_balancer":{},"name":null,"port":9451},"endpoints":[{"id":"9ef03008-7abe-4ee0-ba97-cb06096022f3","ip":"51.159.113.146","load_balancer":{},"name":null,"port":9451}],"engine":"FerretDB-1","id":"ef8322c4-5119-4a0a-b361-4f2cb2da91c6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1026" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:54:30 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - be645563-4a05-4163-8975-4f956f29759a + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/ef8322c4-5119-4a0a-b361-4f2cb2da91c6 + method: DELETE + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:47:20.627502Z","retention":7},"created_at":"2023-10-02T20:47:20.627502Z","endpoint":{"id":"9ef03008-7abe-4ee0-ba97-cb06096022f3","ip":"51.159.113.146","load_balancer":{},"name":null,"port":9451},"endpoints":[{"id":"9ef03008-7abe-4ee0-ba97-cb06096022f3","ip":"51.159.113.146","load_balancer":{},"name":null,"port":9451}],"engine":"FerretDB-1","id":"ef8322c4-5119-4a0a-b361-4f2cb2da91c6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"deleting","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1029" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:54:30 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 74527ff5-0683-4f4d-b271-11afc810c225 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/ef8322c4-5119-4a0a-b361-4f2cb2da91c6 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-03T20:47:20.627502Z","retention":7},"created_at":"2023-10-02T20:47:20.627502Z","endpoint":{"id":"9ef03008-7abe-4ee0-ba97-cb06096022f3","ip":"51.159.113.146","load_balancer":{},"name":null,"port":9451},"endpoints":[{"id":"9ef03008-7abe-4ee0-ba97-cb06096022f3","ip":"51.159.113.146","load_balancer":{},"name":null,"port":9451}],"engine":"FerretDB-1","id":"ef8322c4-5119-4a0a-b361-4f2cb2da91c6","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"deleting","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1029" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:54:30 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8288f979-b3e8-4164-9be6-26b6e205da9b + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/ef8322c4-5119-4a0a-b361-4f2cb2da91c6 + method: GET + response: + body: '{"message":"resource is not found","resource":"instance","resource_id":"ef8322c4-5119-4a0a-b361-4f2cb2da91c6","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:55:00 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1d46ca83-9058-496a-b773-007321060a1c + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/ef8322c4-5119-4a0a-b361-4f2cb2da91c6 + method: DELETE + response: + body: '{"message":"resource is not found","resource":"instance","resource_id":"ef8322c4-5119-4a0a-b361-4f2cb2da91c6","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:55:00 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7105f2d1-8f75-46c2-8412-a0e2405d5f6c + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/b08e9467-d627-4b4d-93db-2fd190a52dd0 + method: GET + response: + body: '{"message":"resource is not found","resource":"read_replica","resource_id":"b08e9467-d627-4b4d-93db-2fd190a52dd0","type":"not_found"}' + headers: + Content-Length: + - "133" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 02 Oct 2023 20:55:00 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6b9700a6-0fb3-4565-ba01-f4588dd733cb + status: 404 Not Found + code: 404 + duration: "" diff --git a/scaleway/testdata/document-db-read-replica-multiple-endpoints.cassette.yaml b/scaleway/testdata/document-db-read-replica-multiple-endpoints.cassette.yaml new file mode 100644 index 000000000..caa049304 --- /dev/null +++ b/scaleway/testdata/document-db-read-replica-multiple-endpoints.cassette.yaml @@ -0,0 +1,1228 @@ +--- +version: 1 +interactions: +- request: + body: '{"project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","name":"test-document_db-read-replica-basic","engine":"FerretDB-1","user_name":"my_initial_user","password":"thiZ_is_v\u0026ry_s3cret","node_type":"docdb-play2-pico","is_ha_cluster":false,"disable_backup":false,"tags":null,"init_settings":null,"volume_type":"bssd","volume_size":20000000000,"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.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances + method: POST + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T11:54:23.452440Z","retention":7},"created_at":"2023-10-03T11:54:23.452440Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"6b36a0b5-9787-4e47-9e37-cbe897589bda","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "768" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 11:54:23 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9a3f0d93-a733-461f-a71c-c0d1b675de34 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"name":"tf-pn-quirky-khorana","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","tags":null,"subnets":null,"vpc_id":null}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks + method: POST + response: + body: '{"created_at":"2023-10-03T11:54:23.077131Z","dhcp_enabled":true,"id":"04bc5a1a-c670-4a3d-a084-a4c806de35ad","name":"tf-pn-quirky-khorana","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","subnets":[{"created_at":"2023-10-03T11:54:23.077131Z","id":"0c8797ca-7a33-4273-a2c4-6bb88e8f3d0e","subnet":"172.16.32.0/22","updated_at":"2023-10-03T11:54:23.077131Z"},{"created_at":"2023-10-03T11:54:23.077131Z","id":"b45ad8df-5ec4-4066-ab19-341494974187","subnet":"fdfc:1ffc:be97:9f9b::/64","updated_at":"2023-10-03T11:54:23.077131Z"}],"tags":[],"updated_at":"2023-10-03T11:54:23.077131Z","vpc_id":"f30db962-6029-4ae2-bb33-8b32693afadf"}' + headers: + Content-Length: + - "721" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 11:54:23 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a725c6b2-67ea-4bdd-9158-1c7b48def3ce + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/04bc5a1a-c670-4a3d-a084-a4c806de35ad + method: GET + response: + body: '{"created_at":"2023-10-03T11:54:23.077131Z","dhcp_enabled":true,"id":"04bc5a1a-c670-4a3d-a084-a4c806de35ad","name":"tf-pn-quirky-khorana","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","subnets":[{"created_at":"2023-10-03T11:54:23.077131Z","id":"0c8797ca-7a33-4273-a2c4-6bb88e8f3d0e","subnet":"172.16.32.0/22","updated_at":"2023-10-03T11:54:23.077131Z"},{"created_at":"2023-10-03T11:54:23.077131Z","id":"b45ad8df-5ec4-4066-ab19-341494974187","subnet":"fdfc:1ffc:be97:9f9b::/64","updated_at":"2023-10-03T11:54:23.077131Z"}],"tags":[],"updated_at":"2023-10-03T11:54:23.077131Z","vpc_id":"f30db962-6029-4ae2-bb33-8b32693afadf"}' + headers: + Content-Length: + - "721" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 11:54:23 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5ca3c4b9-8b2c-4de8-a79d-ccabd72befcd + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/6b36a0b5-9787-4e47-9e37-cbe897589bda + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T11:54:23.452440Z","retention":7},"created_at":"2023-10-03T11:54:23.452440Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"6b36a0b5-9787-4e47-9e37-cbe897589bda","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "768" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 11:54:24 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 55c1578c-6625-4cad-94da-ca28f141d69d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/6b36a0b5-9787-4e47-9e37-cbe897589bda + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T11:54:23.452440Z","retention":7},"created_at":"2023-10-03T11:54:23.452440Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"6b36a0b5-9787-4e47-9e37-cbe897589bda","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "768" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 11:54:54 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8097db65-9dff-4b09-bbcd-c01005f0030c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/6b36a0b5-9787-4e47-9e37-cbe897589bda + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T11:54:23.452440Z","retention":7},"created_at":"2023-10-03T11:54:23.452440Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"6b36a0b5-9787-4e47-9e37-cbe897589bda","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "768" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 11:55:24 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 74f41c62-16a2-4991-95ef-b6471c00be22 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/6b36a0b5-9787-4e47-9e37-cbe897589bda + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T11:54:23.452440Z","retention":7},"created_at":"2023-10-03T11:54:23.452440Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"6b36a0b5-9787-4e47-9e37-cbe897589bda","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "768" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 11:55:54 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 50c4a6e5-b5bb-4638-85e2-ecc952930211 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/6b36a0b5-9787-4e47-9e37-cbe897589bda + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T11:54:23.452440Z","retention":7},"created_at":"2023-10-03T11:54:23.452440Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"6b36a0b5-9787-4e47-9e37-cbe897589bda","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "768" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 11:56:25 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b907ea87-de0c-4f9e-b102-a7c135f099ea + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/6b36a0b5-9787-4e47-9e37-cbe897589bda + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T11:54:23.452440Z","retention":7},"created_at":"2023-10-03T11:54:23.452440Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"6b36a0b5-9787-4e47-9e37-cbe897589bda","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "768" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 11:56:55 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8a85feac-a4c6-40cd-80db-d7d178eba892 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/6b36a0b5-9787-4e47-9e37-cbe897589bda + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T11:54:23.452440Z","retention":7},"created_at":"2023-10-03T11:54:23.452440Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"6b36a0b5-9787-4e47-9e37-cbe897589bda","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "768" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 11:57:25 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 390dd803-bd86-411d-89a0-9e3b579f310c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/6b36a0b5-9787-4e47-9e37-cbe897589bda + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T11:54:23.452440Z","retention":7},"created_at":"2023-10-03T11:54:23.452440Z","endpoint":{"id":"d33cf74e-4392-48c9-91d5-324f82818743","ip":"51.159.8.77","load_balancer":{},"name":null,"port":11134},"endpoints":[{"id":"d33cf74e-4392-48c9-91d5-324f82818743","ip":"51.159.8.77","load_balancer":{},"name":null,"port":11134}],"engine":"FerretDB-1","id":"6b36a0b5-9787-4e47-9e37-cbe897589bda","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1022" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 11:57:55 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c4c817e0-5ed9-42f5-839d-03ced442a0d4 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/6b36a0b5-9787-4e47-9e37-cbe897589bda + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T11:54:23.452440Z","retention":7},"created_at":"2023-10-03T11:54:23.452440Z","endpoint":{"id":"d33cf74e-4392-48c9-91d5-324f82818743","ip":"51.159.8.77","load_balancer":{},"name":null,"port":11134},"endpoints":[{"id":"d33cf74e-4392-48c9-91d5-324f82818743","ip":"51.159.8.77","load_balancer":{},"name":null,"port":11134}],"engine":"FerretDB-1","id":"6b36a0b5-9787-4e47-9e37-cbe897589bda","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1022" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 11:57:55 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 054d7b54-e744-4d84-aacc-3e988aa7830a + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"instance_id":"6b36a0b5-9787-4e47-9e37-cbe897589bda","endpoint_spec":[{"direct_access":{}},{"private_network":{"private_network_id":"04bc5a1a-c670-4a3d-a084-a4c806de35ad","service_ip":"10.12.1.0/20"}}],"same_zone":null}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas + method: POST + response: + body: '{"endpoints":[{"id":"878a4ffd-edbd-48a5-b187-e94df76a3153","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"04bc5a1a-c670-4a3d-a084-a4c806de35ad","service_ip":"10.12.1.0/20","zone":"fr-par-1"}}],"id":"454e405c-a5ed-4c27-ba8b-a67f11d38a78","region":"fr-par","same_zone":true,"status":"provisioning"}' + headers: + Content-Length: + - "342" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 11:57:56 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7d3df097-18fe-46c1-b4c4-644c3f9f87c9 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/454e405c-a5ed-4c27-ba8b-a67f11d38a78 + method: GET + response: + body: '{"endpoints":[{"id":"878a4ffd-edbd-48a5-b187-e94df76a3153","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"04bc5a1a-c670-4a3d-a084-a4c806de35ad","service_ip":"10.12.1.0/20","zone":"fr-par-1"}}],"id":"454e405c-a5ed-4c27-ba8b-a67f11d38a78","region":"fr-par","same_zone":true,"status":"provisioning"}' + headers: + Content-Length: + - "342" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 11:57:56 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 46a410b1-bb0f-4ba6-96f7-954529c1e1a3 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/454e405c-a5ed-4c27-ba8b-a67f11d38a78 + method: GET + response: + body: '{"endpoints":[{"id":"878a4ffd-edbd-48a5-b187-e94df76a3153","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"04bc5a1a-c670-4a3d-a084-a4c806de35ad","service_ip":"10.12.1.0/20","zone":"fr-par-1"}}],"id":"454e405c-a5ed-4c27-ba8b-a67f11d38a78","region":"fr-par","same_zone":true,"status":"provisioning"}' + headers: + Content-Length: + - "342" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 11:58:27 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b8296b16-2e12-4960-8e69-4bc113123294 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/454e405c-a5ed-4c27-ba8b-a67f11d38a78 + method: GET + response: + body: '{"endpoints":[{"id":"878a4ffd-edbd-48a5-b187-e94df76a3153","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"04bc5a1a-c670-4a3d-a084-a4c806de35ad","service_ip":"10.12.1.0/20","zone":"fr-par-1"}}],"id":"454e405c-a5ed-4c27-ba8b-a67f11d38a78","region":"fr-par","same_zone":true,"status":"provisioning"}' + headers: + Content-Length: + - "342" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 11:58:57 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2bb607da-22af-4a1f-a8de-a88adbaa0b3a + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/454e405c-a5ed-4c27-ba8b-a67f11d38a78 + method: GET + response: + body: '{"endpoints":[{"id":"878a4ffd-edbd-48a5-b187-e94df76a3153","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"04bc5a1a-c670-4a3d-a084-a4c806de35ad","service_ip":"10.12.1.0/20","zone":"fr-par-1"}},{"direct_access":{},"id":"66b09afd-8706-413a-a172-c6a6661a58ac","ip":"51.158.109.232","name":null,"port":27017}],"id":"454e405c-a5ed-4c27-ba8b-a67f11d38a78","region":"fr-par","same_zone":true,"status":"initializing"}' + headers: + Content-Length: + - "459" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 11:59:27 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - dd4befc8-1b0e-4385-bbee-59759d1c54e2 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/454e405c-a5ed-4c27-ba8b-a67f11d38a78 + method: GET + response: + body: '{"endpoints":[{"id":"878a4ffd-edbd-48a5-b187-e94df76a3153","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"04bc5a1a-c670-4a3d-a084-a4c806de35ad","service_ip":"10.12.1.0/20","zone":"fr-par-1"}},{"direct_access":{},"id":"66b09afd-8706-413a-a172-c6a6661a58ac","ip":"51.158.109.232","name":null,"port":27017}],"id":"454e405c-a5ed-4c27-ba8b-a67f11d38a78","region":"fr-par","same_zone":true,"status":"initializing"}' + headers: + Content-Length: + - "459" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 11:59:57 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - fb33feda-020d-4192-bcd5-382426a9723a + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/454e405c-a5ed-4c27-ba8b-a67f11d38a78 + method: GET + response: + body: '{"endpoints":[{"id":"878a4ffd-edbd-48a5-b187-e94df76a3153","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"04bc5a1a-c670-4a3d-a084-a4c806de35ad","service_ip":"10.12.1.0/20","zone":"fr-par-1"}},{"direct_access":{},"id":"66b09afd-8706-413a-a172-c6a6661a58ac","ip":"51.158.109.232","name":null,"port":27017}],"id":"454e405c-a5ed-4c27-ba8b-a67f11d38a78","region":"fr-par","same_zone":true,"status":"initializing"}' + headers: + Content-Length: + - "459" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:00:27 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4ae1b5b7-5274-4c26-95b1-b7b18710ca89 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/454e405c-a5ed-4c27-ba8b-a67f11d38a78 + method: GET + response: + body: '{"endpoints":[{"id":"878a4ffd-edbd-48a5-b187-e94df76a3153","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"04bc5a1a-c670-4a3d-a084-a4c806de35ad","service_ip":"10.12.1.0/20","zone":"fr-par-1"}},{"direct_access":{},"id":"66b09afd-8706-413a-a172-c6a6661a58ac","ip":"51.158.109.232","name":null,"port":27017}],"id":"454e405c-a5ed-4c27-ba8b-a67f11d38a78","region":"fr-par","same_zone":true,"status":"initializing"}' + headers: + Content-Length: + - "459" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:00:58 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e21ba52a-b5a5-4e21-8f28-d98f03f16ac8 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/454e405c-a5ed-4c27-ba8b-a67f11d38a78 + method: GET + response: + body: '{"endpoints":[{"id":"878a4ffd-edbd-48a5-b187-e94df76a3153","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"04bc5a1a-c670-4a3d-a084-a4c806de35ad","service_ip":"10.12.1.0/20","zone":"fr-par-1"}},{"direct_access":{},"id":"66b09afd-8706-413a-a172-c6a6661a58ac","ip":"51.158.109.232","name":null,"port":27017}],"id":"454e405c-a5ed-4c27-ba8b-a67f11d38a78","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "452" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:01:28 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - de9e8396-38a6-4198-ad53-693f176273c6 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/454e405c-a5ed-4c27-ba8b-a67f11d38a78 + method: GET + response: + body: '{"endpoints":[{"id":"878a4ffd-edbd-48a5-b187-e94df76a3153","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"04bc5a1a-c670-4a3d-a084-a4c806de35ad","service_ip":"10.12.1.0/20","zone":"fr-par-1"}},{"direct_access":{},"id":"66b09afd-8706-413a-a172-c6a6661a58ac","ip":"51.158.109.232","name":null,"port":27017}],"id":"454e405c-a5ed-4c27-ba8b-a67f11d38a78","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "452" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:01:28 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2f3a4bb2-1e6e-47a3-85ab-4b81b2764b32 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/454e405c-a5ed-4c27-ba8b-a67f11d38a78 + method: GET + response: + body: '{"endpoints":[{"id":"878a4ffd-edbd-48a5-b187-e94df76a3153","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"04bc5a1a-c670-4a3d-a084-a4c806de35ad","service_ip":"10.12.1.0/20","zone":"fr-par-1"}},{"direct_access":{},"id":"66b09afd-8706-413a-a172-c6a6661a58ac","ip":"51.158.109.232","name":null,"port":27017}],"id":"454e405c-a5ed-4c27-ba8b-a67f11d38a78","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "452" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:01:28 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 48dd8a1e-9185-4317-92ae-3d065be8d236 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/04bc5a1a-c670-4a3d-a084-a4c806de35ad + method: GET + response: + body: '{"created_at":"2023-10-03T11:54:23.077131Z","dhcp_enabled":true,"id":"04bc5a1a-c670-4a3d-a084-a4c806de35ad","name":"tf-pn-quirky-khorana","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","subnets":[{"created_at":"2023-10-03T11:54:23.077131Z","id":"0c8797ca-7a33-4273-a2c4-6bb88e8f3d0e","subnet":"172.16.32.0/22","updated_at":"2023-10-03T11:54:23.077131Z"},{"created_at":"2023-10-03T11:54:23.077131Z","id":"b45ad8df-5ec4-4066-ab19-341494974187","subnet":"fdfc:1ffc:be97:9f9b::/64","updated_at":"2023-10-03T11:54:23.077131Z"}],"tags":[],"updated_at":"2023-10-03T11:54:23.077131Z","vpc_id":"f30db962-6029-4ae2-bb33-8b32693afadf"}' + headers: + Content-Length: + - "721" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:01:29 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 970427ce-f20e-4554-9ef8-08b9a76f3966 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/6b36a0b5-9787-4e47-9e37-cbe897589bda + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T11:54:23.452440Z","retention":7},"created_at":"2023-10-03T11:54:23.452440Z","endpoint":{"id":"d33cf74e-4392-48c9-91d5-324f82818743","ip":"51.159.8.77","load_balancer":{},"name":null,"port":11134},"endpoints":[{"id":"d33cf74e-4392-48c9-91d5-324f82818743","ip":"51.159.8.77","load_balancer":{},"name":null,"port":11134}],"engine":"FerretDB-1","id":"6b36a0b5-9787-4e47-9e37-cbe897589bda","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[{"endpoints":[{"id":"878a4ffd-edbd-48a5-b187-e94df76a3153","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"04bc5a1a-c670-4a3d-a084-a4c806de35ad","service_ip":"10.12.1.0/20","zone":"fr-par-1"}},{"direct_access":{},"id":"66b09afd-8706-413a-a172-c6a6661a58ac","ip":"51.158.109.232","name":null,"port":27017}],"id":"454e405c-a5ed-4c27-ba8b-a67f11d38a78","region":"fr-par","same_zone":true,"status":"ready"}],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1474" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:01:29 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9500c116-d1e0-4df2-99c6-b1032f6c12fb + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/454e405c-a5ed-4c27-ba8b-a67f11d38a78 + method: GET + response: + body: '{"endpoints":[{"id":"878a4ffd-edbd-48a5-b187-e94df76a3153","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"04bc5a1a-c670-4a3d-a084-a4c806de35ad","service_ip":"10.12.1.0/20","zone":"fr-par-1"}},{"direct_access":{},"id":"66b09afd-8706-413a-a172-c6a6661a58ac","ip":"51.158.109.232","name":null,"port":27017}],"id":"454e405c-a5ed-4c27-ba8b-a67f11d38a78","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "452" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:01:30 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1f71990d-295f-48d6-8eac-f31c84f163a0 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/454e405c-a5ed-4c27-ba8b-a67f11d38a78 + method: GET + response: + body: '{"endpoints":[{"id":"878a4ffd-edbd-48a5-b187-e94df76a3153","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"04bc5a1a-c670-4a3d-a084-a4c806de35ad","service_ip":"10.12.1.0/20","zone":"fr-par-1"}},{"direct_access":{},"id":"66b09afd-8706-413a-a172-c6a6661a58ac","ip":"51.158.109.232","name":null,"port":27017}],"id":"454e405c-a5ed-4c27-ba8b-a67f11d38a78","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "452" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:01:30 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8c493b96-be71-44df-bc8a-81b2ce5f3fa0 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/454e405c-a5ed-4c27-ba8b-a67f11d38a78 + method: DELETE + response: + body: '{"endpoints":[{"id":"878a4ffd-edbd-48a5-b187-e94df76a3153","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"04bc5a1a-c670-4a3d-a084-a4c806de35ad","service_ip":"10.12.1.0/20","zone":"fr-par-1"}},{"direct_access":{},"id":"66b09afd-8706-413a-a172-c6a6661a58ac","ip":"51.158.109.232","name":null,"port":27017}],"id":"454e405c-a5ed-4c27-ba8b-a67f11d38a78","region":"fr-par","same_zone":true,"status":"deleting"}' + headers: + Content-Length: + - "455" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:01:31 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 125e44a4-ed44-4425-a91b-7f92655688d2 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/454e405c-a5ed-4c27-ba8b-a67f11d38a78 + method: GET + response: + body: '{"endpoints":[{"id":"878a4ffd-edbd-48a5-b187-e94df76a3153","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"04bc5a1a-c670-4a3d-a084-a4c806de35ad","service_ip":"10.12.1.0/20","zone":"fr-par-1"}},{"direct_access":{},"id":"66b09afd-8706-413a-a172-c6a6661a58ac","ip":"51.158.109.232","name":null,"port":27017}],"id":"454e405c-a5ed-4c27-ba8b-a67f11d38a78","region":"fr-par","same_zone":true,"status":"deleting"}' + headers: + Content-Length: + - "455" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:01:31 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 93b2f747-50a3-4279-925a-e7c1696d68d9 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/454e405c-a5ed-4c27-ba8b-a67f11d38a78 + method: GET + response: + body: '{"message":"resource is not found","resource":"read_replica","resource_id":"454e405c-a5ed-4c27-ba8b-a67f11d38a78","type":"not_found"}' + headers: + Content-Length: + - "133" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:02:01 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b36535c0-79d8-4959-8dd8-432677ac0cd4 + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/6b36a0b5-9787-4e47-9e37-cbe897589bda + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T11:54:23.452440Z","retention":7},"created_at":"2023-10-03T11:54:23.452440Z","endpoint":{"id":"d33cf74e-4392-48c9-91d5-324f82818743","ip":"51.159.8.77","load_balancer":{},"name":null,"port":11134},"endpoints":[{"id":"d33cf74e-4392-48c9-91d5-324f82818743","ip":"51.159.8.77","load_balancer":{},"name":null,"port":11134}],"engine":"FerretDB-1","id":"6b36a0b5-9787-4e47-9e37-cbe897589bda","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1022" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:02:01 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5d207be9-97d5-465a-a3a6-875138c4cbc7 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/6b36a0b5-9787-4e47-9e37-cbe897589bda + method: DELETE + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T11:54:23.452440Z","retention":7},"created_at":"2023-10-03T11:54:23.452440Z","endpoint":{"id":"d33cf74e-4392-48c9-91d5-324f82818743","ip":"51.159.8.77","load_balancer":{},"name":null,"port":11134},"endpoints":[{"id":"d33cf74e-4392-48c9-91d5-324f82818743","ip":"51.159.8.77","load_balancer":{},"name":null,"port":11134}],"engine":"FerretDB-1","id":"6b36a0b5-9787-4e47-9e37-cbe897589bda","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"deleting","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1025" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:02:01 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 60d73512-354a-492b-8491-40af4573d6a3 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/04bc5a1a-c670-4a3d-a084-a4c806de35ad + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:02:02 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - cdc638d6-e81a-42c6-ae8e-aafeafd9798b + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/6b36a0b5-9787-4e47-9e37-cbe897589bda + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T11:54:23.452440Z","retention":7},"created_at":"2023-10-03T11:54:23.452440Z","endpoint":{"id":"d33cf74e-4392-48c9-91d5-324f82818743","ip":"51.159.8.77","load_balancer":{},"name":null,"port":11134},"endpoints":[{"id":"d33cf74e-4392-48c9-91d5-324f82818743","ip":"51.159.8.77","load_balancer":{},"name":null,"port":11134}],"engine":"FerretDB-1","id":"6b36a0b5-9787-4e47-9e37-cbe897589bda","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"deleting","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1025" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:02:02 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f0896110-c2e8-4e96-9665-c39248409c9c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/6b36a0b5-9787-4e47-9e37-cbe897589bda + method: GET + response: + body: '{"message":"resource is not found","resource":"instance","resource_id":"6b36a0b5-9787-4e47-9e37-cbe897589bda","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:02:32 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 261d13f0-941e-44c0-a041-e5a655fe000d + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/6b36a0b5-9787-4e47-9e37-cbe897589bda + method: DELETE + response: + body: '{"message":"resource is not found","resource":"instance","resource_id":"6b36a0b5-9787-4e47-9e37-cbe897589bda","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:02:33 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 45a6b1d1-43ce-49ff-98ff-815103d2c526 + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/454e405c-a5ed-4c27-ba8b-a67f11d38a78 + method: GET + response: + body: '{"message":"resource is not found","resource":"read_replica","resource_id":"454e405c-a5ed-4c27-ba8b-a67f11d38a78","type":"not_found"}' + headers: + Content-Length: + - "133" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:02:33 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e0ce07a5-997c-4bad-baef-ad908a60115b + status: 404 Not Found + code: 404 + duration: "" diff --git a/scaleway/testdata/document-db-read-replica-private-network.cassette.yaml b/scaleway/testdata/document-db-read-replica-private-network.cassette.yaml new file mode 100644 index 000000000..2bddd3e80 --- /dev/null +++ b/scaleway/testdata/document-db-read-replica-private-network.cassette.yaml @@ -0,0 +1,1195 @@ +--- +version: 1 +interactions: +- request: + body: '{"project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","name":"test-document_db-read-replica-basic","engine":"FerretDB-1","user_name":"my_initial_user","password":"thiZ_is_v\u0026ry_s3cret","node_type":"docdb-play2-pico","is_ha_cluster":false,"disable_backup":false,"tags":null,"init_settings":null,"volume_type":"bssd","volume_size":20000000000,"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.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances + method: POST + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:43:45.767575Z","retention":7},"created_at":"2023-10-03T12:43:45.767575Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"d6e22e3d-ceb3-40df-aa4e-555040b5f12b","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "768" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:43:45 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 428d833f-8548-477b-98b3-d8a55e7823ac + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/d6e22e3d-ceb3-40df-aa4e-555040b5f12b + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:43:45.767575Z","retention":7},"created_at":"2023-10-03T12:43:45.767575Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"d6e22e3d-ceb3-40df-aa4e-555040b5f12b","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "768" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:43:46 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 24904e66-1310-455b-8e86-e0bd4828f730 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"name":"tf-pn-recursing-robinson","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","tags":null,"subnets":null,"vpc_id":null}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks + method: POST + response: + body: '{"created_at":"2023-10-03T12:43:45.483155Z","dhcp_enabled":true,"id":"4cbc3499-4b20-4841-9c95-18c1c9b9bb7e","name":"tf-pn-recursing-robinson","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","subnets":[{"created_at":"2023-10-03T12:43:45.483155Z","id":"c08e20c8-d7cc-4eef-a729-6d4a32b5f3ef","subnet":"172.16.32.0/22","updated_at":"2023-10-03T12:43:45.483155Z"},{"created_at":"2023-10-03T12:43:45.483155Z","id":"a3abbdee-d4a4-47e2-a8ad-5b3d7c655694","subnet":"fdfc:1ffc:be97:742d::/64","updated_at":"2023-10-03T12:43:45.483155Z"}],"tags":[],"updated_at":"2023-10-03T12:43:45.483155Z","vpc_id":"f30db962-6029-4ae2-bb33-8b32693afadf"}' + headers: + Content-Length: + - "725" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:43:46 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 67114c29-95ea-4d3d-b1dc-4778c54e0f56 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/4cbc3499-4b20-4841-9c95-18c1c9b9bb7e + method: GET + response: + body: '{"created_at":"2023-10-03T12:43:45.483155Z","dhcp_enabled":true,"id":"4cbc3499-4b20-4841-9c95-18c1c9b9bb7e","name":"tf-pn-recursing-robinson","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","subnets":[{"created_at":"2023-10-03T12:43:45.483155Z","id":"c08e20c8-d7cc-4eef-a729-6d4a32b5f3ef","subnet":"172.16.32.0/22","updated_at":"2023-10-03T12:43:45.483155Z"},{"created_at":"2023-10-03T12:43:45.483155Z","id":"a3abbdee-d4a4-47e2-a8ad-5b3d7c655694","subnet":"fdfc:1ffc:be97:742d::/64","updated_at":"2023-10-03T12:43:45.483155Z"}],"tags":[],"updated_at":"2023-10-03T12:43:45.483155Z","vpc_id":"f30db962-6029-4ae2-bb33-8b32693afadf"}' + headers: + Content-Length: + - "725" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:43:46 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ba590579-eab5-4c28-b837-fdce07cb2336 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/d6e22e3d-ceb3-40df-aa4e-555040b5f12b + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:43:45.767575Z","retention":7},"created_at":"2023-10-03T12:43:45.767575Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"d6e22e3d-ceb3-40df-aa4e-555040b5f12b","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "768" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:44:16 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 59b1f79d-9566-42c6-a31f-1236b4185bdd + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/d6e22e3d-ceb3-40df-aa4e-555040b5f12b + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:43:45.767575Z","retention":7},"created_at":"2023-10-03T12:43:45.767575Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"d6e22e3d-ceb3-40df-aa4e-555040b5f12b","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "768" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:44:46 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8f879669-b283-4108-aae1-5050fd39ef82 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/d6e22e3d-ceb3-40df-aa4e-555040b5f12b + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:43:45.767575Z","retention":7},"created_at":"2023-10-03T12:43:45.767575Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"d6e22e3d-ceb3-40df-aa4e-555040b5f12b","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "768" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:45:16 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 121b98b5-2b2a-4b13-8617-c9fdd3fb22bc + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/d6e22e3d-ceb3-40df-aa4e-555040b5f12b + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:43:45.767575Z","retention":7},"created_at":"2023-10-03T12:43:45.767575Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"d6e22e3d-ceb3-40df-aa4e-555040b5f12b","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "768" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:45:47 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1f1fc0c6-f388-4731-8a2c-658b8618929a + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/d6e22e3d-ceb3-40df-aa4e-555040b5f12b + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:43:45.767575Z","retention":7},"created_at":"2023-10-03T12:43:45.767575Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"d6e22e3d-ceb3-40df-aa4e-555040b5f12b","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "768" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:46:18 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - abc3c919-496f-4790-a4dd-2f580a78eca8 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/d6e22e3d-ceb3-40df-aa4e-555040b5f12b + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:43:45.767575Z","retention":7},"created_at":"2023-10-03T12:43:45.767575Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"d6e22e3d-ceb3-40df-aa4e-555040b5f12b","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "768" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:46:49 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 965a0928-1918-47ef-8a89-6c99077d867c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/d6e22e3d-ceb3-40df-aa4e-555040b5f12b + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:43:45.767575Z","retention":7},"created_at":"2023-10-03T12:43:45.767575Z","endpoint":{"id":"af3f4ff9-8ff9-4096-9cbd-33ca45713fa5","ip":"51.158.56.171","load_balancer":{},"name":null,"port":5300},"endpoints":[{"id":"af3f4ff9-8ff9-4096-9cbd-33ca45713fa5","ip":"51.158.56.171","load_balancer":{},"name":null,"port":5300}],"engine":"FerretDB-1","id":"d6e22e3d-ceb3-40df-aa4e-555040b5f12b","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1024" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:47:21 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8cd38d1e-1cdd-4eb5-8646-d46b8975fec8 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/d6e22e3d-ceb3-40df-aa4e-555040b5f12b + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:43:45.767575Z","retention":7},"created_at":"2023-10-03T12:43:45.767575Z","endpoint":{"id":"af3f4ff9-8ff9-4096-9cbd-33ca45713fa5","ip":"51.158.56.171","load_balancer":{},"name":null,"port":5300},"endpoints":[{"id":"af3f4ff9-8ff9-4096-9cbd-33ca45713fa5","ip":"51.158.56.171","load_balancer":{},"name":null,"port":5300}],"engine":"FerretDB-1","id":"d6e22e3d-ceb3-40df-aa4e-555040b5f12b","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1024" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:47:21 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6ff0fef4-68e5-4a3b-bc94-c9ac4cfc1513 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"instance_id":"d6e22e3d-ceb3-40df-aa4e-555040b5f12b","endpoint_spec":[{"private_network":{"private_network_id":"4cbc3499-4b20-4841-9c95-18c1c9b9bb7e","service_ip":"10.12.1.0/20"}}],"same_zone":null}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas + method: POST + response: + body: '{"endpoints":[{"id":"4f6d3f27-7f9c-4c7b-b396-c71a74de0871","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"4cbc3499-4b20-4841-9c95-18c1c9b9bb7e","service_ip":"10.12.1.0/20","zone":"fr-par-1"}}],"id":"ca851fa9-81d7-43f5-8216-6478779d4508","region":"fr-par","same_zone":true,"status":"provisioning"}' + headers: + Content-Length: + - "342" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:47:22 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6c81fca1-7429-47ad-b9bb-7457ce1a6675 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/ca851fa9-81d7-43f5-8216-6478779d4508 + method: GET + response: + body: '{"endpoints":[{"id":"4f6d3f27-7f9c-4c7b-b396-c71a74de0871","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"4cbc3499-4b20-4841-9c95-18c1c9b9bb7e","service_ip":"10.12.1.0/20","zone":"fr-par-1"}}],"id":"ca851fa9-81d7-43f5-8216-6478779d4508","region":"fr-par","same_zone":true,"status":"provisioning"}' + headers: + Content-Length: + - "342" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:47:22 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 685ce573-fdb4-43e5-b9a5-fbd2a79f4e7e + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/ca851fa9-81d7-43f5-8216-6478779d4508 + method: GET + response: + body: '{"endpoints":[{"id":"4f6d3f27-7f9c-4c7b-b396-c71a74de0871","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"4cbc3499-4b20-4841-9c95-18c1c9b9bb7e","service_ip":"10.12.1.0/20","zone":"fr-par-1"}}],"id":"ca851fa9-81d7-43f5-8216-6478779d4508","region":"fr-par","same_zone":true,"status":"provisioning"}' + headers: + Content-Length: + - "342" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:47:53 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b463a17f-c352-475b-9355-2d8fffd49ef4 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/ca851fa9-81d7-43f5-8216-6478779d4508 + method: GET + response: + body: '{"endpoints":[{"id":"4f6d3f27-7f9c-4c7b-b396-c71a74de0871","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"4cbc3499-4b20-4841-9c95-18c1c9b9bb7e","service_ip":"10.12.1.0/20","zone":"fr-par-1"}}],"id":"ca851fa9-81d7-43f5-8216-6478779d4508","region":"fr-par","same_zone":true,"status":"provisioning"}' + headers: + Content-Length: + - "342" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:48:23 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b238b197-bfd8-4847-957e-b15e375a947c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/ca851fa9-81d7-43f5-8216-6478779d4508 + method: GET + response: + body: '{"endpoints":[{"id":"4f6d3f27-7f9c-4c7b-b396-c71a74de0871","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"4cbc3499-4b20-4841-9c95-18c1c9b9bb7e","service_ip":"10.12.1.0/20","zone":"fr-par-1"}}],"id":"ca851fa9-81d7-43f5-8216-6478779d4508","region":"fr-par","same_zone":true,"status":"initializing"}' + headers: + Content-Length: + - "342" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:48:53 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d86f9646-6d14-4e30-853f-cd27b70282ce + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/ca851fa9-81d7-43f5-8216-6478779d4508 + method: GET + response: + body: '{"endpoints":[{"id":"4f6d3f27-7f9c-4c7b-b396-c71a74de0871","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"4cbc3499-4b20-4841-9c95-18c1c9b9bb7e","service_ip":"10.12.1.0/20","zone":"fr-par-1"}}],"id":"ca851fa9-81d7-43f5-8216-6478779d4508","region":"fr-par","same_zone":true,"status":"initializing"}' + headers: + Content-Length: + - "342" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:49:23 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 35f6fd70-245d-44f9-af39-997d6542391c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/ca851fa9-81d7-43f5-8216-6478779d4508 + method: GET + response: + body: '{"endpoints":[{"id":"4f6d3f27-7f9c-4c7b-b396-c71a74de0871","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"4cbc3499-4b20-4841-9c95-18c1c9b9bb7e","service_ip":"10.12.1.0/20","zone":"fr-par-1"}}],"id":"ca851fa9-81d7-43f5-8216-6478779d4508","region":"fr-par","same_zone":true,"status":"initializing"}' + headers: + Content-Length: + - "342" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:49:53 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f1b51bf4-1e5d-437c-a4b1-a79991c4feed + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/ca851fa9-81d7-43f5-8216-6478779d4508 + method: GET + response: + body: '{"endpoints":[{"id":"4f6d3f27-7f9c-4c7b-b396-c71a74de0871","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"4cbc3499-4b20-4841-9c95-18c1c9b9bb7e","service_ip":"10.12.1.0/20","zone":"fr-par-1"}}],"id":"ca851fa9-81d7-43f5-8216-6478779d4508","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "335" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:50:24 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 585305bc-b254-4d90-b413-ca2ceb1012f2 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/ca851fa9-81d7-43f5-8216-6478779d4508 + method: GET + response: + body: '{"endpoints":[{"id":"4f6d3f27-7f9c-4c7b-b396-c71a74de0871","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"4cbc3499-4b20-4841-9c95-18c1c9b9bb7e","service_ip":"10.12.1.0/20","zone":"fr-par-1"}}],"id":"ca851fa9-81d7-43f5-8216-6478779d4508","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "335" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:50:24 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c40a40d8-b528-4abe-951c-c5cf4cddbbfa + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/ca851fa9-81d7-43f5-8216-6478779d4508 + method: GET + response: + body: '{"endpoints":[{"id":"4f6d3f27-7f9c-4c7b-b396-c71a74de0871","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"4cbc3499-4b20-4841-9c95-18c1c9b9bb7e","service_ip":"10.12.1.0/20","zone":"fr-par-1"}}],"id":"ca851fa9-81d7-43f5-8216-6478779d4508","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "335" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:50:24 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 17574723-802d-48a7-9153-2465f9b446be + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/4cbc3499-4b20-4841-9c95-18c1c9b9bb7e + method: GET + response: + body: '{"created_at":"2023-10-03T12:43:45.483155Z","dhcp_enabled":true,"id":"4cbc3499-4b20-4841-9c95-18c1c9b9bb7e","name":"tf-pn-recursing-robinson","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","subnets":[{"created_at":"2023-10-03T12:43:45.483155Z","id":"c08e20c8-d7cc-4eef-a729-6d4a32b5f3ef","subnet":"172.16.32.0/22","updated_at":"2023-10-03T12:43:45.483155Z"},{"created_at":"2023-10-03T12:43:45.483155Z","id":"a3abbdee-d4a4-47e2-a8ad-5b3d7c655694","subnet":"fdfc:1ffc:be97:742d::/64","updated_at":"2023-10-03T12:43:45.483155Z"}],"tags":[],"updated_at":"2023-10-03T12:43:45.483155Z","vpc_id":"f30db962-6029-4ae2-bb33-8b32693afadf"}' + headers: + Content-Length: + - "725" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:50:24 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 27108954-cc31-4694-aa43-13d26100e430 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/d6e22e3d-ceb3-40df-aa4e-555040b5f12b + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:43:45.767575Z","retention":7},"created_at":"2023-10-03T12:43:45.767575Z","endpoint":{"id":"af3f4ff9-8ff9-4096-9cbd-33ca45713fa5","ip":"51.158.56.171","load_balancer":{},"name":null,"port":5300},"endpoints":[{"id":"af3f4ff9-8ff9-4096-9cbd-33ca45713fa5","ip":"51.158.56.171","load_balancer":{},"name":null,"port":5300}],"engine":"FerretDB-1","id":"d6e22e3d-ceb3-40df-aa4e-555040b5f12b","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[{"endpoints":[{"id":"4f6d3f27-7f9c-4c7b-b396-c71a74de0871","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"4cbc3499-4b20-4841-9c95-18c1c9b9bb7e","service_ip":"10.12.1.0/20","zone":"fr-par-1"}}],"id":"ca851fa9-81d7-43f5-8216-6478779d4508","region":"fr-par","same_zone":true,"status":"ready"}],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1359" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:50:25 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 01515196-a165-4e48-a77e-acbb14b6fc00 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/ca851fa9-81d7-43f5-8216-6478779d4508 + method: GET + response: + body: '{"endpoints":[{"id":"4f6d3f27-7f9c-4c7b-b396-c71a74de0871","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"4cbc3499-4b20-4841-9c95-18c1c9b9bb7e","service_ip":"10.12.1.0/20","zone":"fr-par-1"}}],"id":"ca851fa9-81d7-43f5-8216-6478779d4508","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "335" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:50:25 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7d17c3a7-7874-4390-a983-378c9a817b67 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/ca851fa9-81d7-43f5-8216-6478779d4508 + method: GET + response: + body: '{"endpoints":[{"id":"4f6d3f27-7f9c-4c7b-b396-c71a74de0871","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"4cbc3499-4b20-4841-9c95-18c1c9b9bb7e","service_ip":"10.12.1.0/20","zone":"fr-par-1"}}],"id":"ca851fa9-81d7-43f5-8216-6478779d4508","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "335" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:50:25 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 47de5d5c-bf6b-4cd7-b6ac-7ec6bea53906 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/ca851fa9-81d7-43f5-8216-6478779d4508 + method: DELETE + response: + body: '{"endpoints":[{"id":"4f6d3f27-7f9c-4c7b-b396-c71a74de0871","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"4cbc3499-4b20-4841-9c95-18c1c9b9bb7e","service_ip":"10.12.1.0/20","zone":"fr-par-1"}}],"id":"ca851fa9-81d7-43f5-8216-6478779d4508","region":"fr-par","same_zone":true,"status":"deleting"}' + headers: + Content-Length: + - "338" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:50:25 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5283a984-39af-4b1b-afa8-97b167ecac63 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/ca851fa9-81d7-43f5-8216-6478779d4508 + method: GET + response: + body: '{"endpoints":[{"id":"4f6d3f27-7f9c-4c7b-b396-c71a74de0871","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"4cbc3499-4b20-4841-9c95-18c1c9b9bb7e","service_ip":"10.12.1.0/20","zone":"fr-par-1"}}],"id":"ca851fa9-81d7-43f5-8216-6478779d4508","region":"fr-par","same_zone":true,"status":"deleting"}' + headers: + Content-Length: + - "338" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:50:26 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c46e64b6-5615-4858-bdf6-4a8148f617cd + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/ca851fa9-81d7-43f5-8216-6478779d4508 + method: GET + response: + body: '{"message":"resource is not found","resource":"read_replica","resource_id":"ca851fa9-81d7-43f5-8216-6478779d4508","type":"not_found"}' + headers: + Content-Length: + - "133" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:50:56 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 33ad4a52-2dfd-4045-9aab-a435e5ef7a14 + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/d6e22e3d-ceb3-40df-aa4e-555040b5f12b + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:43:45.767575Z","retention":7},"created_at":"2023-10-03T12:43:45.767575Z","endpoint":{"id":"af3f4ff9-8ff9-4096-9cbd-33ca45713fa5","ip":"51.158.56.171","load_balancer":{},"name":null,"port":5300},"endpoints":[{"id":"af3f4ff9-8ff9-4096-9cbd-33ca45713fa5","ip":"51.158.56.171","load_balancer":{},"name":null,"port":5300}],"engine":"FerretDB-1","id":"d6e22e3d-ceb3-40df-aa4e-555040b5f12b","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1024" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:50:56 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c2c5c29c-6170-4b18-90a0-ec42417be627 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/d6e22e3d-ceb3-40df-aa4e-555040b5f12b + method: DELETE + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:43:45.767575Z","retention":7},"created_at":"2023-10-03T12:43:45.767575Z","endpoint":{"id":"af3f4ff9-8ff9-4096-9cbd-33ca45713fa5","ip":"51.158.56.171","load_balancer":{},"name":null,"port":5300},"endpoints":[{"id":"af3f4ff9-8ff9-4096-9cbd-33ca45713fa5","ip":"51.158.56.171","load_balancer":{},"name":null,"port":5300}],"engine":"FerretDB-1","id":"d6e22e3d-ceb3-40df-aa4e-555040b5f12b","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"deleting","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1027" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:50:56 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8b543556-7959-4b69-91d5-ff47d3827f09 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/d6e22e3d-ceb3-40df-aa4e-555040b5f12b + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:43:45.767575Z","retention":7},"created_at":"2023-10-03T12:43:45.767575Z","endpoint":{"id":"af3f4ff9-8ff9-4096-9cbd-33ca45713fa5","ip":"51.158.56.171","load_balancer":{},"name":null,"port":5300},"endpoints":[{"id":"af3f4ff9-8ff9-4096-9cbd-33ca45713fa5","ip":"51.158.56.171","load_balancer":{},"name":null,"port":5300}],"engine":"FerretDB-1","id":"d6e22e3d-ceb3-40df-aa4e-555040b5f12b","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"deleting","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1027" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:50:56 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6c1c9190-b9f3-49c5-952b-7249f53caef3 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/4cbc3499-4b20-4841-9c95-18c1c9b9bb7e + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:50:57 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 21d2469f-f63d-43cd-89fb-07bbebe4c7c8 + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/d6e22e3d-ceb3-40df-aa4e-555040b5f12b + method: GET + response: + body: '{"message":"resource is not found","resource":"instance","resource_id":"d6e22e3d-ceb3-40df-aa4e-555040b5f12b","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:51:27 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8448c3e6-1581-4cdc-b839-8fc84e796c9b + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/d6e22e3d-ceb3-40df-aa4e-555040b5f12b + method: DELETE + response: + body: '{"message":"resource is not found","resource":"instance","resource_id":"d6e22e3d-ceb3-40df-aa4e-555040b5f12b","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:51:27 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9e0c2185-5897-42e9-944e-544780e53732 + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/ca851fa9-81d7-43f5-8216-6478779d4508 + method: GET + response: + body: '{"message":"resource is not found","resource":"read_replica","resource_id":"ca851fa9-81d7-43f5-8216-6478779d4508","type":"not_found"}' + headers: + Content-Length: + - "133" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:51:27 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 27d387f1-4d1d-4a17-8453-9e6e915f2405 + status: 404 Not Found + code: 404 + duration: "" diff --git a/scaleway/testdata/document-db-read-replica-update.cassette.yaml b/scaleway/testdata/document-db-read-replica-update.cassette.yaml new file mode 100644 index 000000000..09de8fbf7 --- /dev/null +++ b/scaleway/testdata/document-db-read-replica-update.cassette.yaml @@ -0,0 +1,1624 @@ +--- +version: 1 +interactions: +- request: + body: '{"project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","name":"test-document_db-read-replica-basic","engine":"FerretDB-1","user_name":"my_initial_user","password":"thiZ_is_v\u0026ry_s3cret","node_type":"docdb-play2-pico","is_ha_cluster":false,"disable_backup":false,"tags":null,"init_settings":null,"volume_type":"bssd","volume_size":20000000000,"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.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances + method: POST + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:52:26.373797Z","retention":7},"created_at":"2023-10-03T12:52:26.373797Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "768" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:52:26 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ec3721c5-6bee-4f29-b7ac-fc7b9c827d96 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:52:26.373797Z","retention":7},"created_at":"2023-10-03T12:52:26.373797Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "768" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:52:26 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9b8e9b51-6084-4f65-bc23-845c2538949f + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:52:26.373797Z","retention":7},"created_at":"2023-10-03T12:52:26.373797Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "768" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:52:56 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ebae520c-be45-47fc-9c38-df417dfdda8c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:52:26.373797Z","retention":7},"created_at":"2023-10-03T12:52:26.373797Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "768" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:53:27 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5d1467cc-09cd-44ad-9288-ab2db912e02d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:52:26.373797Z","retention":7},"created_at":"2023-10-03T12:52:26.373797Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "768" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:53:57 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8079713a-b165-410a-9fac-7a6958d1baee + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:52:26.373797Z","retention":7},"created_at":"2023-10-03T12:52:26.373797Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "768" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:54:27 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 86f575c2-fb16-48d3-829f-a1382c5e04cf + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:52:26.373797Z","retention":7},"created_at":"2023-10-03T12:52:26.373797Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "768" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:54:57 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6e2a1a16-4dec-48e5-aba1-6acc70da4f80 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:52:26.373797Z","retention":7},"created_at":"2023-10-03T12:52:26.373797Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "768" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:55:27 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 413a6c3d-2ecb-42fc-ba47-1d3bc2759af2 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:52:26.373797Z","retention":7},"created_at":"2023-10-03T12:52:26.373797Z","endpoint":{"id":"d921f5aa-fae4-4838-89ec-4f8290e43ca9","ip":"51.159.113.236","load_balancer":{},"name":null,"port":1263},"endpoints":[{"id":"d921f5aa-fae4-4838-89ec-4f8290e43ca9","ip":"51.159.113.236","load_balancer":{},"name":null,"port":1263}],"engine":"FerretDB-1","id":"f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1026" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:55:58 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 765bc3ab-d1f6-46cf-9e62-f1ac9ea9e06c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:52:26.373797Z","retention":7},"created_at":"2023-10-03T12:52:26.373797Z","endpoint":{"id":"d921f5aa-fae4-4838-89ec-4f8290e43ca9","ip":"51.159.113.236","load_balancer":{},"name":null,"port":1263},"endpoints":[{"id":"d921f5aa-fae4-4838-89ec-4f8290e43ca9","ip":"51.159.113.236","load_balancer":{},"name":null,"port":1263}],"engine":"FerretDB-1","id":"f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1026" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:55:58 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1a5ba6ab-3203-4438-a605-bd8aececc9f4 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"instance_id":"f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7","endpoint_spec":[{"direct_access":{}}],"same_zone":null}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas + method: POST + response: + body: '{"endpoints":[],"id":"044bcfbc-3138-40a3-979a-86acfd3c2191","region":"fr-par","same_zone":true,"status":"provisioning"}' + headers: + Content-Length: + - "123" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:55:59 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 28224063-78c9-4bbe-92d4-a44779e7aa25 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/044bcfbc-3138-40a3-979a-86acfd3c2191 + method: GET + response: + body: '{"endpoints":[],"id":"044bcfbc-3138-40a3-979a-86acfd3c2191","region":"fr-par","same_zone":true,"status":"provisioning"}' + headers: + Content-Length: + - "123" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:55:59 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4c7fefa7-f6be-4a33-a89c-09fd0ce01b2b + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/044bcfbc-3138-40a3-979a-86acfd3c2191 + method: GET + response: + body: '{"endpoints":[{"direct_access":{},"id":"3f4601f1-b1fa-4662-9ce9-f22dfe1f31a0","ip":"51.158.78.178","name":null,"port":27017}],"id":"044bcfbc-3138-40a3-979a-86acfd3c2191","region":"fr-par","same_zone":true,"status":"provisioning"}' + headers: + Content-Length: + - "237" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:56:29 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 643e8b80-c490-4b0a-89e5-7b65a6cb9806 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/044bcfbc-3138-40a3-979a-86acfd3c2191 + method: GET + response: + body: '{"endpoints":[{"direct_access":{},"id":"3f4601f1-b1fa-4662-9ce9-f22dfe1f31a0","ip":"51.158.78.178","name":null,"port":27017}],"id":"044bcfbc-3138-40a3-979a-86acfd3c2191","region":"fr-par","same_zone":true,"status":"initializing"}' + headers: + Content-Length: + - "237" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:57:00 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0044c886-f226-4c82-be25-8b5ccc196a89 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/044bcfbc-3138-40a3-979a-86acfd3c2191 + method: GET + response: + body: '{"endpoints":[{"direct_access":{},"id":"3f4601f1-b1fa-4662-9ce9-f22dfe1f31a0","ip":"51.158.78.178","name":null,"port":27017}],"id":"044bcfbc-3138-40a3-979a-86acfd3c2191","region":"fr-par","same_zone":true,"status":"initializing"}' + headers: + Content-Length: + - "237" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:57:31 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c3b25b99-bdbb-413e-8231-59d159ecdac8 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/044bcfbc-3138-40a3-979a-86acfd3c2191 + method: GET + response: + body: '{"endpoints":[{"direct_access":{},"id":"3f4601f1-b1fa-4662-9ce9-f22dfe1f31a0","ip":"51.158.78.178","name":null,"port":27017}],"id":"044bcfbc-3138-40a3-979a-86acfd3c2191","region":"fr-par","same_zone":true,"status":"initializing"}' + headers: + Content-Length: + - "237" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:58:01 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0a985a9a-be9d-4dca-a985-7c02c280c656 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/044bcfbc-3138-40a3-979a-86acfd3c2191 + method: GET + response: + body: '{"endpoints":[{"direct_access":{},"id":"3f4601f1-b1fa-4662-9ce9-f22dfe1f31a0","ip":"51.158.78.178","name":null,"port":27017}],"id":"044bcfbc-3138-40a3-979a-86acfd3c2191","region":"fr-par","same_zone":true,"status":"initializing"}' + headers: + Content-Length: + - "237" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:58:31 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1325e141-30bd-4b8e-b382-66cc4a0f5dd7 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/044bcfbc-3138-40a3-979a-86acfd3c2191 + method: GET + response: + body: '{"endpoints":[{"direct_access":{},"id":"3f4601f1-b1fa-4662-9ce9-f22dfe1f31a0","ip":"51.158.78.178","name":null,"port":27017}],"id":"044bcfbc-3138-40a3-979a-86acfd3c2191","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "230" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:59:01 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 357fd399-d4e2-438f-9fe5-9cafa8b5df7f + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/044bcfbc-3138-40a3-979a-86acfd3c2191 + method: GET + response: + body: '{"endpoints":[{"direct_access":{},"id":"3f4601f1-b1fa-4662-9ce9-f22dfe1f31a0","ip":"51.158.78.178","name":null,"port":27017}],"id":"044bcfbc-3138-40a3-979a-86acfd3c2191","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "230" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:59:01 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bfbb76c1-76dd-4a66-887e-75a39c883562 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/044bcfbc-3138-40a3-979a-86acfd3c2191 + method: GET + response: + body: '{"endpoints":[{"direct_access":{},"id":"3f4601f1-b1fa-4662-9ce9-f22dfe1f31a0","ip":"51.158.78.178","name":null,"port":27017}],"id":"044bcfbc-3138-40a3-979a-86acfd3c2191","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "230" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:59:02 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7b761af5-8fdc-4507-83af-20c34bbabaa6 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:52:26.373797Z","retention":7},"created_at":"2023-10-03T12:52:26.373797Z","endpoint":{"id":"d921f5aa-fae4-4838-89ec-4f8290e43ca9","ip":"51.159.113.236","load_balancer":{},"name":null,"port":1263},"endpoints":[{"id":"d921f5aa-fae4-4838-89ec-4f8290e43ca9","ip":"51.159.113.236","load_balancer":{},"name":null,"port":1263}],"engine":"FerretDB-1","id":"f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[{"endpoints":[{"direct_access":{},"id":"3f4601f1-b1fa-4662-9ce9-f22dfe1f31a0","ip":"51.158.78.178","name":null,"port":27017}],"id":"044bcfbc-3138-40a3-979a-86acfd3c2191","region":"fr-par","same_zone":true,"status":"ready"}],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1256" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:59:02 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 81819491-74f5-46a6-af85-870fefa679b5 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/044bcfbc-3138-40a3-979a-86acfd3c2191 + method: GET + response: + body: '{"endpoints":[{"direct_access":{},"id":"3f4601f1-b1fa-4662-9ce9-f22dfe1f31a0","ip":"51.158.78.178","name":null,"port":27017}],"id":"044bcfbc-3138-40a3-979a-86acfd3c2191","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "230" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:59:02 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - fb29a6dd-2df5-4d63-9a02-57097396c7e7 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:52:26.373797Z","retention":7},"created_at":"2023-10-03T12:52:26.373797Z","endpoint":{"id":"d921f5aa-fae4-4838-89ec-4f8290e43ca9","ip":"51.159.113.236","load_balancer":{},"name":null,"port":1263},"endpoints":[{"id":"d921f5aa-fae4-4838-89ec-4f8290e43ca9","ip":"51.159.113.236","load_balancer":{},"name":null,"port":1263}],"engine":"FerretDB-1","id":"f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[{"endpoints":[{"direct_access":{},"id":"3f4601f1-b1fa-4662-9ce9-f22dfe1f31a0","ip":"51.158.78.178","name":null,"port":27017}],"id":"044bcfbc-3138-40a3-979a-86acfd3c2191","region":"fr-par","same_zone":true,"status":"ready"}],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1256" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:59:03 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5eec3765-64ea-46f5-838d-58c3e1cdc4e6 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/044bcfbc-3138-40a3-979a-86acfd3c2191 + method: GET + response: + body: '{"endpoints":[{"direct_access":{},"id":"3f4601f1-b1fa-4662-9ce9-f22dfe1f31a0","ip":"51.158.78.178","name":null,"port":27017}],"id":"044bcfbc-3138-40a3-979a-86acfd3c2191","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "230" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:59:03 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 810fb260-35ae-4471-b9fc-0b46ef0d9c9e + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"name":"tf-pn-great-chaplygin","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","tags":null,"subnets":null,"vpc_id":null}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks + method: POST + response: + body: '{"created_at":"2023-10-03T12:59:03.953014Z","dhcp_enabled":true,"id":"13d87a51-e1a9-44e2-9b24-7e4cb00debde","name":"tf-pn-great-chaplygin","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","subnets":[{"created_at":"2023-10-03T12:59:03.953014Z","id":"a66eba92-82ca-4da3-aac4-a6d6352093c1","subnet":"172.16.24.0/22","updated_at":"2023-10-03T12:59:03.953014Z"},{"created_at":"2023-10-03T12:59:03.953014Z","id":"92a6c7d3-6eaa-402f-b243-52546c41d18f","subnet":"fdfc:1ffc:be97:64a6::/64","updated_at":"2023-10-03T12:59:03.953014Z"}],"tags":[],"updated_at":"2023-10-03T12:59:03.953014Z","vpc_id":"f30db962-6029-4ae2-bb33-8b32693afadf"}' + headers: + Content-Length: + - "722" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:59:04 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 251221b8-2da0-47bd-a7a6-17381ad19eb8 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/13d87a51-e1a9-44e2-9b24-7e4cb00debde + method: GET + response: + body: '{"created_at":"2023-10-03T12:59:03.953014Z","dhcp_enabled":true,"id":"13d87a51-e1a9-44e2-9b24-7e4cb00debde","name":"tf-pn-great-chaplygin","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","subnets":[{"created_at":"2023-10-03T12:59:03.953014Z","id":"a66eba92-82ca-4da3-aac4-a6d6352093c1","subnet":"172.16.24.0/22","updated_at":"2023-10-03T12:59:03.953014Z"},{"created_at":"2023-10-03T12:59:03.953014Z","id":"92a6c7d3-6eaa-402f-b243-52546c41d18f","subnet":"fdfc:1ffc:be97:64a6::/64","updated_at":"2023-10-03T12:59:03.953014Z"}],"tags":[],"updated_at":"2023-10-03T12:59:03.953014Z","vpc_id":"f30db962-6029-4ae2-bb33-8b32693afadf"}' + headers: + Content-Length: + - "722" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:59:04 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e609cbd4-3a81-4347-8d21-c0f95da06607 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/044bcfbc-3138-40a3-979a-86acfd3c2191 + method: GET + response: + body: '{"endpoints":[{"direct_access":{},"id":"3f4601f1-b1fa-4662-9ce9-f22dfe1f31a0","ip":"51.158.78.178","name":null,"port":27017}],"id":"044bcfbc-3138-40a3-979a-86acfd3c2191","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "230" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:59:04 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 07ce2797-247a-4c01-a79b-8e7a6bd67820 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/endpoints/3f4601f1-b1fa-4662-9ce9-f22dfe1f31a0 + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:59:05 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e179ec45-d3f4-4a97-8f67-82555fcce20d + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/044bcfbc-3138-40a3-979a-86acfd3c2191 + method: GET + response: + body: '{"endpoints":[{"direct_access":{},"id":"3f4601f1-b1fa-4662-9ce9-f22dfe1f31a0","ip":"51.158.78.178","name":null,"port":27017}],"id":"044bcfbc-3138-40a3-979a-86acfd3c2191","region":"fr-par","same_zone":true,"status":"configuring"}' + headers: + Content-Length: + - "236" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:59:05 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5b43a552-592b-44b7-8196-1f3a16b60588 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/044bcfbc-3138-40a3-979a-86acfd3c2191 + method: GET + response: + body: '{"endpoints":[],"id":"044bcfbc-3138-40a3-979a-86acfd3c2191","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "116" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:59:35 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5b0ef513-9cfc-457b-b6a8-20d079011566 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"endpoint_spec":[{"private_network":{"private_network_id":"13d87a51-e1a9-44e2-9b24-7e4cb00debde","service_ip":"10.12.1.0/20"}}]}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/044bcfbc-3138-40a3-979a-86acfd3c2191/endpoints + method: POST + response: + body: '{"endpoints":[{"id":"8813bf28-b93c-4fb6-a753-5aa4b1834673","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"13d87a51-e1a9-44e2-9b24-7e4cb00debde","service_ip":"10.12.1.0/20","zone":"fr-par-1"}}],"id":"044bcfbc-3138-40a3-979a-86acfd3c2191","region":"fr-par","same_zone":true,"status":"initializing"}' + headers: + Content-Length: + - "342" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:59:36 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - dc55fef8-958c-4ef4-819f-04f3f496ab6c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/044bcfbc-3138-40a3-979a-86acfd3c2191 + method: GET + response: + body: '{"endpoints":[{"id":"8813bf28-b93c-4fb6-a753-5aa4b1834673","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"13d87a51-e1a9-44e2-9b24-7e4cb00debde","service_ip":"10.12.1.0/20","zone":"fr-par-1"}}],"id":"044bcfbc-3138-40a3-979a-86acfd3c2191","region":"fr-par","same_zone":true,"status":"initializing"}' + headers: + Content-Length: + - "342" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 12:59:36 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 68741a91-532f-475b-8cee-c885ed922997 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/044bcfbc-3138-40a3-979a-86acfd3c2191 + method: GET + response: + body: '{"endpoints":[{"id":"8813bf28-b93c-4fb6-a753-5aa4b1834673","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"13d87a51-e1a9-44e2-9b24-7e4cb00debde","service_ip":"10.12.1.0/20","zone":"fr-par-1"}}],"id":"044bcfbc-3138-40a3-979a-86acfd3c2191","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "335" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 13:00:06 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 72e57bad-4334-470a-bd31-0f112871d4a0 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/044bcfbc-3138-40a3-979a-86acfd3c2191 + method: GET + response: + body: '{"endpoints":[{"id":"8813bf28-b93c-4fb6-a753-5aa4b1834673","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"13d87a51-e1a9-44e2-9b24-7e4cb00debde","service_ip":"10.12.1.0/20","zone":"fr-par-1"}}],"id":"044bcfbc-3138-40a3-979a-86acfd3c2191","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "335" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 13:00:06 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2a9a41ae-7737-46ee-be27-7a207331bce9 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/044bcfbc-3138-40a3-979a-86acfd3c2191 + method: GET + response: + body: '{"endpoints":[{"id":"8813bf28-b93c-4fb6-a753-5aa4b1834673","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"13d87a51-e1a9-44e2-9b24-7e4cb00debde","service_ip":"10.12.1.0/20","zone":"fr-par-1"}}],"id":"044bcfbc-3138-40a3-979a-86acfd3c2191","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "335" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 13:00:07 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - cab7e875-05fb-40cb-8c1c-e557b0dbfa07 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/13d87a51-e1a9-44e2-9b24-7e4cb00debde + method: GET + response: + body: '{"created_at":"2023-10-03T12:59:03.953014Z","dhcp_enabled":true,"id":"13d87a51-e1a9-44e2-9b24-7e4cb00debde","name":"tf-pn-great-chaplygin","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","region":"fr-par","subnets":[{"created_at":"2023-10-03T12:59:03.953014Z","id":"a66eba92-82ca-4da3-aac4-a6d6352093c1","subnet":"172.16.24.0/22","updated_at":"2023-10-03T12:59:03.953014Z"},{"created_at":"2023-10-03T12:59:03.953014Z","id":"92a6c7d3-6eaa-402f-b243-52546c41d18f","subnet":"fdfc:1ffc:be97:64a6::/64","updated_at":"2023-10-03T12:59:03.953014Z"}],"tags":[],"updated_at":"2023-10-03T12:59:03.953014Z","vpc_id":"f30db962-6029-4ae2-bb33-8b32693afadf"}' + headers: + Content-Length: + - "722" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 13:00:07 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b4c5430e-86c9-4f48-b0ef-53251ebcba57 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:52:26.373797Z","retention":7},"created_at":"2023-10-03T12:52:26.373797Z","endpoint":{"id":"d921f5aa-fae4-4838-89ec-4f8290e43ca9","ip":"51.159.113.236","load_balancer":{},"name":null,"port":1263},"endpoints":[{"id":"d921f5aa-fae4-4838-89ec-4f8290e43ca9","ip":"51.159.113.236","load_balancer":{},"name":null,"port":1263}],"engine":"FerretDB-1","id":"f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[{"endpoints":[{"id":"8813bf28-b93c-4fb6-a753-5aa4b1834673","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"13d87a51-e1a9-44e2-9b24-7e4cb00debde","service_ip":"10.12.1.0/20","zone":"fr-par-1"}}],"id":"044bcfbc-3138-40a3-979a-86acfd3c2191","region":"fr-par","same_zone":true,"status":"ready"}],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1361" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 13:00:07 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6ccad854-7cf8-4a0c-8a6e-bd507510a53d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/044bcfbc-3138-40a3-979a-86acfd3c2191 + method: GET + response: + body: '{"endpoints":[{"id":"8813bf28-b93c-4fb6-a753-5aa4b1834673","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"13d87a51-e1a9-44e2-9b24-7e4cb00debde","service_ip":"10.12.1.0/20","zone":"fr-par-1"}}],"id":"044bcfbc-3138-40a3-979a-86acfd3c2191","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "335" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 13:00:11 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d49125b1-86d3-49ae-ab85-f6652d489544 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/044bcfbc-3138-40a3-979a-86acfd3c2191 + method: GET + response: + body: '{"endpoints":[{"id":"8813bf28-b93c-4fb6-a753-5aa4b1834673","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"13d87a51-e1a9-44e2-9b24-7e4cb00debde","service_ip":"10.12.1.0/20","zone":"fr-par-1"}}],"id":"044bcfbc-3138-40a3-979a-86acfd3c2191","region":"fr-par","same_zone":true,"status":"ready"}' + headers: + Content-Length: + - "335" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 13:00:14 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c6ba6d32-c6b8-4c8d-a1a4-05ae2e1b4f4c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/044bcfbc-3138-40a3-979a-86acfd3c2191 + method: DELETE + response: + body: '{"endpoints":[{"id":"8813bf28-b93c-4fb6-a753-5aa4b1834673","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"13d87a51-e1a9-44e2-9b24-7e4cb00debde","service_ip":"10.12.1.0/20","zone":"fr-par-1"}}],"id":"044bcfbc-3138-40a3-979a-86acfd3c2191","region":"fr-par","same_zone":true,"status":"deleting"}' + headers: + Content-Length: + - "338" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 13:00:15 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 15796cdc-98c1-4267-9152-77b61177d402 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/044bcfbc-3138-40a3-979a-86acfd3c2191 + method: GET + response: + body: '{"endpoints":[{"id":"8813bf28-b93c-4fb6-a753-5aa4b1834673","ip":"10.12.1.0","name":null,"port":27017,"private_network":{"private_network_id":"13d87a51-e1a9-44e2-9b24-7e4cb00debde","service_ip":"10.12.1.0/20","zone":"fr-par-1"}}],"id":"044bcfbc-3138-40a3-979a-86acfd3c2191","region":"fr-par","same_zone":true,"status":"deleting"}' + headers: + Content-Length: + - "338" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 13:00:15 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 63d92dde-525b-4480-b763-a05306167490 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/044bcfbc-3138-40a3-979a-86acfd3c2191 + method: GET + response: + body: '{"message":"resource is not found","resource":"read_replica","resource_id":"044bcfbc-3138-40a3-979a-86acfd3c2191","type":"not_found"}' + headers: + Content-Length: + - "133" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 13:00:45 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - dc466830-5fa0-4118-b493-98c890087402 + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:52:26.373797Z","retention":7},"created_at":"2023-10-03T12:52:26.373797Z","endpoint":{"id":"d921f5aa-fae4-4838-89ec-4f8290e43ca9","ip":"51.159.113.236","load_balancer":{},"name":null,"port":1263},"endpoints":[{"id":"d921f5aa-fae4-4838-89ec-4f8290e43ca9","ip":"51.159.113.236","load_balancer":{},"name":null,"port":1263}],"engine":"FerretDB-1","id":"f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1026" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 13:00:46 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9f809c68-0913-4811-ba5b-01420157802c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7 + method: DELETE + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:52:26.373797Z","retention":7},"created_at":"2023-10-03T12:52:26.373797Z","endpoint":{"id":"d921f5aa-fae4-4838-89ec-4f8290e43ca9","ip":"51.159.113.236","load_balancer":{},"name":null,"port":1263},"endpoints":[{"id":"d921f5aa-fae4-4838-89ec-4f8290e43ca9","ip":"51.159.113.236","load_balancer":{},"name":null,"port":1263}],"engine":"FerretDB-1","id":"f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"deleting","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1029" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 13:00:46 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 50129afa-d570-4e6d-bd99-5757d50538e4 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-04T12:52:26.373797Z","retention":7},"created_at":"2023-10-03T12:52:26.373797Z","endpoint":{"id":"d921f5aa-fae4-4838-89ec-4f8290e43ca9","ip":"51.159.113.236","load_balancer":{},"name":null,"port":1263},"endpoints":[{"id":"d921f5aa-fae4-4838-89ec-4f8290e43ca9","ip":"51.159.113.236","load_balancer":{},"name":null,"port":1263}],"engine":"FerretDB-1","id":"f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-document_db-read-replica-basic","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"deleting","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1029" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 13:00:46 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e8e848f4-11d7-41d3-beaf-13aba4e4ec86 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/13d87a51-e1a9-44e2-9b24-7e4cb00debde + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 13:00:46 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 99e811cd-9df2-40f3-9698-6deefbf539c3 + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7 + method: GET + response: + body: '{"message":"resource is not found","resource":"instance","resource_id":"f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 13:01:19 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 57022b22-c935-402d-a707-999e58a033d6 + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7 + method: DELETE + response: + body: '{"message":"resource is not found","resource":"instance","resource_id":"f526f2e0-e0e6-4da6-a680-b1e7fcc1a3f7","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 13:01:20 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 355c076a-0bfd-4dde-b089-388d53ca4af3 + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/read-replicas/044bcfbc-3138-40a3-979a-86acfd3c2191 + method: GET + response: + body: '{"message":"resource is not found","resource":"read_replica","resource_id":"044bcfbc-3138-40a3-979a-86acfd3c2191","type":"not_found"}' + headers: + Content-Length: + - "133" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 03 Oct 2023 13:01:20 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c4dbe0cb-3a76-4bb1-95fd-84ced5cf3c5c + status: 404 Not Found + code: 404 + duration: "" diff --git a/scaleway/testdata/document-db-user-basic.cassette.yaml b/scaleway/testdata/document-db-user-basic.cassette.yaml new file mode 100644 index 000000000..4f21f550e --- /dev/null +++ b/scaleway/testdata/document-db-user-basic.cassette.yaml @@ -0,0 +1,1094 @@ +--- +version: 1 +interactions: +- request: + body: '{"project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","name":"test-documentdb-instance-endpoint-migration","engine":"FerretDB-1","user_name":"my_initial_user","password":"thiZ_is_v\u0026ry_s3cret","node_type":"docdb-play2-pico","is_ha_cluster":false,"disable_backup":false,"tags":null,"init_settings":null,"volume_type":"bssd","volume_size":20000000000,"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.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances + method: POST + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-05T08:01:14.438810Z","retention":7},"created_at":"2023-10-04T08:01:14.438810Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"960f66c1-4c95-48d8-b25d-b98a0b69b0a9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "776" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 04 Oct 2023 08:01:14 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 057d97db-5ca0-4625-9c22-d6d07e336e87 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/960f66c1-4c95-48d8-b25d-b98a0b69b0a9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-05T08:01:14.438810Z","retention":7},"created_at":"2023-10-04T08:01:14.438810Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"960f66c1-4c95-48d8-b25d-b98a0b69b0a9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "776" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 04 Oct 2023 08:01:14 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 047c26e0-8305-4c6b-b3b1-8fc6bd61b992 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/960f66c1-4c95-48d8-b25d-b98a0b69b0a9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-05T08:01:14.438810Z","retention":7},"created_at":"2023-10-04T08:01:14.438810Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"960f66c1-4c95-48d8-b25d-b98a0b69b0a9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"provisioning","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "776" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 04 Oct 2023 08:01:45 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d8b31dab-6af8-4d93-ad3c-d2b13567aab9 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/960f66c1-4c95-48d8-b25d-b98a0b69b0a9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-05T08:01:14.438810Z","retention":7},"created_at":"2023-10-04T08:01:14.438810Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"960f66c1-4c95-48d8-b25d-b98a0b69b0a9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "776" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 04 Oct 2023 08:02:15 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 814572bb-9011-4efb-9fbc-caf0f612ab4b + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/960f66c1-4c95-48d8-b25d-b98a0b69b0a9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-05T08:01:14.438810Z","retention":7},"created_at":"2023-10-04T08:01:14.438810Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"960f66c1-4c95-48d8-b25d-b98a0b69b0a9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "776" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 04 Oct 2023 08:02:46 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7f888cbc-10fb-4d16-9634-d2f36ba02534 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/960f66c1-4c95-48d8-b25d-b98a0b69b0a9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-05T08:01:14.438810Z","retention":7},"created_at":"2023-10-04T08:01:14.438810Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"960f66c1-4c95-48d8-b25d-b98a0b69b0a9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "776" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 04 Oct 2023 08:03:20 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c52aaff2-1549-4c4e-99e7-215803c1ea02 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/960f66c1-4c95-48d8-b25d-b98a0b69b0a9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-05T08:01:14.438810Z","retention":7},"created_at":"2023-10-04T08:01:14.438810Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"960f66c1-4c95-48d8-b25d-b98a0b69b0a9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "776" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 04 Oct 2023 08:03:50 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a01866ee-2c3b-495e-ad4d-0f9d6774ac9e + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/960f66c1-4c95-48d8-b25d-b98a0b69b0a9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-05T08:01:14.438810Z","retention":7},"created_at":"2023-10-04T08:01:14.438810Z","endpoint":null,"endpoints":[],"engine":"FerretDB-1","id":"960f66c1-4c95-48d8-b25d-b98a0b69b0a9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[],"status":"initializing","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "776" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 04 Oct 2023 08:04:23 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 00127412-2d7f-43dd-b7a9-e287b064ea03 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/960f66c1-4c95-48d8-b25d-b98a0b69b0a9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-05T08:01:14.438810Z","retention":7},"created_at":"2023-10-04T08:01:14.438810Z","endpoint":{"id":"c36010c9-9923-49cf-aa54-2a23cf0edee1","ip":"51.159.205.159","load_balancer":{},"name":null,"port":14724},"endpoints":[{"id":"c36010c9-9923-49cf-aa54-2a23cf0edee1","ip":"51.159.205.159","load_balancer":{},"name":null,"port":14724}],"engine":"FerretDB-1","id":"960f66c1-4c95-48d8-b25d-b98a0b69b0a9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1036" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 04 Oct 2023 08:04:53 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f0bc0d62-bb95-435d-92a0-a12fc9d8de21 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/960f66c1-4c95-48d8-b25d-b98a0b69b0a9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-05T08:01:14.438810Z","retention":7},"created_at":"2023-10-04T08:01:14.438810Z","endpoint":{"id":"c36010c9-9923-49cf-aa54-2a23cf0edee1","ip":"51.159.205.159","load_balancer":{},"name":null,"port":14724},"endpoints":[{"id":"c36010c9-9923-49cf-aa54-2a23cf0edee1","ip":"51.159.205.159","load_balancer":{},"name":null,"port":14724}],"engine":"FerretDB-1","id":"960f66c1-4c95-48d8-b25d-b98a0b69b0a9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1036" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 04 Oct 2023 08:04:53 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6dbd210f-635f-4d6e-9831-00bc42e89ba3 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/960f66c1-4c95-48d8-b25d-b98a0b69b0a9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-05T08:01:14.438810Z","retention":7},"created_at":"2023-10-04T08:01:14.438810Z","endpoint":{"id":"c36010c9-9923-49cf-aa54-2a23cf0edee1","ip":"51.159.205.159","load_balancer":{},"name":null,"port":14724},"endpoints":[{"id":"c36010c9-9923-49cf-aa54-2a23cf0edee1","ip":"51.159.205.159","load_balancer":{},"name":null,"port":14724}],"engine":"FerretDB-1","id":"960f66c1-4c95-48d8-b25d-b98a0b69b0a9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1036" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 04 Oct 2023 08:04:53 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1793e0d4-83bb-4048-b180-987071ea033e + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"name":"foo","password":"R34lP4sSw#Rd","is_admin":true}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/960f66c1-4c95-48d8-b25d-b98a0b69b0a9/users + method: POST + response: + body: '{"is_admin":true,"name":"foo"}' + headers: + Content-Length: + - "31" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 04 Oct 2023 08:04:53 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 30340076-ec7c-4cfc-9767-2ee307fa4658 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/960f66c1-4c95-48d8-b25d-b98a0b69b0a9/users?name=foo&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":true,"name":"foo"}]}' + headers: + Content-Length: + - "60" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 04 Oct 2023 08:04:53 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 677c626d-93b9-4343-b750-be2177d0fa1e + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/960f66c1-4c95-48d8-b25d-b98a0b69b0a9/users?name=foo&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":true,"name":"foo"}]}' + headers: + Content-Length: + - "60" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 04 Oct 2023 08:04:54 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ffed58df-7361-4104-b465-8bd791a9eb37 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/960f66c1-4c95-48d8-b25d-b98a0b69b0a9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-05T08:01:14.438810Z","retention":7},"created_at":"2023-10-04T08:01:14.438810Z","endpoint":{"id":"c36010c9-9923-49cf-aa54-2a23cf0edee1","ip":"51.159.205.159","load_balancer":{},"name":null,"port":14724},"endpoints":[{"id":"c36010c9-9923-49cf-aa54-2a23cf0edee1","ip":"51.159.205.159","load_balancer":{},"name":null,"port":14724}],"engine":"FerretDB-1","id":"960f66c1-4c95-48d8-b25d-b98a0b69b0a9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1036" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 04 Oct 2023 08:04:55 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 431d2673-3673-456c-aa33-f3679e29f5d6 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/960f66c1-4c95-48d8-b25d-b98a0b69b0a9/users?name=foo&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":true,"name":"foo"}]}' + headers: + Content-Length: + - "60" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 04 Oct 2023 08:04:55 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a258090c-9949-4c00-a74e-7c7103dfa2d8 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/960f66c1-4c95-48d8-b25d-b98a0b69b0a9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-05T08:01:14.438810Z","retention":7},"created_at":"2023-10-04T08:01:14.438810Z","endpoint":{"id":"c36010c9-9923-49cf-aa54-2a23cf0edee1","ip":"51.159.205.159","load_balancer":{},"name":null,"port":14724},"endpoints":[{"id":"c36010c9-9923-49cf-aa54-2a23cf0edee1","ip":"51.159.205.159","load_balancer":{},"name":null,"port":14724}],"engine":"FerretDB-1","id":"960f66c1-4c95-48d8-b25d-b98a0b69b0a9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1036" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 04 Oct 2023 08:04:55 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9774ce8a-43a1-441b-8bbd-2b70069efd5f + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/960f66c1-4c95-48d8-b25d-b98a0b69b0a9/users?name=foo&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":true,"name":"foo"}]}' + headers: + Content-Length: + - "60" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 04 Oct 2023 08:04:56 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b04774df-b3ff-4803-b7e6-d00c67fb94f0 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/960f66c1-4c95-48d8-b25d-b98a0b69b0a9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-05T08:01:14.438810Z","retention":7},"created_at":"2023-10-04T08:01:14.438810Z","endpoint":{"id":"c36010c9-9923-49cf-aa54-2a23cf0edee1","ip":"51.159.205.159","load_balancer":{},"name":null,"port":14724},"endpoints":[{"id":"c36010c9-9923-49cf-aa54-2a23cf0edee1","ip":"51.159.205.159","load_balancer":{},"name":null,"port":14724}],"engine":"FerretDB-1","id":"960f66c1-4c95-48d8-b25d-b98a0b69b0a9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1036" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 04 Oct 2023 08:04:57 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 319c81be-6660-43a6-9a13-d230a8a71c19 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/960f66c1-4c95-48d8-b25d-b98a0b69b0a9/users/foo + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 04 Oct 2023 08:04:57 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 76403b09-8756-41f7-b371-341b6c75f0c5 + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/960f66c1-4c95-48d8-b25d-b98a0b69b0a9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-05T08:01:14.438810Z","retention":7},"created_at":"2023-10-04T08:01:14.438810Z","endpoint":{"id":"c36010c9-9923-49cf-aa54-2a23cf0edee1","ip":"51.159.205.159","load_balancer":{},"name":null,"port":14724},"endpoints":[{"id":"c36010c9-9923-49cf-aa54-2a23cf0edee1","ip":"51.159.205.159","load_balancer":{},"name":null,"port":14724}],"engine":"FerretDB-1","id":"960f66c1-4c95-48d8-b25d-b98a0b69b0a9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1036" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 04 Oct 2023 08:04:57 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 48b0b49e-e0e6-4b7d-aab8-44d5eb50b0b1 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"name":"bar","password":"R34lP4sSw#Rd","is_admin":false}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/960f66c1-4c95-48d8-b25d-b98a0b69b0a9/users + method: POST + response: + body: '{"is_admin":false,"name":"bar"}' + headers: + Content-Length: + - "32" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 04 Oct 2023 08:04:57 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4cf4c1fa-df0c-45bb-92bf-072ddc518c06 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/960f66c1-4c95-48d8-b25d-b98a0b69b0a9/users?name=bar&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":false,"name":"bar"}]}' + headers: + Content-Length: + - "61" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 04 Oct 2023 08:04:57 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 46d73599-6fc1-46aa-867f-5424a5967113 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/960f66c1-4c95-48d8-b25d-b98a0b69b0a9/users?name=bar&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":false,"name":"bar"}]}' + headers: + Content-Length: + - "61" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 04 Oct 2023 08:04:57 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ff9a34a5-1645-4138-8243-cce650e13512 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/960f66c1-4c95-48d8-b25d-b98a0b69b0a9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-05T08:01:14.438810Z","retention":7},"created_at":"2023-10-04T08:01:14.438810Z","endpoint":{"id":"c36010c9-9923-49cf-aa54-2a23cf0edee1","ip":"51.159.205.159","load_balancer":{},"name":null,"port":14724},"endpoints":[{"id":"c36010c9-9923-49cf-aa54-2a23cf0edee1","ip":"51.159.205.159","load_balancer":{},"name":null,"port":14724}],"engine":"FerretDB-1","id":"960f66c1-4c95-48d8-b25d-b98a0b69b0a9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1036" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 04 Oct 2023 08:04:58 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f8e167fb-347b-4ed1-aa62-dbced5e49dd4 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/960f66c1-4c95-48d8-b25d-b98a0b69b0a9/users?name=bar&order_by=name_asc + method: GET + response: + body: '{"total_count":1,"users":[{"is_admin":false,"name":"bar"}]}' + headers: + Content-Length: + - "61" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 04 Oct 2023 08:04:58 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 12428ef0-99cc-41c9-aa7a-3a7e15c47743 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/960f66c1-4c95-48d8-b25d-b98a0b69b0a9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-05T08:01:14.438810Z","retention":7},"created_at":"2023-10-04T08:01:14.438810Z","endpoint":{"id":"c36010c9-9923-49cf-aa54-2a23cf0edee1","ip":"51.159.205.159","load_balancer":{},"name":null,"port":14724},"endpoints":[{"id":"c36010c9-9923-49cf-aa54-2a23cf0edee1","ip":"51.159.205.159","load_balancer":{},"name":null,"port":14724}],"engine":"FerretDB-1","id":"960f66c1-4c95-48d8-b25d-b98a0b69b0a9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1036" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 04 Oct 2023 08:04:59 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c39db433-82e4-4c9d-98e0-ff9b403c2077 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/960f66c1-4c95-48d8-b25d-b98a0b69b0a9/users/bar + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 04 Oct 2023 08:04:59 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 72b23b6c-2ea8-46fe-af2d-bf0b00771e19 + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/960f66c1-4c95-48d8-b25d-b98a0b69b0a9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-05T08:01:14.438810Z","retention":7},"created_at":"2023-10-04T08:01:14.438810Z","endpoint":{"id":"c36010c9-9923-49cf-aa54-2a23cf0edee1","ip":"51.159.205.159","load_balancer":{},"name":null,"port":14724},"endpoints":[{"id":"c36010c9-9923-49cf-aa54-2a23cf0edee1","ip":"51.159.205.159","load_balancer":{},"name":null,"port":14724}],"engine":"FerretDB-1","id":"960f66c1-4c95-48d8-b25d-b98a0b69b0a9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"ready","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1036" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 04 Oct 2023 08:04:59 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b4473ae3-6e65-4d56-9372-737d3f1316e2 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/960f66c1-4c95-48d8-b25d-b98a0b69b0a9 + method: DELETE + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-05T08:01:14.438810Z","retention":7},"created_at":"2023-10-04T08:01:14.438810Z","endpoint":{"id":"c36010c9-9923-49cf-aa54-2a23cf0edee1","ip":"51.159.205.159","load_balancer":{},"name":null,"port":14724},"endpoints":[{"id":"c36010c9-9923-49cf-aa54-2a23cf0edee1","ip":"51.159.205.159","load_balancer":{},"name":null,"port":14724}],"engine":"FerretDB-1","id":"960f66c1-4c95-48d8-b25d-b98a0b69b0a9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"deleting","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1039" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 04 Oct 2023 08:05:00 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4c436e0e-a6a5-43d8-a02d-0c8549095c49 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/960f66c1-4c95-48d8-b25d-b98a0b69b0a9 + method: GET + response: + body: '{"backup_same_region":false,"backup_schedule":{"disabled":false,"frequency":24,"next_run_at":"2023-10-05T08:01:14.438810Z","retention":7},"created_at":"2023-10-04T08:01:14.438810Z","endpoint":{"id":"c36010c9-9923-49cf-aa54-2a23cf0edee1","ip":"51.159.205.159","load_balancer":{},"name":null,"port":14724},"endpoints":[{"id":"c36010c9-9923-49cf-aa54-2a23cf0edee1","ip":"51.159.205.159","load_balancer":{},"name":null,"port":14724}],"engine":"FerretDB-1","id":"960f66c1-4c95-48d8-b25d-b98a0b69b0a9","init_settings":[],"is_ha_cluster":false,"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"maintenances":[],"name":"test-documentdb-instance-endpoint-migration","node_type":"docdb-play2-pico","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","read_replicas":[],"region":"fr-par","settings":[{"name":"max_connections","value":"100"}],"status":"deleting","tags":[],"upgradable_version":[],"volume":{"size":20000000000,"type":"bssd"}}' + headers: + Content-Length: + - "1039" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 04 Oct 2023 08:05:00 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - da280d77-e28d-44af-be27-9db2527cc514 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/960f66c1-4c95-48d8-b25d-b98a0b69b0a9 + method: GET + response: + body: '{"message":"resource is not found","resource":"instance","resource_id":"960f66c1-4c95-48d8-b25d-b98a0b69b0a9","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 04 Oct 2023 08:05:30 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5ab0824a-31ba-4a5a-b08f-112e9a607c29 + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/document-db/v1beta1/regions/fr-par/instances/960f66c1-4c95-48d8-b25d-b98a0b69b0a9 + method: DELETE + response: + body: '{"message":"resource is not found","resource":"instance","resource_id":"960f66c1-4c95-48d8-b25d-b98a0b69b0a9","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 04 Oct 2023 08:05:30 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 82385266-3af8-47b9-8216-4d369140e302 + status: 404 Not Found + code: 404 + duration: ""