ubicloud/spec/routes/api/cli/golden-files/fw eu-central-h1_default-eu-central-h1-default modify-rule fra7jvrz94be7qy8qrq8n1jrp1.txt
Jeremy Evans 3f4d2ee998 Support modifying firewall rules in web UI and API/SDK/CLI
This is loosely based on the postgres firewall rule modification
support.

This introduces a new pattern, where web paths do not exactly match
api paths. The API uses PATCH (as postgres firewall rules did), but
the web uses POST. This allows the web portion to work without
javascript, so normal testing with capybara works. I think it would
be good to expand the usage of this pattern to the rest of the web
routes and views, but that's a future change.

Inside of an inline edit component (which requires javascript), just
use text boxes for each input and normal form submission buttons.
2025-10-29 04:32:41 +09:00

12 lines
443 B
Text

! Must provide at least one option (-c, -s, -e, or -d)
Modify a firewall rule
Usage:
ubi fw (location/fw-name | fw-id) modify-rule options rule-id
Options:
-c, --cidr=ip-range IPv4 or IPv6 range to allow
-s, --start-port=port starting (or only) port to allow (default: 0)
-e, --end-port=port ending port to allow (default: 65535)
-d, --description=desc description of rule