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
|
### Path Parameters
|
||||||
|
|
||||||
- `kind` `(string: <required>)` - Specifies the kind of the entry to list.
|
- `kind` `(string: <required>)` - Specifies the kind of the entry to list.
|
||||||
|
- `filter` `(string: "")` - Specifies an expression to use for filtering the results.
|
||||||
|
|
||||||
### Query Parameters
|
### Query Parameters
|
||||||
|
|
||||||
|
|
|
@ -44,6 +44,7 @@ Usage: `consul config list [options]`
|
||||||
#### Command Options
|
#### Command Options
|
||||||
|
|
||||||
- `-kind` - Specifies the kind of the config entry to list.
|
- `-kind` - Specifies the kind of the config entry to list.
|
||||||
|
- `-filter` - Specifies an expression to use for filtering the results.
|
||||||
|
|
||||||
#### Enterprise Options
|
#### Enterprise Options
|
||||||
|
|
||||||
|
@ -57,7 +58,16 @@ Usage: `consul config list [options]`
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
|
To list all service-defaults config entries:
|
||||||
|
|
||||||
$ consul config list -kind service-defaults
|
$ consul config list -kind service-defaults
|
||||||
billing
|
billing
|
||||||
db
|
db
|
||||||
web
|
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