Skip to content

Commit a54e59c

Browse files
remyleonescaleway-botMonitob
committed
feat(vpcgw): add support for PAT rules (scaleway#864)
* feat(gtw-networks): add resource vpc-gateway-network * feat(gtw-networks): test cases and wait management * feat(vpcgw): add support for DHCP (scaleway#865) * feat(vpcgw): add support for DHCP * feat(lb): update vpc gw dhcp and small corrections * feat(vpc_public_gateway_dhcp): fix doc and test Co-authored-by: jaime Bernabe <[email protected]> feat(pat-rules): add test and rebase * feat(pat-rules): add new test and gateway_network * feat(rdb): docs pat rules and test * feat(rdb): add dependency in test * fix(gw-network): handle mac_address null and change default value masquerade * fix(pat-rules): update cassette pat-rules and test Co-authored-by: scaleway-bot <[email protected]> Co-authored-by: Monitob <[email protected]>
1 parent 0c7025f commit a54e59c

3 files changed

+220
-22
lines changed

scaleway/provider.go

+1
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ func Provider(config *ProviderConfig) plugin.ProviderFunc {
9797
"scaleway_vpc_gateway_network": resourceScalewayVPCGatewayNetwork(),
9898
"scaleway_vpc_public_gateway_dhcp": resourceScalewayVPCPublicGatewayDHCP(),
9999
"scaleway_vpc_public_gateway_ip": resourceScalewayVPCPublicGatewayIP(),
100+
"scaleway_vpc_public_gateway_pat_rule": resourceScalewayVPCPublicGatewayPATRule(),
100101
"scaleway_vpc_private_network": resourceScalewayVPCPrivateNetwork(),
101102
},
102103

scaleway/testdata/vpc-public-gateway-dhcp-basic.cassette.yaml

+22-22
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ interactions:
1313
url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/dhcps
1414
method: POST
1515
response:
16-
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"}'
16+
body: '{"id":"422ab19f-847c-4de6-ad0f-51505f7ccfbc","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-13T15:05:07.133827Z","updated_at":"2021-10-13T15:05:07.133827Z","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"}'
1717
headers:
1818
Content-Length:
1919
- "570"
@@ -22,7 +22,7 @@ interactions:
2222
Content-Type:
2323
- application/json
2424
Date:
25-
- Mon, 11 Oct 2021 14:15:11 GMT
25+
- Wed, 13 Oct 2021 15:05:07 GMT
2626
Server:
2727
- Scaleway API-Gateway
2828
Strict-Transport-Security:
@@ -32,7 +32,7 @@ interactions:
3232
X-Frame-Options:
3333
- DENY
3434
X-Request-Id:
35-
- fecc0e03-ca20-498d-9132-39b264bd80e2
35+
- 74e216d0-d6fa-4285-8a73-39e15bc31739
3636
status: 200 OK
3737
code: 200
3838
duration: ""
@@ -43,10 +43,10 @@ interactions:
4343
User-Agent:
4444
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop
4545
terraform/terraform-tests
46-
url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/dhcps/f89a13da-5997-462f-9310-22c67cee9b5d
46+
url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/dhcps/422ab19f-847c-4de6-ad0f-51505f7ccfbc
4747
method: GET
4848
response:
49-
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"}'
49+
body: '{"id":"422ab19f-847c-4de6-ad0f-51505f7ccfbc","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-13T15:05:07.133827Z","updated_at":"2021-10-13T15:05:07.133827Z","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"}'
5050
headers:
5151
Content-Length:
5252
- "570"
@@ -55,7 +55,7 @@ interactions:
5555
Content-Type:
5656
- application/json
5757
Date:
58-
- Mon, 11 Oct 2021 14:15:11 GMT
58+
- Wed, 13 Oct 2021 15:05:07 GMT
5959
Server:
6060
- Scaleway API-Gateway
6161
Strict-Transport-Security:
@@ -65,7 +65,7 @@ interactions:
6565
X-Frame-Options:
6666
- DENY
6767
X-Request-Id:
68-
- aaf2e959-34e6-4af7-8ce8-1b9d39779ffd
68+
- 2b525df7-85db-4eda-a460-ee24ed2ec279
6969
status: 200 OK
7070
code: 200
7171
duration: ""
@@ -76,10 +76,10 @@ interactions:
7676
User-Agent:
7777
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop
7878
terraform/terraform-tests
79-
url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/dhcps/f89a13da-5997-462f-9310-22c67cee9b5d
79+
url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/dhcps/422ab19f-847c-4de6-ad0f-51505f7ccfbc
8080
method: GET
8181
response:
82-
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"}'
82+
body: '{"id":"422ab19f-847c-4de6-ad0f-51505f7ccfbc","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-13T15:05:07.133827Z","updated_at":"2021-10-13T15:05:07.133827Z","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"}'
8383
headers:
8484
Content-Length:
8585
- "570"
@@ -88,7 +88,7 @@ interactions:
8888
Content-Type:
8989
- application/json
9090
Date:
91-
- Mon, 11 Oct 2021 14:15:11 GMT
91+
- Wed, 13 Oct 2021 15:05:07 GMT
9292
Server:
9393
- Scaleway API-Gateway
9494
Strict-Transport-Security:
@@ -98,7 +98,7 @@ interactions:
9898
X-Frame-Options:
9999
- DENY
100100
X-Request-Id:
101-
- 1fb9746c-4616-4fce-add7-7069ab47d9db
101+
- 1dcd1e13-6be9-4210-9083-f6de4534098d
102102
status: 200 OK
103103
code: 200
104104
duration: ""
@@ -109,10 +109,10 @@ interactions:
109109
User-Agent:
110110
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop
111111
terraform/terraform-tests
112-
url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/dhcps/f89a13da-5997-462f-9310-22c67cee9b5d
112+
url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/dhcps/422ab19f-847c-4de6-ad0f-51505f7ccfbc
113113
method: GET
114114
response:
115-
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"}'
115+
body: '{"id":"422ab19f-847c-4de6-ad0f-51505f7ccfbc","organization_id":"63a66ec9-a385-4194-bc15-04aa6921274a","project_id":"63a66ec9-a385-4194-bc15-04aa6921274a","created_at":"2021-10-13T15:05:07.133827Z","updated_at":"2021-10-13T15:05:07.133827Z","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"}'
116116
headers:
117117
Content-Length:
118118
- "570"
@@ -121,7 +121,7 @@ interactions:
121121
Content-Type:
122122
- application/json
123123
Date:
124-
- Mon, 11 Oct 2021 14:15:12 GMT
124+
- Wed, 13 Oct 2021 15:05:08 GMT
125125
Server:
126126
- Scaleway API-Gateway
127127
Strict-Transport-Security:
@@ -131,7 +131,7 @@ interactions:
131131
X-Frame-Options:
132132
- DENY
133133
X-Request-Id:
134-
- 1db8f0ee-bf51-4c1c-9014-9886fc9a233a
134+
- 3b4317e0-c7d1-43bd-9183-695f8c9f544b
135135
status: 200 OK
136136
code: 200
137137
duration: ""
@@ -142,7 +142,7 @@ interactions:
142142
User-Agent:
143143
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop
144144
terraform/terraform-tests
145-
url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/dhcps/f89a13da-5997-462f-9310-22c67cee9b5d
145+
url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/dhcps/422ab19f-847c-4de6-ad0f-51505f7ccfbc
146146
method: DELETE
147147
response:
148148
body: ""
@@ -152,7 +152,7 @@ interactions:
152152
Content-Type:
153153
- application/json
154154
Date:
155-
- Mon, 11 Oct 2021 14:15:13 GMT
155+
- Wed, 13 Oct 2021 15:05:08 GMT
156156
Server:
157157
- Scaleway API-Gateway
158158
Strict-Transport-Security:
@@ -162,7 +162,7 @@ interactions:
162162
X-Frame-Options:
163163
- DENY
164164
X-Request-Id:
165-
- f7d6c032-f8c7-4b7f-892e-0955c7046205
165+
- 78cd803d-3e23-4b06-b936-0c5aa38f839b
166166
status: 204 No Content
167167
code: 204
168168
duration: ""
@@ -173,10 +173,10 @@ interactions:
173173
User-Agent:
174174
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.1; darwin; amd64) terraform-provider/develop
175175
terraform/terraform-tests
176-
url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/dhcps/f89a13da-5997-462f-9310-22c67cee9b5d
176+
url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/dhcps/422ab19f-847c-4de6-ad0f-51505f7ccfbc
177177
method: GET
178178
response:
179-
body: '{"message":"resource is not found","resource":"dhcp","resource_id":"f89a13da-5997-462f-9310-22c67cee9b5d","type":"not_found"}'
179+
body: '{"message":"resource is not found","resource":"dhcp","resource_id":"422ab19f-847c-4de6-ad0f-51505f7ccfbc","type":"not_found"}'
180180
headers:
181181
Content-Length:
182182
- "125"
@@ -185,7 +185,7 @@ interactions:
185185
Content-Type:
186186
- application/json
187187
Date:
188-
- Mon, 11 Oct 2021 14:15:13 GMT
188+
- Wed, 13 Oct 2021 15:05:08 GMT
189189
Server:
190190
- Scaleway API-Gateway
191191
Strict-Transport-Security:
@@ -195,7 +195,7 @@ interactions:
195195
X-Frame-Options:
196196
- DENY
197197
X-Request-Id:
198-
- 47ad8cd5-2870-4f74-8309-91173ce40bdf
198+
- 7f5b82b7-e14a-4840-91f3-ad5ba19e8304
199199
status: 404 Not Found
200200
code: 404
201201
duration: ""
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,197 @@
1+
---
2+
version: 1
3+
interactions:
4+
- request:
5+
body: '{"project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"tf-pn-musing-elion","tags":[],"type":"VPC-GW-S","upstream_dns_servers":[],"ip_id":null}'
6+
form: {}
7+
headers:
8+
Content-Type:
9+
- application/json
10+
User-Agent:
11+
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.16.6; darwin; amd64) terraform-provider/develop terraform/terraform-tests
12+
url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways
13+
method: POST
14+
response:
15+
body: '{"id":"9db05863-9340-4ecd-b414-689aff7a7f2a","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","created_at":"2021-08-05T09:28:08.379929Z","updated_at":"2021-08-05T09:28:08.379929Z","type":{"name":"VPC-GW-S","bandwidth":100000000,"zone":"fr-par-1"},"status":"stopped","name":"tf-pn-musing-elion","tags":[],"ip":{"id":"36704e51-2500-43e1-8fb5-f94e31c1c5e7","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","created_at":"2021-08-05T09:28:08.354017Z","updated_at":"2021-08-05T09:28:08.354017Z","tags":[],"address":"163.172.134.134","reverse":null,"zone":"fr-par-1"},"gateway_networks":[],"upstream_dns_servers":[],"version":null,"can_upgrade_to":null,"zone":"fr-par-1"}'
16+
headers:
17+
Content-Length:
18+
- "784"
19+
Content-Security-Policy:
20+
- default-src 'none'; frame-ancestors 'none'
21+
Content-Type:
22+
- application/json
23+
Date:
24+
- Thu, 05 Aug 2021 09:28:08 GMT
25+
Server:
26+
- Scaleway API-Gateway
27+
Strict-Transport-Security:
28+
- max-age=63072000
29+
X-Content-Type-Options:
30+
- nosniff
31+
X-Frame-Options:
32+
- DENY
33+
X-Request-Id:
34+
- 410c9685-b1cc-4de6-82fd-24f88e842582
35+
status: 200 OK
36+
code: 200
37+
duration: ""
38+
- request:
39+
body: ""
40+
form: {}
41+
headers:
42+
User-Agent:
43+
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.16.6; darwin; amd64) terraform-provider/develop terraform/terraform-tests
44+
url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways/9db05863-9340-4ecd-b414-689aff7a7f2a
45+
method: GET
46+
response:
47+
body: '{"id":"9db05863-9340-4ecd-b414-689aff7a7f2a","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","created_at":"2021-08-05T09:28:08.379929Z","updated_at":"2021-08-05T09:28:08.430666Z","type":{"name":"VPC-GW-S","bandwidth":100000000,"zone":"fr-par-1"},"status":"stopped","name":"tf-pn-musing-elion","tags":[],"ip":{"id":"36704e51-2500-43e1-8fb5-f94e31c1c5e7","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","created_at":"2021-08-05T09:28:08.354017Z","updated_at":"2021-08-05T09:28:08.354017Z","tags":[],"address":"163.172.134.134","reverse":null,"zone":"fr-par-1"},"gateway_networks":[],"upstream_dns_servers":[],"version":"0.2.10","can_upgrade_to":null,"zone":"fr-par-1"}'
48+
headers:
49+
Content-Length:
50+
- "788"
51+
Content-Security-Policy:
52+
- default-src 'none'; frame-ancestors 'none'
53+
Content-Type:
54+
- application/json
55+
Date:
56+
- Thu, 05 Aug 2021 09:28:08 GMT
57+
Server:
58+
- Scaleway API-Gateway
59+
Strict-Transport-Security:
60+
- max-age=63072000
61+
X-Content-Type-Options:
62+
- nosniff
63+
X-Frame-Options:
64+
- DENY
65+
X-Request-Id:
66+
- 9745bd5c-7830-43e4-b848-46c8d504b045
67+
status: 200 OK
68+
code: 200
69+
duration: ""
70+
- request:
71+
body: ""
72+
form: {}
73+
headers:
74+
User-Agent:
75+
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.16.6; darwin; amd64) terraform-provider/develop terraform/terraform-tests
76+
url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways/9db05863-9340-4ecd-b414-689aff7a7f2a
77+
method: GET
78+
response:
79+
body: '{"id":"9db05863-9340-4ecd-b414-689aff7a7f2a","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","created_at":"2021-08-05T09:28:08.379929Z","updated_at":"2021-08-05T09:28:08.430666Z","type":{"name":"VPC-GW-S","bandwidth":100000000,"zone":"fr-par-1"},"status":"stopped","name":"tf-pn-musing-elion","tags":[],"ip":{"id":"36704e51-2500-43e1-8fb5-f94e31c1c5e7","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","created_at":"2021-08-05T09:28:08.354017Z","updated_at":"2021-08-05T09:28:08.354017Z","tags":[],"address":"163.172.134.134","reverse":null,"zone":"fr-par-1"},"gateway_networks":[],"upstream_dns_servers":[],"version":"0.2.10","can_upgrade_to":null,"zone":"fr-par-1"}'
80+
headers:
81+
Content-Length:
82+
- "788"
83+
Content-Security-Policy:
84+
- default-src 'none'; frame-ancestors 'none'
85+
Content-Type:
86+
- application/json
87+
Date:
88+
- Thu, 05 Aug 2021 09:28:08 GMT
89+
Server:
90+
- Scaleway API-Gateway
91+
Strict-Transport-Security:
92+
- max-age=63072000
93+
X-Content-Type-Options:
94+
- nosniff
95+
X-Frame-Options:
96+
- DENY
97+
X-Request-Id:
98+
- 63843a50-1aaa-4cf1-9171-66a646d833b1
99+
status: 200 OK
100+
code: 200
101+
duration: ""
102+
- request:
103+
body: '{"gateway_id":"fr-par-1/9db05863-9340-4ecd-b414-689aff7a7f2a","public_port":8080,"private_ip":"192.168.0.1","private_port":8080,"protocol":"both"}'
104+
form: {}
105+
headers:
106+
Content-Type:
107+
- application/json
108+
User-Agent:
109+
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.16.6; darwin; amd64) terraform-provider/develop terraform/terraform-tests
110+
url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/pat-rules
111+
method: POST
112+
response:
113+
body: '{"details":[{"argument_name":"gateway_id","help_message":"uuid: {}","reason":"unknown"}],"message":"invalid argument(s)","type":"invalid_arguments"}'
114+
headers:
115+
Content-Length:
116+
- "148"
117+
Content-Security-Policy:
118+
- default-src 'none'; frame-ancestors 'none'
119+
Content-Type:
120+
- application/json
121+
Date:
122+
- Thu, 05 Aug 2021 09:28:08 GMT
123+
Server:
124+
- Scaleway API-Gateway
125+
Strict-Transport-Security:
126+
- max-age=63072000
127+
X-Content-Type-Options:
128+
- nosniff
129+
X-Frame-Options:
130+
- DENY
131+
X-Request-Id:
132+
- 0eca961a-654f-4c62-9074-252b627065ab
133+
status: 400 Bad Request
134+
code: 400
135+
duration: ""
136+
- request:
137+
body: ""
138+
form: {}
139+
headers:
140+
User-Agent:
141+
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.16.6; darwin; amd64) terraform-provider/develop terraform/terraform-tests
142+
url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways/9db05863-9340-4ecd-b414-689aff7a7f2a
143+
method: DELETE
144+
response:
145+
body: ""
146+
headers:
147+
Content-Security-Policy:
148+
- default-src 'none'; frame-ancestors 'none'
149+
Content-Type:
150+
- application/json
151+
Date:
152+
- Thu, 05 Aug 2021 09:28:09 GMT
153+
Server:
154+
- Scaleway API-Gateway
155+
Strict-Transport-Security:
156+
- max-age=63072000
157+
X-Content-Type-Options:
158+
- nosniff
159+
X-Frame-Options:
160+
- DENY
161+
X-Request-Id:
162+
- e640aa7b-e1d6-4ca2-94a2-b5d4c1d896e3
163+
status: 204 No Content
164+
code: 204
165+
duration: ""
166+
- request:
167+
body: ""
168+
form: {}
169+
headers:
170+
User-Agent:
171+
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.16.6; darwin; amd64) terraform-provider/develop terraform/terraform-tests
172+
url: https://api.scaleway.com/vpc-gw/v1beta1/zones/fr-par-1/gateways/9db05863-9340-4ecd-b414-689aff7a7f2a
173+
method: GET
174+
response:
175+
body: '{"message":"resource is not found","resource":"gateway","resource_id":"9db05863-9340-4ecd-b414-689aff7a7f2a","type":"not_found"}'
176+
headers:
177+
Content-Length:
178+
- "128"
179+
Content-Security-Policy:
180+
- default-src 'none'; frame-ancestors 'none'
181+
Content-Type:
182+
- application/json
183+
Date:
184+
- Thu, 05 Aug 2021 09:28:09 GMT
185+
Server:
186+
- Scaleway API-Gateway
187+
Strict-Transport-Security:
188+
- max-age=63072000
189+
X-Content-Type-Options:
190+
- nosniff
191+
X-Frame-Options:
192+
- DENY
193+
X-Request-Id:
194+
- 32cc06f0-45a8-412e-ba4c-350307fb3701
195+
status: 404 Not Found
196+
code: 404
197+
duration: ""

0 commit comments

Comments
 (0)