- Home
- API Enriched
- Ai Services
- gen-ai
- AI Assistant Query.
AI Assistant Query.
const url = 'https://example-corp.console.ves.volterra.io/api/v1/api/production/us-east-1/namespaces/default/api/gen-ai/namespaces/example/query';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"current_query":"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/gen-ai/namespaces/example/query \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "current_query": "example", "namespace": "example" }'Enable service by returning service account details.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Namespace Namespace of the HTTP Load Balancer for current request.
Request Bodyrequired
Section titled “Request Bodyrequired”AI Assistant Query Request.
object
Current query will be in text format.
Namespace of the HTTP Load Balancer for current request.
Examplegenerated
{ "current_query": "example", "namespace": "example"}Responses
Section titled “Responses”A successful response.
AI Assistant Query Response.
object
Current query will be in text format.
object
Follow-up actions.
Log analysis.
object
Bot automation type.
Bot type
Method of the request.
Request path.
object
Domain
Rsp_code
Rsp_code_details.
Upstream_protocol_error_reason.
Log summary.
object
IP threat categories.
Policy name.
Policy namespace.
Policy rule name.
object
App Firewall name.
object
Bot classification.
Bot name
Bot type
The signatures that were detected in the request.
Signature details.
object
Attack type of the signature.
Context of the signature.
Signature ID.
Matching info.
Signature name.
State of the signature, can be enabled, suppressed and etc.
Threat campaigns that were detected in the request.
Threat campaign details.
object
Attack type of threat campaign.
ThreatCampaign ID.
ThreatCampaign name.
The violations that were detected in the request.
Violation details.
object
Attack type of the violation.
Context of the violation.
Matching info.
Violation name.
State of the violation, can be enabled, suppressed and etc.
Follow up Queries to be given as suggestion to users.
object
Follow-up actions.
Links that will be presented to the user.
Link for a page.
object
object
Key will present a placeholder in a text field to insert the link. For example: To view these events go to the ${{link:db_link}}. Required: YES.
Logs filter.
Log filter for filter query.
object
Key to be presented in the filter.
Values to be presented in the filter.
Namespace for current request.
Object name such as LB, VH.
Time range filter.
Title for the link.
object
Key will present a placeholder in a text field to insert the link. For example: To view these events go to the ${{link:db_link}}. Required: YES.
Title for the link.
Full URL
Events summary.
object
object
object
A URL/resource name that uniquely identifies the type of the serialized
protocol buffer message. This string must contain at least
one ”/” character. The last segment of the URL’s path must represent
the fully qualified name of the type (as in
path/google.protobuf.duration). The name should be in a canonical form
(e.g., leading ”.” is not accepted).
In practice, teams usually precompile into the binary all types that they
expect it to use in the context of Any. However, for URLs which use the
scheme HTTP, HTTPS, or no scheme, one can optionally set up a type
server that maps type URLs to message definitions as follows:
- If no scheme is provided,
HTTPSis assumed. - An HTTP GET on the URL must yield a [google.protobuf.type][] value in binary format, or produce an error.
- Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.)
Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com.
Schemes other than HTTP, HTTPS (or the empty scheme) might be
used with implementation specific semantics.
Must be a valid serialized protocol buffer of the above specified type.
A human readable string of the error.
Configuration parameter for is error
Configuration parameter for summary
object
External doc links, that will be presented to the user.
Link for a page.
object
object
Key will present a placeholder in a text field to insert the link. For example: To view these events go to the ${{link:db_link}}. Required: YES.
Logs filter.
Log filter for filter query.
object
Key to be presented in the filter.
Values to be presented in the filter.
Namespace for current request.
Object name such as LB, VH.
Time range filter.
Title for the link.
object
Key will present a placeholder in a text field to insert the link. For example: To view these events go to the ${{link:db_link}}. Required: YES.
Title for the link.
Full URL
Response will have set of lists.
object
List of item.
object
object
object
Key will present a placeholder in a text field to insert the link. For example: To view these events go to the ${{link:db_link}}. Required: YES.
Logs filter.
Log filter for filter query.
object
Key to be presented in the filter.
Values to be presented in the filter.
Namespace for current request.
Object name such as LB, VH.
Time range filter.
Title for the link.
object
Key will present a placeholder in a text field to insert the link. For example: To view these events go to the ${{link:db_link}}. Required: YES.
Title for the link.
Full URL
Human-readable title for the resource
Configuration parameter for summary
Query Identifier.
object
External doc links, that will be presented to the user.
Link for a page.
object
object
Key will present a placeholder in a text field to insert the link. For example: To view these events go to the ${{link:db_link}}. Required: YES.
Logs filter.
Log filter for filter query.
object
Key to be presented in the filter.
Values to be presented in the filter.
Namespace for current request.
Object name such as LB, VH.
Time range filter.
Title for the link.
object
Key will present a placeholder in a text field to insert the link. For example: To view these events go to the ${{link:db_link}}. Required: YES.
Title for the link.
Full URL
Internal Link like dashboard links, that will be presented to the user.
Link for a page.
object
object
Key will present a placeholder in a text field to insert the link. For example: To view these events go to the ${{link:db_link}}. Required: YES.
Logs filter.
Log filter for filter query.
object
Key to be presented in the filter.
Values to be presented in the filter.
Namespace for current request.
Object name such as LB, VH.
Time range filter.
Title for the link.
object
Key will present a placeholder in a text field to insert the link. For example: To view these events go to the ${{link:db_link}}. Required: YES.
Title for the link.
Full URL
object
object
Priority for the support ticket.
Product Data for the support ticket.
Subject for the support ticket.
Type for the support ticket.
Topic for the support ticket.
Workspace for the support ticket.
Title for the link.
Configuration parameter for summary
object
object
Lists the name of the field & corresponding properties.
object
object
Data format specification
Human-readable name for the resource
Human-readable title for the resource
Tooltip for the field.
List of table rows.
Contains the value for each rows of table.
object
Configuration parameter for cells
object
object
object
Key will present a placeholder in a text field to insert the link. For example: To view these events go to the ${{link:db_link}}. Required: YES.
Logs filter.
Log filter for filter query.
object
Key to be presented in the filter.
Values to be presented in the filter.
Namespace for current request.
Object name such as LB, VH.
Time range filter.
Title for the link.
object
Key will present a placeholder in a text field to insert the link. For example: To view these events go to the ${{link:db_link}}. Required: YES.
Title for the link.
Full URL
object
Configuration parameter for value
object
Links that will be presented to the user.
Link for a page.
object
object
Key will present a placeholder in a text field to insert the link. For example: To view these events go to the ${{link:db_link}}. Required: YES.
Logs filter.
Log filter for filter query.
object
Key to be presented in the filter.
Values to be presented in the filter.
Namespace for current request.
Object name such as LB, VH.
Time range filter.
Title for the link.
object
Key will present a placeholder in a text field to insert the link. For example: To view these events go to the ${{link:db_link}}. Required: YES.
Title for the link.
Full URL
Response will have different types of widgets.
object
object
Lists the name of the field & corresponding properties.
object
object
Data format specification
Human-readable name for the resource
Human-readable title for the resource
Tooltip for the field.
List of table rows.
Contains the value for each rows of table.
object
Configuration parameter for cells
object
object
object
Key will present a placeholder in a text field to insert the link. For example: To view these events go to the ${{link:db_link}}. Required: YES.
Logs filter.
Log filter for filter query.
object
Key to be presented in the filter.
Values to be presented in the filter.
Namespace for current request.
Object name such as LB, VH.
Time range filter.
Title for the link.
object
Key will present a placeholder in a text field to insert the link. For example: To view these events go to the ${{link:db_link}}. Required: YES.
Title for the link.
Full URL
object
Configuration parameter for value
Configuration parameter for summary
Example
{ "explain_log": { "bot_defense_event_details": { "action": "ACTION_NONE" }, "svc_policy_event_details": { "action": "ACTION_NONE", "ip_risk": "IP_REPUTATION_NONE", "ip_threat_categories": [ "SPAM_SOURCES" ], "ip_trustworthiness": "IP_REPUTATION_NONE" }, "waf_event_details": { "action": "ACTION_NONE", "enforcement_mode": "ENFORCEMENT_NONE", "signatures": [ { "accuracy": "ACCURACY_NONE" } ] } }, "gen_dashboard_filter": { "links": [ { "dashboard_link": { "log_filters": [ { "op": "IN" } ], "type": "SECURITY_ANALYTICS_EVENTS" } } ] }, "generic_response": { "error": { "code": "EOK" } }, "list_response": { "external_links": [ { "dashboard_link": { "log_filters": [ { "op": "IN" } ], "type": "SECURITY_ANALYTICS_EVENTS" } } ], "items": [ { "item": [ { "link": { "dashboard_link": { "log_filters": [ { "op": "IN" } ], "type": "SECURITY_ANALYTICS_EVENTS" } } } ] } ] }, "site_analysis_response": { "external_links": [ { "dashboard_link": { "log_filters": [ { "op": "IN" } ], "type": "SECURITY_ANALYTICS_EVENTS" } } ], "internal_links": [ { "dashboard_link": { "log_filters": [ { "op": "IN" } ], "type": "SECURITY_ANALYTICS_EVENTS" } } ], "overlay_content": { "type": "SECURITY_ANALYTICS_EVENTS" }, "table_view": { "item": { "field_properties": [ { "data_type": "COLUMN_TYPE_NONE", "display": { "colour": "COLOUR_TYPE_NONE", "display_type": "DISPLAY_TYPE_NONE", "formats": [ "FORMAT_TYPE_NONE" ] }, "unit": "UNIT_TYPE_NONE" } ], "rows": [ { "cells": [ { "link": { "dashboard_link": { "log_filters": [ { "op": "IN" } ], "type": "SECURITY_ANALYTICS_EVENTS" } }, "properties": { "status_style": "STATUS_STYLE_UNKNOWN" } } ] } ], "widget_type": "WIDGET_TYPE_NONE" } } }, "widget_response": { "item_links": [ { "dashboard_link": { "log_filters": [ { "op": "IN" } ], "type": "SECURITY_ANALYTICS_EVENTS" } } ], "items": [ { "item": { "field_properties": [ { "data_type": "COLUMN_TYPE_NONE", "display": { "colour": "COLOUR_TYPE_NONE", "display_type": "DISPLAY_TYPE_NONE", "formats": [ "FORMAT_TYPE_NONE" ] }, "unit": "UNIT_TYPE_NONE" } ], "rows": [ { "cells": [ { "link": { "dashboard_link": { "log_filters": [ { "op": "IN" } ], "type": "SECURITY_ANALYTICS_EVENTS" } }, "properties": { "status_style": "STATUS_STYLE_UNKNOWN" } } ] } ], "widget_type": "WIDGET_TYPE_NONE" } } ] }}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