- Home
- API Enriched
- Virtual
- ml
- GET Total API Calls for Virtual Host.
GET Total API Calls for Virtual Host.
const url = 'https://example-corp.console.ves.volterra.io/api/v1/api/production/us-east-1/namespaces/default/api/ml/data/namespaces/example/virtual_hosts/example/api_endpoints/summary/calls_by_response_code';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"apiep_summary_filter":{"apiep_category":["APIEP_CATEGORY_DISCOVERED"],"domains":["example"],"end_time":"example","start_time":"example"},"name":"example","namespace":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example-corp.console.ves.volterra.io/api/v1/api/production/us-east-1/namespaces/default/api/ml/data/namespaces/example/virtual_hosts/example/api_endpoints/summary/calls_by_response_code \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "apiep_summary_filter": { "apiep_category": [ "APIEP_CATEGORY_DISCOVERED" ], "domains": [ "example" ], "end_time": "example", "start_time": "example" }, "name": "example", "namespace": "example" }'GET total API calls for the given Virtual Host.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Namespace Namespace of the virtual host for current request.
Virtual Host Name Virtual Host name for current request.
Request Bodyrequired
Section titled “Request Bodyrequired”Request model for GetAPICallSummary API.
object
object
Category of API endpoints. Can be DISCOVERED, INVENTORY or SHADOW API. Optional filter by api_category. If absent, endpoints of all categories are considered.
List of domains for which top API endpoints summary should be returned. Optional filter by domains. If absent, endpoints for all domains are considered.
Format: unix_timestamp|RFC 3339
Filters the APIEPs with access time < end_time.
Optional: If not specified, then the end_time will be evaluated to start_time+2h
If start_time is not specified, then the end_time will be evaluated to
Format: unix_timestamp|RFC 3339
Filters the APIEPs with access time >= start_time.
Optional: If not specified, then the start_time will be evaluated to end_time-2h
If end_time is not specified, then the start_time will be evaluated to
Virtual Host name for current request.
Namespace of the virtual host for current request.
Responses
Section titled “Responses”A successful response.
Response model for GetSensitiveDataSummaryRsp API.
object
Number of API calls for each category of response.
Request count per response class.
object
Request count for this response code class/category.
Total API calls.
Example
{ "request_count_per_rsp_code": [ { "rsp_code_class": "HTTP_RESPONSE_CODE_CLASS_UNKNOWN" } ]}Returned when operation is not authorized.
Examplegenerated
exampleReturned when there is no permission to access resource.
Examplegenerated
exampleReturned when resource is not found.
Examplegenerated
exampleReturned when operation on resource is conflicting with current value.
Examplegenerated
exampleReturned when operation has been rejected as it is happening too frequently.
Examplegenerated
exampleReturned when server encountered an error in processing API.
Examplegenerated
exampleReturned when service is unavailable temporarily.
Examplegenerated
exampleReturned when server timed out processing request.
Examplegenerated
example