Skip to content

Commit f7aa0b0

Browse files
committed
Add DELETE /networking/ipv6/ranges/<range>
1 parent 0d38c0e commit f7aa0b0

File tree

1 file changed

+61
-9
lines changed

1 file changed

+61
-9
lines changed

openapi.yaml

Lines changed: 61 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10200,6 +10200,7 @@ paths:
1020010200
* All Linodes involved must have at least one public IPv4 address after assignment.
1020110201
* Linodes may have no more than one assigned private IPv4 address.
1020210202
* Linodes may have no more than one assigned IPv6 range.
10203+
* [Open a Support Ticket](/docs/api/support/#support-ticket-open) to request expansion of these restrictions.
1020310204
operationId: assignIPs
1020410205
x-linode-cli-action: ip-assign
1020510206
security:
@@ -10230,16 +10231,20 @@ paths:
1023010231
The list of assignments to make. You must have read_write
1023110232
access to all IPs being assigned and all Linodes being
1023210233
assigned to in order for the assignments to succeed.
10234+
required:
10235+
- address
10236+
- linode_id
1023310237
items:
1023410238
type: object
1023510239
properties:
1023610240
address:
1023710241
type: string
10238-
format: ip
10242+
format: ipv4|ipv6/prefix_length
1023910243
description: |
1024010244
The IPv4 address or IPv6 range for this assignment.
1024110245
* Must be an IPv4 address or an IPv6 range you can access in the Region specified.
10242-
* IPv6 ranges must include a subnet prefix and prefix length of `/56` or `/64`, for example: `2001:db8:3c4d:15::/64`.
10246+
* IPv6 ranges must include a prefix length of `/56` or `/64`, for example: `2001:db8:3c4d:15::/64`.
10247+
* Assignment of an IPv6 range to a Linode updates the route target of the range to the assigned Linode's SLAAC address.
1024310248
* May be a public or private address.
1024410249
example: 12.34.56.78
1024510250
linode_id:
@@ -10297,7 +10302,7 @@ paths:
1029710302
Linodes. When the assignment is finished, all Linodes must end up with
1029810303
at least one public IPv4 and no more than one private IPv4.
1029910304

10300-
To assign IPv6 ranges or to use the CLI, see the Linodes Assign IPs ([POST /networking/ips/assign](/docs/api/networking/#linodes-assign-ips)) endpoint.
10305+
To assign IPv6 ranges or to use the CLI, see the Linodes Assign IPs ([POST /networking/ips/assign](/docs/api/networking/#linodes-assign-ips)) command.
1030110306
operationId: assignIPv4s
1030210307
x-linode-cli-skip: true
1030310308
security:
@@ -10328,6 +10333,9 @@ paths:
1032810333
The list of assignments to make. You must have read_write
1032910334
access to all IPs being assigned and all Linodes being
1033010335
assigned to in order for the assignments to succeed.
10336+
required:
10337+
- address
10338+
- linode_id
1033110339
items:
1033210340
type: object
1033310341
properties:
@@ -10552,22 +10560,23 @@ paths:
1055210560
summary: IPv6 Range Create
1055310561
description: |
1055410562
Creates an IPv6 Range and assigns it based on the provided Linode or route target IPv6 SLAAC address. See the `ipv6` property when accessing the Linode View ([GET /linode/instances/{linodeId}](/docs/api/linode-instances/#linode-view)) endpoint to view a Linode's IPv6 SLAAC address.
10555-
1055610563
* Either `linode_id` or `route_target` is required in a request.
10557-
1055810564
* `linode_id` and `route_target` are mutually exclusive. Submitting values for both properties in a request results in an error.
10559-
1056010565
* Upon a successful request, an IPv6 range is created in the [Region](/docs/api/regions/#regions-list) that corresponds to the provided `linode_id` or `route_target`.
10561-
1056210566
* Your Linode is responsible for routing individual addresses in the range, or handling traffic for all the addresses in the range.
10563-
1056410567
* Access the Linodes Assign IPs ([POST /networking/ips/assign](/docs/api/networking/#linodes-assign-ips)) endpoint to re-assign IPv6 Ranges to your Linodes.
10568+
10569+
**Note**: The following restrictions apply:
10570+
* A Linode can only have one IPv6 range targeting its SLAAC address.
10571+
* An account can only have one IPv6 range in each [Region](/docs/api/regions/#regions-list).
10572+
* [Open a Support Ticket](/docs/api/support/#support-ticket-open) to request expansion of these restrictions.
1056510573
operationId: postIPv6Range
1056610574
x-linode-cli-action: v6-range-create
1056710575
security:
1056810576
- personalAccessToken: []
1056910577
- oauth:
1057010578
- ips:read_write
10579+
- linodes:read_write
1057110580
requestBody:
1057210581
description: >
1057310582
Information about the IPv6 range to create.
@@ -10608,7 +10617,7 @@ paths:
1060810617
example: 2001:0db8::1
1060910618
responses:
1061010619
'200':
10611-
description: The IPv6 ranges on your Account.
10620+
description: IPv6 range created successfully.
1061210621
content:
1061310622
application/json:
1061410623
schema:
@@ -10642,6 +10651,49 @@ paths:
1064210651
linode-cli networking v6-range-create \
1064310652
--linode_id 123 \
1064410653
--prefix_length 64
10654+
/networking/ipv6/ranges/<range>:
10655+
parameters:
10656+
- name: range
10657+
in: path
10658+
description: |
10659+
The IPv6 range to access. Corresponds to the `range` property of objects returned from the IPv6 Ranges List ([GET /networking/ipv6/ranges](/docs/api/networking/#ipv6-ranges-list)) command.
10660+
10661+
**Note**: Omit the prefix length of the IPv6 range.
10662+
required: true
10663+
schema:
10664+
type: string
10665+
format: ipv6
10666+
x-linode-cli-command: networking
10667+
delete:
10668+
tags:
10669+
- Networking
10670+
summary: IPv6 Range Delete
10671+
description: |
10672+
Removes this IPv6 range from your account and disconnects the range from any assigned Linodes.
10673+
operationId: deleteIPv6Range
10674+
x-linode-cli-action: v6-range-delete
10675+
security:
10676+
- personalAccessToken: []
10677+
- oauth:
10678+
- ips:read_write
10679+
responses:
10680+
'200':
10681+
description: IPv6 Range deleted.
10682+
content:
10683+
application/json:
10684+
schema:
10685+
type: object
10686+
default:
10687+
$ref: '#/components/responses/ErrorResponse'
10688+
x-code-samples:
10689+
- lang: Shell
10690+
source: >
10691+
curl -H "Authorization: Bearer $TOKEN" \
10692+
-X DELETE \
10693+
'https://api.linode.com/v4/networking/ipv6/ranges/2001:0db8::'
10694+
- lang: CLI
10695+
source: >
10696+
linode-cli networking v6-range-delete "2001:0db8::"
1064510697
/networking/firewalls:
1064610698
x-linode-cli-command: firewalls
1064710699
get:

0 commit comments

Comments
 (0)