ves-io-schema-shape-client_side_defense-CustomAPI-Init

Examples of performing shapeclientside_defense CustomAPI Init

Usecase:

Init Client side defense

Request:

Request using vesctl:

vesctl request rpc shape_client_side_defense.CustomAPI.Init -i request.yaml --uri /public/namespaces/system/init --http-method POST

where file request.yaml has following contents:

email: test@f5.com
serviceType: csd-service

vesctl yaml response:

{}

Request using curl:

curl -X 'POST' -d '{"serviceType":"csd-service","email":"test@f5.com"}' -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/client_side_defense/namespaces/system/init'

curl response:

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

{
  "isConfigured": false
}