Skip to main content

vac_events

Creates, updates, deletes, gets or lists a vac_events resource.

Overview​

Namevac_events
TypeResource
Idovh.network_defense.vac_events

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
eventsarrayList of events

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectx_pagination_cursor, x_pagination_size, after, before, ongoing_only, region, subnetsReturns the detection events of the VAC DDoS protection, with their start and end dates and attack vectors when available. Filter by date range, region or subnet. Ongoing events, not finished, can be requested on their own.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
afterstring (date-time)Query events which started after the given date
beforestring (date-time)Query events which ended before the given date
ongoing_onlybooleanQuery for ongoing events only. If this is set, after and before parameters are ignored. (wire: ongoingOnly)
regionstringQuery events for the given region
subnetsarrayQuery events for the given subnets
x_pagination_cursorstringPagination cursor (wire: X-Pagination-Cursor)
x_pagination_sizeintegerPagination size (wire: X-Pagination-Size)

SELECT examples​

Returns the detection events of the VAC DDoS protection, with their start and end dates and attack vectors when available. Filter by date range, region or subnet. Ongoing events, not finished, can be requested on their own.

SELECT
events
FROM ovh.network_defense.vac_events
WHERE x_pagination_cursor = '{{ x_pagination_cursor }}'
AND x_pagination_size = '{{ x_pagination_size }}'
AND after = '{{ after }}'
AND before = '{{ before }}'
AND ongoing_only = '{{ ongoing_only }}'
AND region = '{{ region }}'
AND subnets = '{{ subnets }}'
;