vac_traffic
Creates, updates, deletes, gets or lists a vac_traffic resource.
Overview​
| Name | vac_traffic |
| Type | Resource |
| Id | ovh.network_defense.vac_traffic |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
bps | object | Bits per seconds statistics |
pps | object | Packets per seconds statistics |
timestamps | array | Timestamps of the statistics points |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | after, subnet | x_pagination_cursor, x_pagination_size, before | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
after | string (date-time) | Query statistics after the given date |
api_host | string | The 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"}}) |
subnet | string (ip-block) | Query statistics for the given subnet (currently, only IPv4/32 or IPv6/64 are supported) |
before | string (date-time) | Query statistics before the given date |
x_pagination_cursor | string | Pagination cursor (wire: X-Pagination-Cursor) |
x_pagination_size | integer | Pagination size (wire: X-Pagination-Size) |
SELECT examples​
- get
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 }}'
;