Skip to content

Commit 5f09f3f

Browse files
Update requestBody for POST /firewalls
status field is readOnly for this endpoint. Created the request body by referencing individual Firewall Schema properties. status field is not readOnly for all Firewall endpoints (i.e. PUT /firewalls/{firewallId}
1 parent 55bbd14 commit 5f09f3f

File tree

1 file changed

+22
-21
lines changed

1 file changed

+22
-21
lines changed

openapi.yaml

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8966,34 +8966,35 @@ paths:
89668966
- oauth:
89678967
- firewall:read_write
89688968
requestBody:
8969+
description: Creates a Firewall object that can be applied to a Linode service to filter the service's network traffic.
89698970
content:
89708971
application/json:
89718972
schema:
8973+
type: object
89728974
required:
89738975
- rules
8974-
allOf:
8975-
- $ref: '#/components/schemas/Firewall'
8976-
- type: object
8976+
properties:
8977+
label:
8978+
$ref: '#/components/schemas/Firewall/properties/label'
8979+
rules:
8980+
$ref: '#/components/schemas/Firewall/properties/rules'
8981+
tags:
8982+
$ref: '#/components/schemas/Firewall/properties/tags'
8983+
devices:
8984+
type: object
8985+
description: >
8986+
A Firewall Device assigns a Firewall to a Linode service. Currently, Firewalls
8987+
can only be assigned to Linode instances.
89778988
properties:
8978-
devices:
8979-
type: object
8989+
linodes:
89808990
description: >
8981-
A Firewall Device assigns a Firewall to a Linode service. Currently, Firewalls
8982-
can only be assigned to Linode instances.
8983-
properties:
8984-
linodes:
8985-
description: >
8986-
An array of Linode IDs. A Firewall Device will be created for each ID.
8987-
type: array
8988-
items:
8989-
type: integer
8990-
example:
8991-
- 123
8992-
- 456
8993-
- type: object
8994-
properties:
8995-
status:
8996-
readOnly: true
8991+
An array of Linode IDs. A Firewall Device will be created for each ID.
8992+
type: array
8993+
items:
8994+
type: integer
8995+
example:
8996+
- 123
8997+
- 456
89978998
responses:
89988999
'200':
89999000
description: Returns information about the created Firewall.

0 commit comments

Comments
 (0)