firewall_events
Creates, updates, deletes, gets or lists a firewall_events resource.
Overview
| Name | firewall_events |
| Type | Resource |
| Id | vercel.security.firewall_events |
Fields
The following fields are returned by SELECT queries:
- list
| Name | Datatype | Description |
|---|---|---|
actions | array |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | project_id | start_timestamp, end_timestamp, hosts, team_id, slug | 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. |
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 |
|---|---|---|
project_id | string | (wire: projectId) |
end_timestamp | number | (wire: endTimestamp) |
hosts | string | |
slug | string | The Team slug to perform the request on behalf of. |
start_timestamp | number | (wire: startTimestamp) |
team_id | string | The Team identifier to perform the request on behalf of. (wire: teamId) |
SELECT examples
- list
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 }}'
;