Skip to content

Commit 0d9d033

Browse files
committed
Added nodebalancer entity type to Firewall commands
1 parent ad9a8d2 commit 0d9d033

File tree

1 file changed

+45
-36
lines changed

1 file changed

+45
-36
lines changed

openapi.yaml

Lines changed: 45 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -7685,7 +7685,7 @@ paths:
76857685
parameters:
76867686
- name: linodeId
76877687
in: path
7688-
description: ID of the Linode to look up.
7688+
description: ID of the Linode to access.
76897689
required: true
76907690
schema:
76917691
type: integer
@@ -7699,16 +7699,16 @@ paths:
76997699
- Linode Instances
77007700
summary: Firewalls List
77017701
description: >
7702-
View Firewall information for Firewalls associated with this Linode.
7702+
View Firewall information for Firewalls assigned to this Linode.
77037703
operationId: getLinodeFirewalls
7704-
x-linode-cli-action: firewalls-list
7704+
x-linode-cli-action: firewalls
77057705
security:
77067706
- personalAccessToken: []
77077707
- oauth:
77087708
- linodes:read_only
77097709
responses:
77107710
'200':
7711-
description: Returns a paginated list of Firewalls associated with this Linode.
7711+
description: Returns a paginated list of Firewalls assigned to this Linode.
77127712
content:
77137713
application/json:
77147714
schema:
@@ -12969,11 +12969,11 @@ paths:
1296912969
* Use the `rules` property to create inbound and outbound access rules.
1297012970

1297112971
* Use the `devices` property to assign the Firewall to a service and apply its Rules to the device. Requires `read_write` [User's Grants](/docs/api/account/#users-grants-view) to the device.
12972-
Currently, Firewalls can only be assigned to Linode instances.
12972+
Currently, Firewalls can be assigned to Linode compute instances and NodeBalancers.
1297312973

12974-
* A Firewall can be assigned to multiple Linode instances at a time.
12974+
* A Firewall can be assigned to multiple services at a time.
1297512975

12976-
* A Linode instance can have one active, assigned Firewall at a time.
12976+
* A service can have one active, assigned Firewall at a time.
1297712977
Additional disabled Firewalls can be assigned to a service, but they cannot be enabled if another active Firewall is already assigned to the same service.
1297812978

1297912979
* A `firewall_create` Event is generated when this endpoint returns successfully.
@@ -12984,7 +12984,7 @@ paths:
1298412984
- oauth:
1298512985
- firewall:read_write
1298612986
requestBody:
12987-
description: Creates a Firewall object that can be applied to a Linode service to filter the service's network traffic.
12987+
description: Creates a Firewall object that can be applied to a service to filter the service's network traffic.
1298812988
content:
1298912989
application/json:
1299012990
schema:
@@ -12999,7 +12999,9 @@ paths:
1299912999
description: |
1300013000
Devices to create for this Firewall.
1300113001
When a Device is created, the Firewall is assigned to its associated service.
13002-
Currently, Devices can only be created for Linode instances.
13002+
Currently, Devices can be created for Linode compute instances and NodeBalancers.
13003+
13004+
Additional devices can be assigned after Firewall creation by using the [Firewall Device Create](#firewall-device-create) command.
1300313005
properties:
1300413006
linodes:
1300513007
description: >
@@ -13010,6 +13012,15 @@ paths:
1301013012
example:
1301113013
- 123
1301213014
- 456
13015+
nodebalancers:
13016+
description: >
13017+
An array of NodeBalancer IDs. A Firewall Device is created for each ID.
13018+
type: array
13019+
items:
13020+
type: integer
13021+
example:
13022+
- 321
13023+
- 654
1301313024
rules:
1301413025
required:
1301513026
- inbound_policy
@@ -13158,7 +13169,7 @@ paths:
1315813169
- A Firewall's Devices cannot be set with this endpoint. Instead, use the
1315913170
[Create Firewall Device](/docs/api/networking/#firewall-device-create)
1316013171
and [Delete Firewall Device](/docs/api/networking/#firewall-device-delete)
13161-
endpoints to assign and remove this Firewall from Linode services.
13172+
endpoints to assign and remove this Firewall from services.
1316213173

1316313174
- A Firewall's Rules cannot be changed with this endpoint. Instead, use the
1316413175
[Update Firewall Rules](/docs/api/networking/#firewall-rules-update)
@@ -13238,8 +13249,8 @@ paths:
1323813249
- oauth:
1323913250
- firewall:read_write
1324013251
description: |
13241-
Delete a Firewall resource by its ID. This will remove all of the Firewall's Rules
13242-
from any Linode services that the Firewall was assigned to.
13252+
Delete a Firewall resource by its ID. This removes all of the Firewall's Rules
13253+
from any services that the Firewall was assigned to.
1324313254

1324413255
A `firewall_delete` Event is generated when this endpoint returns successfully.
1324513256
responses:
@@ -13282,9 +13293,7 @@ paths:
1328213293
- $ref: '#/components/parameters/pageSize'
1328313294
summary: Firewall Devices List
1328413295
description: |
13285-
Returns a paginated list of a Firewall's Devices. A Firewall Device assigns a
13286-
Firewall to a Linode service (referred to as the Device's `entity`). Currently,
13287-
only Devices with an entity of type `linode` are accepted.
13296+
Returns a paginated list of a Firewall's Devices. A Firewall Device assigns a Firewall to a service (referred to as the Device's `entity`).
1328813297
operationId: getFirewallDevices
1328913298
x-linode-cli-action: devices-list
1329013299
security:
@@ -13330,11 +13339,11 @@ paths:
1333013339
Creates a Firewall Device, which assigns a Firewall to a service (referred to
1333113340
as the Device's `entity`) and applies the Firewall's Rules to the device.
1333213341

13333-
* Currently, only Devices with an entity of type `linode` are accepted.
13342+
* Currently, Devices with `linode` and `nodebalancer` entity types are accepted.
1333413343

13335-
* A Firewall can be assigned to multiple Linode instances at a time.
13344+
* A Firewall can be assigned to multiple services at a time.
1333613345

13337-
* A Linode instance can have one active, assigned Firewall at a time.
13346+
* A service can have one active, assigned Firewall at a time.
1333813347
Additional disabled Firewalls can be assigned to a service, but they cannot be enabled if another active Firewall is already assigned to the same service.
1333913348

1334013349
* A `firewall_device_add` Event is generated when the Firewall Device is added successfully.
@@ -13404,8 +13413,7 @@ paths:
1340413413
summary: Firewall Device View
1340513414
description: |
1340613415
Returns information for a Firewall Device, which assigns a Firewall
13407-
to a Linode service (referred to as the Device's `entity`). Currently,
13408-
only Devices with an entity of type `linode` are accepted.
13416+
to a service (referred to as the Device's `entity`).
1340913417
operationId: getFirewallDevice
1341013418
x-linode-cli-action: device-view
1341113419
security:
@@ -13444,10 +13452,10 @@ paths:
1344413452
- oauth:
1344513453
- firewall:read_write
1344613454
description: |
13447-
Removes a Firewall Device, which removes a Firewall from the Linode service it was
13448-
assigned to by the Device. This will remove all of the Firewall's Rules from the Linode
13449-
service. If any other Firewalls have been assigned to the Linode service, then those Rules
13450-
will remain in effect.
13455+
Removes a Firewall Device, which removes a Firewall from the service it was
13456+
assigned to by the Device. This removes all of the Firewall's Rules from the
13457+
service. If any other Firewalls have been assigned to the service, then those Rules
13458+
remain in effect.
1345113459

1345213460
A `firewall_device_remove` Event is generated when the Firewall Device is removed successfully.
1345313461
responses:
@@ -14701,15 +14709,15 @@ paths:
1470114709
- NodeBalancers
1470214710
summary: Firewalls List
1470314711
description: >
14704-
View Firewall information for Firewalls associated with this NodeBalancer.
14705-
x-linode-cli-action: firewalls-list
14712+
View information for Firewalls assigned to this NodeBalancer.
14713+
x-linode-cli-action: firewalls
1470614714
security:
1470714715
- personalAccessToken: []
1470814716
- oauth:
1470914717
- nodebalancers:read_only
1471014718
responses:
1471114719
'200':
14712-
description: Returns a paginated list of Firewalls associated with this NodeBalancer.
14720+
description: Returns a paginated list of Firewalls assigned to this NodeBalancer.
1471314721
content:
1471414722
application/json:
1471514723
schema:
@@ -14726,11 +14734,11 @@ paths:
1472614734
x-code-samples:
1472714735
- lang: Shell
1472814736
source: >
14729-
curl -H "Authorization: Bearer $TOKEN" \
14730-
https://api.linode.com/v4/nodebalancers/12345/firewalls
14737+
curl https://api.linode.com/v4/nodebalancers/$nodeBalancerId/firewalls \
14738+
-H "Authorization: Bearer $TOKEN"
1473114739
- lang: CLI
1473214740
source: >
14733-
linode-cli nodebalancers firewalls-list 12345
14741+
linode-cli nodebalancers firewalls $nodeBalancerId
1473414742
/nodebalancers/{nodeBalancerId}/stats:
1473514743
x-linode-cli-command: nodebalancers
1473614744
parameters:
@@ -20830,9 +20838,9 @@ components:
2083020838
Firewall:
2083120839
type: object
2083220840
description: >
20833-
A resource that controls incoming and outgoing network traffic to a Linode service. Only one Firewall can be attached to a Linode at any given time.
20841+
A resource that controls incoming and outgoing network traffic to a compute service. Only one enabled Firewall can be attached to a particular service at any given time.
2083420842
[Create a Firewall Device](/docs/api/networking/#firewall-create)
20835-
to assign a Firewall to a Linode service. Currently, Firewalls can only be assigned to Linode instances.
20843+
to assign a Firewall to a service. Currently, Firewalls can assigned to Linode compute instances and NodeBalancers.
2083620844
properties:
2083720845
id:
2083820846
x-linode-filterable: true
@@ -21015,8 +21023,8 @@ components:
2101521023
FirewallDevices:
2101621024
type: object
2101721025
description: >
21018-
Associates a Firewall with a Linode service. A Firewall can be assigned
21019-
to a single Linode service at a time. Additional disabled Firewalls can be
21026+
Associates a Firewall with a Linode or NodeBalancer service. A Firewall can be assigned
21027+
to a single entity at a time. Additional disabled Firewalls can be
2102021028
assigned to a service, but they cannot be enabled if another active Firewall
2102121029
is already assigned to the same service.
2102221030
properties:
@@ -21049,7 +21057,7 @@ components:
2104921057
type: object
2105021058
readOnly: true
2105121059
description: >
21052-
The Linode service that this Firewall has been applied to.
21060+
The compute service that this Firewall has been applied to.
2105321061
properties:
2105421062
id:
2105521063
description: The entity's ID
@@ -21060,6 +21068,7 @@ components:
2106021068
type: string
2106121069
enum:
2106221070
- linode
21071+
- nodebalancer
2106321072
example: linode
2106421073
label:
2106521074
description: The entity's label.
@@ -21068,7 +21077,7 @@ components:
2106821077
example: my-linode
2106921078
url:
2107021079
description: >
21071-
The URL you can use to access this entity.
21080+
The API URL path you can use to access this entity.
2107221081
type: string
2107321082
format: url
2107421083
readOnly: true

0 commit comments

Comments
 (0)