Document config entry filtering

pull/17371/head
Paul Glass 2023-05-15 13:28:59 -05:00
parent 1602c996fd
commit 132c6ee6c5
2 changed files with 11 additions and 0 deletions

View File

@ -215,6 +215,7 @@ The corresponding CLI command is [`consul config list`](/consul/commands/config/
### Path Parameters
- `kind` `(string: <required>)` - Specifies the kind of the entry to list.
- `filter` `(string: "")` - Specifies an expression to use for filtering the results.
### Query Parameters

View File

@ -44,6 +44,7 @@ Usage: `consul config list [options]`
#### Command Options
- `-kind` - Specifies the kind of the config entry to list.
- `-filter` - Specifies an expression to use for filtering the results.
#### Enterprise Options
@ -57,7 +58,16 @@ Usage: `consul config list [options]`
## Examples
To list all service-defaults config entries:
$ consul config list -kind service-defaults
billing
db
web
The following lists service-defaults with a filter expression:
$ consul config list -kind service-defaults -filter 'MutualTLSMode == "permissive"'
db
web