@@ -9001,6 +9001,8 @@ paths:
9001
9001
parameters:
9002
9002
- $ref: '#/components/parameters/pageOffset'
9003
9003
- $ref: '#/components/parameters/pageSize'
9004
+ servers:
9005
+ - url: https://api.linode.com/v4beta
9004
9006
tags:
9005
9007
- Networking
9006
9008
summary: List VLANs
@@ -9009,9 +9011,6 @@ paths:
9009
9011
a mechanism for secure communication between two or more Linodes that are assigned to the same
9010
9012
VLAN and are both within the same Layer 2 broadcast domain.
9011
9013
9012
- * You can create up to 10 VLANs within each data center region.
9013
- * Move this to the POST
9014
-
9015
9014
9016
9015
**Beta**: This endpoint is in beta. Please make sure to prepend all requests with
9017
9016
`/v4beta` instead of `/v4`, and be aware that this endpoint may receive breaking
@@ -9053,6 +9052,8 @@ paths:
9053
9052
linode-cli networking vlans-list
9054
9053
post:
9055
9054
x-linode-grant: add_vlans
9055
+ servers:
9056
+ - url: https://api.linode.com/v4beta
9056
9057
tags:
9057
9058
- Networking
9058
9059
summary: Create VLAN
@@ -9062,8 +9063,10 @@ paths:
9062
9063
VLAN and are both within the same Layer 2 broadcast domain.
9063
9064
9064
9065
* You can create up to 10 VLANs within each data center region.
9065
- * Use the Create Linode endpoint to deploy a Linode with a Network Interface that is attached
9066
+
9067
+ * Use the [Create Linode](/api/v4/linode-instances/#post) endpoint to deploy a new Linode with a Network Interface that is attached
9066
9068
to an existing VLAN.
9069
+
9067
9070
* To add a Network Interface to an existing Linode, use the Create Interface endpoint. This endpoint
9068
9071
will allow you to assign a private Interface to an existing VLAN. See the Create Interface endpoint
9069
9072
for more details.
@@ -9080,49 +9083,19 @@ paths:
9080
9083
- oauth:
9081
9084
- vlans:read_write
9082
9085
requestBody:
9083
- description: >
9084
- The payload
9086
+ description: Information about the domain you are registering.
9085
9087
required: true
9086
9088
content:
9087
9089
application/json:
9088
9090
schema:
9089
- required:
9090
- - region
9091
- properties:
9092
- region:
9093
- type: string
9094
- description: >
9095
- The ID of the Region to create this NodeBalancer in.
9096
- example: us-east
9097
- label:
9098
- $ref: '#/components/schemas/NodeBalancer/properties/label'
9099
- client_conn_throttle:
9100
- $ref: '#/components/schemas/NodeBalancer/properties/client_conn_throttle'
9101
- configs:
9102
- type: array
9103
- description: >
9104
- The ports to configure this NodeBalancer with on creation.
9105
- Each config must have a unique port and at least one Node.
9106
- items:
9107
- allOf:
9108
- - $ref: '#/components/schemas/NodeBalancerConfig'
9109
- - type: object
9110
- properties:
9111
- nodes:
9112
- type: array
9113
- description: >
9114
- The NodeBalancer Nodes that serve this port. When
9115
- creating a NodeBalancer this way, at least one Node
9116
- is required per configured port.
9117
- items:
9118
- $ref: '#/components/schemas/NodeBalancerNode'
9091
+ $ref: '#/components/schemas/Vlans'
9119
9092
responses:
9120
9093
'200':
9121
9094
description: NodeBalancer created successfully.
9122
9095
content:
9123
9096
application/json:
9124
9097
schema:
9125
- $ref: '#/components/schemas/NodeBalancer '
9098
+ $ref: '#/components/schemas/Vlans '
9126
9099
default:
9127
9100
$ref: '#/components/responses/ErrorResponse'
9128
9101
x-code-samples:
@@ -9131,17 +9104,109 @@ paths:
9131
9104
curl -H "Content-Type: application/json" \
9132
9105
-H "Authorization: Bearer $TOKEN" \
9133
9106
-X POST -d '{
9107
+ "description": "My example VLAN",
9134
9108
"region": "us-east",
9135
- "label": "balancer12345",
9136
- "client_conn_throttle": 0
9109
+ "linodes": [
9110
+ 123,
9111
+ 456,
9112
+ 789
9113
+ ],
9114
+ "cidr_block": "10.0.0.0/24"
9137
9115
}' \
9138
- https://api.linode.com/v4/nodebalancers
9116
+ https://api.linode.com/v4/networking/vlans
9139
9117
- lang: CLI
9140
9118
source: >
9141
- linode-cli nodebalancers create \
9119
+ linode-cli vlan- create \
9142
9120
--region us-east \
9143
- --label balancer12345 \
9144
- --client_conn_throttle 0
9121
+ --description "My example VLAN" \
9122
+ --linodes [123, 456, 789]
9123
+ /networking/vlans/{vlanId}:
9124
+ parameters:
9125
+ - name: vlanId
9126
+ in: path
9127
+ description: ID of the VLAN to look up.
9128
+ required: true
9129
+ schema:
9130
+ type: integer
9131
+ x-linode-cli-command: networking
9132
+ get:
9133
+ servers:
9134
+ - url: https://api.linode.com/v4beta
9135
+ operationId: getVlan
9136
+ x-linode-cli-action: vlan-view
9137
+ security:
9138
+ - personalAccessToken: []
9139
+ - oauth:
9140
+ - vlans:read_only
9141
+ tags:
9142
+ - Networking
9143
+ summary: View VLAN
9144
+ description: >
9145
+ Lookup the details of a specific VLAN by its ID.
9146
+
9147
+
9148
+ **Beta**: This endpoint is in beta. Please make sure to prepend all requests with
9149
+ `/v4beta` instead of `/v4`, and be aware that this endpoint may receive breaking
9150
+ updates in the future. This notice will be removed when this endpoint is out of
9151
+ beta.
9152
+ responses:
9153
+ '200':
9154
+ description: Returns a single VLAN.
9155
+ content:
9156
+ application/json:
9157
+ schema:
9158
+ $ref: '#/components/schemas/Vlans'
9159
+ default:
9160
+ $ref: '#/components/responses/ErrorResponse'
9161
+ x-code-samples:
9162
+ - lang: Shell
9163
+ source: >
9164
+ curl -H "Authorization: Bearer $TOKEN" \
9165
+ https://api.linode.com/v4beta/networking/vlans/12345
9166
+ - lang: CLI
9167
+ source:
9168
+ linode-cli networking vlan-view 12345
9169
+ delete:
9170
+ servers:
9171
+ - url: https://api.linode.com/v4beta
9172
+ operationId: deleteVlan
9173
+ x-linode-cli-action: vlan-delete
9174
+ security:
9175
+ - personalAccessToken: []
9176
+ - oauth:
9177
+ - vlan:read_write
9178
+ tags:
9179
+ - Networking
9180
+ summary: Delete VLAN
9181
+ description: |
9182
+ Deletes a VLAN you have permission to `read_write`. **Deleting a VLAN is a destructive action and cannot be undone.**
9183
+
9184
+ If the VLAN has any Linodes assigned to it, deleting the VLAN removes all Linodes from the VLAN.
9185
+
9186
+
9187
+
9188
+ **Beta**: This endpoint is in beta. Please make sure to prepend all requests with
9189
+ `/v4beta` instead of `/v4`, and be aware that this endpoint may receive breaking
9190
+ updates in the future. This notice will be removed when this endpoint is out of
9191
+ beta.
9192
+ responses:
9193
+ '200':
9194
+ description: Delete successful
9195
+ content:
9196
+ application/json:
9197
+ schema:
9198
+ type: object
9199
+ default:
9200
+ $ref: '#/components/responses/ErrorResponse'
9201
+ x-code-samples:
9202
+ - lang: Shell
9203
+ source: >
9204
+ curl -H "Authorization: Bearer $TOKEN" \
9205
+ -X DELETE \
9206
+ https://api.linode.com/v4beta/networking/vlans/12345
9207
+ - lang: CLI
9208
+ source: >
9209
+ linode-cli networking vlan-delete 12345
9145
9210
/nodebalancers:
9146
9211
x-linode-cli-command: nodebalancers
9147
9212
get:
@@ -18795,7 +18860,7 @@ components:
18795
18860
description:
18796
18861
type: string
18797
18862
description: >
18798
- Information about this VLAN.
18863
+ Information about this VLAN for your own reference .
18799
18864
example: "My example VLAN"
18800
18865
minLength: 1
18801
18866
maxLength: 255
@@ -18815,8 +18880,13 @@ components:
18815
18880
description: >
18816
18881
An array of Linode IDs to assign to this VLAN.
18817
18882
18883
+
18818
18884
Use the [List Linodes](/api/v4/linode-instances) endpoint to view all Linode IDs associated
18819
18885
with this Account.
18886
+
18887
+
18888
+ **Note:** Currently, a VLAN can only be assigned to a Linode
18889
+ within the same data center region.
18820
18890
items:
18821
18891
type: integer
18822
18892
example:
0 commit comments