You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assign multiple IPv4 addresses and/or IPv6 ranges to multiple Linodes in one Region. This allows
10197
+
swapping, shuffling, or otherwise reorganizing IPs to your Linodes.
10198
+
10199
+
The following restrictions apply:
10200
+
* All Linodes involved must have at least one public IPv4 address after assignment.
10201
+
* Linodes may have no more than one assigned private IPv4 address.
10202
+
* Linodes may have no more than one assigned IPv6 range.
10203
+
* [Open a Support Ticket](/docs/api/support/#support-ticket-open) to request additional IPv4 addresses or IPv6 ranges.
10204
+
operationId: assignIPs
10205
+
x-linode-cli-action: ip-assign
10206
+
security:
10207
+
- personalAccessToken: []
10208
+
- oauth:
10209
+
- ips:read_write
10210
+
- linodes:read_write
10211
+
requestBody:
10212
+
description: >
10213
+
Information about what IPv4 address or IPv6 range to assign, and to which Linode.
10214
+
required: true
10215
+
content:
10216
+
application/json:
10217
+
schema:
10218
+
required:
10219
+
- region
10220
+
- assignments
10221
+
properties:
10222
+
region:
10223
+
type: string
10224
+
description: >
10225
+
The ID of the Region in which these assignments are to take
10226
+
place. All IPs and Linodes must exist in this Region.
10227
+
example: us-east
10228
+
assignments:
10229
+
type: array
10230
+
description: >
10231
+
The list of assignments to make. You must have read_write
10232
+
access to all IPs being assigned and all Linodes being
10233
+
assigned to in order for the assignments to succeed.
10234
+
required:
10235
+
- address
10236
+
- linode_id
10237
+
items:
10238
+
type: object
10239
+
properties:
10240
+
address:
10241
+
type: string
10242
+
format: ipv4|ipv6/prefix_length
10243
+
description: |
10244
+
The IPv4 address or IPv6 range for this assignment.
10245
+
* Must be an IPv4 address or an IPv6 range you can access in the Region specified.
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.
10248
+
* May be a public or private address.
10249
+
example: 12.34.56.78
10250
+
linode_id:
10251
+
type: integer
10252
+
description: >
10253
+
The ID of the Linode to assign this address to. The IP's
10254
+
previous Linode will lose this address, and must end up
10255
+
with at least one public address and no more than one
10256
+
private address once all assignments have been made.
10257
+
example: 123
10258
+
responses:
10259
+
'200':
10260
+
description: All assignments completed successfully.
10261
+
content:
10262
+
application/json:
10263
+
schema:
10264
+
type: object
10265
+
default:
10266
+
$ref: '#/components/responses/ErrorResponse'
10267
+
x-code-samples:
10268
+
- lang: Shell
10269
+
source: >
10270
+
curl -H "Content-Type: application/json" \
10271
+
-H "Authorization: Bearer $TOKEN" \
10272
+
-X POST -d '{
10273
+
"region": "us-east",
10274
+
"assignments": [
10275
+
{
10276
+
"address": "12.34.56.100",
10277
+
"linode_id": 123
10278
+
},
10279
+
{
10280
+
"address": "2001:db8:3c4d:15::/64",
10281
+
"linode_id": 234
10282
+
}
10283
+
]
10284
+
}' \
10285
+
https://api.linode.com/v4/networking/ipvs/assign
10286
+
- lang: CLI
10287
+
source: >
10288
+
linode-cli networking ip-assign \
10289
+
--region us-east \
10290
+
--assignments.address 2001:db8:3c4d:15::/64 \
10291
+
--assignments.linode_id 123
10292
+
/networking/ipv4/assign:
10293
+
x-linode-cli-command: networking
10294
+
post:
10295
+
x-linode-grant: read_write
10296
+
tags:
10297
+
- Networking
10298
+
summary: Linodes Assign IPv4s
10195
10299
description: >
10196
-
Assign multiple IPs to multiple Linodes in one Region. This allows
10300
+
Assign multiple IPv4s to multiple Linodes in one Region. This allows
10197
10301
swapping, shuffling, or otherwise reorganizing IPv4 Addresses to your
10198
10302
Linodes. When the assignment is finished, all Linodes must end up with
10199
10303
at least one public IPv4 and no more than one private IPv4.
10200
-
operationId: assignIPs
10201
-
x-linode-cli-action: ip-assign
10304
+
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.
10306
+
operationId: assignIPv4s
10307
+
x-linode-cli-skip: true
10202
10308
security:
10203
10309
- personalAccessToken: []
10204
10310
- oauth:
@@ -10227,6 +10333,9 @@ paths:
10227
10333
The list of assignments to make. You must have read_write
10228
10334
access to all IPs being assigned and all Linodes being
10229
10335
assigned to in order for the assignments to succeed.
10336
+
required:
10337
+
- address
10338
+
- linode_id
10230
10339
items:
10231
10340
type: object
10232
10341
properties:
@@ -10274,14 +10383,6 @@ paths:
10274
10383
]
10275
10384
}' \
10276
10385
https://api.linode.com/v4/networking/ipv4/assign
10277
-
- lang: CLI
10278
-
source: >
10279
-
linode-cli networking ip-assign \
10280
-
--region us-east \
10281
-
--assignments \
10282
-
'{"address": "12.34.56.100", "linode_id": 123}' \
10283
-
--assignments \
10284
-
'{"23.45.67.200", "linode_id": 234}'
10285
10386
/networking/ipv4/share:
10286
10387
x-linode-cli-command: networking
10287
10388
post:
@@ -10414,11 +10515,11 @@ paths:
10414
10515
Displays the IPv6 ranges on your Account.
10415
10516
10416
10517
10417
-
* An IPv6 range is a `/64` block of IPv6 addresses routed to a single Linode in a given [Region](/docs/api/regions/#regions-list).
10518
+
* 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).
10418
10519
10419
10520
* Your Linode is responsible for routing individual addresses in the range, or handling traffic for all the addresses in the range.
10420
10521
10421
-
* 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.
10522
+
* 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.
10422
10523
operationId: getIPv6Ranges
10423
10524
x-linode-cli-action: v6-ranges
10424
10525
security:
@@ -10453,6 +10554,146 @@ paths:
10453
10554
- lang: CLI
10454
10555
source: >
10455
10556
linode-cli networking v6-ranges
10557
+
post:
10558
+
tags:
10559
+
- Networking
10560
+
summary: IPv6 Range Create
10561
+
description: |
10562
+
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.
10563
+
* Either `linode_id` or `route_target` is required in a request.
10564
+
* `linode_id` and `route_target` are mutually exclusive. Submitting values for both properties in a request results in an error.
10565
+
* 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`.
10566
+
* Your Linode is responsible for routing individual addresses in the range, or handling traffic for all the addresses in the range.
10567
+
* 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.
10573
+
operationId: postIPv6Range
10574
+
x-linode-cli-action: v6-range-create
10575
+
security:
10576
+
- personalAccessToken: []
10577
+
- oauth:
10578
+
- ips:read_write
10579
+
- linodes:read_write
10580
+
requestBody:
10581
+
description: >
10582
+
Information about the IPv6 range to create.
10583
+
required: true
10584
+
content:
10585
+
application/json:
10586
+
schema:
10587
+
required:
10588
+
- prefix_length
10589
+
properties:
10590
+
linode_id:
10591
+
type: integer
10592
+
description: |
10593
+
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`.
10594
+
10595
+
* **Required** if `route_target` is omitted from the request.
10596
+
10597
+
* Mutually exclusive with `route_target`. Submitting values for both properties in a request results in an error.
10598
+
example: 123
10599
+
prefix_length:
10600
+
type: integer
10601
+
enum:
10602
+
- 56
10603
+
- 64
10604
+
description: >
10605
+
The prefix length of the IPv6 range.
10606
+
route_target:
10607
+
type: string
10608
+
format: ipv6
10609
+
description: |
10610
+
The IPv6 SLAAC address to assign this range to.
10611
+
10612
+
* **Required** if `linode_id` is omitted from the request.
10613
+
10614
+
* Mutually exclusive with `linode_id`. Submitting values for both properties in a request results in an error.
10615
+
10616
+
* **Note**: Omit the `/128` prefix length of the SLAAC address when using this property.
10617
+
example: 2001:0db8::1
10618
+
responses:
10619
+
'200':
10620
+
description: IPv6 range created successfully.
10621
+
content:
10622
+
application/json:
10623
+
schema:
10624
+
type: object
10625
+
properties:
10626
+
range:
10627
+
type: string
10628
+
format: ipv6/prefix_length
10629
+
description: >
10630
+
The IPv6 network range, including subnet and prefix length.
10631
+
example: 2001:0db8::/64
10632
+
route_target:
10633
+
type: string
10634
+
format: ipv6
10635
+
description: >
10636
+
The route target IPV6 SLAAC address for this range. Does not include the prefix length.
10637
+
example: 2001:0db8::1
10638
+
default:
10639
+
$ref: '#/components/responses/ErrorResponse'
10640
+
x-code-samples:
10641
+
- lang: Shell
10642
+
source: >
10643
+
curl -H "Authorization: Bearer $TOKEN" \
10644
+
-X POST -d '{
10645
+
"linode_id": 123,
10646
+
"prefix_length": 64
10647
+
}' \
10648
+
https://api.linode.com/v4/networking/ipv6/ranges
10649
+
- lang: CLI
10650
+
source: >
10651
+
linode-cli networking v6-range-create \
10652
+
--linode_id 123 \
10653
+
--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.
0 commit comments