Skip to content

Commit c41762e

Browse files
Merge pull request #67 from Dorthu/document-moved-ips
Documents moving networking/ipv4 to networking/ips
2 parents dc6c9b3 + b971a7d commit c41762e

File tree

4 files changed

+29
-67
lines changed

4 files changed

+29
-67
lines changed

src/data/endpoints/networking.yaml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,32 @@ sort: 1
44
description: >
55
Networking endpoints provide a means of viewing networking objects.
66
endpoints:
7-
/networking/ipv4:
8-
group: IPv4
7+
/networking/ips:
8+
group: IPs
99
authenticated: true
1010
description: >
11-
View and manage IPv4 Addresses you own.
11+
View and manage IP Addresses you own.
1212
methods:
1313
GET:
1414
response: ipaddress
15-
paginationKey: ipv4
15+
paginationKey: data
1616
oauth: ips:view
1717
description: >
18-
Returns a list of IPv4 Addresses.
18+
Returns a list of IP Addresses, including v4 and slaac addresses.
1919
examples:
2020
curl: |
2121
curl -H "Authorization: Bearer $TOKEN" \
22-
https://$api_root/$version/networking/ipv4
23-
python: |
24-
my_ipv4s = client.networking.get_ipv4()
22+
https://$api_root/$version/networking/ips
2523
POST:
2624
money: true
2725
oauth: ips:create
2826
description: >
2927
Create a new Public IPv4 Address.
3028
params:
29+
type:
30+
type: String
31+
description: >
32+
The type of IP to allocate. Currently only "ipv4" is supported.
3133
linode_id:
3234
description: >
3335
The Linode ID to assign this IP to.
@@ -36,38 +38,36 @@ endpoints:
3638
curl: |
3739
curl -H "Content-Type: application/json" \
3840
-H "Authorization: Bearer $TOKEN" \
39-
-X POST -d '{"linode":123}' \
40-
https://$api_root/$version/networking/ipv4
41-
python: |
42-
# presently unsupported
43-
/networking/ipv4/$address:
44-
group: IPv4
41+
-X POST -d '{"type":"ipv4","linode":123}' \
42+
https://$api_root/$version/networking/ips
43+
/networking/ips/$address:
44+
group: IPs
4545
type: resource
4646
authenticated: true
4747
description: >
48-
Manage a single IPv4 Address.
48+
Manage a single IP Address.
4949
methods:
5050
GET:
5151
response: ipaddress
5252
oauth: ips:get
5353
description: >
54-
Returns a single IPv4 Address.
54+
Returns a single IP Address.
5555
examples:
5656
curl: |
5757
curl -H "Authorization: Bearer $TOKEN" \
58-
https://$api_root/$version/networking/ipv4/97.107.143.37
58+
https://$api_root/$version/networking/ips/97.107.143.37
5959
python: |
6060
my_ipv4 = linode.IPAddress(client, '97.107.143.37')
6161
PUT:
6262
oauth: ips:modify
6363
description: >
64-
Update RDNS on one IPv4 Address. Set RDNS to null to reset.
64+
Update RDNS on one IP Address. Set RDNS to null to reset.
6565
examples:
6666
curl: |
6767
curl -H "Content-Type: application/json" \
6868
-H "Authorization: Bearer $TOKEN" \
6969
-X PUT -d '{"rdns":"example.org"}' \
70-
https://$api_root/$version/networking/ipv4/97.107.143.37
70+
https://$api_root/$version/networking/ips/97.107.143.37
7171
python: |
7272
my_ipv4.rdns = 'example.org'
7373
my_ipv4.save()
@@ -79,7 +79,7 @@ endpoints:
7979
curl: |
8080
curl -H "Authorization: Bearer $TOKEN" \
8181
-X DELETE \
82-
https://$api_root/$version/networking/ipv4/97.107.143.37
82+
https://$api_root/$version/networking/ips/97.107.143.37
8383
/networking/ipv6:
8484
group: IPv6
8585
authenticated: true

src/data/objects/ipaddress.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
name: IPv4 Address
1+
name: IP Address
22
description: >
3-
An IPv4 Address
3+
An IP Address
44
schema:
55
address:
66
type: String
@@ -21,11 +21,11 @@ schema:
2121
rdns:
2222
editable: true
2323
type: String
24-
value: null
24+
value: "example.org"
2525
description: Reverse DNS address for this IP Address. Null to reset.
2626
region:
2727
type: String
28-
value: us-east-1a
28+
value: us-east
2929
description: The region this IP is in.
3030
subnet_mask:
3131
type: String
@@ -40,3 +40,6 @@ enums:
4040
IPAddressType:
4141
public: Public IP Address.
4242
private: Internal IP Addresses (192.168 range).
43+
slaac: A Linode's slaac address. These may not be transferred between Linodes.
44+
link-local: A Linode's link local address. These may not be transferred
45+
between linodes.

src/data/objects/ipv6-address.yaml

Lines changed: 0 additions & 41 deletions
This file was deleted.

src/data/objects/linodenetworking.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ schema:
1919
ipv6:
2020
description: The Linode's IPv6 networking data.
2121
addresses:
22-
type: ipv6-address
22+
type: ipaddress
2323
isArray: true
2424
slaac:
25-
type: ipv6-address
25+
type: ipaddress
2626
description: >
2727
This Linode's SLAAC range.
2828
link_local:

0 commit comments

Comments
 (0)