mirror of
https://github.com/ubicloud/ubicloud.git
synced 2025-11-28 16:40:27 +08:00
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.
12 lines
443 B
Text
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
|