Skip to main content

vac_traffic

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

Overview​

Namevac_traffic
TypeResource
Idovh.network_defense.vac_traffic

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
bpsobjectBits per seconds statistics
ppsobjectPackets per seconds statistics
timestampsarrayTimestamps of the statistics points

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectafter, subnetx_pagination_cursor, x_pagination_size, beforeReturns the traffic dropped and passed by the VAC DDoS protection after a detection event. Request by subnet, IPv4 /32 or IPv6 /64 CIDR, in bits and packets per second, over a date range.

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
afterstring (date-time)Query statistics after the given date
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"}})
subnetstring (ip-block)Query statistics for the given subnet (currently, only IPv4/32 or IPv6/64 are supported)
beforestring (date-time)Query statistics before the given date
x_pagination_cursorstringPagination cursor (wire: X-Pagination-Cursor)
x_pagination_sizeintegerPagination size (wire: X-Pagination-Size)

SELECT examples​

Returns the traffic dropped and passed by the VAC DDoS protection after a detection event. Request by subnet, IPv4 /32 or IPv6 /64 CIDR, in bits and packets per second, over a date range.

SELECT
bps,
pps,
timestamps
FROM ovh.network_defense.vac_traffic
WHERE after = '{{ after }}' -- required
AND subnet = '{{ subnet }}' -- required
AND x_pagination_cursor = '{{ x_pagination_cursor }}'
AND x_pagination_size = '{{ x_pagination_size }}'
AND before = '{{ before }}'
;