Skip to content

Commit f88620e

Browse files
adding GetVLANIPAMAddress helper function (#264)
1 parent bf1276f commit f88620e

File tree

6 files changed

+401
-29
lines changed

6 files changed

+401
-29
lines changed
File renamed without changes.
File renamed without changes.
Lines changed: 316 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,316 @@
1+
---
2+
version: 1
3+
interactions:
4+
- request:
5+
body: '{"region":"us-southeast","type":"g6-nanode-1","label":"linodego-testing-vlan-ipamaddress","root_pass":"R34lBAdP455","image":"linode/debian9","interfaces":[{"ipam_address":"10.0.0.1/24","label":"linodego-really-cool-vlan-ipamaddress","purpose":"vlan"}],"booted":true}'
6+
form: {}
7+
headers:
8+
Accept:
9+
- application/json
10+
Content-Type:
11+
- application/json
12+
User-Agent:
13+
- linodego/dev https://github.com/linode/linodego
14+
url: https://api.linode.com/v4beta/linode/instances
15+
method: POST
16+
response:
17+
body: '{"id": 37252898, "label": "linodego-testing-vlan-ipamaddress", "group":
18+
"", "status": "provisioning", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05",
19+
"type": "g6-nanode-1", "ipv4": ["139.144.29.173"], "ipv6": "1234::5678/128",
20+
"image": "linode/debian9", "region": "us-southeast", "specs": {"disk": 25600,
21+
"memory": 1024, "vcpus": 1, "gpus": 0, "transfer": 1000}, "alerts": {"cpu":
22+
90, "network_in": 10, "network_out": 10, "transfer_quota": 80, "io": 10000},
23+
"backups": {"enabled": false, "schedule": {"day": null, "window": null}, "last_successful":
24+
null}, "hypervisor": "kvm", "watchdog_enabled": true, "tags": []}'
25+
headers:
26+
Access-Control-Allow-Credentials:
27+
- "true"
28+
Access-Control-Allow-Headers:
29+
- Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter
30+
Access-Control-Allow-Methods:
31+
- HEAD, GET, OPTIONS, POST, PUT, DELETE
32+
Access-Control-Allow-Origin:
33+
- '*'
34+
Access-Control-Expose-Headers:
35+
- X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status
36+
Cache-Control:
37+
- private, max-age=60, s-maxage=60
38+
Content-Length:
39+
- "655"
40+
Content-Security-Policy:
41+
- default-src 'none'
42+
Content-Type:
43+
- application/json
44+
Server:
45+
- nginx
46+
Strict-Transport-Security:
47+
- max-age=31536000
48+
Vary:
49+
- Authorization, X-Filter
50+
X-Accepted-Oauth-Scopes:
51+
- linodes:read_write
52+
X-Content-Type-Options:
53+
- nosniff
54+
X-Frame-Options:
55+
- DENY
56+
- DENY
57+
X-Oauth-Scopes:
58+
- '*'
59+
X-Ratelimit-Limit:
60+
- "10"
61+
X-Xss-Protection:
62+
- 1; mode=block
63+
status: 200 OK
64+
code: 200
65+
duration: ""
66+
- request:
67+
body: ""
68+
form: {}
69+
headers:
70+
Accept:
71+
- application/json
72+
Content-Type:
73+
- application/json
74+
User-Agent:
75+
- linodego/dev https://github.com/linode/linodego
76+
url: https://api.linode.com/v4beta/linode/instances/37252898
77+
method: GET
78+
response:
79+
body: '{"id": 37252898, "label": "linodego-testing-vlan-ipamaddress", "group":
80+
"", "status": "booting", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05",
81+
"type": "g6-nanode-1", "ipv4": ["139.144.29.173"], "ipv6": "1234::5678/128",
82+
"image": "linode/debian9", "region": "us-southeast", "specs": {"disk": 25600,
83+
"memory": 1024, "vcpus": 1, "gpus": 0, "transfer": 1000}, "alerts": {"cpu":
84+
90, "network_in": 10, "network_out": 10, "transfer_quota": 80, "io": 10000},
85+
"backups": {"enabled": false, "schedule": {"day": null, "window": null}, "last_successful":
86+
null}, "hypervisor": "kvm", "watchdog_enabled": true, "tags": []}'
87+
headers:
88+
Access-Control-Allow-Credentials:
89+
- "true"
90+
Access-Control-Allow-Headers:
91+
- Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter
92+
Access-Control-Allow-Methods:
93+
- HEAD, GET, OPTIONS, POST, PUT, DELETE
94+
Access-Control-Allow-Origin:
95+
- '*'
96+
Access-Control-Expose-Headers:
97+
- X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status
98+
Cache-Control:
99+
- private, max-age=0, s-maxage=0, no-cache, no-store
100+
- private, max-age=60, s-maxage=60
101+
Content-Length:
102+
- "650"
103+
Content-Security-Policy:
104+
- default-src 'none'
105+
Content-Type:
106+
- application/json
107+
Server:
108+
- nginx
109+
Strict-Transport-Security:
110+
- max-age=31536000
111+
Vary:
112+
- Authorization, X-Filter
113+
- Authorization, X-Filter
114+
X-Accepted-Oauth-Scopes:
115+
- linodes:read_only
116+
X-Content-Type-Options:
117+
- nosniff
118+
X-Frame-Options:
119+
- DENY
120+
- DENY
121+
X-Oauth-Scopes:
122+
- '*'
123+
X-Ratelimit-Limit:
124+
- "800"
125+
X-Xss-Protection:
126+
- 1; mode=block
127+
status: 200 OK
128+
code: 200
129+
duration: ""
130+
- request:
131+
body: ""
132+
form: {}
133+
headers:
134+
Accept:
135+
- application/json
136+
Content-Type:
137+
- application/json
138+
User-Agent:
139+
- linodego/dev https://github.com/linode/linodego
140+
url: https://api.linode.com/v4beta/linode/instances/37252898
141+
method: GET
142+
response:
143+
body: '{"id": 37252898, "label": "linodego-testing-vlan-ipamaddress", "group":
144+
"", "status": "running", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05",
145+
"type": "g6-nanode-1", "ipv4": ["139.144.29.173"], "ipv6": "1234::5678/128",
146+
"image": "linode/debian9", "region": "us-southeast", "specs": {"disk": 25600,
147+
"memory": 1024, "vcpus": 1, "gpus": 0, "transfer": 1000}, "alerts": {"cpu":
148+
90, "network_in": 10, "network_out": 10, "transfer_quota": 80, "io": 10000},
149+
"backups": {"enabled": false, "schedule": {"day": null, "window": null}, "last_successful":
150+
null}, "hypervisor": "kvm", "watchdog_enabled": true, "tags": []}'
151+
headers:
152+
Access-Control-Allow-Credentials:
153+
- "true"
154+
Access-Control-Allow-Headers:
155+
- Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter
156+
Access-Control-Allow-Methods:
157+
- HEAD, GET, OPTIONS, POST, PUT, DELETE
158+
Access-Control-Allow-Origin:
159+
- '*'
160+
Access-Control-Expose-Headers:
161+
- X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status
162+
Cache-Control:
163+
- private, max-age=0, s-maxage=0, no-cache, no-store
164+
- private, max-age=60, s-maxage=60
165+
Content-Length:
166+
- "650"
167+
Content-Security-Policy:
168+
- default-src 'none'
169+
Content-Type:
170+
- application/json
171+
Server:
172+
- nginx
173+
Strict-Transport-Security:
174+
- max-age=31536000
175+
Vary:
176+
- Authorization, X-Filter
177+
- Authorization, X-Filter
178+
X-Accepted-Oauth-Scopes:
179+
- linodes:read_only
180+
X-Content-Type-Options:
181+
- nosniff
182+
X-Frame-Options:
183+
- DENY
184+
- DENY
185+
X-Oauth-Scopes:
186+
- '*'
187+
X-Ratelimit-Limit:
188+
- "800"
189+
X-Xss-Protection:
190+
- 1; mode=block
191+
status: 200 OK
192+
code: 200
193+
duration: ""
194+
- request:
195+
body: ""
196+
form: {}
197+
headers:
198+
Accept:
199+
- application/json
200+
Content-Type:
201+
- application/json
202+
User-Agent:
203+
- linodego/dev https://github.com/linode/linodego
204+
X-Filter:
205+
- '{"interfaces":"linodego-really-cool-vlan-ipamaddress"}'
206+
url: https://api.linode.com/v4beta/linode/instances/37252898/configs
207+
method: GET
208+
response:
209+
body: '{"data": [{"id": 39674671, "label": "My Debian 9 Disk Profile", "helpers":
210+
{"updatedb_disabled": true, "distro": true, "modules_dep": true, "network":
211+
true, "devtmpfs_automount": true}, "kernel": "linode/grub2", "comments": "",
212+
"memory_limit": 0, "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05",
213+
"root_device": "/dev/sda", "devices": {"sda": {"disk_id": 74805750, "volume_id":
214+
null}, "sdb": {"disk_id": 74805751, "volume_id": null}, "sdc": null, "sdd":
215+
null, "sde": null, "sdf": null, "sdg": null, "sdh": null}, "initrd": null, "run_level":
216+
"default", "virt_mode": "paravirt", "interfaces": [{"purpose": "vlan", "ipam_address":
217+
"10.0.0.1/24", "label": "linodego-really-cool-vlan-ipamaddress"}]}], "page":
218+
1, "pages": 1, "results": 1}'
219+
headers:
220+
Access-Control-Allow-Credentials:
221+
- "true"
222+
Access-Control-Allow-Headers:
223+
- Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter
224+
Access-Control-Allow-Methods:
225+
- HEAD, GET, OPTIONS, POST, PUT, DELETE
226+
Access-Control-Allow-Origin:
227+
- '*'
228+
Access-Control-Expose-Headers:
229+
- X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status
230+
Cache-Control:
231+
- private, max-age=0, s-maxage=0, no-cache, no-store
232+
- private, max-age=60, s-maxage=60
233+
Content-Length:
234+
- "752"
235+
Content-Security-Policy:
236+
- default-src 'none'
237+
Content-Type:
238+
- application/json
239+
Server:
240+
- nginx
241+
Strict-Transport-Security:
242+
- max-age=31536000
243+
Vary:
244+
- Authorization, X-Filter
245+
- Authorization, X-Filter
246+
X-Accepted-Oauth-Scopes:
247+
- linodes:read_only
248+
X-Content-Type-Options:
249+
- nosniff
250+
X-Frame-Options:
251+
- DENY
252+
- DENY
253+
X-Oauth-Scopes:
254+
- '*'
255+
X-Ratelimit-Limit:
256+
- "800"
257+
X-Xss-Protection:
258+
- 1; mode=block
259+
status: 200 OK
260+
code: 200
261+
duration: ""
262+
- request:
263+
body: ""
264+
form: {}
265+
headers:
266+
Accept:
267+
- application/json
268+
Content-Type:
269+
- application/json
270+
User-Agent:
271+
- linodego/dev https://github.com/linode/linodego
272+
url: https://api.linode.com/v4beta/linode/instances/37252898
273+
method: DELETE
274+
response:
275+
body: '{}'
276+
headers:
277+
Access-Control-Allow-Credentials:
278+
- "true"
279+
Access-Control-Allow-Headers:
280+
- Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter
281+
Access-Control-Allow-Methods:
282+
- HEAD, GET, OPTIONS, POST, PUT, DELETE
283+
Access-Control-Allow-Origin:
284+
- '*'
285+
Access-Control-Expose-Headers:
286+
- X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status
287+
Cache-Control:
288+
- private, max-age=60, s-maxage=60
289+
Content-Length:
290+
- "2"
291+
Content-Security-Policy:
292+
- default-src 'none'
293+
Content-Type:
294+
- application/json
295+
Server:
296+
- nginx
297+
Strict-Transport-Security:
298+
- max-age=31536000
299+
Vary:
300+
- Authorization, X-Filter
301+
X-Accepted-Oauth-Scopes:
302+
- linodes:read_write
303+
X-Content-Type-Options:
304+
- nosniff
305+
X-Frame-Options:
306+
- DENY
307+
- DENY
308+
X-Oauth-Scopes:
309+
- '*'
310+
X-Ratelimit-Limit:
311+
- "800"
312+
X-Xss-Protection:
313+
- 1; mode=block
314+
status: 200 OK
315+
code: 200
316+
duration: ""

0 commit comments

Comments
 (0)