ves-io-schema-infraprotect_configuration-CustomAPI-List
Examples of performing infraprotect_configuration CustomAPI List
Usecase:
List all zones configured
Request:
Request using vesctl:
vesctl request rpc infraprotect_configuration.CustomAPI.List -i request.yaml --uri /public/namespaces/system/infraprotect_configurations --http-method GET
where file request.yaml has following contents:
namespace: system
vesctl yaml response:
items:
- description: Bypass UDP traffic coming back from google public DNS servers
ipprotos: []
name: allow_google
operStatus: ok
ports:
- port: 53
proto: udp
srcBasedPolicies:
- classlists:
- action: bypass
classlist:
name: cls_google_dns
uuid: 5836ff7a-9845-4410-9799-40b26a0887c7
- port: 53
proto: tcp
srcBasedPolicies: []
prefixes:
- cidr: 185.12.11.0/24
srcports: []
status: normal
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_configurations?namespace=system'
curl response:
HTTP/1.1 200 OK
Content-Length: 1148
Content-Type: application/json
Date: Fri, 12 Jan 2024 12:06:22 GMT
Vary: Accept-Encoding
{
"items": [
{
"description": "Bypass UDP traffic coming back from google public DNS servers",
"ipprotos": [
],
"name": "allow_google",
"oper_status": "ok",
"ports": [
{
"deny": false,
"port": 53,
"proto": "udp",
"src_based_policies": [
{
"classlists": [
{
"action": "bypass",
"classlist": {
"file": "",
"name": "cls_google_dns",
"uuid": "5836ff7a-9845-4410-9799-40b26a0887c7"
},
"name": "",
"uuid": ""
}
],
"name": "",
"uuid": ""
}
]
},
{
"deny": false,
"port": 53,
"proto": "tcp",
"src_based_policies": [
]
}
],
"prefixes": [
{
"cidr": "185.12.11.0/24",
"comment": ""
}
],
"srcports": [
],
"status": "normal",
"uuid": ""
}
]
}