Skip to content

Commit 9506b65

Browse files
committed
bug: Fixed CLI example for firewalls rules-update action
Closes linode/linode-cli#254 I was taking a pass at open CLI issues and found that while this one was fixed upstream, the example it referenced in the docs was still not working. With a little tinkering, I believe this fixes it. I'm not sure if the values I put in here actually make sense for a real use-case, I just picked valid values. Please modify them if you think they're silly or could be more meaningful.
1 parent eea52cf commit 9506b65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openapi.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11092,8 +11092,8 @@ paths:
1109211092
- lang: CLI
1109311093
source: >
1109411094
linode-cli firewalls rules-update 123 \
11095-
--inbound '[{"protocol": "TCP", "ports": "22, 80, 8080, 443", "addresses": {"ipv4": ["192.0.2.1", "192.0.2.0/24"], "ipv6": ["2001:DB8::/32"]}}]' \
11096-
--outbound '[{"protocol": "TCP", "ports": "49152-65535", "addresses": {"ipv4": ["192.0.2.1", "192.0.2.0/24"], "ipv6": ["2001:DB8::/32"]}}]'
11095+
--inbound '[{"action":"ACCEPT", "protocol": "TCP", "ports": "22, 80, 8080, 443", "addresses": {"ipv4": ["192.0.2.1/32", "192.0.2.0/24"], "ipv6": ["2001:DB8::/32"]}}]' \
11096+
--outbound '[{"action":"DROP","protocol": "TCP", "ports": "49152-65535", "addresses": {"ipv4": ["192.0.2.1/32", "192.0.2.0/24"], "ipv6": ["2001:DB8::/32"]}}]'
1109711097
/networking/vlans:
1109811098
x-linode-cli-command: vlans
1109911099
get:

0 commit comments

Comments
 (0)