mirror of https://github.com/hashicorp/consul
Document config entry filtering
parent
1602c996fd
commit
132c6ee6c5
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue