50 lines
1.3 KiB
Markdown
50 lines
1.3 KiB
Markdown
## cscli ban list
|
|
|
|
List local or api bans/remediations
|
|
|
|
### Synopsis
|
|
|
|
List the bans, by default only local decisions.
|
|
|
|
If --all/-a is specified, api-provided bans will be displayed too.
|
|
|
|
Time can be specified with --at and support a variety of date formats:
|
|
- Jan 2 15:04:05
|
|
- Mon Jan 02 15:04:05.000000 2006
|
|
- 2006-01-02T15:04:05Z07:00
|
|
- 2006/01/02
|
|
- 2006/01/02 15:04
|
|
- 2006-01-02
|
|
- 2006-01-02 15:04
|
|
|
|
|
|
```
|
|
cscli ban list [flags]
|
|
```
|
|
|
|
### Options
|
|
|
|
```
|
|
-a, --all List as well bans received from API
|
|
--at string List bans at given time
|
|
-h, --help help for list
|
|
```
|
|
|
|
### Options inherited from parent commands
|
|
|
|
```
|
|
-c, --config-dir string Configuration directory to use. (default "/etc/crowdsec/cscli/")
|
|
--db string Set path to SQLite DB.
|
|
--debug Set logging to debug.
|
|
--error Set logging to error.
|
|
--info Set logging to info.
|
|
-o, --output string Output format : human, json, raw. (default "human")
|
|
--remediation string Set specific remediation type : ban|slow|captcha (default "ban")
|
|
--warning Set logging to warning.
|
|
```
|
|
|
|
### SEE ALSO
|
|
|
|
* [cscli ban](cscli_ban.md) - Manage bans/mitigations
|
|
|
|
###### Auto generated by spf13/cobra on 15-May-2020
|