Skip to main content

firewall_events

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

Overview

Namefirewall_events
TypeResource
Idvercel.security.firewall_events

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
actionsarray

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectproject_idstart_timestamp, end_timestamp, hosts, team_id, slugRetrieve firewall actions for a project Rule names are resolved against the project's current active firewall configuration and the team's active rulesets, so a rule that has since been renamed reports its new name and one that has been deleted reports null. System rules such as sys_dos_mitigation and ip_blocking have no configured name and always report null.

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
project_idstring (wire: projectId)
end_timestampnumber (wire: endTimestamp)
hostsstring
slugstringThe Team slug to perform the request on behalf of.
start_timestampnumber (wire: startTimestamp)
team_idstringThe Team identifier to perform the request on behalf of. (wire: teamId)

SELECT examples

Retrieve firewall actions for a project Rule names are resolved against the project's current active firewall configuration and the team's active rulesets, so a rule that has since been renamed reports its new name and one that has been deleted reports null. System rules such as sys_dos_mitigation and ip_blocking have no configured name and always report null.

SELECT
actions
FROM vercel.security.firewall_events
WHERE project_id = '{{ project_id }}' -- required
AND start_timestamp = '{{ start_timestamp }}'
AND end_timestamp = '{{ end_timestamp }}'
AND hosts = '{{ hosts }}'
AND team_id = '{{ team_id }}'
AND slug = '{{ slug }}'
;