-
Notifications
You must be signed in to change notification settings - Fork 69
[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
Conversation
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: |
There was a problem hiding this comment.
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.
Updates reflect latest dev changes to collection.
Add information about inbound and outbound behavior.
3245dfc
to
6376f47
Compare
example: 22 | ||
addresses: | ||
type: object | ||
description: > |
There was a problem hiding this comment.
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
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.
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"]}}]' |
There was a problem hiding this comment.
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
closing in preference for this PR: #223 |
Release 1.0.11
Create Changelogs “4-8-0-2019-10-21”
Work in Progress DO NOT MERGE