File tree Expand file tree Collapse file tree 6 files changed +125
-23
lines changed Expand file tree Collapse file tree 6 files changed +125
-23
lines changed Original file line number Diff line number Diff line change @@ -869,23 +869,27 @@ endpoints:
869
869
money : true
870
870
oauth : linodes:modify
871
871
description : >
872
- Allocates a new IP Address for this Linode.
872
+ Allocates a new IPv4 Address for this Linode.
873
873
params :
874
874
type :
875
- description : >
876
- The type of IP Address this is, can be one of "public" or "private".
877
- Public IP Addresses, over and above the one included with each Linode,
878
- incur an additional monthly charge. If you need an additional Public IP Address
879
- you must request one - please open a ticket.
880
875
type : String
881
- value : private
876
+ description : >
877
+ The type of IP to allocate. Currently only "ipv4" is supported.
878
+ value : ipv4
879
+ public :
880
+ type : Boolean
881
+ description : >
882
+ Whether this is a public or private IP address.
883
+ Public IP Addresses, over and above the one included with each
884
+ Linode, incur an additional monthly charge. If you need an
885
+ additional Public IP Address you must request one - please
886
+ open a ticket.
887
+ value : true
882
888
examples :
883
889
curl : |
884
890
curl -H "Content-Type: application/json" \
885
891
-H "Authorization: Bearer $TOKEN" \
886
- -X POST -d '{
887
- "type": "private"
888
- }' \
892
+ -X POST -d '{"type": "ipv4", "public":true}' \
889
893
https://$api_root/$version/linode/instances/$linode_id/ips
890
894
/linode/instances/$id/ips/$ip_address :
891
895
group : IPs
Original file line number Diff line number Diff line change @@ -22,24 +22,36 @@ endpoints:
22
22
curl -H "Authorization: Bearer $TOKEN" \
23
23
https://$api_root/$version/networking/ips
24
24
POST :
25
+ response : ipaddress
25
26
money : true
26
27
oauth : ips:create
27
28
description : >
28
- Create a new Public IPv4 Address.
29
+ Create a new IPv4 Address.
29
30
params :
30
31
type :
31
32
type : String
32
33
description : >
33
- The type of IP to allocate. Currently only "ipv4" is supported.
34
+ The type of IP to allocate. Currently only "ipv4" is supported.
35
+ value : ipv4
36
+ public :
37
+ type : Boolean
38
+ description : >
39
+ Whether this is a public or private IP address.
40
+ Public IP Addresses, over and above the one included with each
41
+ Linode, incur an additional monthly charge. If you need an
42
+ additional Public IP Address you must request one - please
43
+ open a ticket.
44
+ value : true
34
45
linode_id :
46
+ type : Integer
35
47
description : >
36
48
The Linode ID to assign this IP to.
37
- type : Integer
49
+ value : 123
38
50
examples :
39
51
curl : |
40
52
curl -H "Content-Type: application/json" \
41
53
-H "Authorization: Bearer $TOKEN" \
42
- -X POST -d '{"type":"ipv4","linode":123}' \
54
+ -X POST -d '{"type":"ipv4", "public":true, "linode":123}' \
43
55
https://$api_root/$version/networking/ips
44
56
/networking/ips/$address :
45
57
group : IPs
Original file line number Diff line number Diff line change 1
1
name : IP Address
2
2
description : >
3
- An IP Address
3
+ An IPv4 Address
4
4
schema :
5
5
address :
6
6
type : String
@@ -26,16 +26,19 @@ schema:
26
26
region :
27
27
type : String
28
28
value : us-east
29
- description : The region this IP is in.
29
+ description : The Region this IP is in.
30
30
subnet_mask :
31
31
type : String
32
32
value : 255.255.255.0
33
33
description : The subnet mask.
34
+ public :
35
+ type : Boolean
36
+ value : true
37
+ description : Whether this is a public or private IP address.
34
38
type :
35
- type : Enum
36
- subtype : IPAddressType
37
- value : public
38
- description : The type of IP Address, either public or private.
39
+ type : String
40
+ description : The type of IP Address.
41
+ value : ipv4
39
42
enums :
40
43
IPAddressType :
41
44
public : Public IP Address.
Original file line number Diff line number Diff line change
1
+ name : IP Address
2
+ description : >
3
+ An IPv6 Address - link_local
4
+ schema :
5
+ address :
6
+ type : String
7
+ value : fe80::f03c:91ff:fe24:3a2f
8
+ description : The IP Address.
9
+ gateway :
10
+ type : String
11
+ value : fe80::1
12
+ description : The default gateway.
13
+ linode_id :
14
+ type : Integer
15
+ value : 42
16
+ description : The Linode this IP is associated with.
17
+ prefix :
18
+ type : String
19
+ value : 64
20
+ description : The network prefix.
21
+ rdns :
22
+ editable : true
23
+ type : String
24
+ value : null
25
+ description : Reverse DNS address for this IP Address. Null to reset.
26
+ region :
27
+ type : String
28
+ value : us-east
29
+ description : The Region this IP is in.
30
+ subnet_mask :
31
+ type : String
32
+ value : ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
33
+ description : The subnet mask.
34
+ public :
35
+ type : Boolean
36
+ value : false
37
+ description : Whether this is a public or private IP address.
38
+ type :
39
+ type : String
40
+ description : The type of IP Address.
41
+ value : ipv6
42
+
Original file line number Diff line number Diff line change
1
+ name : IP Address
2
+ description : >
3
+ An IPv6 Address - slaac
4
+ schema :
5
+ address :
6
+ type : String
7
+ value : 2600:3c03::f03c:91ff:fe24:3a2f
8
+ description : The IP Address.
9
+ gateway :
10
+ type : String
11
+ value : fe80::1
12
+ description : The default gateway.
13
+ linode_id :
14
+ type : Integer
15
+ value : 42
16
+ description : The Linode this IP is associated with.
17
+ prefix :
18
+ type : String
19
+ value : 64
20
+ description : The network prefix.
21
+ rdns :
22
+ editable : true
23
+ type : String
24
+ value : " example.org"
25
+ description : Reverse DNS address for this IP Address. Null to reset.
26
+ region :
27
+ type : String
28
+ value : us-east
29
+ description : The Region this IP is in.
30
+ subnet_mask :
31
+ type : String
32
+ value : ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
33
+ description : The subnet mask.
34
+ public :
35
+ type : Boolean
36
+ value : true
37
+ description : Whether this is a public or private IP address.
38
+ type :
39
+ type : String
40
+ description : The type of IP Address.
41
+ value : ipv6
42
+
Original file line number Diff line number Diff line change @@ -19,12 +19,11 @@ schema:
19
19
ipv6 :
20
20
description : The Linode's IPv6 networking data.
21
21
slaac :
22
- type : ipaddress
22
+ type : ipaddressv6slaac
23
23
description : >
24
24
This Linode's SLAAC range.
25
25
link_local :
26
- type : String
27
- value : f300::f03c:91ff:fe96:46da
26
+ type : ipaddressv6linklocal
28
27
description : >
29
28
This Linode's link-local range.
30
29
global :
You can’t perform that action at this time.
0 commit comments