vac_events
Creates, updates, deletes, gets or lists a vac_events resource.
Overview​
| Name | vac_events |
| Type | Resource |
| Id | ovh.network_defense.vac_events |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
events | array | List of events |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | x_pagination_cursor, x_pagination_size, after, before, ongoing_only, region, subnets | 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. |
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 |
|---|---|---|
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"}}) |
after | string (date-time) | Query events which started after the given date |
before | string (date-time) | Query events which ended before the given date |
ongoing_only | boolean | Query for ongoing events only. If this is set, after and before parameters are ignored. (wire: ongoingOnly) |
region | string | Query events for the given region |
subnets | array | Query events for the given subnets |
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 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 }}'
;