ves-io-schema-shape-bot_defense-reporting-CustomAPI-TrafficOverview

Examples of performing shapebotdefense_reporting CustomAPI TrafficOverview

Usecase:

                TrafficOverview for vh1 in ns1, 
                

Request:

Request using vesctl:

vesctl request rpc shape_bot_defense_reporting.CustomAPI.TrafficOverview -i request.yaml --uri /public/namespaces/ns1/reporting/traffic/overview --http-method POST

where file request.yaml has following contents:

namespace: ns1
virtualHost: vh1

vesctl yaml response:

{}

Request using curl:

curl -X 'POST' -d '{"namespace":"ns1","virtualHost":"vh1"}' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build038462651_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/bot_defense/namespaces/ns1/reporting/traffic/overview'

curl response:

HTTP/1.1 200 OK
Content-Length: 58
Content-Type: application/json
Date: Wed, 12 Jan 2022 14:50:28 GMT
Vary: Accept-Encoding

{
  "human": "0",
  "malicious_bot": "0",
  "total": "0"
}