Skip to content

Commit c905ba1

Browse files
nmelehanleslitagordita
authored andcommitted
PUT Firewall endpoint
1 parent 75b3bb0 commit c905ba1

File tree

1 file changed

+54
-2
lines changed

1 file changed

+54
-2
lines changed

openapi.yaml

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8980,7 +8980,7 @@ paths:
89808980
"another example"
89818981
]
89828982
}' \
8983-
https://api.linode.com/v4/firewalls
8983+
https://api.linode.com/v4beta/firewalls
89848984
- lang: CLI
89858985
source: >
89868986
linode-cli firewalls create
@@ -9033,6 +9033,58 @@ paths:
90339033
- lang: CLI
90349034
source: >
90359035
linode-cli firewalls view 123
9036+
put:
9037+
x-linode-grant: read_write
9038+
servers:
9039+
- url: https://api.linode.com/v4beta
9040+
tags:
9041+
- Networking
9042+
summary: Update Firewall
9043+
description: >
9044+
Updates information for a Firewall. A Firewall's Devices cannot be manipulated by
9045+
this endpoint. A Firewall's status can be set by this endpoint, but it cannot be
9046+
set to `deleted`. Instead, use the Delete Firewall endpoint to delete a Firewall.
9047+
9048+
9049+
**Beta**: This endpoint is in beta. Please make sure to prepend all requests with
9050+
`/v4beta` instead of `/v4`, and be aware that this endpoint may receiving breaking
9051+
updates in the future. This notice will be removed when this endpoint is out of
9052+
beta.
9053+
operationId: updateFirewall
9054+
x-linode-cli-action: update
9055+
security:
9056+
- personalAccessToken: []
9057+
- oauth:
9058+
- firewall:read_write
9059+
requestBody:
9060+
description: The Firewall information to update.
9061+
content:
9062+
application/json:
9063+
schema:
9064+
allOf:
9065+
- $ref: '#/components/schemas/Firewall'
9066+
responses:
9067+
'200':
9068+
description: Firewall updated successfully.
9069+
content:
9070+
application/json:
9071+
schema:
9072+
$ref: '#/components/schemas/Firewall'
9073+
default:
9074+
$ref: '#/components/responses/ErrorResponse'
9075+
x-code-samples:
9076+
- lang: Shell
9077+
source: >
9078+
curl -H "Content-Type: application/json" \
9079+
-H "Authorization: Bearer $TOKEN" \
9080+
-X PUT -d '{
9081+
"status": "disabled",
9082+
}' \
9083+
https://api.linode.com/v4beta/firewalls/123
9084+
- lang: CLI
9085+
source: >
9086+
linode-cli firewalls update 123 \
9087+
--status disabled
90369088
delete:
90379089
x-linode-grant: read_write
90389090
servers:
@@ -14611,7 +14663,7 @@ components:
1461114663
can only add a Firewall to Linodes.
1461214664
properties:
1461314665
linodes:
14614-
description: An array of Linode ids
14666+
description: An array of Linode IDs
1461514667
type: array
1461614668
items:
1461714669
type: integer

0 commit comments

Comments
 (0)