- Home
- API Enriched
- Api
- ml
- Evaluate API Group.
Evaluate API Group.
const url = 'https://example-corp.console.ves.volterra.io/api/v1/api/production/us-east-1/namespaces/default/api/ml/data/namespaces/example/app_api_groups/evaluate';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"api_group":{"api_endpoints_count":1,"bigip_virtual_server":{"bigip_virtual_server":{"name":"example","namespace":"example"}},"cdn_loadbalancer":{"cdn_loadbalancer":{"name":"example","namespace":"example"}},"elements":[{"methods":["ANY"],"path_regex":"example"}],"http_loadbalancer":{"http_loadbalancer":{"name":"example","namespace":"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/app_api_groups/evaluate \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "api_group": { "api_endpoints_count": 1, "bigip_virtual_server": { "bigip_virtual_server": { "name": "example", "namespace": "example" } }, "cdn_loadbalancer": { "cdn_loadbalancer": { "name": "example", "namespace": "example" } }, "elements": [ { "methods": [ "ANY" ], "path_regex": "example" } ], "http_loadbalancer": { "http_loadbalancer": { "name": "example", "namespace": "example" } } }, "namespace": "example" }'Evaluate API Group Builder against all API endpoints associated with the referenced object and return the resulting API Group. For example, if the referenced object is an HTTP LB then all discovered and imported endpoints are associated with it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Namespace Namespace of the API Group for the current request.
Request Bodyrequired
Section titled “Request Bodyrequired”Request shape for Evaluate API Group.
object
object
Number of API Endpoints in the actual API Group. If the lists included, matched, excluded are disjoint then the length is len(included) + len(matched) - excluded.
object
object
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then name will hold the referred object’s(e.g. Route’s) name. Required: YES.
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then namespace will hold the referred object’s(e.g. Route’s) namespace.
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then tenant will hold the referred object’s(e.g. Route’s) tenant.
object
object
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then name will hold the referred object’s(e.g. Route’s) name. Required: YES.
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then namespace will hold the referred object’s(e.g. Route’s) namespace.
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then tenant will hold the referred object’s(e.g. Route’s) tenant.
List of API group elements with methods and path regex for matching requests.
Required: YES.
Shape of api_group_element in the storage backend.
object
List of method values to match the input request API method against. The match is considered to succeed if the input request API method is a member of the list. Required: YES.
Regular expression to match the input request API path against. The match is considered to succeed if the input request API path matches the specified path regex. Required: YES.
object
object
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then name will hold the referred object’s(e.g. Route’s) name. Required: YES.
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then namespace will hold the referred object’s(e.g. Route’s) namespace.
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then tenant will hold the referred object’s(e.g. Route’s) tenant.
Namespace of the API Group for the current request.
Responses
Section titled “Responses”A successful response.
Response for the Evaluate API Group request.
object
object
Number of API Endpoints in the actual API Group. If the lists included, matched, excluded are disjoint then the length is len(included) + len(matched) - excluded.
object
object
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then name will hold the referred object’s(e.g. Route’s) name. Required: YES.
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then namespace will hold the referred object’s(e.g. Route’s) namespace.
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then tenant will hold the referred object’s(e.g. Route’s) tenant.
object
object
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then name will hold the referred object’s(e.g. Route’s) name. Required: YES.
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then namespace will hold the referred object’s(e.g. Route’s) namespace.
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then tenant will hold the referred object’s(e.g. Route’s) tenant.
List of API group elements with methods and path regex for matching requests.
Required: YES.
Shape of api_group_element in the storage backend.
object
List of method values to match the input request API method against. The match is considered to succeed if the input request API method is a member of the list. Required: YES.
Regular expression to match the input request API path against. The match is considered to succeed if the input request API path matches the specified path regex. Required: YES.
object
object
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then name will hold the referred object’s(e.g. Route’s) name. Required: YES.
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then namespace will hold the referred object’s(e.g. Route’s) namespace.
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then tenant will hold the referred object’s(e.g. Route’s) tenant.
The API endpoints timestamp indicates when the most recent update of API endpoints happened For example, if the referenced object is HTTP LB then the API Discovery periodically updates the API endpoints list based on application’s traffic.
List of API Endpoints matched by the query expression. The paths appear here with parameters as defined in OpenAPI spec file.
The API Endpoint according to OpenAPI specification.
object
An endpoint path, as specified in OpenAPI, including parameters. The path should comply with RFC 3986 and may have parameters according to OpenAPI specification Required: YES.
Example
{ "api_group": { "elements": [ { "methods": [ "ANY" ] } ] }, "matching_api_endpoints": [ { "method": "ANY" } ]}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