Skip to content

Commit 48ff2f2

Browse files
author
Josh Sager
committed
brk: Moved /linode/instances/$id/sharing to /networking/ip-sharing
* Endpoint is now /networking/ip-sharing * linode_id is now a required field, in addition to current ips field
1 parent 88bf061 commit 48ff2f2

File tree

2 files changed

+29
-19
lines changed

2 files changed

+29
-19
lines changed

src/data/endpoints/linodes.yaml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -926,25 +926,6 @@ endpoints:
926926
"type": "private"
927927
}' \
928928
https://$api_root/$version/linode/instances/$linode_id/ips
929-
/linode/instances/$id/ips/sharing:
930-
group: IPs
931-
methods:
932-
POST:
933-
description: >
934-
Sets IP Sharing for this Linode.
935-
params:
936-
ips:
937-
type: String
938-
description: >
939-
A list of IP Addresses this Linode will share.
940-
examples:
941-
curl: |
942-
curl -H "Content-Type: application/json" \
943-
-H "Authorization: Bearer $TOKEN" \
944-
-X POST -d '{
945-
"ips": [ "97.107.143.29", "97.107.143.112" ]
946-
}' \
947-
https://$api_root/$version/linode/instances/$linode_id/ips/sharing
948929
/linode/instances/$id/ips/$ip_address:
949930
group: IPs
950931
type: Action

src/data/endpoints/networking.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,32 @@ endpoints:
174174
ip2 = linode_2.ips.ipv4.public[0]
175175
176176
client.networking.assign_ips(linode_1.region, ip1.to(linode_2), ip2.to(linode_1))
177+
/networking/ip-sharing:
178+
group: IPv4
179+
type: Strange
180+
authenticated: true
181+
description: >
182+
Set IP sharing for a Linode.
183+
methods:
184+
POST:
185+
description: >
186+
Sets IP Sharing for this Linode.
187+
params:
188+
linode_id:
189+
type: Integer
190+
description: >
191+
The ID of the Linode to set up IP sharing for.
192+
ips:
193+
type: String
194+
description: >
195+
A list of IP Addresses this Linode will share.
196+
examples:
197+
curl: |
198+
curl -H "Content-Type: application/json" \
199+
-H "Authorization: Bearer $TOKEN" \
200+
-X POST -d '{
201+
"linode_id": 12345,
202+
"ips": [ "97.107.143.29", "97.107.143.112" ]
203+
}' \
204+
https://$api_root/$version/networking/ip-sharing
205+

0 commit comments

Comments
 (0)