Skip to content

Commit 0d38c0e

Browse files
committed
Add POST /networking/ipv6/ranges
1 parent f45c2e1 commit 0d38c0e

File tree

1 file changed

+99
-3
lines changed

1 file changed

+99
-3
lines changed

openapi.yaml

Lines changed: 99 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10298,7 +10298,7 @@ paths:
1029810298
at least one public IPv4 and no more than one private IPv4.
1029910299

1030010300
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.
10301-
operationId: assignIPs
10301+
operationId: assignIPv4s
1030210302
x-linode-cli-skip: true
1030310303
security:
1030410304
- personalAccessToken: []
@@ -10507,11 +10507,11 @@ paths:
1050710507
Displays the IPv6 ranges on your Account.
1050810508

1050910509

10510-
* An IPv6 range is a `/64` block of IPv6 addresses routed to a single Linode in a given [Region](/docs/api/regions/#regions-list).
10510+
* An IPv6 range is a `/64` or `/54` block of IPv6 addresses routed to a single Linode in a given [Region](/docs/api/regions/#regions-list).
1051110511

1051210512
* Your Linode is responsible for routing individual addresses in the range, or handling traffic for all the addresses in the range.
1051310513

10514-
* You must [open a support ticket](/docs/api/support/#support-ticket-open) to request a `/64` block of IPv6 addresses to be added to your account.
10514+
* Access the IPv6 Range Create ([POST /networking/ipv6/ranges](/docs/api/networking/#ipv6-range-create)) endpoint to add a `/64` or `/56` block of IPv6 addresses to your account.
1051510515
operationId: getIPv6Ranges
1051610516
x-linode-cli-action: v6-ranges
1051710517
security:
@@ -10546,6 +10546,102 @@ paths:
1054610546
- lang: CLI
1054710547
source: >
1054810548
linode-cli networking v6-ranges
10549+
post:
10550+
tags:
10551+
- Networking
10552+
summary: IPv6 Range Create
10553+
description: |
10554+
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+
10556+
* Either `linode_id` or `route_target` is required in a request.
10557+
10558+
* `linode_id` and `route_target` are mutually exclusive. Submitting values for both properties in a request results in an error.
10559+
10560+
* 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+
10562+
* Your Linode is responsible for routing individual addresses in the range, or handling traffic for all the addresses in the range.
10563+
10564+
* Access the Linodes Assign IPs ([POST /networking/ips/assign](/docs/api/networking/#linodes-assign-ips)) endpoint to re-assign IPv6 Ranges to your Linodes.
10565+
operationId: postIPv6Range
10566+
x-linode-cli-action: v6-range-create
10567+
security:
10568+
- personalAccessToken: []
10569+
- oauth:
10570+
- ips:read_write
10571+
requestBody:
10572+
description: >
10573+
Information about the IPv6 range to create.
10574+
required: true
10575+
content:
10576+
application/json:
10577+
schema:
10578+
required:
10579+
- prefix_length
10580+
properties:
10581+
linode_id:
10582+
type: integer
10583+
description: |
10584+
The ID of the Linode to assign this range to. The SLAAC address for the provided Linode is used as the range's `route_target`.
10585+
10586+
* **Required** if `route_target` is omitted from the request.
10587+
10588+
* Mutually exclusive with `route_target`. Submitting values for both properties in a request results in an error.
10589+
example: 123
10590+
prefix_length:
10591+
type: integer
10592+
enum:
10593+
- 56
10594+
- 64
10595+
description: >
10596+
The prefix length of the IPv6 range.
10597+
route_target:
10598+
type: string
10599+
format: ipv6
10600+
description: |
10601+
The IPv6 SLAAC address to assign this range to.
10602+
10603+
* **Required** if `linode_id` is omitted from the request.
10604+
10605+
* Mutually exclusive with `linode_id`. Submitting values for both properties in a request results in an error.
10606+
10607+
* **Note**: Omit the `/128` prefix length of the SLAAC address when using this property.
10608+
example: 2001:0db8::1
10609+
responses:
10610+
'200':
10611+
description: The IPv6 ranges on your Account.
10612+
content:
10613+
application/json:
10614+
schema:
10615+
type: object
10616+
properties:
10617+
range:
10618+
type: string
10619+
format: ipv6/prefix_length
10620+
description: >
10621+
The IPv6 network range, including subnet and prefix length.
10622+
example: 2001:0db8::/64
10623+
route_target:
10624+
type: string
10625+
format: ipv6
10626+
description: >
10627+
The route target IPV6 SLAAC address for this range. Does not include the prefix length.
10628+
example: 2001:0db8::1
10629+
default:
10630+
$ref: '#/components/responses/ErrorResponse'
10631+
x-code-samples:
10632+
- lang: Shell
10633+
source: >
10634+
curl -H "Authorization: Bearer $TOKEN" \
10635+
-X POST -d '{
10636+
"linode_id": 123,
10637+
"prefix_length": 64
10638+
}' \
10639+
https://api.linode.com/v4/networking/ipv6/ranges
10640+
- lang: CLI
10641+
source: >
10642+
linode-cli networking v6-range-create \
10643+
--linode_id 123 \
10644+
--prefix_length 64
1054910645
/networking/firewalls:
1055010646
x-linode-cli-command: firewalls
1055110647
get:

0 commit comments

Comments
 (0)