Skip to content

[DO NOT MERGE] Add Firewalls endpoints #105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 23 commits into from

Conversation

hzoppetti
Copy link
Contributor

@hzoppetti hzoppetti commented Aug 26, 2019

Work in Progress DO NOT MERGE

openapi.yaml Outdated
@@ -2597,6 +2597,66 @@ paths:
- lang: CLI
source: >
linode-cli domains records-delete 123 234
/firewalls:
x-linode-cli-command: firewalls
post:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The post: object needs a servers block like this one to designate that this endpoint will be in beta when it ships.

@leslitagordita leslitagordita changed the title [DO NOT MERGE] Adding POST/Firewall [DO NOT MERGE] Add Firewalls endpoints Sep 18, 2019
example: 22
addresses:
type: object
description: >
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a note about the "all traffic" network masks here? 0.0.0.0/0 for ipv4 and ::0/0 for ipv6

andystevensname and others added 13 commits October 1, 2019 15:14
Also:
- Add Beta endpoint notice to GET /firewalls/:id endpoint
- Change path parameter description to read something more generic, as it's shared now with DELETE
POST /networking/firewalls/{firewallId}/devices
Reviewed existing Firewall endpoints and schemas

Added:
- GET /networking/firewalls/{firewallId}/devices
- POST /networking/firewalls/{firewallId}/devices
- GET /networking/firewalls/{firewallId}/devices/{deviceId}
- DELETE /networking/firewalls/{firewallId}/devices/{deviceId}
- GET /networking/firewalls/{firewallId}/rules
- POST /networking/firewalls/{firewallId}/rules
- Refactor the start_port and end_port properties into a single
ports property
- Remove the ALL protocol
- Copy edit of some other firewall endpoints and schemas
Inserting descriptions for these limits:
- Up to three active Firewalls per Device
- Up to 25 Rules per Firewall
- Up to 255 addresses or networks per Rule
- Up to 15 pieces in a Rule's ports string

Did not include a description of how an Account's Firewall limit
is the same as the Account's thing limit, as we do not describe
the thing limit in other areas of the API reference.
Comment on lines +8468 to +8470
linode-cli firewalls rules-update 123 \
--inbound '[{"protocol": "TCP", "ports": "22, 80, 8080, 443", "addresses": {"ipv4": ["192.0.2.1", "192.0.2.0/24"], "ipv6": ["2001:DB8::/32"]}}]' \
--outbound '[{"protocol": "TCP", "ports": "49152-65535", "addresses": {"ipv4": ["192.0.2.1", "192.0.2.0/24"], "ipv6": ["2001:DB8::/32"]}}]'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@leslitagordita just leaving this here too; these are the lines that might need some work.

@Dorthu I'm not quite sure how to represent dictionary arguments like this in the CLI

@leslitagordita
Copy link
Contributor

closing in preference for this PR: #223

LBGarber pushed a commit to LBGarber/linode-api-docs that referenced this pull request Jun 15, 2022
LBGarber pushed a commit to LBGarber/linode-api-docs that referenced this pull request Jun 15, 2022
Create Changelogs “4-8-0-2019-10-21”
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants