Skip to content

Commit bed9b33

Browse files
authored
Merge pull request #60 from yoshizzle/moveIPSharing
brk: Moved /linode/instances/$id/sharing to /networking/ip-sharing
2 parents 1de0d04 + cfb8b87 commit bed9b33

File tree

2 files changed

+30
-19
lines changed

2 files changed

+30
-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: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,33 @@ 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: Array
194+
subtype: string
195+
description: >
196+
A list of IP Addresses this Linode will share.
197+
examples:
198+
curl: |
199+
curl -H "Content-Type: application/json" \
200+
-H "Authorization: Bearer $TOKEN" \
201+
-X POST -d '{
202+
"linode_id": 12345,
203+
"ips": [ "97.107.143.29", "97.107.143.112" ]
204+
}' \
205+
https://$api_root/$version/networking/ip-sharing
206+

0 commit comments

Comments
 (0)