​
Select Service
ves-io-schema-graph-l3l4-CustomAPI-ByNetwork
Published April 5, 2023 | Last modified May 30, 2025
Examples of performing l3l4 CustomAPI ByNetwork
Usecase:
Get data by network
Request:
Request using vesctl:
vesctl request rpc l3l4.CustomAPI.ByNetwork -i request.yaml --uri /public/namespaces/system/graph/l3l4/by_network/123 --http-method POST
where file request.yaml has following contents:
endTime: "2020-01-30T18:00:00Z"
namespace: system
startTime: "2020-01-30T17:00:00Z"
Copied!
vesctl yaml response:
in:
- name: Local
values:
- timestamp: "2020-06-07T15:50:00Z"
value: "38989760.000000"
- timestamp: "2020-06-07T16:00:00Z"
value: "47784586.666667"
- timestamp: "2020-06-07T16:10:00Z"
value: "52891040.000000"
- name: Network
values:
- timestamp: "2020-06-07T15:50:00Z"
value: "17240373.333333"
- timestamp: "2020-06-07T16:00:00Z"
value: "19382880.000000"
- timestamp: "2020-06-07T16:10:00Z"
value: "18891733.333333"
out:
- name: Outbound
values:
- timestamp: "2020-06-07T15:50:00Z"
value: "38989760.000000"
- timestamp: "2020-06-07T16:00:00Z"
value: "47784586.666667"
- timestamp: "2020-06-07T16:10:00Z"
value: "52891040.000000"
Copied!
Request using curl:
curl -X 'POST' -d '{"namespace":"system","start_time":"2020-01-30T17:00:00Z","end_time":"2020-01-30T18:00:00Z"}' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_var_folders_q2_3kp8z3zs0x5_m7pk1bgb0_ph0000gp_T_go-build1497866850_b001_apidocs.test/host=MTY6VVHQPH/svc=S:examplesvc/site=mytestce01' 'https://acmecorp.console.ves.volterra.io/api/infraprotect/namespaces/system/graph/l3l4/by_network/123'
Copied!
curl response:
HTTP/1.1 200 OK
Content-Length: 1164
Content-Type: application/json
Date: Fri, 30 May 2025 01:20:19 GMT
Vary: Accept-Encoding
{
"in": [
{
"name": "Local",
"values": [
{
"timestamp": "2020-06-07T15:50:00Z",
"value": "38989760.000000"
},
{
"timestamp": "2020-06-07T16:00:00Z",
"value": "47784586.666667"
},
{
"timestamp": "2020-06-07T16:10:00Z",
"value": "52891040.000000"
}
]
},
{
"name": "Network",
"values": [
{
"timestamp": "2020-06-07T15:50:00Z",
"value": "17240373.333333"
},
{
"timestamp": "2020-06-07T16:00:00Z",
"value": "19382880.000000"
},
{
"timestamp": "2020-06-07T16:10:00Z",
"value": "18891733.333333"
}
]
}
],
"out": [
{
"name": "Outbound",
"values": [
{
"timestamp": "2020-06-07T15:50:00Z",
"value": "38989760.000000"
},
{
"timestamp": "2020-06-07T16:00:00Z",
"value": "47784586.666667"
},
{
"timestamp": "2020-06-07T16:10:00Z",
"value": "52891040.000000"
}
]
}
]
}
Copied!