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

Examples of performing shapebotdefense_reporting CustomAPI TopAttackedEndpoints

Usecase:

                TopAttackedEndpoints for vh1 in ns1, 
                

Request:

Request using vesctl:

vesctl request rpc shape_bot_defense_reporting.CustomAPI.TopAttackedEndpoints -i request.yaml --uri /public/namespaces/ns1/reporting/top/endpoints --http-method POST

where file request.yaml has following contents:

limit: 10
namespace: ns1
virtualHost: vh1

vesctl yaml response:

attackedEndpoints: []

Request using curl:

curl -X 'POST' -d '{"namespace":"ns1","virtualHost":"vh1","limit":10}' -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/top/endpoints'

curl response:

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

{
  "attacked_endpoints": [
  ]
}