pip install wafcli
~/.waf/waf.json
c:\Users\xxxx.waf\waf.json
- secret_id
- secret_key
- region
- edition (sparta-waf, clb-waf, cdn-waf)
example
{
"secret_id": "aaaaa",
"secret_key": "xxxx",
"region": "ap-shanghai",
"edition": "sparta-waf"
}
waf domain list 0 10
waf domain list --index 1 --count 20
either is ok
waf custom_rule list example.com
waf custom_rule copy example.com rule1 1.test.com,2.test.com
waf custom_rule copy example.com rule2 all
waf ip add global 2.2.2.2,1.1.1.1 --action 42 --note hvv
waf ip add www.test.com 3.3.3.3
waf ip delete global 2.2.2.2,1.1.1.1
waf ip delete www.test.com 3.3.3.3
get cursor by from time
waf log cursor "2020-12-07 00:00:00"
export logs from cursor
waf log export 5FCDE1000005B5DB3A29F2EE000000000000 1000