diff --git a/docs/resources/mongodb_user.md b/docs/resources/mongodb_user.md new file mode 100644 index 0000000000..62b52996a9 --- /dev/null +++ b/docs/resources/mongodb_user.md @@ -0,0 +1,115 @@ +--- +subcategory: "MongoDB®" +page_title: "Scaleway: scaleway_mongodb_user" +--- + +# Resource: scaleway_mongodb_user + +Creates and manages Scaleway MongoDB® users. +For more information refer to the [product documentation](https://www.scaleway.com/en/docs/managed-mongodb-databases/). + +## Example Usage + +### Basic + +```terraform +resource "scaleway_mongodb_instance" "main" { + name = "test-mongodb-user" + version = "7.0.12" + node_type = "MGDB-PLAY2-NANO" + node_number = 1 + user_name = "initial_user" + password = "initial_password123" + volume_size_in_gb = 5 +} + +resource "scaleway_mongodb_user" "main" { + instance_id = scaleway_mongodb_instance.main.id + name = "my_user" + password = "my_password123" + + roles { + role = "read_write" + database_name = "my_database" + } +} +``` + +### With Multiple Users + +```terraform +resource "scaleway_mongodb_instance" "main" { + name = "test-mongodb-multi-user" + version = "7.0.12" + node_type = "MGDB-PLAY2-NANO" + node_number = 1 + user_name = "admin_user" + password = "admin_password123" + volume_size_in_gb = 5 +} + +resource "scaleway_mongodb_user" "app_user" { + instance_id = scaleway_mongodb_instance.main.id + name = "app_user" + password = "app_password123" + + roles { + role = "read_write" + database_name = "app_database" + } + + roles { + role = "read" + database_name = "logs_database" + } +} + +resource "scaleway_mongodb_user" "admin_user" { + instance_id = scaleway_mongodb_instance.main.id + name = "admin_user" + password = "admin_password123" + + roles { + role = "db_admin" + database_name = "admin" + } + + roles { + role = "read" + any_database = true + } +} +``` + +## Argument Reference + +The following arguments are supported: + +- `instance_id` - (Required) The ID of the MongoDB® instance. + +- `name` - (Required) The name of the MongoDB® user. + +- `password` - (Required) The password of the MongoDB® user. + +- `roles` - (Optional) List of roles assigned to the user. Each role block supports: + - `role` - (Required) The role name. Valid values are `read`, `read_write`, `db_admin`, `sync`. + - `database_name` - (Optional) The database name for the role. Cannot be used with `any_database`. + - `any_database` - (Optional) Apply the role to all databases. Cannot be used with `database_name`. + +- `region` - (Defaults to [provider](../index.md#region) `region`) The [region](../guides/regions_and_zones.md#regions) in which the MongoDB® user should be created. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +- `id` - The ID of the MongoDB® user. + +- `roles` - The list of roles assigned to the user. + +## Import + +MongoDB® users can be imported using the `{region}/{instance_id}/{name}`, e.g. + +```bash +terraform import scaleway_mongodb_user.main fr-par/11111111-1111-1111-1111-111111111111/my_user +``` diff --git a/internal/provider/provider.go b/internal/provider/provider.go index 77dcdee706..e7f61941da 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -215,6 +215,7 @@ func Provider(config *Config) plugin.ProviderFunc { "scaleway_mnq_sqs_queue": mnq.ResourceSQSQueue(), "scaleway_mongodb_instance": mongodb.ResourceInstance(), "scaleway_mongodb_snapshot": mongodb.ResourceSnapshot(), + "scaleway_mongodb_user": mongodb.ResourceUser(), "scaleway_object": object.ResourceObject(), "scaleway_object_bucket": object.ResourceBucket(), "scaleway_object_bucket_acl": object.ResourceBucketACL(), diff --git a/internal/services/mongodb/helpers.go b/internal/services/mongodb/helpers.go index f0be2b4a8a..2ef3e3ee13 100644 --- a/internal/services/mongodb/helpers.go +++ b/internal/services/mongodb/helpers.go @@ -10,6 +10,7 @@ import ( "github.com/scaleway/terraform-provider-scaleway/v2/internal/locality/regional" "github.com/scaleway/terraform-provider-scaleway/v2/internal/meta" "github.com/scaleway/terraform-provider-scaleway/v2/internal/transport" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/types" ) const ( @@ -73,3 +74,59 @@ func waitForSnapshot(ctx context.Context, api *mongodb.API, region scw.Region, i RetryInterval: &retryInterval, }, scw.WithContext(ctx)) } + +// expandUserRoles converts Terraform roles to SDK UserRole slice +func expandUserRoles(rolesSet *schema.Set) []*mongodb.UserRole { + if rolesSet == nil || rolesSet.Len() == 0 { + return nil + } + + roles := make([]*mongodb.UserRole, 0, rolesSet.Len()) + + for _, roleInterface := range rolesSet.List() { + roleMap := roleInterface.(map[string]any) + + userRole := &mongodb.UserRole{ + Role: mongodb.UserRoleRole(roleMap["role"].(string)), + } + + if dbName, ok := roleMap["database_name"]; ok && dbName.(string) != "" { + userRole.DatabaseName = types.ExpandStringPtr(dbName) + } + + if anyDB, ok := roleMap["any_database"]; ok && anyDB.(bool) { + userRole.AnyDatabase = scw.BoolPtr(true) + } + + roles = append(roles, userRole) + } + + return roles +} + +// flattenUserRoles converts SDK UserRole slice to Terraform roles +func flattenUserRoles(roles []*mongodb.UserRole) []any { + if len(roles) == 0 { + return nil + } + + result := make([]any, 0, len(roles)) + + for _, role := range roles { + roleMap := map[string]any{ + "role": string(role.Role), + } + + if role.DatabaseName != nil { + roleMap["database_name"] = *role.DatabaseName + } + + if role.AnyDatabase != nil && *role.AnyDatabase { + roleMap["any_database"] = true + } + + result = append(result, roleMap) + } + + return result +} diff --git a/internal/services/mongodb/testdata/mongo-db-user-basic.cassette.yaml b/internal/services/mongodb/testdata/mongo-db-user-basic.cassette.yaml new file mode 100644 index 0000000000..d5b72598f2 --- /dev/null +++ b/internal/services/mongodb/testdata/mongo-db-user-basic.cassette.yaml @@ -0,0 +1,3686 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 301 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","name":"test-mongodb-user","version":"7.0","tags":null,"node_amount":1,"node_type":"MGDB-PLAY2-NANO","user_name":"initial_user","password":"initial_password123","volume":{"type":"sbs_5k","size_bytes":5000000000},"endpoints":[{"public_network":{}}]}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 08:59:56 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - fa874d7e-c81b-495c-bc2d-51101026b440 + status: 200 OK + code: 200 + duration: 912.939375ms + - id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 08:59:56 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 16cc38bd-e104-4253-a604-b111f0e90f21 + status: 200 OK + code: 200 + duration: 138.612542ms + - id: 2 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:00:06 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0397a854-6db7-45cf-b5e5-39e5119131ed + status: 200 OK + code: 200 + duration: 154.982834ms + - id: 3 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:00:17 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8181de7d-746a-41c0-9a9d-d98a72fe7323 + status: 200 OK + code: 200 + duration: 184.09575ms + - id: 4 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:00:27 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d349ed0d-7b3d-4dd7-9096-560dc0423c2f + status: 200 OK + code: 200 + duration: 153.615584ms + - id: 5 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:00:37 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9e4141c8-02a6-438c-bd49-f5b6038756fc + status: 200 OK + code: 200 + duration: 223.855792ms + - id: 6 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:00:47 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3e497e66-d79c-45c7-a975-c4e7d86c93f6 + status: 200 OK + code: 200 + duration: 110.112083ms + - id: 7 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:00:57 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 54b46a0c-dd7b-4ad9-b726-adc5c76095a7 + status: 200 OK + code: 200 + duration: 207.039584ms + - id: 8 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:01:07 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bc24c237-9668-4356-8343-f6194a0cda88 + status: 200 OK + code: 200 + duration: 167.42525ms + - id: 9 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:01:18 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 21ba6521-503d-4e27-baab-c6dba5aceb20 + status: 200 OK + code: 200 + duration: 121.915333ms + - id: 10 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:01:28 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8c581c5c-ff7a-4a9e-89c8-158b479ba0c4 + status: 200 OK + code: 200 + duration: 116.588084ms + - id: 11 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:01:38 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2f706890-388b-428c-aa63-f70564068ffe + status: 200 OK + code: 200 + duration: 290.461667ms + - id: 12 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:01:48 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bb46e1e5-5192-425e-bf6c-e60154a5955a + status: 200 OK + code: 200 + duration: 105.731083ms + - id: 13 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:01:58 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 13a4adbe-60ff-4bbf-952c-691bed37f58b + status: 200 OK + code: 200 + duration: 107.638459ms + - id: 14 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:02:08 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1a130df4-f700-46bc-97e7-9b93e2fa0763 + status: 200 OK + code: 200 + duration: 109.696083ms + - id: 15 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:02:19 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 418d924b-e05f-4298-9ac5-04fb19c4635a + status: 200 OK + code: 200 + duration: 754.306875ms + - id: 16 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:02:29 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c97e232e-8fa2-4bf1-92e2-05dbef2ac6c3 + status: 200 OK + code: 200 + duration: 107.683917ms + - id: 17 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:02:39 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 11ad5456-34ba-47e2-b98d-1b3a214ab5ac + status: 200 OK + code: 200 + duration: 101.022417ms + - id: 18 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:02:49 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e8e00087-640b-4fb9-911b-553eadf94ef1 + status: 200 OK + code: 200 + duration: 139.949084ms + - id: 19 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:03:00 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8fdca003-8b5d-43f5-bca7-c1d7ca8c7042 + status: 200 OK + code: 200 + duration: 306.031583ms + - id: 20 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:03:10 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8cea9392-c04a-436c-962b-06a07adac332 + status: 200 OK + code: 200 + duration: 105.347792ms + - id: 21 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:03:20 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - af64f5a8-c03a-43d5-9545-30bbc1263f59 + status: 200 OK + code: 200 + duration: 95.416917ms + - id: 22 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:03:30 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9b588824-efc9-403a-b1f6-753f7c9a95e7 + status: 200 OK + code: 200 + duration: 90.153792ms + - id: 23 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:03:40 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6dc9eec9-8dcc-4ae6-a672-04a82dee9e5b + status: 200 OK + code: 200 + duration: 184.648167ms + - id: 24 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:03:50 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - eddf07da-001c-4298-9064-cd110e7a40b5 + status: 200 OK + code: 200 + duration: 120.138792ms + - id: 25 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:04:01 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 81db3a30-e1f5-47ef-b0bb-5757561b7dc0 + status: 200 OK + code: 200 + duration: 129.931667ms + - id: 26 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:04:11 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0fa0e411-b849-4844-809b-964f5747958e + status: 200 OK + code: 200 + duration: 176.196708ms + - id: 27 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:04:21 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2c9a280e-d473-4d11-b54e-b6d3acf8576a + status: 200 OK + code: 200 + duration: 112.016667ms + - id: 28 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:04:31 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5aa48223-146b-4c1c-87e6-b2c37a8e466d + status: 200 OK + code: 200 + duration: 301.072667ms + - id: 29 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:04:41 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5554560d-4dfa-4e2f-ab10-e344ad46223e + status: 200 OK + code: 200 + duration: 94.071334ms + - id: 30 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:04:51 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7f5dd0d4-477a-417e-865c-4d928c261d0a + status: 200 OK + code: 200 + duration: 93.433ms + - id: 31 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:05:01 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4b5b479d-4ff3-47a5-89bf-c99208164d38 + status: 200 OK + code: 200 + duration: 131.387291ms + - id: 32 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:05:12 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 89525f93-8fb4-4169-822f-2aaf6eece189 + status: 200 OK + code: 200 + duration: 240.673125ms + - id: 33 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:05:22 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - db9ee463-51d8-4154-ac58-77ca411c576a + status: 200 OK + code: 200 + duration: 103.347292ms + - id: 34 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:05:32 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7f814ee0-e7d2-4a70-8286-2f8e4e03bc72 + status: 200 OK + code: 200 + duration: 85.457375ms + - id: 35 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:05:42 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 65111c64-92d3-4576-96fb-1e68f60bc6dc + status: 200 OK + code: 200 + duration: 146.210667ms + - id: 36 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:05:52 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 53a98b3c-9d88-45ef-aba9-bcfbb6d3de6a + status: 200 OK + code: 200 + duration: 93.290083ms + - id: 37 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:02 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c6798f9a-21a0-4019-90da-e7ba54ea416f + status: 200 OK + code: 200 + duration: 117.905833ms + - id: 38 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:12 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 59fe2532-3e8c-4edf-b905-70058a8d7309 + status: 200 OK + code: 200 + duration: 99.952375ms + - id: 39 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:22 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7be153ed-d5a5-43bb-89ff-012a2e84a8d0 + status: 200 OK + code: 200 + duration: 169.24325ms + - id: 40 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 651 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"ready","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "651" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:33 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3e235a2b-26b3-4aba-ba19-8552a7f021c3 + status: 200 OK + code: 200 + duration: 92.363667ms + - id: 41 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 651 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"ready","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "651" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:33 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 130e75c9-1a98-4b42-bebc-4f1ed3b843e3 + status: 200 OK + code: 200 + duration: 94.323208ms + - id: 42 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1083 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUNBRENDQWJLZ0F3SUJBZ0lSQU5HRVFDSklVMWUveEl5WVk2TGd6TEl3QlFZREsyVndNSEF4Q3pBSkJnTlYKQkFZVEFrWlNNUTR3REFZRFZRUUhFd1ZRWVhKcGN6RVpNQmNHQTFVRUNoTVFVMk5oYkdWM1lYa2dUVzl1WjI5RQpRakUyTURRR0ExVUVDeE10U1c1emRHRnVZMlVnTW1GaFlUSTNNak10WmpZM1ppMDBZVEZrTFRnd04ySXRNR1JsCk1XSTRPRFpqWldSak1CNFhEVEkxTURrd05EQTROVGsxTmxvWERUTTFNRGt3TWpBNE5UazFObG93Y0RFTE1Ba0cKQTFVRUJoTUNSbEl4RGpBTUJnTlZCQWNUQlZCaGNtbHpNUmt3RndZRFZRUUtFeEJUWTJGc1pYZGhlU0JOYjI1bgpiMFJDTVRZd05BWURWUVFMRXkxSmJuTjBZVzVqWlNBeVlXRmhNamN5TXkxbU5qZG1MVFJoTVdRdE9EQTNZaTB3ClpHVXhZamc0Tm1ObFpHTXdLakFGQmdNclpYQURJUUJpREUxa1JGWUtEZDhIOUVkYTZBVzNHdkpsMGUzaGxLeTQKZGxVN2oyaVgrYU5oTUY4d0RnWURWUjBQQVFIL0JBUURBZ0lFTUIwR0ExVWRKUVFXTUJRR0NDc0dBUVVGQndNQwpCZ2dyQmdFRkJRY0RBVEFQQmdOVkhSTUJBZjhFQlRBREFRSC9NQjBHQTFVZERnUVdCQlNqdUxhSkdpSk9FdVNsCmhOZWJTZkpzeVFMOVV6QUZCZ01yWlhBRFFRQ2ZPUjlwZXgva2Z4cmpLbFFMUFF2WU5CaTJITVRwMnZYeUVQYksKMlRCeU5ycGVUaWdPU3djaGo3MDZFdnN3Z2dMWXRmZHZYaFN5c1ozL2F1c3JhME1ICi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "1083" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:33 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ecbb895b-534f-4aec-97a6-a547e967e277 + status: 200 OK + code: 200 + duration: 23.265042ms + - id: 43 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 651 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"ready","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "651" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:33 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c1119137-a9a5-41c2-b9ce-73c3c641a3df + status: 200 OK + code: 200 + duration: 28.352125ms + - id: 44 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 50 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"name":"test_user","password":"test_password123"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc/users + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 31 + uncompressed: false + body: '{"name":"test_user","roles":[]}' + headers: + Content-Length: + - "31" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:33 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 688c5ba6-b38f-4a16-88f6-7abe0a062027 + status: 200 OK + code: 200 + duration: 450.425208ms + - id: 45 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 83 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"user_name":"test_user","roles":[{"role":"read_write","database_name":"test_db"}]}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc/set-user-roles + method: PUT + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 78 + uncompressed: false + body: '{"name":"test_user","roles":[{"database_name":"test_db","role":"read_write"}]}' + headers: + Content-Length: + - "78" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:34 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - df561a57-437b-4db0-ae7f-fcfacbfd1391 + status: 200 OK + code: 200 + duration: 428.9755ms + - id: 46 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 651 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"ready","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "651" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:34 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9635835a-bc86-4e91-8675-a599536c1804 + status: 200 OK + code: 200 + duration: 91.213ms + - id: 47 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc/users?name=test_user&order_by=name_asc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 106 + uncompressed: false + body: '{"total_count":1,"users":[{"name":"test_user","roles":[{"database_name":"test_db","role":"read_write"}]}]}' + headers: + Content-Length: + - "106" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:34 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e1720cec-d810-4fb4-9ae6-2e33ddb77273 + status: 200 OK + code: 200 + duration: 219.901916ms + - id: 48 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc/users?name=test_user&order_by=name_asc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 106 + uncompressed: false + body: '{"total_count":1,"users":[{"name":"test_user","roles":[{"database_name":"test_db","role":"read_write"}]}]}' + headers: + Content-Length: + - "106" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:34 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 527470b6-8d55-40c0-b989-1b15691c388c + status: 200 OK + code: 200 + duration: 201.96625ms + - id: 49 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 651 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"ready","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "651" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:35 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - eb96c261-cbc2-46dd-992b-eec17ac5b41b + status: 200 OK + code: 200 + duration: 241.103208ms + - id: 50 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1083 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUNBRENDQWJLZ0F3SUJBZ0lSQU5HRVFDSklVMWUveEl5WVk2TGd6TEl3QlFZREsyVndNSEF4Q3pBSkJnTlYKQkFZVEFrWlNNUTR3REFZRFZRUUhFd1ZRWVhKcGN6RVpNQmNHQTFVRUNoTVFVMk5oYkdWM1lYa2dUVzl1WjI5RQpRakUyTURRR0ExVUVDeE10U1c1emRHRnVZMlVnTW1GaFlUSTNNak10WmpZM1ppMDBZVEZrTFRnd04ySXRNR1JsCk1XSTRPRFpqWldSak1CNFhEVEkxTURrd05EQTROVGsxTmxvWERUTTFNRGt3TWpBNE5UazFObG93Y0RFTE1Ba0cKQTFVRUJoTUNSbEl4RGpBTUJnTlZCQWNUQlZCaGNtbHpNUmt3RndZRFZRUUtFeEJUWTJGc1pYZGhlU0JOYjI1bgpiMFJDTVRZd05BWURWUVFMRXkxSmJuTjBZVzVqWlNBeVlXRmhNamN5TXkxbU5qZG1MVFJoTVdRdE9EQTNZaTB3ClpHVXhZamc0Tm1ObFpHTXdLakFGQmdNclpYQURJUUJpREUxa1JGWUtEZDhIOUVkYTZBVzNHdkpsMGUzaGxLeTQKZGxVN2oyaVgrYU5oTUY4d0RnWURWUjBQQVFIL0JBUURBZ0lFTUIwR0ExVWRKUVFXTUJRR0NDc0dBUVVGQndNQwpCZ2dyQmdFRkJRY0RBVEFQQmdOVkhSTUJBZjhFQlRBREFRSC9NQjBHQTFVZERnUVdCQlNqdUxhSkdpSk9FdVNsCmhOZWJTZkpzeVFMOVV6QUZCZ01yWlhBRFFRQ2ZPUjlwZXgva2Z4cmpLbFFMUFF2WU5CaTJITVRwMnZYeUVQYksKMlRCeU5ycGVUaWdPU3djaGo3MDZFdnN3Z2dMWXRmZHZYaFN5c1ozL2F1c3JhME1ICi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "1083" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:35 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5a391628-48c6-404f-9d60-21b118bcf381 + status: 200 OK + code: 200 + duration: 94.78225ms + - id: 51 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 651 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"ready","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "651" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:36 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 65b2f991-6a93-43fb-a388-67ced8a033c1 + status: 200 OK + code: 200 + duration: 100.350625ms + - id: 52 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc/users?name=test_user&order_by=name_asc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 106 + uncompressed: false + body: '{"total_count":1,"users":[{"name":"test_user","roles":[{"database_name":"test_db","role":"read_write"}]}]}' + headers: + Content-Length: + - "106" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:36 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0c970602-0809-4403-aaca-cc6f1b6fadce + status: 200 OK + code: 200 + duration: 202.51825ms + - id: 53 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 651 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"ready","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "651" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:36 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1f541e2c-5e70-4113-81f8-dd751bf41ca5 + status: 200 OK + code: 200 + duration: 151.352ms + - id: 54 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1083 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUNBRENDQWJLZ0F3SUJBZ0lSQU5HRVFDSklVMWUveEl5WVk2TGd6TEl3QlFZREsyVndNSEF4Q3pBSkJnTlYKQkFZVEFrWlNNUTR3REFZRFZRUUhFd1ZRWVhKcGN6RVpNQmNHQTFVRUNoTVFVMk5oYkdWM1lYa2dUVzl1WjI5RQpRakUyTURRR0ExVUVDeE10U1c1emRHRnVZMlVnTW1GaFlUSTNNak10WmpZM1ppMDBZVEZrTFRnd04ySXRNR1JsCk1XSTRPRFpqWldSak1CNFhEVEkxTURrd05EQTROVGsxTmxvWERUTTFNRGt3TWpBNE5UazFObG93Y0RFTE1Ba0cKQTFVRUJoTUNSbEl4RGpBTUJnTlZCQWNUQlZCaGNtbHpNUmt3RndZRFZRUUtFeEJUWTJGc1pYZGhlU0JOYjI1bgpiMFJDTVRZd05BWURWUVFMRXkxSmJuTjBZVzVqWlNBeVlXRmhNamN5TXkxbU5qZG1MVFJoTVdRdE9EQTNZaTB3ClpHVXhZamc0Tm1ObFpHTXdLakFGQmdNclpYQURJUUJpREUxa1JGWUtEZDhIOUVkYTZBVzNHdkpsMGUzaGxLeTQKZGxVN2oyaVgrYU5oTUY4d0RnWURWUjBQQVFIL0JBUURBZ0lFTUIwR0ExVWRKUVFXTUJRR0NDc0dBUVVGQndNQwpCZ2dyQmdFRkJRY0RBVEFQQmdOVkhSTUJBZjhFQlRBREFRSC9NQjBHQTFVZERnUVdCQlNqdUxhSkdpSk9FdVNsCmhOZWJTZkpzeVFMOVV6QUZCZ01yWlhBRFFRQ2ZPUjlwZXgva2Z4cmpLbFFMUFF2WU5CaTJITVRwMnZYeUVQYksKMlRCeU5ycGVUaWdPU3djaGo3MDZFdnN3Z2dMWXRmZHZYaFN5c1ozL2F1c3JhME1ICi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "1083" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:37 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1f1b3ab4-fc18-4796-b393-99e22672a4d3 + status: 200 OK + code: 200 + duration: 176.675958ms + - id: 55 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 651 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"ready","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "651" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:37 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 76b98148-fa40-4352-8dd6-42c1f7c0d1d9 + status: 200 OK + code: 200 + duration: 146.754041ms + - id: 56 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc/users?name=test_user&order_by=name_asc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 106 + uncompressed: false + body: '{"total_count":1,"users":[{"name":"test_user","roles":[{"database_name":"test_db","role":"read_write"}]}]}' + headers: + Content-Length: + - "106" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:37 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 20a52091-8334-4604-80b1-61875fab48cd + status: 200 OK + code: 200 + duration: 346.656792ms + - id: 57 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 651 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"ready","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "651" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:38 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c0c414f3-3456-488a-b4a4-365c335b1a53 + status: 200 OK + code: 200 + duration: 132.150625ms + - id: 58 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 30 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"password":"new_password456"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc/users/test_user + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 78 + uncompressed: false + body: '{"name":"test_user","roles":[{"database_name":"test_db","role":"read_write"}]}' + headers: + Content-Length: + - "78" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:39 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bc1f2733-f939-4f59-b36a-2eac6c0c0301 + status: 200 OK + code: 200 + duration: 347.334041ms + - id: 59 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 77 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"user_name":"test_user","roles":[{"role":"read","database_name":"test_db"}]}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc/set-user-roles + method: PUT + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 72 + uncompressed: false + body: '{"name":"test_user","roles":[{"database_name":"test_db","role":"read"}]}' + headers: + Content-Length: + - "72" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:39 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 92a1446d-b2e9-43e0-8888-4b351820418a + status: 200 OK + code: 200 + duration: 301.143959ms + - id: 60 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 651 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"ready","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "651" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:39 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bc2f029f-e46f-4a31-aaf0-2e73888d3b7b + status: 200 OK + code: 200 + duration: 100.518209ms + - id: 61 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc/users?name=test_user&order_by=name_asc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 100 + uncompressed: false + body: '{"total_count":1,"users":[{"name":"test_user","roles":[{"database_name":"test_db","role":"read"}]}]}' + headers: + Content-Length: + - "100" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:39 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 48391563-9a55-4842-bfc1-7c9d1c78cefa + status: 200 OK + code: 200 + duration: 135.124709ms + - id: 62 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc/users?name=test_user&order_by=name_asc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 100 + uncompressed: false + body: '{"total_count":1,"users":[{"name":"test_user","roles":[{"database_name":"test_db","role":"read"}]}]}' + headers: + Content-Length: + - "100" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:39 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 254b1ae7-5853-49e4-b591-9b0a0a059b8e + status: 200 OK + code: 200 + duration: 198.341333ms + - id: 63 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 651 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"ready","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "651" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:40 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b14fab72-b78f-4521-9b2c-cd10f1bea7e5 + status: 200 OK + code: 200 + duration: 27.225584ms + - id: 64 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1083 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUNBRENDQWJLZ0F3SUJBZ0lSQU5HRVFDSklVMWUveEl5WVk2TGd6TEl3QlFZREsyVndNSEF4Q3pBSkJnTlYKQkFZVEFrWlNNUTR3REFZRFZRUUhFd1ZRWVhKcGN6RVpNQmNHQTFVRUNoTVFVMk5oYkdWM1lYa2dUVzl1WjI5RQpRakUyTURRR0ExVUVDeE10U1c1emRHRnVZMlVnTW1GaFlUSTNNak10WmpZM1ppMDBZVEZrTFRnd04ySXRNR1JsCk1XSTRPRFpqWldSak1CNFhEVEkxTURrd05EQTROVGsxTmxvWERUTTFNRGt3TWpBNE5UazFObG93Y0RFTE1Ba0cKQTFVRUJoTUNSbEl4RGpBTUJnTlZCQWNUQlZCaGNtbHpNUmt3RndZRFZRUUtFeEJUWTJGc1pYZGhlU0JOYjI1bgpiMFJDTVRZd05BWURWUVFMRXkxSmJuTjBZVzVqWlNBeVlXRmhNamN5TXkxbU5qZG1MVFJoTVdRdE9EQTNZaTB3ClpHVXhZamc0Tm1ObFpHTXdLakFGQmdNclpYQURJUUJpREUxa1JGWUtEZDhIOUVkYTZBVzNHdkpsMGUzaGxLeTQKZGxVN2oyaVgrYU5oTUY4d0RnWURWUjBQQVFIL0JBUURBZ0lFTUIwR0ExVWRKUVFXTUJRR0NDc0dBUVVGQndNQwpCZ2dyQmdFRkJRY0RBVEFQQmdOVkhSTUJBZjhFQlRBREFRSC9NQjBHQTFVZERnUVdCQlNqdUxhSkdpSk9FdVNsCmhOZWJTZkpzeVFMOVV6QUZCZ01yWlhBRFFRQ2ZPUjlwZXgva2Z4cmpLbFFMUFF2WU5CaTJITVRwMnZYeUVQYksKMlRCeU5ycGVUaWdPU3djaGo3MDZFdnN3Z2dMWXRmZHZYaFN5c1ozL2F1c3JhME1ICi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "1083" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:40 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - cc76c724-1ec0-4ec9-ab68-55196b9282cf + status: 200 OK + code: 200 + duration: 101.649583ms + - id: 65 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 651 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"ready","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "651" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:40 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 75026e51-af35-4eb4-8006-509bf7c87448 + status: 200 OK + code: 200 + duration: 29.457875ms + - id: 66 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc/users?name=test_user&order_by=name_asc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 100 + uncompressed: false + body: '{"total_count":1,"users":[{"name":"test_user","roles":[{"database_name":"test_db","role":"read"}]}]}' + headers: + Content-Length: + - "100" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:40 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b996560c-3f1c-41fd-adfd-0cb2886e15a8 + status: 200 OK + code: 200 + duration: 111.491375ms + - id: 67 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 651 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"ready","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "651" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:41 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - cd566e38-d2d1-4d69-b00f-bac2192af718 + status: 200 OK + code: 200 + duration: 81.925666ms + - id: 68 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc/users/test_user + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:42 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a237f04e-fa3a-4706-a04a-6000f050ca98 + status: 204 No Content + code: 204 + duration: 519.905667ms + - id: 69 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 651 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"ready","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "651" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:42 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5d3a88a2-8d20-4053-8f12-2cf5988d9ad1 + status: 200 OK + code: 200 + duration: 26.885291ms + - id: 70 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 541 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":null,"status":"deleting","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "541" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:42 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d3c2caf5-a08b-4b12-81da-4e849e1293de + status: 200 OK + code: 200 + duration: 96.832542ms + - id: 71 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 654 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"deleting","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "654" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:42 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1f5b9c68-eecd-4d47-a317-2626ef117a5e + status: 200 OK + code: 200 + duration: 33.526792ms + - id: 72 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 654 + uncompressed: false + body: '{"created_at":"2025-09-04T08:59:56.130254Z","endpoints":[{"dns_record":"2aaa2723-f67f-4a1d-807b-0de1b886cedc.mgdb.fr-par.scw.cloud","id":"923d78ef-27ea-4966-a8ce-94758888e1a9","port":27017,"public_network":{}}],"id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","name":"test-mongodb-user","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T08:59:56.548916Z","retention_days":7},"status":"deleting","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "654" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:06:52 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6207a409-5370-4eb8-bfe5-58237662d20a + status: 200 OK + code: 200 + duration: 191.92325ms + - id: 73 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 129 + uncompressed: false + body: '{"message":"resource is not found","resource":"instance","resource_id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:07:02 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 551b71a2-4336-4ba2-8e14-caec220ffb70 + status: 404 Not Found + code: 404 + duration: 24.269041ms + - id: 74 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/2aaa2723-f67f-4a1d-807b-0de1b886cedc/users?name=test_user&order_by=name_asc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 129 + uncompressed: false + body: '{"message":"resource is not found","resource":"instance","resource_id":"2aaa2723-f67f-4a1d-807b-0de1b886cedc","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 09:07:02 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 022e3b58-064d-4307-ba47-658a7b19a500 + status: 404 Not Found + code: 404 + duration: 41.515084ms diff --git a/internal/services/mongodb/testdata/mongo-db-user-state-import.cassette.yaml b/internal/services/mongodb/testdata/mongo-db-user-state-import.cassette.yaml new file mode 100644 index 0000000000..ed76def2a6 --- /dev/null +++ b/internal/services/mongodb/testdata/mongo-db-user-state-import.cassette.yaml @@ -0,0 +1,3241 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 308 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","name":"test-mongodb-user-import","version":"7.0","tags":null,"node_amount":1,"node_type":"MGDB-PLAY2-NANO","user_name":"initial_user","password":"initial_password123","volume":{"type":"sbs_5k","size_bytes":5000000000},"endpoints":[{"public_network":{}}]}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:16:34 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - be953f64-ccb6-41e5-aed9-4ab7dafecdc9 + status: 200 OK + code: 200 + duration: 808.140459ms + - id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:16:34 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - dc71e7aa-d299-4361-a8d8-bd5bbb9f1bb1 + status: 200 OK + code: 200 + duration: 155.937833ms + - id: 2 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:16:44 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - dd312b65-f8eb-4a02-95ed-20f50019283a + status: 200 OK + code: 200 + duration: 85.070958ms + - id: 3 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:16:55 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 87d1ad1a-7daf-4906-a514-7c11256ea19c + status: 200 OK + code: 200 + duration: 212.143208ms + - id: 4 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:17:05 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b58133dc-e1a8-4705-9c12-d257e2866a43 + status: 200 OK + code: 200 + duration: 536.691166ms + - id: 5 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:17:15 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 941308ad-bfd3-40f3-b4f3-36fbf0a482fb + status: 200 OK + code: 200 + duration: 132.740833ms + - id: 6 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:17:25 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c7fd9650-515b-4250-ac72-cf05f2506f0f + status: 200 OK + code: 200 + duration: 159.310958ms + - id: 7 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:17:36 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d56f144c-d205-4111-8d18-7ffdbc9a048e + status: 200 OK + code: 200 + duration: 113.673584ms + - id: 8 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:17:46 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 485d69f4-f297-4b3d-ab9d-43fb80de81f5 + status: 200 OK + code: 200 + duration: 87.649666ms + - id: 9 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:17:56 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 77a23226-c986-4183-b07f-a07ef7008cd7 + status: 200 OK + code: 200 + duration: 107.2885ms + - id: 10 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:18:06 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 39a6b947-8e32-4f30-b773-e742ca7d08d5 + status: 200 OK + code: 200 + duration: 224.690584ms + - id: 11 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:18:16 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d3b9023d-bd97-4965-b3aa-07a668efd3d3 + status: 200 OK + code: 200 + duration: 169.692375ms + - id: 12 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:18:26 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 03ad9996-8681-4de2-9de1-7f680963be95 + status: 200 OK + code: 200 + duration: 95.666ms + - id: 13 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:18:36 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 92bda085-aa2e-4163-8d17-fb8557c35999 + status: 200 OK + code: 200 + duration: 87.033875ms + - id: 14 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:18:47 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6a0d8bd6-3dbd-4c9f-9729-8fba1a5b0d24 + status: 200 OK + code: 200 + duration: 208.174959ms + - id: 15 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:18:57 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 486cf384-ba24-4b76-8b7f-707c315bad9c + status: 200 OK + code: 200 + duration: 95.809833ms + - id: 16 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:19:07 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - eb662302-3c01-41eb-bc57-8a027910502c + status: 200 OK + code: 200 + duration: 122.614625ms + - id: 17 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:19:17 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 72bef99c-2075-48a8-bc63-82790cfb2ce3 + status: 200 OK + code: 200 + duration: 168.889042ms + - id: 18 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:19:27 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8e282d48-35a2-4a39-9db8-79994f907043 + status: 200 OK + code: 200 + duration: 97.196542ms + - id: 19 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:19:37 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7a0a6bef-ced8-4eb5-8343-cf2e53d032e7 + status: 200 OK + code: 200 + duration: 92.763042ms + - id: 20 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:19:47 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0201a99e-7434-4d33-8d11-500e5c877029 + status: 200 OK + code: 200 + duration: 118.175708ms + - id: 21 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:19:57 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - cf58c0ea-4f07-4499-9dd4-adc6f1998781 + status: 200 OK + code: 200 + duration: 87.690625ms + - id: 22 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:20:08 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9c99cd47-7f9b-4913-b60e-4838fed37c55 + status: 200 OK + code: 200 + duration: 208.638875ms + - id: 23 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:20:18 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c91e37d7-dcb1-43f8-be68-3d3eedb269f3 + status: 200 OK + code: 200 + duration: 82.863208ms + - id: 24 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:20:28 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bb03447e-310b-451a-86b4-02b03440c067 + status: 200 OK + code: 200 + duration: 102.007666ms + - id: 25 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:20:38 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 862e1b20-8cff-4474-b88e-16268c056e12 + status: 200 OK + code: 200 + duration: 108.353125ms + - id: 26 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:20:48 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 63313d3d-ede2-4e0f-b913-2b0049f95279 + status: 200 OK + code: 200 + duration: 84.768292ms + - id: 27 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:20:58 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a7df8e13-2ccf-4953-9fca-cd0c78d0e6a5 + status: 200 OK + code: 200 + duration: 121.191208ms + - id: 28 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:21:08 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 85ee5f6a-525c-4053-afd1-f56e37a3d115 + status: 200 OK + code: 200 + duration: 141.236542ms + - id: 29 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:21:18 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bd38dcc3-6acb-486d-9df1-48449eed7fb4 + status: 200 OK + code: 200 + duration: 79.940917ms + - id: 30 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:21:28 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ea3745b2-4cca-4f1c-955f-0a4996acb20e + status: 200 OK + code: 200 + duration: 112.394917ms + - id: 31 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:21:39 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d2e0641e-b29d-4c35-b367-4b9b4c7033bc + status: 200 OK + code: 200 + duration: 88.474542ms + - id: 32 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:21:49 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7da95348-8f9b-4c4b-9bfa-8e18a40c05b0 + status: 200 OK + code: 200 + duration: 194.520709ms + - id: 33 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:21:59 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 09b17f69-9086-4a1e-adb4-14d3eb2c79b6 + status: 200 OK + code: 200 + duration: 115.755583ms + - id: 34 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:22:09 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f6bc8edf-e978-4f6e-be0f-993bf1593d33 + status: 200 OK + code: 200 + duration: 108.866791ms + - id: 35 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:22:19 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 45825c86-13bc-4f6d-9a65-3517fecd5311 + status: 200 OK + code: 200 + duration: 96.874209ms + - id: 36 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:22:29 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0af93e20-9417-4272-b91d-fe35564df273 + status: 200 OK + code: 200 + duration: 258.015042ms + - id: 37 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:22:39 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5ad30d11-7e80-4759-919d-e7e2909081b5 + status: 200 OK + code: 200 + duration: 102.11225ms + - id: 38 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:22:50 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b967035a-4550-48b1-b62c-abd3642255c7 + status: 200 OK + code: 200 + duration: 107.272542ms + - id: 39 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:23:00 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f0ad5bde-1bd7-4e72-a3fc-516615bf0cd3 + status: 200 OK + code: 200 + duration: 128.26525ms + - id: 40 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:23:10 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bae675bc-662b-4362-a7b0-aa7b9f252764 + status: 200 OK + code: 200 + duration: 146.778958ms + - id: 41 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:23:20 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 982e092f-2fd0-46e7-a708-bb7b62430a76 + status: 200 OK + code: 200 + duration: 85.938042ms + - id: 42 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:23:30 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8c2a8483-041d-44d0-822c-98088e9c27ba + status: 200 OK + code: 200 + duration: 110.737ms + - id: 43 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 665 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"provisioning","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:23:40 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 86f1e440-fbe1-411e-b768-45f84f9cfd2a + status: 200 OK + code: 200 + duration: 103.56075ms + - id: 44 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"ready","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:23:50 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 853b84a7-aedc-4cd5-a63b-134fd72f0253 + status: 200 OK + code: 200 + duration: 246.763125ms + - id: 45 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"ready","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:23:50 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e3963d78-ed5f-4c9f-be92-9dcf3b4fe7b7 + status: 200 OK + code: 200 + duration: 32.977416ms + - id: 46 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1083 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUNBRENDQWJLZ0F3SUJBZ0lSQUtUZzE0TU9EK1VISm9ORGR0UlBkdTR3QlFZREsyVndNSEF4Q3pBSkJnTlYKQkFZVEFrWlNNUTR3REFZRFZRUUhFd1ZRWVhKcGN6RVpNQmNHQTFVRUNoTVFVMk5oYkdWM1lYa2dUVzl1WjI5RQpRakUyTURRR0ExVUVDeE10U1c1emRHRnVZMlVnWWpKbU56RTJObUV0WlRrME5TMDBZbVUwTFRrNFlXSXRNakl6ClpUa3pNakEwTURneU1CNFhEVEkxTURrd05ERXpNVFl6TkZvWERUTTFNRGt3TWpFek1UWXpORm93Y0RFTE1Ba0cKQTFVRUJoTUNSbEl4RGpBTUJnTlZCQWNUQlZCaGNtbHpNUmt3RndZRFZRUUtFeEJUWTJGc1pYZGhlU0JOYjI1bgpiMFJDTVRZd05BWURWUVFMRXkxSmJuTjBZVzVqWlNCaU1tWTNNVFkyWVMxbE9UUTFMVFJpWlRRdE9UaGhZaTB5Ck1qTmxPVE15TURRd09ESXdLakFGQmdNclpYQURJUURMbG5qNnBMdHlRODRlQ0E1Zi9NU1pSTm1CdHBVQnpuRWcKMU5YOExqK3o4cU5oTUY4d0RnWURWUjBQQVFIL0JBUURBZ0lFTUIwR0ExVWRKUVFXTUJRR0NDc0dBUVVGQndNQwpCZ2dyQmdFRkJRY0RBVEFQQmdOVkhSTUJBZjhFQlRBREFRSC9NQjBHQTFVZERnUVdCQlQ0d2RuckswbFpHZzdPClVlUkUrMHFKSEdES0ZEQUZCZ01yWlhBRFFRQXJYWFMxSWdOeTZYZnQ1N1hHeVJMSlNvT1owU0dHOXlHL0gra1kKdENBakNzUXhHZDE3cEdjcEhpNUYvQ1ltM25OUnNNQ2FGcmNyZHpNT0hTdWs1VU1KCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "1083" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:23:51 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d10bef6e-91e9-47a8-be48-4c3123c8390e + status: 200 OK + code: 200 + duration: 140.322625ms + - id: 47 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"ready","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:23:51 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 50645a58-6692-4161-b052-e0d8b6296ad8 + status: 200 OK + code: 200 + duration: 205.751541ms + - id: 48 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 54 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"name":"import_user","password":"import_password123"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082/users + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 33 + uncompressed: false + body: '{"name":"import_user","roles":[]}' + headers: + Content-Length: + - "33" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:23:51 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 037fb590-5285-4540-93c6-83a8e905ce59 + status: 200 OK + code: 200 + duration: 468.398166ms + - id: 49 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 117 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"user_name":"import_user","roles":[{"role":"read","any_database":true},{"role":"db_admin","database_name":"admin"}]}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082/set-user-roles + method: PUT + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 112 + uncompressed: false + body: '{"name":"import_user","roles":[{"any_database":true,"role":"read"},{"database_name":"admin","role":"db_admin"}]}' + headers: + Content-Length: + - "112" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:23:52 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e25e37f1-371e-4a23-9f33-74f886fef37d + status: 200 OK + code: 200 + duration: 515.118292ms + - id: 50 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"ready","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:23:52 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 24f623ee-1f4c-42e5-a9cd-94398f2cd4a5 + status: 200 OK + code: 200 + duration: 80.606625ms + - id: 51 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082/users?name=import_user&order_by=name_asc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 140 + uncompressed: false + body: '{"total_count":1,"users":[{"name":"import_user","roles":[{"any_database":true,"role":"read"},{"database_name":"admin","role":"db_admin"}]}]}' + headers: + Content-Length: + - "140" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:23:52 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4a9a58ae-c278-47ac-8a17-b2c7192599f2 + status: 200 OK + code: 200 + duration: 378.604917ms + - id: 52 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082/users?name=import_user&order_by=name_asc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 140 + uncompressed: false + body: '{"total_count":1,"users":[{"name":"import_user","roles":[{"any_database":true,"role":"read"},{"database_name":"admin","role":"db_admin"}]}]}' + headers: + Content-Length: + - "140" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:23:53 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - fe261c21-bc17-4fa8-ac15-a6bbda2ddc88 + status: 200 OK + code: 200 + duration: 174.395459ms + - id: 53 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"ready","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:23:53 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 491536dd-c818-4274-b71a-5ec7cf00e626 + status: 200 OK + code: 200 + duration: 37.078583ms + - id: 54 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082/certificate + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1083 + uncompressed: false + body: '{"content":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUNBRENDQWJLZ0F3SUJBZ0lSQUtUZzE0TU9EK1VISm9ORGR0UlBkdTR3QlFZREsyVndNSEF4Q3pBSkJnTlYKQkFZVEFrWlNNUTR3REFZRFZRUUhFd1ZRWVhKcGN6RVpNQmNHQTFVRUNoTVFVMk5oYkdWM1lYa2dUVzl1WjI5RQpRakUyTURRR0ExVUVDeE10U1c1emRHRnVZMlVnWWpKbU56RTJObUV0WlRrME5TMDBZbVUwTFRrNFlXSXRNakl6ClpUa3pNakEwTURneU1CNFhEVEkxTURrd05ERXpNVFl6TkZvWERUTTFNRGt3TWpFek1UWXpORm93Y0RFTE1Ba0cKQTFVRUJoTUNSbEl4RGpBTUJnTlZCQWNUQlZCaGNtbHpNUmt3RndZRFZRUUtFeEJUWTJGc1pYZGhlU0JOYjI1bgpiMFJDTVRZd05BWURWUVFMRXkxSmJuTjBZVzVqWlNCaU1tWTNNVFkyWVMxbE9UUTFMVFJpWlRRdE9UaGhZaTB5Ck1qTmxPVE15TURRd09ESXdLakFGQmdNclpYQURJUURMbG5qNnBMdHlRODRlQ0E1Zi9NU1pSTm1CdHBVQnpuRWcKMU5YOExqK3o4cU5oTUY4d0RnWURWUjBQQVFIL0JBUURBZ0lFTUIwR0ExVWRKUVFXTUJRR0NDc0dBUVVGQndNQwpCZ2dyQmdFRkJRY0RBVEFQQmdOVkhSTUJBZjhFQlRBREFRSC9NQjBHQTFVZERnUVdCQlQ0d2RuckswbFpHZzdPClVlUkUrMHFKSEdES0ZEQUZCZ01yWlhBRFFRQXJYWFMxSWdOeTZYZnQ1N1hHeVJMSlNvT1owU0dHOXlHL0gra1kKdENBakNzUXhHZDE3cEdjcEhpNUYvQ1ltM25OUnNNQ2FGcmNyZHpNT0hTdWs1VU1KCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K","content_type":"application/x-pem-file","name":"ssl_certificate"}' + headers: + Content-Length: + - "1083" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:23:53 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f224f3b3-d8f8-4a64-96cf-f043c83371b8 + status: 200 OK + code: 200 + duration: 25.91125ms + - id: 55 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"ready","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:23:54 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 23d82a18-114a-4290-8fdf-6851d16a9c44 + status: 200 OK + code: 200 + duration: 92.017583ms + - id: 56 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082/users?name=import_user&order_by=name_asc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 140 + uncompressed: false + body: '{"total_count":1,"users":[{"name":"import_user","roles":[{"any_database":true,"role":"read"},{"database_name":"admin","role":"db_admin"}]}]}' + headers: + Content-Length: + - "140" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:23:54 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 76aa756e-ecc6-484a-a17f-964dcd7c6822 + status: 200 OK + code: 200 + duration: 188.629959ms + - id: 57 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"ready","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:23:55 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f152c5f3-771a-4a0a-8d24-04737818069e + status: 200 OK + code: 200 + duration: 91.07625ms + - id: 58 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082/users?name=import_user&order_by=name_asc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 140 + uncompressed: false + body: '{"total_count":1,"users":[{"name":"import_user","roles":[{"any_database":true,"role":"read"},{"database_name":"admin","role":"db_admin"}]}]}' + headers: + Content-Length: + - "140" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:23:55 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0a3db529-fcec-424e-bd2a-af0efeb39f55 + status: 200 OK + code: 200 + duration: 216.486208ms + - id: 59 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"ready","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:23:56 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a8c19ae2-41d0-4888-a1ea-8edb1a9da1f4 + status: 200 OK + code: 200 + duration: 681.38525ms + - id: 60 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082/users/import_user + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:23:57 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f6fccd27-ea12-4ecc-9f88-ef82b6b7922e + status: 204 No Content + code: 204 + duration: 427.7475ms + - id: 61 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 658 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"ready","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "658" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:23:57 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 97708162-6aca-4f25-ad4b-9da9e5c2a742 + status: 200 OK + code: 200 + duration: 80.298708ms + - id: 62 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 548 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":null,"status":"deleting","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "548" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:23:57 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 58d06316-0d2f-4beb-9a03-6da246dc8df4 + status: 200 OK + code: 200 + duration: 97.867084ms + - id: 63 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 661 + uncompressed: false + body: '{"created_at":"2025-09-04T13:16:34.186075Z","endpoints":[{"dns_record":"b2f7166a-e945-4be4-98ab-223e93204082.mgdb.fr-par.scw.cloud","id":"3852b5e3-1c28-4877-a2ce-5daadb8757b6","port":27017,"public_network":{}}],"id":"b2f7166a-e945-4be4-98ab-223e93204082","name":"test-mongodb-user-import","node_amount":1,"node_type":"mgdb-play2-nano","organization_id":"","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","snapshot_schedule":{"enabled":false,"frequency_hours":24,"last_run":null,"next_update":"2025-09-04T13:16:34.603783Z","retention_days":7},"status":"deleting","tags":[],"version":"7.0","volume":{"size_bytes":5000000000,"type":"sbs_5k"}}' + headers: + Content-Length: + - "661" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:23:57 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b5b97669-3ee7-4ea0-b98e-325b1c2a7684 + status: 200 OK + code: 200 + duration: 46.246791ms + - id: 64 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 129 + uncompressed: false + body: '{"message":"resource is not found","resource":"instance","resource_id":"b2f7166a-e945-4be4-98ab-223e93204082","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:24:07 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - fac4bdde-9a18-4601-a455-84d38531d8eb + status: 404 Not Found + code: 404 + duration: 43.983083ms + - id: 65 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.0; darwin; arm64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/b2f7166a-e945-4be4-98ab-223e93204082/users?name=import_user&order_by=name_asc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 129 + uncompressed: false + body: '{"message":"resource is not found","resource":"instance","resource_id":"b2f7166a-e945-4be4-98ab-223e93204082","type":"not_found"}' + headers: + Content-Length: + - "129" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 04 Sep 2025 13:24:07 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 48f4c9f6-69bb-41cd-86be-2e0333549e89 + status: 404 Not Found + code: 404 + duration: 31.501291ms diff --git a/internal/services/mongodb/user.go b/internal/services/mongodb/user.go new file mode 100644 index 0000000000..2557dee14c --- /dev/null +++ b/internal/services/mongodb/user.go @@ -0,0 +1,303 @@ +package mongodb + +import ( + "context" + "errors" + "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/customdiff" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + mongodb "github.com/scaleway/scaleway-sdk-go/api/mongodb/v1" + "github.com/scaleway/scaleway-sdk-go/scw" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/cdf" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/httperrors" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/locality/regional" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/types" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/verify" +) + +func ResourceUser() *schema.Resource { + return &schema.Resource{ + CreateContext: ResourceUserCreate, + ReadContext: ResourceUserRead, + UpdateContext: ResourceUserUpdate, + DeleteContext: ResourceUserDelete, + Importer: &schema.ResourceImporter{ + StateContext: schema.ImportStatePassthroughContext, + }, + Timeouts: &schema.ResourceTimeout{ + Create: schema.DefaultTimeout(defaultMongodbInstanceTimeout), + Read: schema.DefaultTimeout(defaultMongodbInstanceTimeout), + Update: schema.DefaultTimeout(defaultMongodbInstanceTimeout), + Delete: schema.DefaultTimeout(defaultMongodbInstanceTimeout), + Default: schema.DefaultTimeout(defaultMongodbInstanceTimeout), + }, + SchemaVersion: 0, + Schema: map[string]*schema.Schema{ + "instance_id": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + ValidateDiagFunc: verify.IsUUIDorUUIDWithLocality(), + Description: "Instance on which the user is created", + }, + "name": { + Type: schema.TypeString, + Description: "MongoDB user name", + Required: true, + ForceNew: true, + }, + "password": { + Type: schema.TypeString, + Required: true, + Sensitive: true, + Description: "MongoDB user password", + }, + "roles": { + Type: schema.TypeSet, + Optional: true, + Description: "List of roles assigned to the user", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "role": { + Type: schema.TypeString, + Required: true, + Description: "Role name (read, read_write, db_admin, sync)", + }, + "database_name": { + Type: schema.TypeString, + Optional: true, + Description: "Database name for the role", + }, + "any_database": { + Type: schema.TypeBool, + Optional: true, + Description: "Apply role to any database", + }, + }, + }, + }, + // Common + "region": regional.Schema(), + }, + CustomizeDiff: customdiff.All( + cdf.LocalityCheck("instance_id"), + func(_ context.Context, diff *schema.ResourceDiff, _ any) error { + if rolesRaw, ok := diff.GetOk("roles"); ok { + roles := rolesRaw.(*schema.Set).List() + for _, roleRaw := range roles { + role := roleRaw.(map[string]any) + databaseName := role["database_name"].(string) + anyDatabase := role["any_database"].(bool) + + if databaseName != "" && anyDatabase { + return errors.New("database_name and any_database are mutually exclusive") + } + if databaseName == "" && !anyDatabase { + return errors.New("either database_name or any_database must be specified") + } + } + } + + return nil + }, + ), + } +} + +func ResourceUserCreate(ctx context.Context, d *schema.ResourceData, m any) diag.Diagnostics { + mongodbAPI := newAPI(m) + regionalID := d.Get("instance_id").(string) + + region, instanceID, err := regional.ParseID(regionalID) + if err != nil { + return diag.FromErr(err) + } + + instance, err := waitForInstance(ctx, mongodbAPI, region, instanceID, d.Timeout(schema.TimeoutCreate)) + if err != nil { + return diag.FromErr(err) + } + + createReq := &mongodb.CreateUserRequest{ + Region: region, + InstanceID: instance.ID, + Name: d.Get("name").(string), + Password: d.Get("password").(string), + } + + user, err := mongodbAPI.CreateUser(createReq, scw.WithContext(ctx)) + if err != nil { + return diag.FromErr(err) + } + + d.SetId(ResourceUserID(region, instanceID, user.Name)) + + // Set user roles if provided + if rolesSet, ok := d.GetOk("roles"); ok && rolesSet.(*schema.Set).Len() > 0 { + roles := expandUserRoles(rolesSet.(*schema.Set)) + setRoleReq := &mongodb.SetUserRoleRequest{ + Region: region, + InstanceID: instanceID, + UserName: user.Name, + Roles: roles, + } + + _, err = mongodbAPI.SetUserRole(setRoleReq, scw.WithContext(ctx)) + if err != nil { + return diag.FromErr(err) + } + } + + return ResourceUserRead(ctx, d, m) +} + +func ResourceUserRead(ctx context.Context, d *schema.ResourceData, m any) diag.Diagnostics { + mongodbAPI := newAPI(m) + + region, instanceID, userName, err := ResourceUserParseID(d.Id()) + if err != nil { + return diag.FromErr(err) + } + + _, err = waitForInstance(ctx, mongodbAPI, region, instanceID, d.Timeout(schema.TimeoutRead)) + if err != nil { + if httperrors.Is404(err) { + d.SetId("") + + return nil + } + + return diag.FromErr(err) + } + + res, err := mongodbAPI.ListUsers(&mongodb.ListUsersRequest{ + Region: region, + InstanceID: instanceID, + Name: &userName, + }, scw.WithContext(ctx)) + if err != nil { + if httperrors.Is404(err) { + d.SetId("") + + return nil + } + + return diag.FromErr(err) + } + + if len(res.Users) == 0 { + tflog.Warn(ctx, fmt.Sprintf("couldn't find user with name: [%s]", userName)) + d.SetId("") + + return nil + } + + user := res.Users[0] + _ = d.Set("instance_id", regional.NewID(region, instanceID).String()) + _ = d.Set("name", user.Name) + _ = d.Set("region", string(region)) + + // Set user roles + if len(user.Roles) > 0 { + _ = d.Set("roles", flattenUserRoles(user.Roles)) + } + + d.SetId(ResourceUserID(region, instanceID, user.Name)) + + return nil +} + +func ResourceUserUpdate(ctx context.Context, d *schema.ResourceData, m any) diag.Diagnostics { + mongodbAPI := newAPI(m) + + region, instanceID, userName, err := ResourceUserParseID(d.Id()) + if err != nil { + return diag.FromErr(err) + } + + _, err = waitForInstance(ctx, mongodbAPI, region, instanceID, d.Timeout(schema.TimeoutUpdate)) + if err != nil { + return diag.FromErr(err) + } + + if d.HasChange("password") { + req := &mongodb.UpdateUserRequest{ + Region: region, + InstanceID: instanceID, + Name: userName, + Password: types.ExpandStringPtr(d.Get("password")), + } + + _, err = mongodbAPI.UpdateUser(req, scw.WithContext(ctx)) + if err != nil { + return diag.FromErr(err) + } + } + + // Handle roles changes + if d.HasChange("roles") { + rolesSet := d.Get("roles").(*schema.Set) + roles := expandUserRoles(rolesSet) + + setRoleReq := &mongodb.SetUserRoleRequest{ + Region: region, + InstanceID: instanceID, + UserName: userName, + Roles: roles, + } + + _, err = mongodbAPI.SetUserRole(setRoleReq, scw.WithContext(ctx)) + if err != nil { + return diag.FromErr(err) + } + } + + return ResourceUserRead(ctx, d, m) +} + +func ResourceUserDelete(ctx context.Context, d *schema.ResourceData, m any) diag.Diagnostics { + mongodbAPI := newAPI(m) + + region, instanceID, userName, err := ResourceUserParseID(d.Id()) + if err != nil { + return diag.FromErr(err) + } + + _, err = waitForInstance(ctx, mongodbAPI, region, instanceID, d.Timeout(schema.TimeoutDelete)) + if err != nil { + return diag.FromErr(err) + } + + err = mongodbAPI.DeleteUser(&mongodb.DeleteUserRequest{ + Region: region, + InstanceID: instanceID, + Name: userName, + }, scw.WithContext(ctx)) + + if err != nil && !httperrors.Is404(err) { + return diag.FromErr(err) + } + + return nil +} + +// ResourceUserID builds the resource identifier +// The resource identifier format is "Region/InstanceId/UserName" +func ResourceUserID(region scw.Region, instanceID string, userName string) (resourceID string) { + return fmt.Sprintf("%s/%s/%s", region, instanceID, userName) +} + +// ResourceUserParseID extracts instance ID and username from the resource identifier. +// The resource identifier format is "Region/InstanceId/UserName" +func ResourceUserParseID(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/internal/services/mongodb/user_test.go b/internal/services/mongodb/user_test.go new file mode 100644 index 0000000000..1980ebc1d0 --- /dev/null +++ b/internal/services/mongodb/user_test.go @@ -0,0 +1,209 @@ +package mongodb_test + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-testing/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/terraform" + mongodbSDK "github.com/scaleway/scaleway-sdk-go/api/mongodb/v1" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/acctest" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/httperrors" + "github.com/scaleway/terraform-provider-scaleway/v2/internal/services/mongodb" +) + +func TestAccMongoDBUser_Basic(t *testing.T) { + tt := acctest.NewTestTools(t) + defer tt.Cleanup() + + resource.ParallelTest(t, resource.TestCase{ + PreCheck: func() { acctest.PreCheck(t) }, + ProviderFactories: tt.ProviderFactories, + CheckDestroy: testAccCheckMongoDBUserDestroy(tt), + Steps: []resource.TestStep{ + { + Config: ` + resource "scaleway_mongodb_instance" "main" { + name = "test-mongodb-user" + version = "7.0.12" + node_type = "MGDB-PLAY2-NANO" + node_number = 1 + user_name = "initial_user" + password = "initial_password123" + volume_size_in_gb = 5 + } + + resource "scaleway_mongodb_user" "main" { + instance_id = scaleway_mongodb_instance.main.id + name = "test_user" + password = "test_password123" + + roles { + role = "read_write" + database_name = "test_db" + } + } + `, + Check: resource.ComposeTestCheckFunc( + testAccCheckMongoDBUserExists(tt, "scaleway_mongodb_user.main"), + resource.TestCheckResourceAttr("scaleway_mongodb_user.main", "name", "test_user"), + resource.TestCheckResourceAttrSet("scaleway_mongodb_user.main", "instance_id"), + resource.TestCheckResourceAttr("scaleway_mongodb_user.main", "password", "test_password123"), + resource.TestCheckResourceAttr("scaleway_mongodb_user.main", "roles.#", "1"), + resource.TestCheckTypeSetElemNestedAttrs("scaleway_mongodb_user.main", "roles.*", map[string]string{ + "role": "read_write", + "database_name": "test_db", + }), + ), + }, + { + Config: ` + resource "scaleway_mongodb_instance" "main" { + name = "test-mongodb-user" + version = "7.0.12" + node_type = "MGDB-PLAY2-NANO" + node_number = 1 + user_name = "initial_user" + password = "initial_password123" + volume_size_in_gb = 5 + } + + resource "scaleway_mongodb_user" "main" { + instance_id = scaleway_mongodb_instance.main.id + name = "test_user" + password = "new_password456" + + roles { + role = "read" + database_name = "test_db" + } + } + `, + Check: resource.ComposeTestCheckFunc( + testAccCheckMongoDBUserExists(tt, "scaleway_mongodb_user.main"), + resource.TestCheckResourceAttr("scaleway_mongodb_user.main", "name", "test_user"), + resource.TestCheckResourceAttr("scaleway_mongodb_user.main", "password", "new_password456"), + resource.TestCheckResourceAttr("scaleway_mongodb_user.main", "roles.#", "1"), + resource.TestCheckTypeSetElemNestedAttrs("scaleway_mongodb_user.main", "roles.*", map[string]string{ + "role": "read", + "database_name": "test_db", + }), + ), + }, + }, + }) +} + +func TestAccMongoDBUser_StateImport(t *testing.T) { + tt := acctest.NewTestTools(t) + defer tt.Cleanup() + + resource.ParallelTest(t, resource.TestCase{ + PreCheck: func() { acctest.PreCheck(t) }, + ProviderFactories: tt.ProviderFactories, + CheckDestroy: testAccCheckMongoDBUserDestroy(tt), + Steps: []resource.TestStep{ + { + Config: ` + resource "scaleway_mongodb_instance" "main" { + name = "test-mongodb-user-import" + version = "7.0.12" + node_type = "MGDB-PLAY2-NANO" + node_number = 1 + user_name = "initial_user" + password = "initial_password123" + volume_size_in_gb = 5 + } + + resource "scaleway_mongodb_user" "main" { + instance_id = scaleway_mongodb_instance.main.id + name = "import_user" + password = "import_password123" + + roles { + role = "db_admin" + database_name = "admin" + } + + roles { + role = "read" + any_database = true + } + } + `, + Check: resource.ComposeTestCheckFunc( + testAccCheckMongoDBUserExists(tt, "scaleway_mongodb_user.main"), + ), + }, + { + ResourceName: "scaleway_mongodb_user.main", + ImportState: true, + ImportStateVerify: true, + ImportStateVerifyIgnore: []string{"password"}, + }, + }, + }) +} + +func testAccCheckMongoDBUserExists(tt *acctest.TestTools, resourceName string) resource.TestCheckFunc { + return func(s *terraform.State) error { + rs, ok := s.RootModule().Resources[resourceName] + if !ok { + return fmt.Errorf("resource not found: %s", resourceName) + } + + region, instanceID, userName, err := mongodb.ResourceUserParseID(rs.Primary.ID) + if err != nil { + return err + } + + mongodbAPI := mongodbSDK.NewAPI(tt.Meta.ScwClient()) + + res, err := mongodbAPI.ListUsers(&mongodbSDK.ListUsersRequest{ + Region: region, + InstanceID: instanceID, + Name: &userName, + }) + if err != nil { + return err + } + + if len(res.Users) == 0 { + return fmt.Errorf("MongoDB user %s not found", userName) + } + + return nil + } +} + +func testAccCheckMongoDBUserDestroy(tt *acctest.TestTools) resource.TestCheckFunc { + return func(s *terraform.State) error { + for _, rs := range s.RootModule().Resources { + if rs.Type != "scaleway_mongodb_user" { + continue + } + + region, instanceID, userName, err := mongodb.ResourceUserParseID(rs.Primary.ID) + if err != nil { + return err + } + + mongodbAPI := mongodbSDK.NewAPI(tt.Meta.ScwClient()) + res, err := mongodbAPI.ListUsers(&mongodbSDK.ListUsersRequest{ + Region: region, + InstanceID: instanceID, + Name: &userName, + }) + + if err == nil && len(res.Users) > 0 { + return fmt.Errorf("MongoDB user %s still exists", userName) + } + + if !httperrors.Is404(err) && err != nil { + return err + } + } + + return nil + } +} diff --git a/templates/resources/mongodb_user.md.tmpl b/templates/resources/mongodb_user.md.tmpl new file mode 100644 index 0000000000..62b52996a9 --- /dev/null +++ b/templates/resources/mongodb_user.md.tmpl @@ -0,0 +1,115 @@ +--- +subcategory: "MongoDB®" +page_title: "Scaleway: scaleway_mongodb_user" +--- + +# Resource: scaleway_mongodb_user + +Creates and manages Scaleway MongoDB® users. +For more information refer to the [product documentation](https://www.scaleway.com/en/docs/managed-mongodb-databases/). + +## Example Usage + +### Basic + +```terraform +resource "scaleway_mongodb_instance" "main" { + name = "test-mongodb-user" + version = "7.0.12" + node_type = "MGDB-PLAY2-NANO" + node_number = 1 + user_name = "initial_user" + password = "initial_password123" + volume_size_in_gb = 5 +} + +resource "scaleway_mongodb_user" "main" { + instance_id = scaleway_mongodb_instance.main.id + name = "my_user" + password = "my_password123" + + roles { + role = "read_write" + database_name = "my_database" + } +} +``` + +### With Multiple Users + +```terraform +resource "scaleway_mongodb_instance" "main" { + name = "test-mongodb-multi-user" + version = "7.0.12" + node_type = "MGDB-PLAY2-NANO" + node_number = 1 + user_name = "admin_user" + password = "admin_password123" + volume_size_in_gb = 5 +} + +resource "scaleway_mongodb_user" "app_user" { + instance_id = scaleway_mongodb_instance.main.id + name = "app_user" + password = "app_password123" + + roles { + role = "read_write" + database_name = "app_database" + } + + roles { + role = "read" + database_name = "logs_database" + } +} + +resource "scaleway_mongodb_user" "admin_user" { + instance_id = scaleway_mongodb_instance.main.id + name = "admin_user" + password = "admin_password123" + + roles { + role = "db_admin" + database_name = "admin" + } + + roles { + role = "read" + any_database = true + } +} +``` + +## Argument Reference + +The following arguments are supported: + +- `instance_id` - (Required) The ID of the MongoDB® instance. + +- `name` - (Required) The name of the MongoDB® user. + +- `password` - (Required) The password of the MongoDB® user. + +- `roles` - (Optional) List of roles assigned to the user. Each role block supports: + - `role` - (Required) The role name. Valid values are `read`, `read_write`, `db_admin`, `sync`. + - `database_name` - (Optional) The database name for the role. Cannot be used with `any_database`. + - `any_database` - (Optional) Apply the role to all databases. Cannot be used with `database_name`. + +- `region` - (Defaults to [provider](../index.md#region) `region`) The [region](../guides/regions_and_zones.md#regions) in which the MongoDB® user should be created. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +- `id` - The ID of the MongoDB® user. + +- `roles` - The list of roles assigned to the user. + +## Import + +MongoDB® users can be imported using the `{region}/{instance_id}/{name}`, e.g. + +```bash +terraform import scaleway_mongodb_user.main fr-par/11111111-1111-1111-1111-111111111111/my_user +```