Skip to content

Commit

Permalink
backport of commit 779901b
Browse files Browse the repository at this point in the history
  • Loading branch information
huikang committed Jul 25, 2023
1 parent ce91b4c commit 0deb48e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/18223.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:feature
cli: `consul members` command uses `-filter` expression to filter members based on bexpr.
```
6 changes: 6 additions & 0 deletions website/content/commands/members.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ Usage: `consul members [options]`
in the WAN gossip pool. These are generally all the server nodes in
each datacenter.

- `-filter=<filter>` - Expression to use for filtering the results,
e.g., `-filter='Tags["dc"] == dc2'`.
See the [`/catalog/nodes` API documentation](/consul/api-docs/catalog#filtering) for a
description of what is filterable.


#### Enterprise Options

@include 'http_api_partition_options.mdx'
Expand Down

0 comments on commit 0deb48e

Please sign in to comment.