Files
ubicloud/spec/routes/api/cli/golden-files/fw eu-central-h1_default-eu-central-h1-default show -r bad.txt
Jeremy Evans 78f45d392f Improve error output for invalid CLI option arguments
For option arguments that must be members of an array, do the
check in the option parsing by providing an array of allowed
option arguments (e.g. vm create -s bad).

Emit better errors for options arguments that should be integers
(e.g. fw add-rule -s/-e), and for regular arguments that should
be integers (e.g. lb create src-port/dst-port).

Include help output in additional cases:

* invalid id formats with slashes
* invalid/duplicate/missing fields used when multiple fields
  separated by a comma is allowed
* invalid object references when using post subcommands
* invalid location for list -l option
2025-07-02 05:02:05 +09:00

19 lines
752 B
Plaintext

! Invalid field(s) given in fw show -r option: bad
Show details for a firewall
Usage:
ubi fw (location/fw-name | fw-id) show [options]
Options:
-f, --fields=fields show specific fields (comma separated)
-n, --nic-fields=fields show specific nic fields (comma separated)
-p, --priv-subnet-fields=fields show specific private subnet fields (comma separated)
-r, --rule-fields=fields show specific firewall rule fields (comma separated)
Allowed Option Values:
Fields: id name location description firewall-rules private-subnets
Nic Fields: id name private-ipv4 private-ipv6 vm-name
Private Subnet Fields: id name state location net4 net6 nics
Firewall Rule Fields: id cidr port-range