ves-io-schema-infraprotect_mitigation-CustomAPI-List
Examples of performing infraprotect_mitigation CustomAPI List
Usecase:
List mitigations performed
Request:
Request using vesctl:
vesctl request rpc infraprotect_mitigation.CustomAPI.List -i request.yaml --uri /public/namespaces/system/infraprotect_mitigations --http-method GET
where file request.yaml has following contents:
namespace: system
vesctl yaml response:
items:
- endDate: 2019-11-12T13:59:58
endReason: manual
startDate: 2019-11-12T09:00:01
startReason: manual
Request using curl:
curl -X 'GET' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build1372770011_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/infraprotect/namespaces/system/infraprotect_mitigations?namespace=system'
curl response:
HTTP/1.1 200 OK
Content-Length: 220
Content-Type: application/json
Date: Thu, 28 Jul 2022 12:10:28 GMT
Vary: Accept-Encoding
{
"items": [
{
"end_date": "2019-11-12T13:59:58",
"end_reason": "manual",
"forced": false,
"prefix": "",
"start_date": "2019-11-12T09:00:01",
"start_reason": "manual"
}
]
}