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=_var_folders_2__8qnt6fwd5dvglr1xqq6l8b7w0000gp_T_go-build449658010_b001_apidocs.test/host=C02FN35BMD6R/svc=S:examplesvc/site=mytestce01' '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: Fri, 12 Jan 2024 12:06: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"
}
]
}