diff --git a/docs/resources/vpc_gateway_network.md b/docs/resources/vpc_gateway_network.md new file mode 100644 index 0000000000..1ac7fc26c0 --- /dev/null +++ b/docs/resources/vpc_gateway_network.md @@ -0,0 +1,69 @@ +--- +page_title: "Scaleway: scaleway_vpc_gateway_network" +description: |- + Manages Scaleway VPC Gateway Networks. +--- + +# scaleway_vpc_gateway_network + +Creates and manages Scaleway VPC Public Gateway Network. +It allows attaching Private Networks to the VPC Public Gateway and your DHCP config +For more information, see [the documentation](https://developers.scaleway.com/en/products/vpc-gw/api/#step-3-attach-private-networks-to-the-vpc-public-gateway). + +## Example + +```hcl +resource scaleway_vpc_private_network pn01 { + name = "pn_test_network" +} + +resource scaleway_vpc_public_gateway_ip gw01 { +} + +resource scaleway_vpc_public_gateway_dhcp dhcp01 { + subnet = "192.168.1.0/24" +} + +resource scaleway_vpc_public_gateway pg01 { + name = "foobar" + type = "VPC-GW-S" + ip_id = scaleway_vpc_public_gateway_ip.gw01.id +} + +resource scaleway_vpc_gateway_network main { + gateway_id = scaleway_vpc_public_gateway.pg01.id + private_network_id = scaleway_vpc_private_network.pn01.id + dhcp_id = scaleway_vpc_public_gateway_dhcp.dhcp01.id +} +``` + +## Arguments Reference + +The following arguments are supported: + +- `gateway_id` - (Required) The ID of the public gateway. +- `private_network_id` - (Required) The ID of the private network. +- `dhcp_id` - (Required) The ID of the public gateway DHCP config. +- `enable_masquerade` - (Defaults to false) Enable masquerade on this network +- `enable_dhcp` - (Defaults to true) Enable DHCP config on this network. It requires DHCP id. +- `static_address` - Enable DHCP config on this network +- `zone` - (Defaults to [provider](../index.md#zone) `zone`) The [zone](../guides/regions_and_zones.md#zones) in which the gateway network should be created. +- `project_id` - (Defaults to [provider](../index.md#project_id) `project_id`) The ID of the project the gateway network is associated with. + +## Attributes Reference + +In addition to all above arguments, the following attributes are exported: + +- `id` - The ID of the gateway network. +- `mac_address` - The mac address of the creation of the gateway network. +- `created_at` - The date and time of the creation of the gateway network. +- `updated_at` - The date and time of the last update of the gateway network. + +## Import + +Gateway network can be imported using the `{zone}/{id}`, e.g. + +```bash +$ terraform import scaleway_vpc_gateway_network.main fr-par-1/11111111-1111-1111-1111-111111111111 +``` + diff --git a/scaleway/provider.go b/scaleway/provider.go index 8d39d598f3..37481b51fd 100644 --- a/scaleway/provider.go +++ b/scaleway/provider.go @@ -11,7 +11,7 @@ import ( "github.com/scaleway/scaleway-sdk-go/scw" ) -// Provider config can be used to provide additional config when creating provider. +// ProviderConfig config can be used to provide additional config when creating provider. type ProviderConfig struct { // Meta can be used to override Meta that will be used by the provider. // This is useful for tests. @@ -92,6 +92,7 @@ func Provider(config *ProviderConfig) plugin.ProviderFunc { "scaleway_rdb_user": resourceScalewayRdbUser(), "scaleway_object_bucket": resourceScalewayObjectBucket(), "scaleway_vpc_public_gateway": resourceScalewayVPCPublicGateway(), + "scaleway_vpc_gateway_network": resourceScalewayVPCGatewayNetwork(), "scaleway_vpc_public_gateway_dhcp": resourceScalewayVPCPublicGatewayDHCP(), "scaleway_vpc_public_gateway_ip": resourceScalewayVPCPublicGatewayIP(), "scaleway_vpc_private_network": resourceScalewayVPCPrivateNetwork(), diff --git a/scaleway/resource_vpc_gateway_network.go b/scaleway/resource_vpc_gateway_network.go new file mode 100644 index 0000000000..e61cfc7876 --- /dev/null +++ b/scaleway/resource_vpc_gateway_network.go @@ -0,0 +1,256 @@ +package scaleway + +import ( + "context" + "time" + + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + vpcgw "github.com/scaleway/scaleway-sdk-go/api/vpcgw/v1beta1" + "github.com/scaleway/scaleway-sdk-go/scw" +) + +const ( + retryIntervalVPCGatewayNetwork = 30 * time.Second + cleanUpDHCP = true +) + +func resourceScalewayVPCGatewayNetwork() *schema.Resource { + return &schema.Resource{ + CreateContext: resourceScalewayVPCGatewayNetworkCreate, + ReadContext: resourceScalewayVPCGatewayNetworkRead, + UpdateContext: resourceScalewayVPCGatewayNetworkUpdate, + DeleteContext: resourceScalewayVPCGatewayNetworkDelete, + Importer: &schema.ResourceImporter{ + StateContext: schema.ImportStatePassthroughContext, + }, + SchemaVersion: 0, + Schema: map[string]*schema.Schema{ + "gateway_id": { + Type: schema.TypeString, + Required: true, + ValidateFunc: validationUUIDorUUIDWithLocality(), + Description: "The ID of the public gateway where connect to", + }, + "private_network_id": { + Type: schema.TypeString, + Required: true, + ValidateFunc: validationUUIDorUUIDWithLocality(), + Description: "The ID of the private network where connect to", + }, + "dhcp_id": { + Type: schema.TypeString, + Optional: true, + ValidateFunc: validationUUIDorUUIDWithLocality(), + Description: "The ID of the public gateway DHCP config", + }, + "enable_masquerade": { + Type: schema.TypeBool, + Optional: true, + Default: false, + Description: "Enable masquerade on this network", + }, + "enable_dhcp": { + Type: schema.TypeBool, + Optional: true, + Default: true, + Description: "Enable DHCP config on this network", + }, + "static_address": { + Type: schema.TypeString, + Description: "The static IP address in CIDR on this network", + Optional: true, + ValidateFunc: validation.IsCIDR, + }, + // Computed elements + "mac_address": { + Type: schema.TypeString, + Computed: true, + Description: "The mac address on this network", + }, + "created_at": { + Type: schema.TypeString, + Computed: true, + Description: "The date and time of the creation of the gateway network", + }, + "updated_at": { + Type: schema.TypeString, + Computed: true, + Description: "The date and time of the last update of the gateway network", + }, + "zone": zoneSchema(), + }, + } +} + +func resourceScalewayVPCGatewayNetworkCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + vpcgwNetworkAPI, zone, err := vpcgwAPIWithZone(d, meta) + if err != nil { + return diag.FromErr(err) + } + + gatewayID := expandZonedID(d.Get("gateway_id").(string)).ID + req := &vpcgw.CreateGatewayNetworkRequest{ + Zone: zone, + GatewayID: gatewayID, + PrivateNetworkID: expandZonedID(d.Get("private_network_id").(string)).ID, + EnableMasquerade: *expandBoolPtr(d.Get("enable_masquerade")), + EnableDHCP: expandBoolPtr(d.Get("enable_dhcp")), + } + + staticAddress, staticAddressExist := d.GetOk("static_address") + if staticAddressExist { + address := expandIPNet(staticAddress.(string)) + req.Address = &address + } + + dhcpID, dhcpExist := d.GetOk("dhcp_id") + if dhcpExist { + dhcpZoned := expandZonedID(dhcpID.(string)) + req.DHCPID = &dhcpZoned.ID + } + + retryInterval := retryIntervalVPCGatewayNetwork + //check gateway is in stable state. + _, err = vpcgwNetworkAPI.WaitForGateway(&vpcgw.WaitForGatewayRequest{ + GatewayID: gatewayID, + Zone: zone, + Timeout: scw.TimeDurationPtr(gatewayWaitForTimeout), + RetryInterval: &retryInterval, + }, scw.WithContext(ctx)) + + if err != nil && !is404Error(err) { + return diag.FromErr(err) + } + res, err := vpcgwNetworkAPI.CreateGatewayNetwork(req, scw.WithContext(ctx)) + if err != nil { + return diag.FromErr(err) + } + + d.SetId(newZonedIDString(zone, res.ID)) + // set default interval + _, err = vpcgwNetworkAPI.WaitForGatewayNetwork(&vpcgw.WaitForGatewayNetworkRequest{ + GatewayNetworkID: res.ID, + Timeout: scw.TimeDurationPtr(defaultVPCGatewayTimeout), + RetryInterval: &retryInterval, + Zone: zone, + }, scw.WithContext(ctx)) + // check err waiting process + if err != nil { + return diag.FromErr(err) + } + + return resourceScalewayVPCGatewayNetworkRead(ctx, d, meta) +} + +func resourceScalewayVPCGatewayNetworkRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + vpcgwNetworkAPI, zone, ID, err := vpcgwAPIWithZoneAndID(meta, d.Id()) + if err != nil { + return diag.FromErr(err) + } + + gatewayNetwork, err := vpcgwNetworkAPI.GetGatewayNetwork(&vpcgw.GetGatewayNetworkRequest{ + GatewayNetworkID: ID, + Zone: zone, + }, scw.WithContext(ctx)) + if err != nil { + if is404Error(err) { + d.SetId("") + return nil + } + return diag.FromErr(err) + } + + if dhcp := gatewayNetwork.DHCP; dhcp != nil { + _ = d.Set("dhcp_id", newZonedID(zone, dhcp.ID).String()) + } + + if staticAddress := gatewayNetwork.Address; staticAddress != nil { + _ = d.Set("static_address", flattenIPNet(*staticAddress)) + } + + if macAddress := gatewayNetwork.MacAddress; macAddress != nil { + _ = d.Set("mac_address", flattenStringPtr(macAddress).(string)) + } + + _ = d.Set("gateway_id", newZonedID(zone, gatewayNetwork.GatewayID).String()) + _ = d.Set("private_network_id", newZonedID(zone, gatewayNetwork.PrivateNetworkID).String()) + _ = d.Set("enable_masquerade", gatewayNetwork.EnableMasquerade) + _ = d.Set("enable_dhcp", gatewayNetwork.EnableDHCP) + _ = d.Set("created_at", gatewayNetwork.CreatedAt.Format(time.RFC3339)) + _ = d.Set("updated_at", gatewayNetwork.UpdatedAt.Format(time.RFC3339)) + _ = d.Set("zone", zone.String()) + + return nil +} + +func resourceScalewayVPCGatewayNetworkUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + vpcgwAPI, zone, ID, err := vpcgwAPIWithZoneAndID(meta, d.Id()) + if err != nil { + return diag.FromErr(err) + } + + if d.HasChanges("enable_masquerade", "dhcp_id", "enable_dhcp", "static_address") { + dhcpID := expandZonedID(d.Get("dhcp_id").(string)).ID + updateRequest := &vpcgw.UpdateGatewayNetworkRequest{ + GatewayNetworkID: ID, + Zone: zone, + EnableMasquerade: expandBoolPtr(d.Get("enable_masquerade")), + EnableDHCP: expandBoolPtr(d.Get("enable_dhcp")), + DHCPID: &dhcpID, + } + staticAddress, staticAddressExist := d.GetOk("static_address") + if staticAddressExist { + address := expandIPNet(staticAddress.(string)) + updateRequest.Address = &address + } + + _, err = vpcgwAPI.UpdateGatewayNetwork(updateRequest, scw.WithContext(ctx)) + if err != nil { + return diag.FromErr(err) + } + } + + return resourceScalewayVPCGatewayNetworkRead(ctx, d, meta) +} + +func resourceScalewayVPCGatewayNetworkDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + vpcgwAPI, zone, ID, err := vpcgwAPIWithZoneAndID(meta, d.Id()) + if err != nil { + return diag.FromErr(err) + } + + defaultInterval := retryIntervalVPCGatewayNetwork + // check if network is a stable process + gwNetwork, err := vpcgwAPI.WaitForGatewayNetwork(&vpcgw.WaitForGatewayNetworkRequest{ + GatewayNetworkID: ID, + Zone: zone, + RetryInterval: &defaultInterval, + }) + if err != nil && !is404Error(err) { + return diag.FromErr(err) + } + //check gateway is in stable state. + _, err = vpcgwAPI.WaitForGateway(&vpcgw.WaitForGatewayRequest{ + GatewayID: gwNetwork.GatewayID, + Zone: zone, + Timeout: scw.TimeDurationPtr(gatewayWaitForTimeout), + RetryInterval: &defaultInterval, + }, scw.WithContext(ctx)) + if err != nil && !is404Error(err) { + return diag.FromErr(err) + } + + err = vpcgwAPI.DeleteGatewayNetwork(&vpcgw.DeleteGatewayNetworkRequest{ + GatewayNetworkID: ID, + Zone: zone, + CleanupDHCP: cleanUpDHCP, + }, scw.WithContext(ctx)) + + if err != nil && !is404Error(err) { + return diag.FromErr(err) + } + + return nil +} diff --git a/scaleway/resource_vpc_gateway_network_test.go b/scaleway/resource_vpc_gateway_network_test.go new file mode 100644 index 0000000000..c0eb85b6c2 --- /dev/null +++ b/scaleway/resource_vpc_gateway_network_test.go @@ -0,0 +1,204 @@ +package scaleway + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" + vpcgw "github.com/scaleway/scaleway-sdk-go/api/vpcgw/v1beta1" + "github.com/scaleway/scaleway-sdk-go/scw" +) + +func init() { + resource.AddTestSweepers("scaleway_gateway_network", &resource.Sweeper{ + Name: "scaleway_gateway_network", + F: testSweepVPCGatewayNetwork, + // test depends upon PrivateNetwork, PublicGateway. Please add new resources for testing purpose. + Dependencies: []string{"scaleway_vpc", "scaleway_vpc_gateway_ip"}, + }) +} + +func testSweepVPCGatewayNetwork(_ string) error { + return sweepZones(scw.AllZones, func(scwClient *scw.Client, zone scw.Zone) error { + vpcgwAPI := vpcgw.NewAPI(scwClient) + l.Debugf("sweeper: destroying the gateway network in (%s)", zone) + + listPNResponse, err := vpcgwAPI.ListGatewayNetworks(&vpcgw.ListGatewayNetworksRequest{ + Zone: zone, + }, scw.WithAllPages()) + if err != nil { + return fmt.Errorf("error listing gateway network in sweeper: %s", err) + } + + for _, gn := range listPNResponse.GatewayNetworks { + err := vpcgwAPI.DeleteGatewayNetwork(&vpcgw.DeleteGatewayNetworkRequest{ + GatewayNetworkID: gn.GatewayID, + Zone: zone, + // Cleanup the dhcp resource related. DON'T CALL THE SWEEPER DHCP + CleanupDHCP: true, + }) + if err != nil { + return fmt.Errorf("error deleting gateway network in sweeper: %s", err) + } + } + return nil + }) +} + +func TestAccScalewayVPCGatewayNetwork_Basic(t *testing.T) { + tt := NewTestTools(t) + defer tt.Cleanup() + resource.ParallelTest(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + ProviderFactories: tt.ProviderFactories, + CheckDestroy: testAccCheckScalewayVPCGatewayNetworkDestroy(tt), + Steps: []resource.TestStep{ + { + Config: ` + resource scaleway_vpc_private_network pn01 { + name = "pn_test_network" + } + + resource scaleway_vpc_public_gateway_ip gw01 { + } + + resource scaleway_vpc_public_gateway_dhcp dhcp01 { + subnet = "192.168.1.0/24" + } + + resource scaleway_vpc_public_gateway pg01 { + name = "foobar" + type = "VPC-GW-S" + ip_id = scaleway_vpc_public_gateway_ip.gw01.id + } + + resource scaleway_vpc_gateway_network main { + gateway_id = scaleway_vpc_public_gateway.pg01.id + private_network_id = scaleway_vpc_private_network.pn01.id + dhcp_id = scaleway_vpc_public_gateway_dhcp.dhcp01.id + } + `, + Check: resource.ComposeTestCheckFunc( + testAccCheckScalewayVPCGatewayNetworkExists(tt, "scaleway_vpc_gateway_network.main"), + resource.TestCheckResourceAttrSet("scaleway_vpc_gateway_network.main", "gateway_id"), + resource.TestCheckResourceAttrSet("scaleway_vpc_gateway_network.main", "private_network_id"), + resource.TestCheckResourceAttrSet("scaleway_vpc_gateway_network.main", "dhcp_id"), + resource.TestCheckResourceAttrSet("scaleway_vpc_gateway_network.main", "mac_address"), + resource.TestCheckResourceAttrSet("scaleway_vpc_gateway_network.main", "created_at"), + resource.TestCheckResourceAttrSet("scaleway_vpc_gateway_network.main", "updated_at"), + resource.TestCheckResourceAttrSet("scaleway_vpc_gateway_network.main", "zone"), + resource.TestCheckResourceAttr("scaleway_vpc_gateway_network.main", "enable_dhcp", "true"), + resource.TestCheckResourceAttr("scaleway_vpc_gateway_network.main", "enable_masquerade", "false"), + ), + }, + }, + }) +} + +func TestAccScalewayVPCGatewayNetwork_WithoutDHCP(t *testing.T) { + tt := NewTestTools(t) + defer tt.Cleanup() + resource.ParallelTest(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + ProviderFactories: tt.ProviderFactories, + CheckDestroy: testAccCheckScalewayVPCGatewayNetworkDestroy(tt), + Steps: []resource.TestStep{ + { + Config: ` + resource scaleway_vpc_private_network pn01 { + name = "pn_test_network" + } + + resource scaleway_vpc_public_gateway_ip gw01 { + } + + resource scaleway_vpc_public_gateway pg01 { + name = "foobar" + type = "VPC-GW-S" + ip_id = scaleway_vpc_public_gateway_ip.gw01.id + } + + resource scaleway_vpc_gateway_network main { + gateway_id = scaleway_vpc_public_gateway.pg01.id + private_network_id = scaleway_vpc_private_network.pn01.id + enable_dhcp = false + enable_masquerade = true + static_address = "192.168.1.42/24" + } + `, + Check: resource.ComposeTestCheckFunc( + testAccCheckScalewayVPCGatewayNetworkExists(tt, "scaleway_vpc_gateway_network.main"), + resource.TestCheckResourceAttrSet("scaleway_vpc_gateway_network.main", "gateway_id"), + resource.TestCheckResourceAttrSet("scaleway_vpc_gateway_network.main", "private_network_id"), + resource.TestCheckResourceAttrSet("scaleway_vpc_gateway_network.main", "mac_address"), + resource.TestCheckResourceAttrSet("scaleway_vpc_gateway_network.main", "created_at"), + resource.TestCheckResourceAttrSet("scaleway_vpc_gateway_network.main", "updated_at"), + resource.TestCheckResourceAttrSet("scaleway_vpc_gateway_network.main", "zone"), + resource.TestCheckResourceAttr("scaleway_vpc_gateway_network.main", "static_address", "192.168.1.42/24"), + resource.TestCheckResourceAttr("scaleway_vpc_gateway_network.main", "enable_dhcp", "false"), + resource.TestCheckResourceAttr("scaleway_vpc_gateway_network.main", "enable_masquerade", "true"), + ), + }, + }, + }) +} + +func testAccCheckScalewayVPCGatewayNetworkExists(tt *TestTools, n string) resource.TestCheckFunc { + return func(s *terraform.State) error { + rs, ok := s.RootModule().Resources[n] + if !ok { + return fmt.Errorf("resource not found: %s", n) + } + + vpcgwNetworkAPI, zone, ID, err := vpcgwAPIWithZoneAndID(tt.Meta, rs.Primary.ID) + if err != nil { + return err + } + + _, err = vpcgwNetworkAPI.GetGatewayNetwork(&vpcgw.GetGatewayNetworkRequest{ + GatewayNetworkID: ID, + Zone: zone, + }) + + if err != nil { + return err + } + + return nil + } +} + +func testAccCheckScalewayVPCGatewayNetworkDestroy(tt *TestTools) resource.TestCheckFunc { + return func(state *terraform.State) error { + for _, rs := range state.RootModule().Resources { + if rs.Type != "scaleway_vpc_gateway_network" { + continue + } + + vpcgwNetworkAPI, zone, ID, err := vpcgwAPIWithZoneAndID(tt.Meta, rs.Primary.ID) + if err != nil { + return err + } + + _, err = vpcgwNetworkAPI.GetGatewayNetwork(&vpcgw.GetGatewayNetworkRequest{ + GatewayNetworkID: ID, + Zone: zone, + }) + + if err == nil { + return fmt.Errorf( + "VPC gateway network %s still exists", + rs.Primary.ID, + ) + } + + // Unexpected api error we return it + if !is404Error(err) { + return err + } + } + + return nil + } +} diff --git a/scaleway/resource_vpc_public_gateway.go b/scaleway/resource_vpc_public_gateway.go index 60815c76b5..1e66203922 100644 --- a/scaleway/resource_vpc_public_gateway.go +++ b/scaleway/resource_vpc_public_gateway.go @@ -10,6 +10,10 @@ import ( "github.com/scaleway/scaleway-sdk-go/scw" ) +const ( + retryIntervalVPCPublicGatewayNetwork = 30 * time.Second +) + func resourceScalewayVPCPublicGateway() *schema.Resource { return &schema.Resource{ CreateContext: resourceScalewayVPCPublicGatewayCreate, @@ -99,11 +103,12 @@ func resourceScalewayVPCPublicGatewayCreate(ctx context.Context, d *schema.Resou d.SetId(newZonedIDString(zone, res.ID)) + defaultInterval := retryIntervalVPCPublicGatewayNetwork _, err = vpcgwAPI.WaitForGateway(&vpcgw.WaitForGatewayRequest{ Zone: zone, GatewayID: res.ID, Timeout: scw.TimeDurationPtr(defaultVPCGatewayTimeout), - RetryInterval: DefaultWaitRetryInterval, + RetryInterval: &defaultInterval, }, scw.WithContext(ctx)) // check err waiting process if err != nil { @@ -174,21 +179,22 @@ func resourceScalewayVPCPublicGatewayDelete(ctx context.Context, d *schema.Resou return diag.FromErr(err) } - err = vpcgwAPI.DeleteGateway(&vpcgw.DeleteGatewayRequest{ - GatewayID: ID, - Zone: zone, + retryInterval := retryIntervalVPCPublicGatewayNetwork + //check if GatewayNetwork is available to delete + _, err = vpcgwAPI.WaitForGateway(&vpcgw.WaitForGatewayRequest{ + GatewayID: ID, + Zone: zone, + Timeout: scw.TimeDurationPtr(gatewayWaitForTimeout), + RetryInterval: &retryInterval, }, scw.WithContext(ctx)) if err != nil && !is404Error(err) { return diag.FromErr(err) } - retryInterval := 30 * time.Second - _, err = vpcgwAPI.WaitForGateway(&vpcgw.WaitForGatewayRequest{ - GatewayID: ID, - Zone: zone, - Timeout: scw.TimeDurationPtr(gatewayWaitForTimeout), - RetryInterval: &retryInterval, + err = vpcgwAPI.DeleteGateway(&vpcgw.DeleteGatewayRequest{ + GatewayID: ID, + Zone: zone, }, scw.WithContext(ctx)) if err != nil && !is404Error(err) { diff --git a/scaleway/testdata/vpc-gateway-network-basic.cassette.yaml b/scaleway/testdata/vpc-gateway-network-basic.cassette.yaml new file mode 100644 index 0000000000..c940d004e2 --- /dev/null +++ b/scaleway/testdata/vpc-gateway-network-basic.cassette.yaml @@ -0,0 +1,929 @@ +--- +version: 1 +interactions: +- request: + body: '{"project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","subnet":"192.168.1.0/24","address":null,"pool_low":null,"pool_high":null,"enable_dynamic":false,"valid_lifetime":null,"renew_timer":null,"rebind_timer":null,"push_default_route":false,"push_dns_server":null,"dns_servers_override":null,"dns_search":null,"dns_local_name":null}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/dhcps + method: POST + response: + body: '{"id":"f73fc3e0-c236-4fcd-a8cf-a6217bf862da","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:48:54.716520Z","updated_at":"2021-10-11T15:48:54.716520Z","subnet":"192.168.1.0/24","address":"192.168.1.1","pool_low":"192.168.1.2","pool_high":"192.168.1.254","enable_dynamic":false,"valid_lifetime":"3600s","renew_timer":"3000s","rebind_timer":"3060s","push_default_route":false,"push_dns_server":true,"dns_servers_override":[],"dns_search":[],"dns_local_name":"priv","zone":"fr-par-1"}' + headers: + Content-Length: + - "570" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:48:54 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e29dfebd-cdee-4282-8e43-2eed2502b665 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/dhcps/f73fc3e0-c236-4fcd-a8cf-a6217bf862da + method: GET + response: + body: '{"id":"f73fc3e0-c236-4fcd-a8cf-a6217bf862da","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:48:54.716520Z","updated_at":"2021-10-11T15:48:54.716520Z","subnet":"192.168.1.0/24","address":"192.168.1.1","pool_low":"192.168.1.2","pool_high":"192.168.1.254","enable_dynamic":false,"valid_lifetime":"3600s","renew_timer":"3000s","rebind_timer":"3060s","push_default_route":false,"push_dns_server":true,"dns_servers_override":[],"dns_search":[],"dns_local_name":"priv","zone":"fr-par-1"}' + headers: + Content-Length: + - "570" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:48:54 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e41c22c8-916f-418b-8a32-69d6c95214a0 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"name":"pn_test_network","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","tags":[]}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks + method: POST + response: + body: '{"id":"0534072f-c7dd-420c-884d-c151778b9348","name":"pn_test_network","tags":[],"organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:48:54.705884Z","updated_at":"2021-10-11T15:48:54.705884Z","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","zone":"fr-par-1"}' + headers: + Content-Length: + - "293" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:48:54 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8523032b-5cc0-468c-8db2-ac2d05cb8e8d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks/0534072f-c7dd-420c-884d-c151778b9348 + method: GET + response: + body: '{"id":"0534072f-c7dd-420c-884d-c151778b9348","name":"pn_test_network","tags":[],"organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:48:54.705884Z","updated_at":"2021-10-11T15:48:54.705884Z","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","zone":"fr-par-1"}' + headers: + Content-Length: + - "293" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:48:54 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d3b0a38d-cf47-4024-8d97-8ed6cab6e6a0 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","tags":[]}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/ips + method: POST + response: + body: '{"id":"51b00973-d7b9-497e-9bfe-071ae4f5f970","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:48:55.703730Z","updated_at":"2021-10-11T15:48:55.703730Z","tags":[],"address":"212.47.229.167","reverse":"167-229-47-212.instances.scw.cloud","zone":"fr-par-1"}' + headers: + Content-Length: + - "342" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:48:55 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c3ccb4e6-0095-4f9f-9216-f2707b012380 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/ips/51b00973-d7b9-497e-9bfe-071ae4f5f970 + method: GET + response: + body: '{"id":"51b00973-d7b9-497e-9bfe-071ae4f5f970","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:48:55.703730Z","updated_at":"2021-10-11T15:48:55.703730Z","tags":[],"address":"212.47.229.167","reverse":"167-229-47-212.instances.scw.cloud","zone":"fr-par-1"}' + headers: + Content-Length: + - "342" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:48:55 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0919c87f-370c-4a97-95df-2566b74373f2 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","name":"foobar","tags":[],"type":"VPC-GW-S","upstream_dns_servers":[],"ip_id":"51b00973-d7b9-497e-9bfe-071ae4f5f970"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways + method: POST + response: + body: '{"id":"d61035f0-0ed0-42e9-8cdc-f96b36a0dbba","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:48:55.941205Z","updated_at":"2021-10-11T15:48:55.941205Z","type":{"name":"VPC-GW-S","bandwidth":100000000,"zone":"fr-par-1"},"status":"stopped","name":"foobar","tags":[],"ip":{"id":"51b00973-d7b9-497e-9bfe-071ae4f5f970","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:48:55.703730Z","updated_at":"2021-10-11T15:48:55.703730Z","tags":[],"address":"212.47.229.167","reverse":"167-229-47-212.instances.scw.cloud","zone":"fr-par-1"},"gateway_networks":[],"upstream_dns_servers":[],"version":null,"can_upgrade_to":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "803" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:48:55 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c90c36ac-6c4c-4704-969b-31e2cea7891f + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways/d61035f0-0ed0-42e9-8cdc-f96b36a0dbba + method: GET + response: + body: '{"id":"d61035f0-0ed0-42e9-8cdc-f96b36a0dbba","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:48:55.941205Z","updated_at":"2021-10-11T15:48:55.975178Z","type":{"name":"VPC-GW-S","bandwidth":100000000,"zone":"fr-par-1"},"status":"stopped","name":"foobar","tags":[],"ip":{"id":"51b00973-d7b9-497e-9bfe-071ae4f5f970","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:48:55.703730Z","updated_at":"2021-10-11T15:48:55.703730Z","tags":[],"address":"212.47.229.167","reverse":"167-229-47-212.instances.scw.cloud","zone":"fr-par-1"},"gateway_networks":[],"upstream_dns_servers":[],"version":"0.2.13","can_upgrade_to":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "807" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:48:56 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0f690651-2051-4ca6-8929-e7f9e072a5d7 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways/d61035f0-0ed0-42e9-8cdc-f96b36a0dbba + method: GET + response: + body: '{"id":"d61035f0-0ed0-42e9-8cdc-f96b36a0dbba","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:48:55.941205Z","updated_at":"2021-10-11T15:48:56.111692Z","type":{"name":"VPC-GW-S","bandwidth":100000000,"zone":"fr-par-1"},"status":"configuring","name":"foobar","tags":[],"ip":{"id":"51b00973-d7b9-497e-9bfe-071ae4f5f970","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:48:55.703730Z","updated_at":"2021-10-11T15:48:55.703730Z","tags":[],"address":"212.47.229.167","reverse":"167-229-47-212.instances.scw.cloud","zone":"fr-par-1"},"gateway_networks":[],"upstream_dns_servers":[],"version":"0.2.13","can_upgrade_to":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "811" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:48:56 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bcdbcfde-7fa5-4db6-ac84-f64a704dea85 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways/d61035f0-0ed0-42e9-8cdc-f96b36a0dbba + method: GET + response: + body: '{"id":"d61035f0-0ed0-42e9-8cdc-f96b36a0dbba","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:48:55.941205Z","updated_at":"2021-10-11T15:48:56.553063Z","type":{"name":"VPC-GW-S","bandwidth":100000000,"zone":"fr-par-1"},"status":"running","name":"foobar","tags":[],"ip":{"id":"51b00973-d7b9-497e-9bfe-071ae4f5f970","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:48:55.703730Z","updated_at":"2021-10-11T15:48:55.703730Z","tags":[],"address":"212.47.229.167","reverse":"167-229-47-212.instances.scw.cloud","zone":"fr-par-1"},"gateway_networks":[],"upstream_dns_servers":[],"version":"0.2.13","can_upgrade_to":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "807" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:48:56 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 83c8d53c-1b11-4b58-ad24-b2b704b03657 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"gateway_id":"d61035f0-0ed0-42e9-8cdc-f96b36a0dbba","private_network_id":"0534072f-c7dd-420c-884d-c151778b9348","enable_masquerade":false,"dhcp_id":"f73fc3e0-c236-4fcd-a8cf-a6217bf862da","enable_dhcp":true}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateway-networks + method: POST + response: + body: '{"id":"4dd0a2b6-0142-4bdf-ba93-641ebebc2474","created_at":"2021-10-11T15:48:56.740264Z","updated_at":"2021-10-11T15:48:56.740264Z","gateway_id":"d61035f0-0ed0-42e9-8cdc-f96b36a0dbba","private_network_id":"0534072f-c7dd-420c-884d-c151778b9348","mac_address":null,"enable_masquerade":false,"status":"created","dhcp":{"id":"f73fc3e0-c236-4fcd-a8cf-a6217bf862da","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:48:54.716520Z","updated_at":"2021-10-11T15:48:54.716520Z","subnet":"192.168.1.0/24","address":"192.168.1.1","pool_low":"192.168.1.2","pool_high":"192.168.1.254","enable_dynamic":false,"valid_lifetime":"3600s","renew_timer":"3000s","rebind_timer":"3060s","push_default_route":false,"push_dns_server":true,"dns_servers_override":[],"dns_search":[],"dns_local_name":"priv","zone":"fr-par-1"},"enable_dhcp":true,"address":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "937" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:48:56 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - be799013-75fa-4610-93da-e0d6342b1ce6 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateway-networks/4dd0a2b6-0142-4bdf-ba93-641ebebc2474 + method: GET + response: + body: '{"id":"4dd0a2b6-0142-4bdf-ba93-641ebebc2474","created_at":"2021-10-11T15:48:56.740264Z","updated_at":"2021-10-11T15:48:56.740264Z","gateway_id":"d61035f0-0ed0-42e9-8cdc-f96b36a0dbba","private_network_id":"0534072f-c7dd-420c-884d-c151778b9348","mac_address":null,"enable_masquerade":false,"status":"created","dhcp":{"id":"f73fc3e0-c236-4fcd-a8cf-a6217bf862da","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:48:54.716520Z","updated_at":"2021-10-11T15:48:54.716520Z","subnet":"192.168.1.0/24","address":"192.168.1.1","pool_low":"192.168.1.2","pool_high":"192.168.1.254","enable_dynamic":false,"valid_lifetime":"3600s","renew_timer":"3000s","rebind_timer":"3060s","push_default_route":false,"push_dns_server":true,"dns_servers_override":[],"dns_search":[],"dns_local_name":"priv","zone":"fr-par-1"},"enable_dhcp":true,"address":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "937" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:48:56 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - fb47839e-c560-4f31-8221-6eee25d124ff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateway-networks/4dd0a2b6-0142-4bdf-ba93-641ebebc2474 + method: GET + response: + body: '{"id":"4dd0a2b6-0142-4bdf-ba93-641ebebc2474","created_at":"2021-10-11T15:48:56.740264Z","updated_at":"2021-10-11T15:49:02.763635Z","gateway_id":"d61035f0-0ed0-42e9-8cdc-f96b36a0dbba","private_network_id":"0534072f-c7dd-420c-884d-c151778b9348","mac_address":"02:00:00:00:6b:0a","enable_masquerade":false,"status":"ready","dhcp":{"id":"f73fc3e0-c236-4fcd-a8cf-a6217bf862da","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:48:54.716520Z","updated_at":"2021-10-11T15:48:54.716520Z","subnet":"192.168.1.0/24","address":"192.168.1.1","pool_low":"192.168.1.2","pool_high":"192.168.1.254","enable_dynamic":false,"valid_lifetime":"3600s","renew_timer":"3000s","rebind_timer":"3060s","push_default_route":false,"push_dns_server":true,"dns_servers_override":[],"dns_search":[],"dns_local_name":"priv","zone":"fr-par-1"},"enable_dhcp":true,"address":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "950" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:49:11 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0bf95117-ab7e-4b77-ab64-02cac891a8a8 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateway-networks/4dd0a2b6-0142-4bdf-ba93-641ebebc2474 + method: GET + response: + body: '{"id":"4dd0a2b6-0142-4bdf-ba93-641ebebc2474","created_at":"2021-10-11T15:48:56.740264Z","updated_at":"2021-10-11T15:49:02.763635Z","gateway_id":"d61035f0-0ed0-42e9-8cdc-f96b36a0dbba","private_network_id":"0534072f-c7dd-420c-884d-c151778b9348","mac_address":"02:00:00:00:6b:0a","enable_masquerade":false,"status":"ready","dhcp":{"id":"f73fc3e0-c236-4fcd-a8cf-a6217bf862da","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:48:54.716520Z","updated_at":"2021-10-11T15:48:54.716520Z","subnet":"192.168.1.0/24","address":"192.168.1.1","pool_low":"192.168.1.2","pool_high":"192.168.1.254","enable_dynamic":false,"valid_lifetime":"3600s","renew_timer":"3000s","rebind_timer":"3060s","push_default_route":false,"push_dns_server":true,"dns_servers_override":[],"dns_search":[],"dns_local_name":"priv","zone":"fr-par-1"},"enable_dhcp":true,"address":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "950" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:49:36 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8e70776c-2526-450b-9ddc-e998fcd0d2fb + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks/0534072f-c7dd-420c-884d-c151778b9348 + method: GET + response: + body: '{"id":"0534072f-c7dd-420c-884d-c151778b9348","name":"pn_test_network","tags":[],"organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:48:54.705884Z","updated_at":"2021-10-11T15:48:54.705884Z","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","zone":"fr-par-1"}' + headers: + Content-Length: + - "293" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:49:37 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 52fc1e3b-f9c8-42b1-934e-35c8092711f3 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/ips/51b00973-d7b9-497e-9bfe-071ae4f5f970 + method: GET + response: + body: '{"id":"51b00973-d7b9-497e-9bfe-071ae4f5f970","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:48:55.703730Z","updated_at":"2021-10-11T15:48:55.703730Z","tags":[],"address":"212.47.229.167","reverse":"167-229-47-212.instances.scw.cloud","zone":"fr-par-1"}' + headers: + Content-Length: + - "342" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:49:37 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - dca7aa27-a7dd-474e-827c-09ba20b1bae6 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/dhcps/f73fc3e0-c236-4fcd-a8cf-a6217bf862da + method: GET + response: + body: '{"id":"f73fc3e0-c236-4fcd-a8cf-a6217bf862da","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:48:54.716520Z","updated_at":"2021-10-11T15:48:54.716520Z","subnet":"192.168.1.0/24","address":"192.168.1.1","pool_low":"192.168.1.2","pool_high":"192.168.1.254","enable_dynamic":false,"valid_lifetime":"3600s","renew_timer":"3000s","rebind_timer":"3060s","push_default_route":false,"push_dns_server":true,"dns_servers_override":[],"dns_search":[],"dns_local_name":"priv","zone":"fr-par-1"}' + headers: + Content-Length: + - "570" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:49:37 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3f946c2d-8fe8-4df5-91e2-a82219e8192e + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways/d61035f0-0ed0-42e9-8cdc-f96b36a0dbba + method: GET + response: + body: '{"id":"d61035f0-0ed0-42e9-8cdc-f96b36a0dbba","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:48:55.941205Z","updated_at":"2021-10-11T15:49:03.001077Z","type":{"name":"VPC-GW-S","bandwidth":100000000,"zone":"fr-par-1"},"status":"running","name":"foobar","tags":[],"ip":{"id":"51b00973-d7b9-497e-9bfe-071ae4f5f970","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:48:55.703730Z","updated_at":"2021-10-11T15:48:55.703730Z","tags":[],"address":"212.47.229.167","reverse":"167-229-47-212.instances.scw.cloud","zone":"fr-par-1"},"gateway_networks":[{"id":"4dd0a2b6-0142-4bdf-ba93-641ebebc2474","created_at":"2021-10-11T15:48:56.740264Z","updated_at":"2021-10-11T15:49:02.763635Z","gateway_id":"d61035f0-0ed0-42e9-8cdc-f96b36a0dbba","private_network_id":"0534072f-c7dd-420c-884d-c151778b9348","mac_address":"02:00:00:00:6b:0a","enable_masquerade":false,"status":"ready","dhcp":{"id":"f73fc3e0-c236-4fcd-a8cf-a6217bf862da","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:48:54.716520Z","updated_at":"2021-10-11T15:48:54.716520Z","subnet":"192.168.1.0/24","address":"192.168.1.1","pool_low":"192.168.1.2","pool_high":"192.168.1.254","enable_dynamic":false,"valid_lifetime":"3600s","renew_timer":"3000s","rebind_timer":"3060s","push_default_route":false,"push_dns_server":true,"dns_servers_override":[],"dns_search":[],"dns_local_name":"priv","zone":"fr-par-1"},"enable_dhcp":true,"address":null,"zone":"fr-par-1"}],"upstream_dns_servers":[],"version":"0.2.13","can_upgrade_to":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "1757" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:49:37 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6ad9796e-5de9-48b6-811e-f20fe7f812e4 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateway-networks/4dd0a2b6-0142-4bdf-ba93-641ebebc2474 + method: GET + response: + body: '{"id":"4dd0a2b6-0142-4bdf-ba93-641ebebc2474","created_at":"2021-10-11T15:48:56.740264Z","updated_at":"2021-10-11T15:49:02.763635Z","gateway_id":"d61035f0-0ed0-42e9-8cdc-f96b36a0dbba","private_network_id":"0534072f-c7dd-420c-884d-c151778b9348","mac_address":"02:00:00:00:6b:0a","enable_masquerade":false,"status":"ready","dhcp":{"id":"f73fc3e0-c236-4fcd-a8cf-a6217bf862da","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:48:54.716520Z","updated_at":"2021-10-11T15:48:54.716520Z","subnet":"192.168.1.0/24","address":"192.168.1.1","pool_low":"192.168.1.2","pool_high":"192.168.1.254","enable_dynamic":false,"valid_lifetime":"3600s","renew_timer":"3000s","rebind_timer":"3060s","push_default_route":false,"push_dns_server":true,"dns_servers_override":[],"dns_search":[],"dns_local_name":"priv","zone":"fr-par-1"},"enable_dhcp":true,"address":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "950" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:49:37 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 76f66219-c4fe-416d-81f4-c650f6c08fd8 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateway-networks/4dd0a2b6-0142-4bdf-ba93-641ebebc2474 + method: GET + response: + body: '{"id":"4dd0a2b6-0142-4bdf-ba93-641ebebc2474","created_at":"2021-10-11T15:48:56.740264Z","updated_at":"2021-10-11T15:49:02.763635Z","gateway_id":"d61035f0-0ed0-42e9-8cdc-f96b36a0dbba","private_network_id":"0534072f-c7dd-420c-884d-c151778b9348","mac_address":"02:00:00:00:6b:0a","enable_masquerade":false,"status":"ready","dhcp":{"id":"f73fc3e0-c236-4fcd-a8cf-a6217bf862da","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:48:54.716520Z","updated_at":"2021-10-11T15:48:54.716520Z","subnet":"192.168.1.0/24","address":"192.168.1.1","pool_low":"192.168.1.2","pool_high":"192.168.1.254","enable_dynamic":false,"valid_lifetime":"3600s","renew_timer":"3000s","rebind_timer":"3060s","push_default_route":false,"push_dns_server":true,"dns_servers_override":[],"dns_search":[],"dns_local_name":"priv","zone":"fr-par-1"},"enable_dhcp":true,"address":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "950" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:49:40 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - dd3f5eb7-7033-4989-add8-894d5384ee56 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways/d61035f0-0ed0-42e9-8cdc-f96b36a0dbba + method: GET + response: + body: '{"id":"d61035f0-0ed0-42e9-8cdc-f96b36a0dbba","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:48:55.941205Z","updated_at":"2021-10-11T15:49:03.001077Z","type":{"name":"VPC-GW-S","bandwidth":100000000,"zone":"fr-par-1"},"status":"running","name":"foobar","tags":[],"ip":{"id":"51b00973-d7b9-497e-9bfe-071ae4f5f970","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:48:55.703730Z","updated_at":"2021-10-11T15:48:55.703730Z","tags":[],"address":"212.47.229.167","reverse":"167-229-47-212.instances.scw.cloud","zone":"fr-par-1"},"gateway_networks":[{"id":"4dd0a2b6-0142-4bdf-ba93-641ebebc2474","created_at":"2021-10-11T15:48:56.740264Z","updated_at":"2021-10-11T15:49:02.763635Z","gateway_id":"d61035f0-0ed0-42e9-8cdc-f96b36a0dbba","private_network_id":"0534072f-c7dd-420c-884d-c151778b9348","mac_address":"02:00:00:00:6b:0a","enable_masquerade":false,"status":"ready","dhcp":{"id":"f73fc3e0-c236-4fcd-a8cf-a6217bf862da","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:48:54.716520Z","updated_at":"2021-10-11T15:48:54.716520Z","subnet":"192.168.1.0/24","address":"192.168.1.1","pool_low":"192.168.1.2","pool_high":"192.168.1.254","enable_dynamic":false,"valid_lifetime":"3600s","renew_timer":"3000s","rebind_timer":"3060s","push_default_route":false,"push_dns_server":true,"dns_servers_override":[],"dns_search":[],"dns_local_name":"priv","zone":"fr-par-1"},"enable_dhcp":true,"address":null,"zone":"fr-par-1"}],"upstream_dns_servers":[],"version":"0.2.13","can_upgrade_to":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "1757" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:49:40 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ebe67984-4013-46fa-b254-6e1be3c1e783 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateway-networks/4dd0a2b6-0142-4bdf-ba93-641ebebc2474?cleanup_dhcp=true + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:49:41 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c13bd295-2d0b-47aa-af1c-069e70606e84 + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/dhcps/f73fc3e0-c236-4fcd-a8cf-a6217bf862da + method: DELETE + response: + body: '{"message":"resource is not found","resource":"dhcp","resource_id":"f73fc3e0-c236-4fcd-a8cf-a6217bf862da","type":"not_found"}' + headers: + Content-Length: + - "125" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:49:41 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 48acf454-cbde-462e-bdf2-9824c68924db + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways/d61035f0-0ed0-42e9-8cdc-f96b36a0dbba + method: GET + response: + body: '{"id":"d61035f0-0ed0-42e9-8cdc-f96b36a0dbba","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:48:55.941205Z","updated_at":"2021-10-11T15:49:03.001077Z","type":{"name":"VPC-GW-S","bandwidth":100000000,"zone":"fr-par-1"},"status":"running","name":"foobar","tags":[],"ip":{"id":"51b00973-d7b9-497e-9bfe-071ae4f5f970","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:48:55.703730Z","updated_at":"2021-10-11T15:48:55.703730Z","tags":[],"address":"212.47.229.167","reverse":"167-229-47-212.instances.scw.cloud","zone":"fr-par-1"},"gateway_networks":[{"id":"4dd0a2b6-0142-4bdf-ba93-641ebebc2474","created_at":"2021-10-11T15:48:56.740264Z","updated_at":"2021-10-11T15:49:41.024414Z","gateway_id":"d61035f0-0ed0-42e9-8cdc-f96b36a0dbba","private_network_id":"0534072f-c7dd-420c-884d-c151778b9348","mac_address":"02:00:00:00:6b:0a","enable_masquerade":false,"status":"detaching","dhcp":{"id":"f73fc3e0-c236-4fcd-a8cf-a6217bf862da","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:48:54.716520Z","updated_at":"2021-10-11T15:48:54.716520Z","subnet":"192.168.1.0/24","address":"192.168.1.1","pool_low":"192.168.1.2","pool_high":"192.168.1.254","enable_dynamic":false,"valid_lifetime":"3600s","renew_timer":"3000s","rebind_timer":"3060s","push_default_route":false,"push_dns_server":true,"dns_servers_override":[],"dns_search":[],"dns_local_name":"priv","zone":"fr-par-1"},"enable_dhcp":true,"address":null,"zone":"fr-par-1"}],"upstream_dns_servers":[],"version":"0.2.13","can_upgrade_to":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "1761" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:49:41 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a3d9adff-18c0-4ec5-94aa-97a2b128bff1 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways/d61035f0-0ed0-42e9-8cdc-f96b36a0dbba?cleanup_dhcp=false + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:49:41 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 87f087e6-5a39-47fd-a0ed-b2f4196cc964 + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks/0534072f-c7dd-420c-884d-c151778b9348 + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:49:41 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d0946df8-6caf-42c3-be33-4c2ba12f60ca + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/ips/51b00973-d7b9-497e-9bfe-071ae4f5f970 + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:49:42 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d5bf95cc-0cf4-4567-b7fb-f488c36f03e1 + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateway-networks/4dd0a2b6-0142-4bdf-ba93-641ebebc2474 + method: GET + response: + body: '{"message":"resource is not found","resource":"gateway_network","resource_id":"4dd0a2b6-0142-4bdf-ba93-641ebebc2474","type":"not_found"}' + headers: + Content-Length: + - "136" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:49:42 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 146922a2-fa08-4d86-8edb-1f435c536eeb + status: 404 Not Found + code: 404 + duration: "" diff --git a/scaleway/testdata/vpc-gateway-network-without-dhcp.cassette.yaml b/scaleway/testdata/vpc-gateway-network-without-dhcp.cassette.yaml new file mode 100644 index 0000000000..93a215f819 --- /dev/null +++ b/scaleway/testdata/vpc-gateway-network-without-dhcp.cassette.yaml @@ -0,0 +1,828 @@ +--- +version: 1 +interactions: +- request: + body: '{"name":"pn_test_network","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","tags":[]}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks + method: POST + response: + body: '{"id":"23204cab-948c-4412-96b1-10861029c16c","name":"pn_test_network","tags":[],"organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:46:41.740655Z","updated_at":"2021-10-11T15:46:41.740655Z","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","zone":"fr-par-1"}' + headers: + Content-Length: + - "293" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:46:41 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - fd881073-b164-4b3b-9c20-189d52b9e166 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks/23204cab-948c-4412-96b1-10861029c16c + method: GET + response: + body: '{"id":"23204cab-948c-4412-96b1-10861029c16c","name":"pn_test_network","tags":[],"organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:46:41.740655Z","updated_at":"2021-10-11T15:46:41.740655Z","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","zone":"fr-par-1"}' + headers: + Content-Length: + - "293" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:46:41 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 18796639-f8f4-495a-81b2-4e88918d4c98 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","tags":[]}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/ips + method: POST + response: + body: '{"id":"fcafc2d9-093b-4646-8465-5f8f2455211f","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:46:42.298408Z","updated_at":"2021-10-11T15:46:42.298408Z","tags":[],"address":"163.172.158.234","reverse":"234-158-172-163.instances.scw.cloud","zone":"fr-par-1"}' + headers: + Content-Length: + - "344" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:46:42 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 30f8302c-7fd6-46c8-b1e6-ef34fb97a59f + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/ips/fcafc2d9-093b-4646-8465-5f8f2455211f + method: GET + response: + body: '{"id":"fcafc2d9-093b-4646-8465-5f8f2455211f","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:46:42.298408Z","updated_at":"2021-10-11T15:46:42.298408Z","tags":[],"address":"163.172.158.234","reverse":"234-158-172-163.instances.scw.cloud","zone":"fr-par-1"}' + headers: + Content-Length: + - "344" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:46:42 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - acd64cbe-aafe-43b1-976e-bb15544ee997 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","name":"foobar","tags":[],"type":"VPC-GW-S","upstream_dns_servers":[],"ip_id":"fcafc2d9-093b-4646-8465-5f8f2455211f"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways + method: POST + response: + body: '{"id":"472426b2-2b14-477f-8e18-905c3c883787","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:46:42.952612Z","updated_at":"2021-10-11T15:46:42.952612Z","type":{"name":"VPC-GW-S","bandwidth":100000000,"zone":"fr-par-1"},"status":"stopped","name":"foobar","tags":[],"ip":{"id":"fcafc2d9-093b-4646-8465-5f8f2455211f","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:46:42.298408Z","updated_at":"2021-10-11T15:46:42.298408Z","tags":[],"address":"163.172.158.234","reverse":"234-158-172-163.instances.scw.cloud","zone":"fr-par-1"},"gateway_networks":[],"upstream_dns_servers":[],"version":null,"can_upgrade_to":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "805" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:46:42 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e9bc19c9-4ba6-4b2d-bcf3-d0e4286c9586 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways/472426b2-2b14-477f-8e18-905c3c883787 + method: GET + response: + body: '{"id":"472426b2-2b14-477f-8e18-905c3c883787","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:46:42.952612Z","updated_at":"2021-10-11T15:46:42.991887Z","type":{"name":"VPC-GW-S","bandwidth":100000000,"zone":"fr-par-1"},"status":"stopped","name":"foobar","tags":[],"ip":{"id":"fcafc2d9-093b-4646-8465-5f8f2455211f","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:46:42.298408Z","updated_at":"2021-10-11T15:46:42.298408Z","tags":[],"address":"163.172.158.234","reverse":"234-158-172-163.instances.scw.cloud","zone":"fr-par-1"},"gateway_networks":[],"upstream_dns_servers":[],"version":"0.2.13","can_upgrade_to":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "809" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:46:43 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1ca61ead-409d-4365-8a13-804d8d53fa3e + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways/472426b2-2b14-477f-8e18-905c3c883787 + method: GET + response: + body: '{"id":"472426b2-2b14-477f-8e18-905c3c883787","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:46:42.952612Z","updated_at":"2021-10-11T15:46:42.991887Z","type":{"name":"VPC-GW-S","bandwidth":100000000,"zone":"fr-par-1"},"status":"stopped","name":"foobar","tags":[],"ip":{"id":"fcafc2d9-093b-4646-8465-5f8f2455211f","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:46:42.298408Z","updated_at":"2021-10-11T15:46:42.298408Z","tags":[],"address":"163.172.158.234","reverse":"234-158-172-163.instances.scw.cloud","zone":"fr-par-1"},"gateway_networks":[],"upstream_dns_servers":[],"version":"0.2.13","can_upgrade_to":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "809" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:46:43 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 750b86f4-bb81-455d-b4e5-4f9453f45064 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways/472426b2-2b14-477f-8e18-905c3c883787 + method: GET + response: + body: '{"id":"472426b2-2b14-477f-8e18-905c3c883787","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:46:42.952612Z","updated_at":"2021-10-11T15:46:43.137364Z","type":{"name":"VPC-GW-S","bandwidth":100000000,"zone":"fr-par-1"},"status":"configuring","name":"foobar","tags":[],"ip":{"id":"fcafc2d9-093b-4646-8465-5f8f2455211f","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:46:42.298408Z","updated_at":"2021-10-11T15:46:42.298408Z","tags":[],"address":"163.172.158.234","reverse":"234-158-172-163.instances.scw.cloud","zone":"fr-par-1"},"gateway_networks":[],"upstream_dns_servers":[],"version":"0.2.13","can_upgrade_to":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "813" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:46:43 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6e509f50-82a7-4210-b389-69e6a2685435 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways/472426b2-2b14-477f-8e18-905c3c883787 + method: GET + response: + body: '{"id":"472426b2-2b14-477f-8e18-905c3c883787","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:46:42.952612Z","updated_at":"2021-10-11T15:46:43.674737Z","type":{"name":"VPC-GW-S","bandwidth":100000000,"zone":"fr-par-1"},"status":"running","name":"foobar","tags":[],"ip":{"id":"fcafc2d9-093b-4646-8465-5f8f2455211f","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:46:42.298408Z","updated_at":"2021-10-11T15:46:42.298408Z","tags":[],"address":"163.172.158.234","reverse":"234-158-172-163.instances.scw.cloud","zone":"fr-par-1"},"gateway_networks":[],"upstream_dns_servers":[],"version":"0.2.13","can_upgrade_to":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "809" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:47:13 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e37b0bff-257d-4e6e-ac91-1ef86a6e8d8e + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"gateway_id":"472426b2-2b14-477f-8e18-905c3c883787","private_network_id":"23204cab-948c-4412-96b1-10861029c16c","enable_masquerade":true,"address":"192.168.1.42/24","enable_dhcp":false}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateway-networks + method: POST + response: + body: '{"id":"9671fc0f-02cd-4f97-be00-f5a39e0de161","created_at":"2021-10-11T15:47:13.338365Z","updated_at":"2021-10-11T15:47:13.338365Z","gateway_id":"472426b2-2b14-477f-8e18-905c3c883787","private_network_id":"23204cab-948c-4412-96b1-10861029c16c","mac_address":null,"enable_masquerade":true,"status":"created","dhcp":null,"enable_dhcp":false,"address":"192.168.1.42/24","zone":"fr-par-1"}' + headers: + Content-Length: + - "384" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:47:13 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2bdaddd6-cdc4-44fb-b472-d00a1855eb88 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateway-networks/9671fc0f-02cd-4f97-be00-f5a39e0de161 + method: GET + response: + body: '{"id":"9671fc0f-02cd-4f97-be00-f5a39e0de161","created_at":"2021-10-11T15:47:13.338365Z","updated_at":"2021-10-11T15:47:13.338365Z","gateway_id":"472426b2-2b14-477f-8e18-905c3c883787","private_network_id":"23204cab-948c-4412-96b1-10861029c16c","mac_address":null,"enable_masquerade":true,"status":"created","dhcp":null,"enable_dhcp":false,"address":"192.168.1.42/24","zone":"fr-par-1"}' + headers: + Content-Length: + - "384" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:47:13 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3cacff5c-5d9e-40f9-ac12-f1d3badab6cc + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateway-networks/9671fc0f-02cd-4f97-be00-f5a39e0de161 + method: GET + response: + body: '{"id":"9671fc0f-02cd-4f97-be00-f5a39e0de161","created_at":"2021-10-11T15:47:13.338365Z","updated_at":"2021-10-11T15:47:18.634072Z","gateway_id":"472426b2-2b14-477f-8e18-905c3c883787","private_network_id":"23204cab-948c-4412-96b1-10861029c16c","mac_address":"02:00:00:00:6b:09","enable_masquerade":true,"status":"ready","dhcp":null,"enable_dhcp":false,"address":"192.168.1.42/24","zone":"fr-par-1"}' + headers: + Content-Length: + - "397" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:47:39 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 119ed872-f15f-4986-92d1-e014d43beba9 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateway-networks/9671fc0f-02cd-4f97-be00-f5a39e0de161 + method: GET + response: + body: '{"id":"9671fc0f-02cd-4f97-be00-f5a39e0de161","created_at":"2021-10-11T15:47:13.338365Z","updated_at":"2021-10-11T15:47:18.634072Z","gateway_id":"472426b2-2b14-477f-8e18-905c3c883787","private_network_id":"23204cab-948c-4412-96b1-10861029c16c","mac_address":"02:00:00:00:6b:09","enable_masquerade":true,"status":"ready","dhcp":null,"enable_dhcp":false,"address":"192.168.1.42/24","zone":"fr-par-1"}' + headers: + Content-Length: + - "397" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:48:14 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 387b33be-2daa-4aff-a939-0af4aae82d4d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/ips/fcafc2d9-093b-4646-8465-5f8f2455211f + method: GET + response: + body: '{"id":"fcafc2d9-093b-4646-8465-5f8f2455211f","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:46:42.298408Z","updated_at":"2021-10-11T15:46:42.298408Z","tags":[],"address":"163.172.158.234","reverse":"234-158-172-163.instances.scw.cloud","zone":"fr-par-1"}' + headers: + Content-Length: + - "344" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:48:15 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 085f31b1-88b5-4a2f-82c2-1d73e0382c3f + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks/23204cab-948c-4412-96b1-10861029c16c + method: GET + response: + body: '{"id":"23204cab-948c-4412-96b1-10861029c16c","name":"pn_test_network","tags":[],"organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:46:41.740655Z","updated_at":"2021-10-11T15:46:41.740655Z","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","zone":"fr-par-1"}' + headers: + Content-Length: + - "293" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:48:15 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e0282e14-5c81-4b75-b1de-876e324a1de3 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways/472426b2-2b14-477f-8e18-905c3c883787 + method: GET + response: + body: '{"id":"472426b2-2b14-477f-8e18-905c3c883787","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:46:42.952612Z","updated_at":"2021-10-11T15:47:18.902595Z","type":{"name":"VPC-GW-S","bandwidth":100000000,"zone":"fr-par-1"},"status":"running","name":"foobar","tags":[],"ip":{"id":"fcafc2d9-093b-4646-8465-5f8f2455211f","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:46:42.298408Z","updated_at":"2021-10-11T15:46:42.298408Z","tags":[],"address":"163.172.158.234","reverse":"234-158-172-163.instances.scw.cloud","zone":"fr-par-1"},"gateway_networks":[{"id":"9671fc0f-02cd-4f97-be00-f5a39e0de161","created_at":"2021-10-11T15:47:13.338365Z","updated_at":"2021-10-11T15:47:18.634072Z","gateway_id":"472426b2-2b14-477f-8e18-905c3c883787","private_network_id":"23204cab-948c-4412-96b1-10861029c16c","mac_address":"02:00:00:00:6b:09","enable_masquerade":true,"status":"ready","dhcp":null,"enable_dhcp":false,"address":"192.168.1.42/24","zone":"fr-par-1"}],"upstream_dns_servers":[],"version":"0.2.13","can_upgrade_to":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "1206" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:48:15 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c67f3052-f03f-4303-9b58-8c20fe013de5 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateway-networks/9671fc0f-02cd-4f97-be00-f5a39e0de161 + method: GET + response: + body: '{"id":"9671fc0f-02cd-4f97-be00-f5a39e0de161","created_at":"2021-10-11T15:47:13.338365Z","updated_at":"2021-10-11T15:47:18.634072Z","gateway_id":"472426b2-2b14-477f-8e18-905c3c883787","private_network_id":"23204cab-948c-4412-96b1-10861029c16c","mac_address":"02:00:00:00:6b:09","enable_masquerade":true,"status":"ready","dhcp":null,"enable_dhcp":false,"address":"192.168.1.42/24","zone":"fr-par-1"}' + headers: + Content-Length: + - "397" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:48:23 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9cf9119c-c11b-4e68-899e-6784177c222f + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateway-networks/9671fc0f-02cd-4f97-be00-f5a39e0de161 + method: GET + response: + body: '{"id":"9671fc0f-02cd-4f97-be00-f5a39e0de161","created_at":"2021-10-11T15:47:13.338365Z","updated_at":"2021-10-11T15:47:18.634072Z","gateway_id":"472426b2-2b14-477f-8e18-905c3c883787","private_network_id":"23204cab-948c-4412-96b1-10861029c16c","mac_address":"02:00:00:00:6b:09","enable_masquerade":true,"status":"ready","dhcp":null,"enable_dhcp":false,"address":"192.168.1.42/24","zone":"fr-par-1"}' + headers: + Content-Length: + - "397" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:48:24 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 124725ad-caf4-49fb-9d4a-0b91bae1ab4c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways/472426b2-2b14-477f-8e18-905c3c883787 + method: GET + response: + body: '{"id":"472426b2-2b14-477f-8e18-905c3c883787","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:46:42.952612Z","updated_at":"2021-10-11T15:47:18.902595Z","type":{"name":"VPC-GW-S","bandwidth":100000000,"zone":"fr-par-1"},"status":"running","name":"foobar","tags":[],"ip":{"id":"fcafc2d9-093b-4646-8465-5f8f2455211f","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:46:42.298408Z","updated_at":"2021-10-11T15:46:42.298408Z","tags":[],"address":"163.172.158.234","reverse":"234-158-172-163.instances.scw.cloud","zone":"fr-par-1"},"gateway_networks":[{"id":"9671fc0f-02cd-4f97-be00-f5a39e0de161","created_at":"2021-10-11T15:47:13.338365Z","updated_at":"2021-10-11T15:47:18.634072Z","gateway_id":"472426b2-2b14-477f-8e18-905c3c883787","private_network_id":"23204cab-948c-4412-96b1-10861029c16c","mac_address":"02:00:00:00:6b:09","enable_masquerade":true,"status":"ready","dhcp":null,"enable_dhcp":false,"address":"192.168.1.42/24","zone":"fr-par-1"}],"upstream_dns_servers":[],"version":"0.2.13","can_upgrade_to":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "1206" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:48:24 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - be1b62f2-85e3-4446-a227-299b112bc83a + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateway-networks/9671fc0f-02cd-4f97-be00-f5a39e0de161?cleanup_dhcp=true + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:48:24 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5f2c4da1-a314-4e55-9b9c-d013cebd0ccf + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways/472426b2-2b14-477f-8e18-905c3c883787 + method: GET + response: + body: '{"id":"472426b2-2b14-477f-8e18-905c3c883787","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:46:42.952612Z","updated_at":"2021-10-11T15:47:18.902595Z","type":{"name":"VPC-GW-S","bandwidth":100000000,"zone":"fr-par-1"},"status":"running","name":"foobar","tags":[],"ip":{"id":"fcafc2d9-093b-4646-8465-5f8f2455211f","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T15:46:42.298408Z","updated_at":"2021-10-11T15:46:42.298408Z","tags":[],"address":"163.172.158.234","reverse":"234-158-172-163.instances.scw.cloud","zone":"fr-par-1"},"gateway_networks":[{"id":"9671fc0f-02cd-4f97-be00-f5a39e0de161","created_at":"2021-10-11T15:47:13.338365Z","updated_at":"2021-10-11T15:48:24.781455Z","gateway_id":"472426b2-2b14-477f-8e18-905c3c883787","private_network_id":"23204cab-948c-4412-96b1-10861029c16c","mac_address":"02:00:00:00:6b:09","enable_masquerade":true,"status":"detaching","dhcp":null,"enable_dhcp":false,"address":"192.168.1.42/24","zone":"fr-par-1"}],"upstream_dns_servers":[],"version":"0.2.13","can_upgrade_to":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "1210" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:48:24 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d09b335f-60e5-486f-99c9-e32a5b9455ee + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways/472426b2-2b14-477f-8e18-905c3c883787?cleanup_dhcp=false + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:48:24 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ace97f7e-649c-4832-a2f4-7e0adc19067e + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks/23204cab-948c-4412-96b1-10861029c16c + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:48:25 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7fcea9f4-275a-4c06-8d0b-be5aab373388 + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/ips/fcafc2d9-093b-4646-8465-5f8f2455211f + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:48:25 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3e519acc-a99d-4681-89c3-742e1663f36e + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateway-networks/9671fc0f-02cd-4f97-be00-f5a39e0de161 + method: GET + response: + body: '{"message":"resource is not found","resource":"gateway_network","resource_id":"9671fc0f-02cd-4f97-be00-f5a39e0de161","type":"not_found"}' + headers: + Content-Length: + - "136" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 11 Oct 2021 15:48:25 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 43c4eb61-6b7e-49f8-85ce-79d120ad55d4 + status: 404 Not Found + code: 404 + duration: "" diff --git a/scaleway/testdata/vpc-private-network-basic.cassette.yaml b/scaleway/testdata/vpc-private-network-basic.cassette.yaml index 878dcee85b..f225fbed3d 100644 --- a/scaleway/testdata/vpc-private-network-basic.cassette.yaml +++ b/scaleway/testdata/vpc-private-network-basic.cassette.yaml @@ -2,18 +2,18 @@ version: 1 interactions: - request: - body: '{"name":"private-network-test","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","tags":null}' + body: '{"name":"private-network-test","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","tags":[]}' form: {} headers: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.15.2; darwin; amd64) terraform-provider/develop-tftest + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks method: POST response: - body: '{"id":"9dc4d0fa-ee59-42db-80c8-6758a6f39a06","name":"private-network-test","tags":[],"organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","created_at":"2020-11-04T13:42:57.820561Z","updated_at":"2020-11-04T13:42:57.820561Z","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","zone":"fr-par-1"}' + body: '{"id":"41c00749-974e-4dcf-abc3-3dc8d0096e13","name":"private-network-test","tags":[],"organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T14:15:46.815923Z","updated_at":"2021-10-11T14:15:46.815923Z","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","zone":"fr-par-1"}' headers: Content-Length: - "298" @@ -22,7 +22,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 04 Nov 2020 13:42:57 GMT + - Mon, 11 Oct 2021 14:15:46 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -32,7 +32,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 3b880f9a-36a3-46f8-8503-dc0fb5ffd3d3 + - 542534a0-7efe-4788-8152-17bfc309390f status: 200 OK code: 200 duration: "" @@ -41,12 +41,12 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.15.2; darwin; amd64) terraform-provider/develop-tftest + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks/9dc4d0fa-ee59-42db-80c8-6758a6f39a06 + url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks/41c00749-974e-4dcf-abc3-3dc8d0096e13 method: GET response: - body: '{"id":"9dc4d0fa-ee59-42db-80c8-6758a6f39a06","name":"private-network-test","tags":[],"organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","created_at":"2020-11-04T13:42:57.820561Z","updated_at":"2020-11-04T13:42:57.820561Z","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","zone":"fr-par-1"}' + body: '{"id":"41c00749-974e-4dcf-abc3-3dc8d0096e13","name":"private-network-test","tags":[],"organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T14:15:46.815923Z","updated_at":"2021-10-11T14:15:46.815923Z","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","zone":"fr-par-1"}' headers: Content-Length: - "298" @@ -55,7 +55,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 04 Nov 2020 13:42:58 GMT + - Mon, 11 Oct 2021 14:15:46 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -65,7 +65,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 8d6ae01e-1552-4a59-8826-27725b396fa2 + - 9f474420-d453-4d56-b7fa-f95112c2d0f4 status: 200 OK code: 200 duration: "" @@ -74,12 +74,12 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.15.2; darwin; amd64) terraform-provider/develop-tftest + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks/9dc4d0fa-ee59-42db-80c8-6758a6f39a06 + url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks/41c00749-974e-4dcf-abc3-3dc8d0096e13 method: GET response: - body: '{"id":"9dc4d0fa-ee59-42db-80c8-6758a6f39a06","name":"private-network-test","tags":[],"organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","created_at":"2020-11-04T13:42:57.820561Z","updated_at":"2020-11-04T13:42:57.820561Z","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","zone":"fr-par-1"}' + body: '{"id":"41c00749-974e-4dcf-abc3-3dc8d0096e13","name":"private-network-test","tags":[],"organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T14:15:46.815923Z","updated_at":"2021-10-11T14:15:46.815923Z","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","zone":"fr-par-1"}' headers: Content-Length: - "298" @@ -88,7 +88,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 04 Nov 2020 13:42:58 GMT + - Mon, 11 Oct 2021 14:15:47 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -98,7 +98,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 7489dba9-27c0-43cd-b28a-b5bcbcc20781 + - 01506292-386c-4268-a349-b127218a2e08 status: 200 OK code: 200 duration: "" @@ -107,12 +107,12 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.15.2; darwin; amd64) terraform-provider/develop-tftest + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks/9dc4d0fa-ee59-42db-80c8-6758a6f39a06 + url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks/41c00749-974e-4dcf-abc3-3dc8d0096e13 method: GET response: - body: '{"id":"9dc4d0fa-ee59-42db-80c8-6758a6f39a06","name":"private-network-test","tags":[],"organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","created_at":"2020-11-04T13:42:57.820561Z","updated_at":"2020-11-04T13:42:57.820561Z","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","zone":"fr-par-1"}' + body: '{"id":"41c00749-974e-4dcf-abc3-3dc8d0096e13","name":"private-network-test","tags":[],"organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T14:15:46.815923Z","updated_at":"2021-10-11T14:15:46.815923Z","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","zone":"fr-par-1"}' headers: Content-Length: - "298" @@ -121,7 +121,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 04 Nov 2020 13:42:58 GMT + - Mon, 11 Oct 2021 14:15:47 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -131,7 +131,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 00831d89-df21-438c-a87a-4396cfeec8ea + - 12e62029-9147-4e4e-acb3-79d203049645 status: 200 OK code: 200 duration: "" @@ -140,12 +140,12 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.15.2; darwin; amd64) terraform-provider/develop-tftest + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks/9dc4d0fa-ee59-42db-80c8-6758a6f39a06 + url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks/41c00749-974e-4dcf-abc3-3dc8d0096e13 method: GET response: - body: '{"id":"9dc4d0fa-ee59-42db-80c8-6758a6f39a06","name":"private-network-test","tags":[],"organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","created_at":"2020-11-04T13:42:57.820561Z","updated_at":"2020-11-04T13:42:57.820561Z","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","zone":"fr-par-1"}' + body: '{"id":"41c00749-974e-4dcf-abc3-3dc8d0096e13","name":"private-network-test","tags":[],"organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T14:15:46.815923Z","updated_at":"2021-10-11T14:15:46.815923Z","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","zone":"fr-par-1"}' headers: Content-Length: - "298" @@ -154,7 +154,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 04 Nov 2020 13:42:59 GMT + - Mon, 11 Oct 2021 14:15:48 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -164,7 +164,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 0da92bc3-cac6-4cda-b1b7-2b874c009e86 + - 7b9081fc-280b-41f3-9ed6-f5690bcc825e status: 200 OK code: 200 duration: "" @@ -175,12 +175,12 @@ interactions: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.15.2; darwin; amd64) terraform-provider/develop-tftest + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks/9dc4d0fa-ee59-42db-80c8-6758a6f39a06 + url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks/41c00749-974e-4dcf-abc3-3dc8d0096e13 method: PATCH response: - body: '{"id":"9dc4d0fa-ee59-42db-80c8-6758a6f39a06","name":"private-network-test","tags":["tag0","tag1"],"organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","created_at":"2020-11-04T13:42:57.820561Z","updated_at":"2020-11-04T13:42:59.837635Z","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","zone":"fr-par-1"}' + body: '{"id":"41c00749-974e-4dcf-abc3-3dc8d0096e13","name":"private-network-test","tags":["tag0","tag1"],"organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T14:15:46.815923Z","updated_at":"2021-10-11T14:15:48.534424Z","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","zone":"fr-par-1"}' headers: Content-Length: - "311" @@ -189,7 +189,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 04 Nov 2020 13:42:59 GMT + - Mon, 11 Oct 2021 14:15:48 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -199,7 +199,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - dbcfa616-7770-4791-b55c-90f6b202b5af + - 9d759a85-9e45-4bde-b7ea-7add6f8c9d34 status: 200 OK code: 200 duration: "" @@ -208,12 +208,12 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.15.2; darwin; amd64) terraform-provider/develop-tftest + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks/9dc4d0fa-ee59-42db-80c8-6758a6f39a06 + url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks/41c00749-974e-4dcf-abc3-3dc8d0096e13 method: GET response: - body: '{"id":"9dc4d0fa-ee59-42db-80c8-6758a6f39a06","name":"private-network-test","tags":["tag0","tag1"],"organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","created_at":"2020-11-04T13:42:57.820561Z","updated_at":"2020-11-04T13:42:59.837635Z","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","zone":"fr-par-1"}' + body: '{"id":"41c00749-974e-4dcf-abc3-3dc8d0096e13","name":"private-network-test","tags":["tag0","tag1"],"organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T14:15:46.815923Z","updated_at":"2021-10-11T14:15:48.534424Z","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","zone":"fr-par-1"}' headers: Content-Length: - "311" @@ -222,7 +222,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 04 Nov 2020 13:42:59 GMT + - Mon, 11 Oct 2021 14:15:48 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -232,7 +232,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 6371a5a6-4199-44f2-914b-51bf6cc5bf86 + - 37c0486a-0b04-4762-a911-52a3cf854721 status: 200 OK code: 200 duration: "" @@ -241,12 +241,12 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.15.2; darwin; amd64) terraform-provider/develop-tftest + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks/9dc4d0fa-ee59-42db-80c8-6758a6f39a06 + url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks/41c00749-974e-4dcf-abc3-3dc8d0096e13 method: GET response: - body: '{"id":"9dc4d0fa-ee59-42db-80c8-6758a6f39a06","name":"private-network-test","tags":["tag0","tag1"],"organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","created_at":"2020-11-04T13:42:57.820561Z","updated_at":"2020-11-04T13:42:59.837635Z","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","zone":"fr-par-1"}' + body: '{"id":"41c00749-974e-4dcf-abc3-3dc8d0096e13","name":"private-network-test","tags":["tag0","tag1"],"organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T14:15:46.815923Z","updated_at":"2021-10-11T14:15:48.534424Z","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","zone":"fr-par-1"}' headers: Content-Length: - "311" @@ -255,7 +255,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 04 Nov 2020 13:43:00 GMT + - Mon, 11 Oct 2021 14:15:48 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -265,7 +265,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - a429c223-bbc2-48bb-b8a9-19ed7d4c6e59 + - e44b7e5a-0b28-4595-bb33-9ee47ce3db78 status: 200 OK code: 200 duration: "" @@ -274,12 +274,12 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.15.2; darwin; amd64) terraform-provider/develop-tftest + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks/9dc4d0fa-ee59-42db-80c8-6758a6f39a06 + url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks/41c00749-974e-4dcf-abc3-3dc8d0096e13 method: GET response: - body: '{"id":"9dc4d0fa-ee59-42db-80c8-6758a6f39a06","name":"private-network-test","tags":["tag0","tag1"],"organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","created_at":"2020-11-04T13:42:57.820561Z","updated_at":"2020-11-04T13:42:59.837635Z","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","zone":"fr-par-1"}' + body: '{"id":"41c00749-974e-4dcf-abc3-3dc8d0096e13","name":"private-network-test","tags":["tag0","tag1"],"organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T14:15:46.815923Z","updated_at":"2021-10-11T14:15:48.534424Z","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","zone":"fr-par-1"}' headers: Content-Length: - "311" @@ -288,7 +288,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 04 Nov 2020 13:43:00 GMT + - Mon, 11 Oct 2021 14:15:49 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -298,7 +298,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - c99e29ad-cd92-426e-99ff-16f58aea0893 + - ffdae064-b3b6-4604-9f5d-773168e4dce0 status: 200 OK code: 200 duration: "" @@ -307,9 +307,9 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.15.2; darwin; amd64) terraform-provider/develop-tftest + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks/9dc4d0fa-ee59-42db-80c8-6758a6f39a06 + url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks/41c00749-974e-4dcf-abc3-3dc8d0096e13 method: DELETE response: body: "" @@ -319,7 +319,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 04 Nov 2020 13:43:01 GMT + - Mon, 11 Oct 2021 14:15:50 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -329,7 +329,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - a1159123-e62e-42fc-a2d6-776420a1fcb4 + - e5f3f5b0-90e2-425e-afa3-d77d13514788 status: 204 No Content code: 204 duration: "" @@ -338,9 +338,9 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.15.2; darwin; amd64) terraform-provider/develop-tftest + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks/9dc4d0fa-ee59-42db-80c8-6758a6f39a06 + url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks/41c00749-974e-4dcf-abc3-3dc8d0096e13 method: GET response: body: '{"message":"resource is not found","resource":"unknown","resource_id":"","type":"not_found"}' @@ -352,7 +352,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 04 Nov 2020 13:43:01 GMT + - Mon, 11 Oct 2021 14:15:50 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -362,7 +362,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 60db8dae-4e8d-437e-9543-8529f5af36f6 + - f1c1e3e5-bcdf-481f-b6c9-f45825705c45 status: 404 Not Found code: 404 duration: "" diff --git a/scaleway/testdata/vpc-public-gateway-dhcp-basic.cassette.yaml b/scaleway/testdata/vpc-public-gateway-dhcp-basic.cassette.yaml index e81748a1c9..1079e54b65 100644 --- a/scaleway/testdata/vpc-public-gateway-dhcp-basic.cassette.yaml +++ b/scaleway/testdata/vpc-public-gateway-dhcp-basic.cassette.yaml @@ -8,11 +8,12 @@ interactions: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.16.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/dhcps method: POST response: - body: '{"id":"12de7cec-79ea-44c2-976e-98f3b14e4eba","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-09-21T13:08:19.571667Z","updated_at":"2021-09-21T13:08:19.571667Z","subnet":"192.168.1.0/24","address":"192.168.1.1","pool_low":"192.168.1.2","pool_high":"192.168.1.254","enable_dynamic":false,"valid_lifetime":"3600s","renew_timer":"3000s","rebind_timer":"3060s","push_default_route":false,"push_dns_server":true,"dns_servers_override":[],"dns_search":[],"dns_local_name":"priv","zone":"fr-par-1"}' + body: '{"id":"f89a13da-5997-462f-9310-22c67cee9b5d","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T14:15:11.713205Z","updated_at":"2021-10-11T14:15:11.713205Z","subnet":"192.168.1.0/24","address":"192.168.1.1","pool_low":"192.168.1.2","pool_high":"192.168.1.254","enable_dynamic":false,"valid_lifetime":"3600s","renew_timer":"3000s","rebind_timer":"3060s","push_default_route":false,"push_dns_server":true,"dns_servers_override":[],"dns_search":[],"dns_local_name":"priv","zone":"fr-par-1"}' headers: Content-Length: - "570" @@ -21,7 +22,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 21 Sep 2021 13:08:19 GMT + - Mon, 11 Oct 2021 14:15:11 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -31,7 +32,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 9f1a0671-dc11-4aea-a117-e322cdad88f7 + - fecc0e03-ca20-498d-9132-39b264bd80e2 status: 200 OK code: 200 duration: "" @@ -40,11 +41,12 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.16.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/dhcps/12de7cec-79ea-44c2-976e-98f3b14e4eba + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/dhcps/f89a13da-5997-462f-9310-22c67cee9b5d method: GET response: - body: '{"id":"12de7cec-79ea-44c2-976e-98f3b14e4eba","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-09-21T13:08:19.571667Z","updated_at":"2021-09-21T13:08:19.571667Z","subnet":"192.168.1.0/24","address":"192.168.1.1","pool_low":"192.168.1.2","pool_high":"192.168.1.254","enable_dynamic":false,"valid_lifetime":"3600s","renew_timer":"3000s","rebind_timer":"3060s","push_default_route":false,"push_dns_server":true,"dns_servers_override":[],"dns_search":[],"dns_local_name":"priv","zone":"fr-par-1"}' + body: '{"id":"f89a13da-5997-462f-9310-22c67cee9b5d","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T14:15:11.713205Z","updated_at":"2021-10-11T14:15:11.713205Z","subnet":"192.168.1.0/24","address":"192.168.1.1","pool_low":"192.168.1.2","pool_high":"192.168.1.254","enable_dynamic":false,"valid_lifetime":"3600s","renew_timer":"3000s","rebind_timer":"3060s","push_default_route":false,"push_dns_server":true,"dns_servers_override":[],"dns_search":[],"dns_local_name":"priv","zone":"fr-par-1"}' headers: Content-Length: - "570" @@ -53,7 +55,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 21 Sep 2021 13:08:19 GMT + - Mon, 11 Oct 2021 14:15:11 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -63,7 +65,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 89ca8e02-ef17-4dd5-97d8-d23f4345190a + - aaf2e959-34e6-4af7-8ce8-1b9d39779ffd status: 200 OK code: 200 duration: "" @@ -72,11 +74,12 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.16.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/dhcps/12de7cec-79ea-44c2-976e-98f3b14e4eba + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/dhcps/f89a13da-5997-462f-9310-22c67cee9b5d method: GET response: - body: '{"id":"12de7cec-79ea-44c2-976e-98f3b14e4eba","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-09-21T13:08:19.571667Z","updated_at":"2021-09-21T13:08:19.571667Z","subnet":"192.168.1.0/24","address":"192.168.1.1","pool_low":"192.168.1.2","pool_high":"192.168.1.254","enable_dynamic":false,"valid_lifetime":"3600s","renew_timer":"3000s","rebind_timer":"3060s","push_default_route":false,"push_dns_server":true,"dns_servers_override":[],"dns_search":[],"dns_local_name":"priv","zone":"fr-par-1"}' + body: '{"id":"f89a13da-5997-462f-9310-22c67cee9b5d","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T14:15:11.713205Z","updated_at":"2021-10-11T14:15:11.713205Z","subnet":"192.168.1.0/24","address":"192.168.1.1","pool_low":"192.168.1.2","pool_high":"192.168.1.254","enable_dynamic":false,"valid_lifetime":"3600s","renew_timer":"3000s","rebind_timer":"3060s","push_default_route":false,"push_dns_server":true,"dns_servers_override":[],"dns_search":[],"dns_local_name":"priv","zone":"fr-par-1"}' headers: Content-Length: - "570" @@ -85,7 +88,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 21 Sep 2021 13:08:19 GMT + - Mon, 11 Oct 2021 14:15:11 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -95,7 +98,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 0ea115ec-b62e-4f31-bb6a-490b8e38cb5e + - 1fb9746c-4616-4fce-add7-7069ab47d9db status: 200 OK code: 200 duration: "" @@ -104,11 +107,12 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.16.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/dhcps/12de7cec-79ea-44c2-976e-98f3b14e4eba + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/dhcps/f89a13da-5997-462f-9310-22c67cee9b5d method: GET response: - body: '{"id":"12de7cec-79ea-44c2-976e-98f3b14e4eba","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-09-21T13:08:19.571667Z","updated_at":"2021-09-21T13:08:19.571667Z","subnet":"192.168.1.0/24","address":"192.168.1.1","pool_low":"192.168.1.2","pool_high":"192.168.1.254","enable_dynamic":false,"valid_lifetime":"3600s","renew_timer":"3000s","rebind_timer":"3060s","push_default_route":false,"push_dns_server":true,"dns_servers_override":[],"dns_search":[],"dns_local_name":"priv","zone":"fr-par-1"}' + body: '{"id":"f89a13da-5997-462f-9310-22c67cee9b5d","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-11T14:15:11.713205Z","updated_at":"2021-10-11T14:15:11.713205Z","subnet":"192.168.1.0/24","address":"192.168.1.1","pool_low":"192.168.1.2","pool_high":"192.168.1.254","enable_dynamic":false,"valid_lifetime":"3600s","renew_timer":"3000s","rebind_timer":"3060s","push_default_route":false,"push_dns_server":true,"dns_servers_override":[],"dns_search":[],"dns_local_name":"priv","zone":"fr-par-1"}' headers: Content-Length: - "570" @@ -117,7 +121,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 21 Sep 2021 13:08:20 GMT + - Mon, 11 Oct 2021 14:15:12 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -127,7 +131,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - f000fe00-fb3e-441f-a687-f40e8e916c37 + - 1db8f0ee-bf51-4c1c-9014-9886fc9a233a status: 200 OK code: 200 duration: "" @@ -136,8 +140,9 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.16.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/dhcps/12de7cec-79ea-44c2-976e-98f3b14e4eba + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/dhcps/f89a13da-5997-462f-9310-22c67cee9b5d method: DELETE response: body: "" @@ -147,7 +152,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 21 Sep 2021 13:08:20 GMT + - Mon, 11 Oct 2021 14:15:13 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -157,7 +162,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - dfd77512-8500-4831-ac99-a4c1c9b3ce81 + - f7d6c032-f8c7-4b7f-892e-0955c7046205 status: 204 No Content code: 204 duration: "" @@ -166,11 +171,12 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.16.3; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/dhcps/12de7cec-79ea-44c2-976e-98f3b14e4eba + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/dhcps/f89a13da-5997-462f-9310-22c67cee9b5d method: GET response: - body: '{"message":"resource is not found","resource":"dhcp","resource_id":"12de7cec-79ea-44c2-976e-98f3b14e4eba","type":"not_found"}' + body: '{"message":"resource is not found","resource":"dhcp","resource_id":"f89a13da-5997-462f-9310-22c67cee9b5d","type":"not_found"}' headers: Content-Length: - "125" @@ -179,7 +185,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 21 Sep 2021 13:08:20 GMT + - Mon, 11 Oct 2021 14:15:13 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -189,7 +195,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 18f3f4fe-adb2-4eab-957c-797d5888c99b + - 47ad8cd5-2870-4f74-8309-91173ce40bdf status: 404 Not Found code: 404 duration: "" diff --git a/scaleway/testdata/vpc-public-network-basic.cassette.yaml b/scaleway/testdata/vpc-public-network-basic.cassette.yaml new file mode 100644 index 0000000000..f435e7ea07 --- /dev/null +++ b/scaleway/testdata/vpc-public-network-basic.cassette.yaml @@ -0,0 +1,995 @@ +--- +version: 1 +interactions: +- request: + body: '{"project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","subnet":"192.168.1.0/24","address":null,"pool_low":null,"pool_high":null,"enable_dynamic":false,"valid_lifetime":null,"renew_timer":null,"rebind_timer":null,"push_default_route":false,"push_dns_server":null,"dns_servers_override":null,"dns_search":null,"dns_local_name":null}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/dhcps + method: POST + response: + body: '{"id":"d761582e-8376-4147-b274-281af8990658","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T15:04:10.826916Z","updated_at":"2021-10-08T15:04:10.826916Z","subnet":"192.168.1.0/24","address":"192.168.1.1","pool_low":"192.168.1.2","pool_high":"192.168.1.254","enable_dynamic":false,"valid_lifetime":"3600s","renew_timer":"3000s","rebind_timer":"3060s","push_default_route":false,"push_dns_server":true,"dns_servers_override":[],"dns_search":[],"dns_local_name":"priv","zone":"fr-par-1"}' + headers: + Content-Length: + - "570" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 15:04:10 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c22f1faa-9186-4427-84d2-6580e80af8d6 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"name":"pn_test_network","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","tags":[]}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks + method: POST + response: + body: '{"id":"39d436fa-2180-4c9f-b404-4fe4cc500c10","name":"pn_test_network","tags":[],"organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T15:04:10.785097Z","updated_at":"2021-10-08T15:04:10.785097Z","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","zone":"fr-par-1"}' + headers: + Content-Length: + - "293" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 15:04:10 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - fc72386d-4ab1-4938-827c-478972b3aa2b + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/dhcps/d761582e-8376-4147-b274-281af8990658 + method: GET + response: + body: '{"id":"d761582e-8376-4147-b274-281af8990658","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T15:04:10.826916Z","updated_at":"2021-10-08T15:04:10.826916Z","subnet":"192.168.1.0/24","address":"192.168.1.1","pool_low":"192.168.1.2","pool_high":"192.168.1.254","enable_dynamic":false,"valid_lifetime":"3600s","renew_timer":"3000s","rebind_timer":"3060s","push_default_route":false,"push_dns_server":true,"dns_servers_override":[],"dns_search":[],"dns_local_name":"priv","zone":"fr-par-1"}' + headers: + Content-Length: + - "570" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 15:04:10 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2bd92d9f-3a51-4353-84eb-0746f9d57c2d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks/39d436fa-2180-4c9f-b404-4fe4cc500c10 + method: GET + response: + body: '{"id":"39d436fa-2180-4c9f-b404-4fe4cc500c10","name":"pn_test_network","tags":[],"organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T15:04:10.785097Z","updated_at":"2021-10-08T15:04:10.785097Z","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","zone":"fr-par-1"}' + headers: + Content-Length: + - "293" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 15:04:10 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b92e7a06-7963-4dd4-beb5-d537818c7171 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","tags":[]}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/ips + method: POST + response: + body: '{"id":"a0b79e0c-95c1-4357-8083-ffa383be2e99","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T15:04:11.388652Z","updated_at":"2021-10-08T15:04:11.388652Z","tags":[],"address":"51.15.235.29","reverse":"29-235-15-51.instances.scw.cloud","zone":"fr-par-1"}' + headers: + Content-Length: + - "338" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 15:04:11 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3b9dc678-4cfa-4e21-b581-cc0cedfd7b78 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/ips/a0b79e0c-95c1-4357-8083-ffa383be2e99 + method: GET + response: + body: '{"id":"a0b79e0c-95c1-4357-8083-ffa383be2e99","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T15:04:11.388652Z","updated_at":"2021-10-08T15:04:11.388652Z","tags":[],"address":"51.15.235.29","reverse":"29-235-15-51.instances.scw.cloud","zone":"fr-par-1"}' + headers: + Content-Length: + - "338" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 15:04:11 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - cf806908-d119-451c-835f-c6297b24cd78 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","name":"foobar","tags":[],"type":"VPC-GW-S","upstream_dns_servers":[],"ip_id":"a0b79e0c-95c1-4357-8083-ffa383be2e99"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways + method: POST + response: + body: '{"id":"af89f5fc-255d-4737-8c93-d36549754b62","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T15:04:11.972767Z","updated_at":"2021-10-08T15:04:11.972767Z","type":{"name":"VPC-GW-S","bandwidth":100000000,"zone":"fr-par-1"},"status":"stopped","name":"foobar","tags":[],"ip":{"id":"a0b79e0c-95c1-4357-8083-ffa383be2e99","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T15:04:11.388652Z","updated_at":"2021-10-08T15:04:11.388652Z","tags":[],"address":"51.15.235.29","reverse":"29-235-15-51.instances.scw.cloud","zone":"fr-par-1"},"gateway_networks":[],"upstream_dns_servers":[],"version":null,"can_upgrade_to":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "799" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 15:04:12 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ed40f0db-f2bc-466a-a621-e5b48f9fa13c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways/af89f5fc-255d-4737-8c93-d36549754b62 + method: GET + response: + body: '{"id":"af89f5fc-255d-4737-8c93-d36549754b62","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T15:04:11.972767Z","updated_at":"2021-10-08T15:04:12.141644Z","type":{"name":"VPC-GW-S","bandwidth":100000000,"zone":"fr-par-1"},"status":"configuring","name":"foobar","tags":[],"ip":{"id":"a0b79e0c-95c1-4357-8083-ffa383be2e99","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T15:04:11.388652Z","updated_at":"2021-10-08T15:04:11.388652Z","tags":[],"address":"51.15.235.29","reverse":"29-235-15-51.instances.scw.cloud","zone":"fr-par-1"},"gateway_networks":[],"upstream_dns_servers":[],"version":"0.2.13","can_upgrade_to":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "807" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 15:04:12 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c695eff5-4e72-4a82-9fd7-8a55ad836854 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways/af89f5fc-255d-4737-8c93-d36549754b62 + method: GET + response: + body: '{"id":"af89f5fc-255d-4737-8c93-d36549754b62","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T15:04:11.972767Z","updated_at":"2021-10-08T15:04:12.541750Z","type":{"name":"VPC-GW-S","bandwidth":100000000,"zone":"fr-par-1"},"status":"running","name":"foobar","tags":[],"ip":{"id":"a0b79e0c-95c1-4357-8083-ffa383be2e99","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T15:04:11.388652Z","updated_at":"2021-10-08T15:04:11.388652Z","tags":[],"address":"51.15.235.29","reverse":"29-235-15-51.instances.scw.cloud","zone":"fr-par-1"},"gateway_networks":[],"upstream_dns_servers":[],"version":"0.2.13","can_upgrade_to":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "803" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 15:04:42 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e253303f-2f99-4ee2-bc50-4fe222cfa76a + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways/af89f5fc-255d-4737-8c93-d36549754b62 + method: GET + response: + body: '{"id":"af89f5fc-255d-4737-8c93-d36549754b62","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T15:04:11.972767Z","updated_at":"2021-10-08T15:04:12.541750Z","type":{"name":"VPC-GW-S","bandwidth":100000000,"zone":"fr-par-1"},"status":"running","name":"foobar","tags":[],"ip":{"id":"a0b79e0c-95c1-4357-8083-ffa383be2e99","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T15:04:11.388652Z","updated_at":"2021-10-08T15:04:11.388652Z","tags":[],"address":"51.15.235.29","reverse":"29-235-15-51.instances.scw.cloud","zone":"fr-par-1"},"gateway_networks":[],"upstream_dns_servers":[],"version":"0.2.13","can_upgrade_to":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "803" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 15:04:42 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ca484e43-8d83-485b-b7a3-741d2a5efd5a + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways/af89f5fc-255d-4737-8c93-d36549754b62 + method: GET + response: + body: '{"id":"af89f5fc-255d-4737-8c93-d36549754b62","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T15:04:11.972767Z","updated_at":"2021-10-08T15:04:12.541750Z","type":{"name":"VPC-GW-S","bandwidth":100000000,"zone":"fr-par-1"},"status":"running","name":"foobar","tags":[],"ip":{"id":"a0b79e0c-95c1-4357-8083-ffa383be2e99","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T15:04:11.388652Z","updated_at":"2021-10-08T15:04:11.388652Z","tags":[],"address":"51.15.235.29","reverse":"29-235-15-51.instances.scw.cloud","zone":"fr-par-1"},"gateway_networks":[],"upstream_dns_servers":[],"version":"0.2.13","can_upgrade_to":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "803" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 15:04:42 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c1b1ad9e-45f5-4c71-8d40-2f5e4f13977e + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"gateway_id":"af89f5fc-255d-4737-8c93-d36549754b62","private_network_id":"39d436fa-2180-4c9f-b404-4fe4cc500c10","enable_masquerade":false,"dhcp_id":"d761582e-8376-4147-b274-281af8990658","enable_dhcp":true}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateway-networks + method: POST + response: + body: '{"id":"542a8437-0e91-41be-8f46-f9d0943e8901","created_at":"2021-10-08T15:04:42.653810Z","updated_at":"2021-10-08T15:04:42.653810Z","gateway_id":"af89f5fc-255d-4737-8c93-d36549754b62","private_network_id":"39d436fa-2180-4c9f-b404-4fe4cc500c10","mac_address":null,"enable_masquerade":false,"status":"created","dhcp":{"id":"d761582e-8376-4147-b274-281af8990658","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T15:04:10.826916Z","updated_at":"2021-10-08T15:04:10.826916Z","subnet":"192.168.1.0/24","address":"192.168.1.1","pool_low":"192.168.1.2","pool_high":"192.168.1.254","enable_dynamic":false,"valid_lifetime":"3600s","renew_timer":"3000s","rebind_timer":"3060s","push_default_route":false,"push_dns_server":true,"dns_servers_override":[],"dns_search":[],"dns_local_name":"priv","zone":"fr-par-1"},"enable_dhcp":true,"address":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "937" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 15:04:42 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2692744d-0211-4868-a1eb-d73584145fe5 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateway-networks/542a8437-0e91-41be-8f46-f9d0943e8901 + method: GET + response: + body: '{"id":"542a8437-0e91-41be-8f46-f9d0943e8901","created_at":"2021-10-08T15:04:42.653810Z","updated_at":"2021-10-08T15:04:42.653810Z","gateway_id":"af89f5fc-255d-4737-8c93-d36549754b62","private_network_id":"39d436fa-2180-4c9f-b404-4fe4cc500c10","mac_address":null,"enable_masquerade":false,"status":"created","dhcp":{"id":"d761582e-8376-4147-b274-281af8990658","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T15:04:10.826916Z","updated_at":"2021-10-08T15:04:10.826916Z","subnet":"192.168.1.0/24","address":"192.168.1.1","pool_low":"192.168.1.2","pool_high":"192.168.1.254","enable_dynamic":false,"valid_lifetime":"3600s","renew_timer":"3000s","rebind_timer":"3060s","push_default_route":false,"push_dns_server":true,"dns_servers_override":[],"dns_search":[],"dns_local_name":"priv","zone":"fr-par-1"},"enable_dhcp":true,"address":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "937" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 15:04:42 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5afc4cd4-59fe-4113-986c-2dc0aa84883c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateway-networks/542a8437-0e91-41be-8f46-f9d0943e8901 + method: GET + response: + body: '{"id":"542a8437-0e91-41be-8f46-f9d0943e8901","created_at":"2021-10-08T15:04:42.653810Z","updated_at":"2021-10-08T15:04:42.653810Z","gateway_id":"af89f5fc-255d-4737-8c93-d36549754b62","private_network_id":"39d436fa-2180-4c9f-b404-4fe4cc500c10","mac_address":null,"enable_masquerade":false,"status":"created","dhcp":{"id":"d761582e-8376-4147-b274-281af8990658","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T15:04:10.826916Z","updated_at":"2021-10-08T15:04:10.826916Z","subnet":"192.168.1.0/24","address":"192.168.1.1","pool_low":"192.168.1.2","pool_high":"192.168.1.254","enable_dynamic":false,"valid_lifetime":"3600s","renew_timer":"3000s","rebind_timer":"3060s","push_default_route":false,"push_dns_server":true,"dns_servers_override":[],"dns_search":[],"dns_local_name":"priv","zone":"fr-par-1"},"enable_dhcp":true,"address":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "937" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 15:04:42 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - eeb64a42-e108-41f8-8e04-c8e6537567f5 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateway-networks/542a8437-0e91-41be-8f46-f9d0943e8901 + method: GET + response: + body: '{"id":"542a8437-0e91-41be-8f46-f9d0943e8901","created_at":"2021-10-08T15:04:42.653810Z","updated_at":"2021-10-08T15:04:42.653810Z","gateway_id":"af89f5fc-255d-4737-8c93-d36549754b62","private_network_id":"39d436fa-2180-4c9f-b404-4fe4cc500c10","mac_address":null,"enable_masquerade":false,"status":"created","dhcp":{"id":"d761582e-8376-4147-b274-281af8990658","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T15:04:10.826916Z","updated_at":"2021-10-08T15:04:10.826916Z","subnet":"192.168.1.0/24","address":"192.168.1.1","pool_low":"192.168.1.2","pool_high":"192.168.1.254","enable_dynamic":false,"valid_lifetime":"3600s","renew_timer":"3000s","rebind_timer":"3060s","push_default_route":false,"push_dns_server":true,"dns_servers_override":[],"dns_search":[],"dns_local_name":"priv","zone":"fr-par-1"},"enable_dhcp":true,"address":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "937" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 15:04:43 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e280dec0-92c4-4d1b-8b11-e460f6c07a95 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks/39d436fa-2180-4c9f-b404-4fe4cc500c10 + method: GET + response: + body: '{"id":"39d436fa-2180-4c9f-b404-4fe4cc500c10","name":"pn_test_network","tags":[],"organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T15:04:10.785097Z","updated_at":"2021-10-08T15:04:10.785097Z","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","zone":"fr-par-1"}' + headers: + Content-Length: + - "293" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 15:04:43 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 08cd5651-eeb3-4d04-9dfb-29789bfcf0d2 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/ips/a0b79e0c-95c1-4357-8083-ffa383be2e99 + method: GET + response: + body: '{"id":"a0b79e0c-95c1-4357-8083-ffa383be2e99","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T15:04:11.388652Z","updated_at":"2021-10-08T15:04:11.388652Z","tags":[],"address":"51.15.235.29","reverse":"29-235-15-51.instances.scw.cloud","zone":"fr-par-1"}' + headers: + Content-Length: + - "338" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 15:04:43 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 201d50d0-39a5-4fb9-9bf7-fb77e4f75f56 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/dhcps/d761582e-8376-4147-b274-281af8990658 + method: GET + response: + body: '{"id":"d761582e-8376-4147-b274-281af8990658","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T15:04:10.826916Z","updated_at":"2021-10-08T15:04:10.826916Z","subnet":"192.168.1.0/24","address":"192.168.1.1","pool_low":"192.168.1.2","pool_high":"192.168.1.254","enable_dynamic":false,"valid_lifetime":"3600s","renew_timer":"3000s","rebind_timer":"3060s","push_default_route":false,"push_dns_server":true,"dns_servers_override":[],"dns_search":[],"dns_local_name":"priv","zone":"fr-par-1"}' + headers: + Content-Length: + - "570" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 15:04:43 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e8047feb-a98b-44e1-b249-03dfdcb574fe + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways/af89f5fc-255d-4737-8c93-d36549754b62 + method: GET + response: + body: '{"id":"af89f5fc-255d-4737-8c93-d36549754b62","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T15:04:11.972767Z","updated_at":"2021-10-08T15:04:42.702784Z","type":{"name":"VPC-GW-S","bandwidth":100000000,"zone":"fr-par-1"},"status":"configuring","name":"foobar","tags":[],"ip":{"id":"a0b79e0c-95c1-4357-8083-ffa383be2e99","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T15:04:11.388652Z","updated_at":"2021-10-08T15:04:11.388652Z","tags":[],"address":"51.15.235.29","reverse":"29-235-15-51.instances.scw.cloud","zone":"fr-par-1"},"gateway_networks":[{"id":"542a8437-0e91-41be-8f46-f9d0943e8901","created_at":"2021-10-08T15:04:42.653810Z","updated_at":"2021-10-08T15:04:42.653810Z","gateway_id":"af89f5fc-255d-4737-8c93-d36549754b62","private_network_id":"39d436fa-2180-4c9f-b404-4fe4cc500c10","mac_address":null,"enable_masquerade":false,"status":"created","dhcp":{"id":"d761582e-8376-4147-b274-281af8990658","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T15:04:10.826916Z","updated_at":"2021-10-08T15:04:10.826916Z","subnet":"192.168.1.0/24","address":"192.168.1.1","pool_low":"192.168.1.2","pool_high":"192.168.1.254","enable_dynamic":false,"valid_lifetime":"3600s","renew_timer":"3000s","rebind_timer":"3060s","push_default_route":false,"push_dns_server":true,"dns_servers_override":[],"dns_search":[],"dns_local_name":"priv","zone":"fr-par-1"},"enable_dhcp":true,"address":null,"zone":"fr-par-1"}],"upstream_dns_servers":[],"version":"0.2.13","can_upgrade_to":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "1744" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 15:04:43 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d974ea34-6126-48e6-a1bf-98cbc0ffec7d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateway-networks/542a8437-0e91-41be-8f46-f9d0943e8901 + method: GET + response: + body: '{"id":"542a8437-0e91-41be-8f46-f9d0943e8901","created_at":"2021-10-08T15:04:42.653810Z","updated_at":"2021-10-08T15:04:43.739605Z","gateway_id":"af89f5fc-255d-4737-8c93-d36549754b62","private_network_id":"39d436fa-2180-4c9f-b404-4fe4cc500c10","mac_address":"02:00:00:00:69:07","enable_masquerade":false,"status":"configuring","dhcp":{"id":"d761582e-8376-4147-b274-281af8990658","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T15:04:10.826916Z","updated_at":"2021-10-08T15:04:10.826916Z","subnet":"192.168.1.0/24","address":"192.168.1.1","pool_low":"192.168.1.2","pool_high":"192.168.1.254","enable_dynamic":false,"valid_lifetime":"3600s","renew_timer":"3000s","rebind_timer":"3060s","push_default_route":false,"push_dns_server":true,"dns_servers_override":[],"dns_search":[],"dns_local_name":"priv","zone":"fr-par-1"},"enable_dhcp":true,"address":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "956" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 15:04:43 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a6855c27-5b09-49fd-8317-40d5e8512d00 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateway-networks/542a8437-0e91-41be-8f46-f9d0943e8901 + method: GET + response: + body: '{"id":"542a8437-0e91-41be-8f46-f9d0943e8901","created_at":"2021-10-08T15:04:42.653810Z","updated_at":"2021-10-08T15:04:43.739605Z","gateway_id":"af89f5fc-255d-4737-8c93-d36549754b62","private_network_id":"39d436fa-2180-4c9f-b404-4fe4cc500c10","mac_address":"02:00:00:00:69:07","enable_masquerade":false,"status":"configuring","dhcp":{"id":"d761582e-8376-4147-b274-281af8990658","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T15:04:10.826916Z","updated_at":"2021-10-08T15:04:10.826916Z","subnet":"192.168.1.0/24","address":"192.168.1.1","pool_low":"192.168.1.2","pool_high":"192.168.1.254","enable_dynamic":false,"valid_lifetime":"3600s","renew_timer":"3000s","rebind_timer":"3060s","push_default_route":false,"push_dns_server":true,"dns_servers_override":[],"dns_search":[],"dns_local_name":"priv","zone":"fr-par-1"},"enable_dhcp":true,"address":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "956" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 15:04:44 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f9e71607-aa81-47de-838e-f05b36dd0ec0 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateway-networks/542a8437-0e91-41be-8f46-f9d0943e8901 + method: GET + response: + body: '{"id":"542a8437-0e91-41be-8f46-f9d0943e8901","created_at":"2021-10-08T15:04:42.653810Z","updated_at":"2021-10-08T15:04:48.957719Z","gateway_id":"af89f5fc-255d-4737-8c93-d36549754b62","private_network_id":"39d436fa-2180-4c9f-b404-4fe4cc500c10","mac_address":"02:00:00:00:69:07","enable_masquerade":false,"status":"ready","dhcp":{"id":"d761582e-8376-4147-b274-281af8990658","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T15:04:10.826916Z","updated_at":"2021-10-08T15:04:10.826916Z","subnet":"192.168.1.0/24","address":"192.168.1.1","pool_low":"192.168.1.2","pool_high":"192.168.1.254","enable_dynamic":false,"valid_lifetime":"3600s","renew_timer":"3000s","rebind_timer":"3060s","push_default_route":false,"push_dns_server":true,"dns_servers_override":[],"dns_search":[],"dns_local_name":"priv","zone":"fr-par-1"},"enable_dhcp":true,"address":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "950" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 15:05:14 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5e163150-3e15-465e-85c0-6af0b1cf2b80 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways/af89f5fc-255d-4737-8c93-d36549754b62 + method: GET + response: + body: '{"id":"af89f5fc-255d-4737-8c93-d36549754b62","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T15:04:11.972767Z","updated_at":"2021-10-08T15:04:49.232934Z","type":{"name":"VPC-GW-S","bandwidth":100000000,"zone":"fr-par-1"},"status":"running","name":"foobar","tags":[],"ip":{"id":"a0b79e0c-95c1-4357-8083-ffa383be2e99","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T15:04:11.388652Z","updated_at":"2021-10-08T15:04:11.388652Z","tags":[],"address":"51.15.235.29","reverse":"29-235-15-51.instances.scw.cloud","zone":"fr-par-1"},"gateway_networks":[{"id":"542a8437-0e91-41be-8f46-f9d0943e8901","created_at":"2021-10-08T15:04:42.653810Z","updated_at":"2021-10-08T15:04:48.957719Z","gateway_id":"af89f5fc-255d-4737-8c93-d36549754b62","private_network_id":"39d436fa-2180-4c9f-b404-4fe4cc500c10","mac_address":"02:00:00:00:69:07","enable_masquerade":false,"status":"ready","dhcp":{"id":"d761582e-8376-4147-b274-281af8990658","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T15:04:10.826916Z","updated_at":"2021-10-08T15:04:10.826916Z","subnet":"192.168.1.0/24","address":"192.168.1.1","pool_low":"192.168.1.2","pool_high":"192.168.1.254","enable_dynamic":false,"valid_lifetime":"3600s","renew_timer":"3000s","rebind_timer":"3060s","push_default_route":false,"push_dns_server":true,"dns_servers_override":[],"dns_search":[],"dns_local_name":"priv","zone":"fr-par-1"},"enable_dhcp":true,"address":null,"zone":"fr-par-1"}],"upstream_dns_servers":[],"version":"0.2.13","can_upgrade_to":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "1753" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 15:05:14 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 014fedc7-646c-4690-b41c-022705bc67e5 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateway-networks/542a8437-0e91-41be-8f46-f9d0943e8901?cleanup_dhcp=true + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 15:05:14 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4274f933-ac8f-4757-b831-e7092661c4dc + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/dhcps/d761582e-8376-4147-b274-281af8990658 + method: DELETE + response: + body: '{"message":"resource is not found","resource":"dhcp","resource_id":"d761582e-8376-4147-b274-281af8990658","type":"not_found"}' + headers: + Content-Length: + - "125" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 15:05:14 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4c44f5f7-6c09-4ae5-81f6-7ac69b9ec53a + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways/af89f5fc-255d-4737-8c93-d36549754b62 + method: GET + response: + body: '{"id":"af89f5fc-255d-4737-8c93-d36549754b62","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T15:04:11.972767Z","updated_at":"2021-10-08T15:04:49.232934Z","type":{"name":"VPC-GW-S","bandwidth":100000000,"zone":"fr-par-1"},"status":"running","name":"foobar","tags":[],"ip":{"id":"a0b79e0c-95c1-4357-8083-ffa383be2e99","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T15:04:11.388652Z","updated_at":"2021-10-08T15:04:11.388652Z","tags":[],"address":"51.15.235.29","reverse":"29-235-15-51.instances.scw.cloud","zone":"fr-par-1"},"gateway_networks":[{"id":"542a8437-0e91-41be-8f46-f9d0943e8901","created_at":"2021-10-08T15:04:42.653810Z","updated_at":"2021-10-08T15:05:14.836121Z","gateway_id":"af89f5fc-255d-4737-8c93-d36549754b62","private_network_id":"39d436fa-2180-4c9f-b404-4fe4cc500c10","mac_address":"02:00:00:00:69:07","enable_masquerade":false,"status":"detaching","dhcp":{"id":"d761582e-8376-4147-b274-281af8990658","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T15:04:10.826916Z","updated_at":"2021-10-08T15:04:10.826916Z","subnet":"192.168.1.0/24","address":"192.168.1.1","pool_low":"192.168.1.2","pool_high":"192.168.1.254","enable_dynamic":false,"valid_lifetime":"3600s","renew_timer":"3000s","rebind_timer":"3060s","push_default_route":false,"push_dns_server":true,"dns_servers_override":[],"dns_search":[],"dns_local_name":"priv","zone":"fr-par-1"},"enable_dhcp":true,"address":null,"zone":"fr-par-1"}],"upstream_dns_servers":[],"version":"0.2.13","can_upgrade_to":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "1757" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 15:05:14 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 79b61233-d5d6-43c2-9752-979c7e97fa10 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways/af89f5fc-255d-4737-8c93-d36549754b62?cleanup_dhcp=false + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 15:05:15 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ddcf5bc4-581f-4634-b1b0-4b62f9387d6c + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/ips/a0b79e0c-95c1-4357-8083-ffa383be2e99 + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 15:05:15 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - aaeb6fee-2069-4a20-9234-564df8c2d485 + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks/39d436fa-2180-4c9f-b404-4fe4cc500c10 + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 15:05:15 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 54c4d951-170b-4def-9a49-7aaab5cce8bf + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateway-networks/542a8437-0e91-41be-8f46-f9d0943e8901 + method: GET + response: + body: '{"message":"resource is not found","resource":"gateway_network","resource_id":"542a8437-0e91-41be-8f46-f9d0943e8901","type":"not_found"}' + headers: + Content-Length: + - "136" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 15:05:15 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e36422de-2f3d-4e4d-a4bf-02d0322a0e50 + status: 404 Not Found + code: 404 + duration: "" diff --git a/scaleway/testdata/vpc-public-network-without-dhcp.cassette.yaml b/scaleway/testdata/vpc-public-network-without-dhcp.cassette.yaml new file mode 100644 index 0000000000..4be1ffc88e --- /dev/null +++ b/scaleway/testdata/vpc-public-network-without-dhcp.cassette.yaml @@ -0,0 +1,861 @@ +--- +version: 1 +interactions: +- request: + body: '{"name":"pn_test_network","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","tags":[]}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks + method: POST + response: + body: '{"id":"ab68b593-3add-4762-b045-f70d14c63922","name":"pn_test_network","tags":[],"organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T14:56:26.129818Z","updated_at":"2021-10-08T14:56:26.129818Z","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","zone":"fr-par-1"}' + headers: + Content-Length: + - "293" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 14:56:26 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 91f58b70-ac34-4958-b9bb-da0064164807 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks/ab68b593-3add-4762-b045-f70d14c63922 + method: GET + response: + body: '{"id":"ab68b593-3add-4762-b045-f70d14c63922","name":"pn_test_network","tags":[],"organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T14:56:26.129818Z","updated_at":"2021-10-08T14:56:26.129818Z","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","zone":"fr-par-1"}' + headers: + Content-Length: + - "293" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 14:56:26 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e9fc0627-8777-4855-a183-e0924fdc4612 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","tags":[]}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/ips + method: POST + response: + body: '{"id":"959a2cc3-1403-40be-a4fb-714a381cbbc4","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T14:56:26.676441Z","updated_at":"2021-10-08T14:56:26.676441Z","tags":[],"address":"212.47.229.167","reverse":"167-229-47-212.instances.scw.cloud","zone":"fr-par-1"}' + headers: + Content-Length: + - "342" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 14:56:26 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c0dbf753-d542-4e83-85d6-fcb9fb2083fe + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/ips/959a2cc3-1403-40be-a4fb-714a381cbbc4 + method: GET + response: + body: '{"id":"959a2cc3-1403-40be-a4fb-714a381cbbc4","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T14:56:26.676441Z","updated_at":"2021-10-08T14:56:26.676441Z","tags":[],"address":"212.47.229.167","reverse":"167-229-47-212.instances.scw.cloud","zone":"fr-par-1"}' + headers: + Content-Length: + - "342" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 14:56:26 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 457f6f4b-9bc5-426f-90e4-27bcc0088fbc + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","name":"foobar","tags":[],"type":"VPC-GW-S","upstream_dns_servers":[],"ip_id":"959a2cc3-1403-40be-a4fb-714a381cbbc4"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways + method: POST + response: + body: '{"id":"226c5a20-ba24-4568-a2fc-b8d0b2046001","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T14:56:26.934550Z","updated_at":"2021-10-08T14:56:26.934550Z","type":{"name":"VPC-GW-S","bandwidth":100000000,"zone":"fr-par-1"},"status":"stopped","name":"foobar","tags":[],"ip":{"id":"959a2cc3-1403-40be-a4fb-714a381cbbc4","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T14:56:26.676441Z","updated_at":"2021-10-08T14:56:26.676441Z","tags":[],"address":"212.47.229.167","reverse":"167-229-47-212.instances.scw.cloud","zone":"fr-par-1"},"gateway_networks":[],"upstream_dns_servers":[],"version":null,"can_upgrade_to":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "803" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 14:56:26 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d2cdce4b-d7ab-4aa8-a9a0-9bae92980b0d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways/226c5a20-ba24-4568-a2fc-b8d0b2046001 + method: GET + response: + body: '{"id":"226c5a20-ba24-4568-a2fc-b8d0b2046001","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T14:56:26.934550Z","updated_at":"2021-10-08T14:56:26.972360Z","type":{"name":"VPC-GW-S","bandwidth":100000000,"zone":"fr-par-1"},"status":"stopped","name":"foobar","tags":[],"ip":{"id":"959a2cc3-1403-40be-a4fb-714a381cbbc4","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T14:56:26.676441Z","updated_at":"2021-10-08T14:56:26.676441Z","tags":[],"address":"212.47.229.167","reverse":"167-229-47-212.instances.scw.cloud","zone":"fr-par-1"},"gateway_networks":[],"upstream_dns_servers":[],"version":"0.2.13","can_upgrade_to":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "807" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 14:56:27 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9954ba62-4aef-43cd-b0cc-85201d9e76e7 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways/226c5a20-ba24-4568-a2fc-b8d0b2046001 + method: GET + response: + body: '{"id":"226c5a20-ba24-4568-a2fc-b8d0b2046001","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T14:56:26.934550Z","updated_at":"2021-10-08T14:56:26.972360Z","type":{"name":"VPC-GW-S","bandwidth":100000000,"zone":"fr-par-1"},"status":"stopped","name":"foobar","tags":[],"ip":{"id":"959a2cc3-1403-40be-a4fb-714a381cbbc4","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T14:56:26.676441Z","updated_at":"2021-10-08T14:56:26.676441Z","tags":[],"address":"212.47.229.167","reverse":"167-229-47-212.instances.scw.cloud","zone":"fr-par-1"},"gateway_networks":[],"upstream_dns_servers":[],"version":"0.2.13","can_upgrade_to":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "807" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 14:56:27 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - eab5aba3-8d18-4bae-9a01-baf4326add77 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways/226c5a20-ba24-4568-a2fc-b8d0b2046001 + method: GET + response: + body: '{"id":"226c5a20-ba24-4568-a2fc-b8d0b2046001","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T14:56:26.934550Z","updated_at":"2021-10-08T14:56:27.121001Z","type":{"name":"VPC-GW-S","bandwidth":100000000,"zone":"fr-par-1"},"status":"configuring","name":"foobar","tags":[],"ip":{"id":"959a2cc3-1403-40be-a4fb-714a381cbbc4","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T14:56:26.676441Z","updated_at":"2021-10-08T14:56:26.676441Z","tags":[],"address":"212.47.229.167","reverse":"167-229-47-212.instances.scw.cloud","zone":"fr-par-1"},"gateway_networks":[],"upstream_dns_servers":[],"version":"0.2.13","can_upgrade_to":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "811" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 14:56:27 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7482e2dd-0811-4d38-a897-0fb8f4125683 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways/226c5a20-ba24-4568-a2fc-b8d0b2046001 + method: GET + response: + body: '{"id":"226c5a20-ba24-4568-a2fc-b8d0b2046001","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T14:56:26.934550Z","updated_at":"2021-10-08T14:56:27.524396Z","type":{"name":"VPC-GW-S","bandwidth":100000000,"zone":"fr-par-1"},"status":"running","name":"foobar","tags":[],"ip":{"id":"959a2cc3-1403-40be-a4fb-714a381cbbc4","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T14:56:26.676441Z","updated_at":"2021-10-08T14:56:26.676441Z","tags":[],"address":"212.47.229.167","reverse":"167-229-47-212.instances.scw.cloud","zone":"fr-par-1"},"gateway_networks":[],"upstream_dns_servers":[],"version":"0.2.13","can_upgrade_to":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "807" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 14:56:57 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - cd1fdd66-170a-40ed-b302-869ae362d5f7 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"gateway_id":"226c5a20-ba24-4568-a2fc-b8d0b2046001","private_network_id":"ab68b593-3add-4762-b045-f70d14c63922","enable_masquerade":true,"address":"192.168.1.42/24","enable_dhcp":false}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateway-networks + method: POST + response: + body: '{"id":"0de5ffd0-53a3-4b8d-a472-24fef26c3d9a","created_at":"2021-10-08T14:56:57.384221Z","updated_at":"2021-10-08T14:56:57.384221Z","gateway_id":"226c5a20-ba24-4568-a2fc-b8d0b2046001","private_network_id":"ab68b593-3add-4762-b045-f70d14c63922","mac_address":null,"enable_masquerade":true,"status":"created","dhcp":null,"enable_dhcp":false,"address":"192.168.1.42/24","zone":"fr-par-1"}' + headers: + Content-Length: + - "384" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 14:56:57 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - cc64dbef-11b3-4f81-b138-98bbbd1c2a23 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateway-networks/0de5ffd0-53a3-4b8d-a472-24fef26c3d9a + method: GET + response: + body: '{"id":"0de5ffd0-53a3-4b8d-a472-24fef26c3d9a","created_at":"2021-10-08T14:56:57.384221Z","updated_at":"2021-10-08T14:56:57.384221Z","gateway_id":"226c5a20-ba24-4568-a2fc-b8d0b2046001","private_network_id":"ab68b593-3add-4762-b045-f70d14c63922","mac_address":null,"enable_masquerade":true,"status":"created","dhcp":null,"enable_dhcp":false,"address":"192.168.1.42/24","zone":"fr-par-1"}' + headers: + Content-Length: + - "384" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 14:56:57 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 17e4b44d-590e-4387-8065-de66566fda91 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateway-networks/0de5ffd0-53a3-4b8d-a472-24fef26c3d9a + method: GET + response: + body: '{"id":"0de5ffd0-53a3-4b8d-a472-24fef26c3d9a","created_at":"2021-10-08T14:56:57.384221Z","updated_at":"2021-10-08T14:56:57.384221Z","gateway_id":"226c5a20-ba24-4568-a2fc-b8d0b2046001","private_network_id":"ab68b593-3add-4762-b045-f70d14c63922","mac_address":null,"enable_masquerade":true,"status":"created","dhcp":null,"enable_dhcp":false,"address":"192.168.1.42/24","zone":"fr-par-1"}' + headers: + Content-Length: + - "384" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 14:56:57 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - abdb39e0-75a6-4215-8b2a-e1150d022e81 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateway-networks/0de5ffd0-53a3-4b8d-a472-24fef26c3d9a + method: GET + response: + body: '{"id":"0de5ffd0-53a3-4b8d-a472-24fef26c3d9a","created_at":"2021-10-08T14:56:57.384221Z","updated_at":"2021-10-08T14:56:57.384221Z","gateway_id":"226c5a20-ba24-4568-a2fc-b8d0b2046001","private_network_id":"ab68b593-3add-4762-b045-f70d14c63922","mac_address":null,"enable_masquerade":true,"status":"created","dhcp":null,"enable_dhcp":false,"address":"192.168.1.42/24","zone":"fr-par-1"}' + headers: + Content-Length: + - "384" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 14:56:57 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 513ef74d-85ec-495e-869c-98f8a3471e69 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks/ab68b593-3add-4762-b045-f70d14c63922 + method: GET + response: + body: '{"id":"ab68b593-3add-4762-b045-f70d14c63922","name":"pn_test_network","tags":[],"organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T14:56:26.129818Z","updated_at":"2021-10-08T14:56:26.129818Z","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","zone":"fr-par-1"}' + headers: + Content-Length: + - "293" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 14:56:58 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0ef241d4-6a0d-4b75-a4f6-399c54e8c1de + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/ips/959a2cc3-1403-40be-a4fb-714a381cbbc4 + method: GET + response: + body: '{"id":"959a2cc3-1403-40be-a4fb-714a381cbbc4","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T14:56:26.676441Z","updated_at":"2021-10-08T14:56:26.676441Z","tags":[],"address":"212.47.229.167","reverse":"167-229-47-212.instances.scw.cloud","zone":"fr-par-1"}' + headers: + Content-Length: + - "342" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 14:56:58 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 33f64a9e-01b1-4627-ad8b-6dd955defa38 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways/226c5a20-ba24-4568-a2fc-b8d0b2046001 + method: GET + response: + body: '{"id":"226c5a20-ba24-4568-a2fc-b8d0b2046001","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T14:56:26.934550Z","updated_at":"2021-10-08T14:56:57.432726Z","type":{"name":"VPC-GW-S","bandwidth":100000000,"zone":"fr-par-1"},"status":"configuring","name":"foobar","tags":[],"ip":{"id":"959a2cc3-1403-40be-a4fb-714a381cbbc4","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T14:56:26.676441Z","updated_at":"2021-10-08T14:56:26.676441Z","tags":[],"address":"212.47.229.167","reverse":"167-229-47-212.instances.scw.cloud","zone":"fr-par-1"},"gateway_networks":[{"id":"0de5ffd0-53a3-4b8d-a472-24fef26c3d9a","created_at":"2021-10-08T14:56:57.384221Z","updated_at":"2021-10-08T14:56:58.185798Z","gateway_id":"226c5a20-ba24-4568-a2fc-b8d0b2046001","private_network_id":"ab68b593-3add-4762-b045-f70d14c63922","mac_address":"02:00:00:00:69:03","enable_masquerade":true,"status":"configuring","dhcp":null,"enable_dhcp":false,"address":"192.168.1.42/24","zone":"fr-par-1"}],"upstream_dns_servers":[],"version":"0.2.13","can_upgrade_to":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "1214" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 14:56:58 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3d876443-a0cf-49c1-88f3-94d06d1bf03a + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateway-networks/0de5ffd0-53a3-4b8d-a472-24fef26c3d9a + method: GET + response: + body: '{"id":"0de5ffd0-53a3-4b8d-a472-24fef26c3d9a","created_at":"2021-10-08T14:56:57.384221Z","updated_at":"2021-10-08T14:56:58.185798Z","gateway_id":"226c5a20-ba24-4568-a2fc-b8d0b2046001","private_network_id":"ab68b593-3add-4762-b045-f70d14c63922","mac_address":"02:00:00:00:69:03","enable_masquerade":true,"status":"configuring","dhcp":null,"enable_dhcp":false,"address":"192.168.1.42/24","zone":"fr-par-1"}' + headers: + Content-Length: + - "403" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 14:56:58 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2580ced7-8229-4b34-be94-b059dd9172a6 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateway-networks/0de5ffd0-53a3-4b8d-a472-24fef26c3d9a + method: GET + response: + body: '{"id":"0de5ffd0-53a3-4b8d-a472-24fef26c3d9a","created_at":"2021-10-08T14:56:57.384221Z","updated_at":"2021-10-08T14:56:58.185798Z","gateway_id":"226c5a20-ba24-4568-a2fc-b8d0b2046001","private_network_id":"ab68b593-3add-4762-b045-f70d14c63922","mac_address":"02:00:00:00:69:03","enable_masquerade":true,"status":"configuring","dhcp":null,"enable_dhcp":false,"address":"192.168.1.42/24","zone":"fr-par-1"}' + headers: + Content-Length: + - "403" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 14:56:59 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d947955a-ccff-4f7a-ab12-217c0752b345 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateway-networks/0de5ffd0-53a3-4b8d-a472-24fef26c3d9a + method: GET + response: + body: '{"id":"0de5ffd0-53a3-4b8d-a472-24fef26c3d9a","created_at":"2021-10-08T14:56:57.384221Z","updated_at":"2021-10-08T14:57:02.579634Z","gateway_id":"226c5a20-ba24-4568-a2fc-b8d0b2046001","private_network_id":"ab68b593-3add-4762-b045-f70d14c63922","mac_address":"02:00:00:00:69:03","enable_masquerade":true,"status":"ready","dhcp":null,"enable_dhcp":false,"address":"192.168.1.42/24","zone":"fr-par-1"}' + headers: + Content-Length: + - "397" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 14:57:29 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d1ce855a-d864-4fb0-a684-0861cae95013 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways/226c5a20-ba24-4568-a2fc-b8d0b2046001 + method: GET + response: + body: '{"id":"226c5a20-ba24-4568-a2fc-b8d0b2046001","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T14:56:26.934550Z","updated_at":"2021-10-08T14:57:02.765044Z","type":{"name":"VPC-GW-S","bandwidth":100000000,"zone":"fr-par-1"},"status":"running","name":"foobar","tags":[],"ip":{"id":"959a2cc3-1403-40be-a4fb-714a381cbbc4","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T14:56:26.676441Z","updated_at":"2021-10-08T14:56:26.676441Z","tags":[],"address":"212.47.229.167","reverse":"167-229-47-212.instances.scw.cloud","zone":"fr-par-1"},"gateway_networks":[{"id":"0de5ffd0-53a3-4b8d-a472-24fef26c3d9a","created_at":"2021-10-08T14:56:57.384221Z","updated_at":"2021-10-08T14:57:02.579634Z","gateway_id":"226c5a20-ba24-4568-a2fc-b8d0b2046001","private_network_id":"ab68b593-3add-4762-b045-f70d14c63922","mac_address":"02:00:00:00:69:03","enable_masquerade":true,"status":"ready","dhcp":null,"enable_dhcp":false,"address":"192.168.1.42/24","zone":"fr-par-1"}],"upstream_dns_servers":[],"version":"0.2.13","can_upgrade_to":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "1204" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 14:57:29 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4d410b14-9a24-44ad-939f-3907080dc797 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateway-networks/0de5ffd0-53a3-4b8d-a472-24fef26c3d9a?cleanup_dhcp=true + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 14:57:29 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9bfd0110-81b1-42fe-9485-443176a660b5 + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways/226c5a20-ba24-4568-a2fc-b8d0b2046001 + method: GET + response: + body: '{"id":"226c5a20-ba24-4568-a2fc-b8d0b2046001","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T14:56:26.934550Z","updated_at":"2021-10-08T14:57:02.765044Z","type":{"name":"VPC-GW-S","bandwidth":100000000,"zone":"fr-par-1"},"status":"running","name":"foobar","tags":[],"ip":{"id":"959a2cc3-1403-40be-a4fb-714a381cbbc4","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-08T14:56:26.676441Z","updated_at":"2021-10-08T14:56:26.676441Z","tags":[],"address":"212.47.229.167","reverse":"167-229-47-212.instances.scw.cloud","zone":"fr-par-1"},"gateway_networks":[{"id":"0de5ffd0-53a3-4b8d-a472-24fef26c3d9a","created_at":"2021-10-08T14:56:57.384221Z","updated_at":"2021-10-08T14:57:29.924563Z","gateway_id":"226c5a20-ba24-4568-a2fc-b8d0b2046001","private_network_id":"ab68b593-3add-4762-b045-f70d14c63922","mac_address":"02:00:00:00:69:03","enable_masquerade":true,"status":"detaching","dhcp":null,"enable_dhcp":false,"address":"192.168.1.42/24","zone":"fr-par-1"}],"upstream_dns_servers":[],"version":"0.2.13","can_upgrade_to":null,"zone":"fr-par-1"}' + headers: + Content-Length: + - "1208" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 14:57:30 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 965be654-13cd-4d72-b1ec-75702fcb608f + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways/226c5a20-ba24-4568-a2fc-b8d0b2046001?cleanup_dhcp=false + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 14:57:30 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 68609ffb-ea6e-406d-8019-997ab62c94cf + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc/v1/zones/fr-par-1/private-networks/ab68b593-3add-4762-b045-f70d14c63922 + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 14:57:30 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 06637460-91c6-45c7-9142-0464bdc46cc1 + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/ips/959a2cc3-1403-40be-a4fb-714a381cbbc4 + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 14:57:30 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6d2fc63b-7327-4527-a02a-a644f5a667a2 + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateway-networks/0de5ffd0-53a3-4b8d-a472-24fef26c3d9a + method: GET + response: + body: '{"message":"resource is not found","resource":"gateway_network","resource_id":"0de5ffd0-53a3-4b8d-a472-24fef26c3d9a","type":"not_found"}' + headers: + Content-Length: + - "136" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 08 Oct 2021 14:57:30 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 91870abc-ae6d-4f0e-b3d6-11c71246d077 + status: 404 Not Found + code: 404 + duration: ""