mirror of
https://github.com/ovh/the-bastion.git
synced 2025-03-01 01:54:32 +08:00
The commands selfListAccesses, accountListAccesses, groupList, groupListServers, groupListGuestAccesses and accountList now have options to filter their output through pattern matching, with --include and --exclude. The output from the commands using print_acls() is also more human-friendly, with auto-adjusting column length, and empty columns omitted. Closes #60.
42 lines
1.1 KiB
ReStructuredText
42 lines
1.1 KiB
ReStructuredText
=================
|
|
groupListServers
|
|
=================
|
|
|
|
List the servers (IPs and IP blocks) pertaining to a group
|
|
==========================================================
|
|
|
|
|
|
.. admonition:: usage
|
|
:class: cmdusage
|
|
|
|
--osh groupListServers --group GROUP [--reverse-dns]
|
|
|
|
.. program:: groupListServers
|
|
|
|
|
|
.. option:: --group GROUP
|
|
|
|
List the servers of this group
|
|
|
|
.. option:: --reverse-dns
|
|
|
|
Attempt to resolve the reverse hostnames (SLOW!)
|
|
|
|
.. option:: --include PATTERN
|
|
|
|
Only include servers matching the given PATTERN (see below)
|
|
|
|
This option can be used multiple times to refine results
|
|
.. option:: --exclude PATTERN
|
|
|
|
Omit servers matching the given PATTERN (see below)
|
|
|
|
This option can be used multiple times.
|
|
Note that --exclude takes precedence over --include
|
|
|
|
**Note:** PATTERN supports the ``*`` and ``?`` wildcards.
|
|
If PATTERN is a simple string without wildcards, then names containing this string will be considered.
|
|
The matching is done on the text output of the command.
|
|
|
|
|
|
|