Skip to main content

firewall_bypass

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

Overview

Namefirewall_bypass
TypeResource
Idvercel.security.firewall_bypass

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstring (wire: Id)
actor_idstring (wire: ActorId)
owner_idstring (wire: OwnerId)
project_idstring (wire: ProjectId)
actionstring (block, bypass) (wire: Action)
created_atstring (wire: CreatedAt)
deleted_atstring (wire: DeletedAt)
domainstring (wire: Domain)
expires_atnumber (wire: ExpiresAt)
ipstring (wire: Ip)
is_project_ruleboolean (false, true) (wire: IsProjectRule)
notestring (wire: Note)
updated_atstring (wire: UpdatedAt)
updated_at_hourstring (wire: UpdatedAtHour)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectproject_idlimit, source_ip, domain, project_scope, offset, team_id, slugRetrieve the system bypass rules configured for the specified project
createinsertproject_id, domain, project_scopeteam_id, slugCreate new system bypass rules
deletedeleteproject_idteam_id, slugRemove system bypass rules

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)
domainstringFilter by domain
limitnumber
offsetstringUsed for pagination. Retrieves results after the provided id
project_scopebooleanFilter by project scoped rules (wire: projectScope)
slugstringThe Team slug to perform the request on behalf of.
source_ipstringFilter by source IP (wire: sourceIp)
team_idstringThe Team identifier to perform the request on behalf of. (wire: teamId)

SELECT examples

Retrieve the system bypass rules configured for the specified project

SELECT
id,
actor_id,
owner_id,
project_id,
action,
created_at,
deleted_at,
domain,
expires_at,
ip,
is_project_rule,
note,
updated_at,
updated_at_hour
FROM vercel.security.firewall_bypass
WHERE project_id = '{{ project_id }}' -- required
AND limit = '{{ limit }}'
AND source_ip = '{{ source_ip }}'
AND domain = '{{ domain }}'
AND project_scope = '{{ project_scope }}'
AND offset = '{{ offset }}'
AND team_id = '{{ team_id }}'
AND slug = '{{ slug }}'
;

INSERT examples

Create new system bypass rules

INSERT INTO vercel.security.firewall_bypass (
domain,
project_scope,
source_ip,
all_sources,
ttl,
note,
project_id,
team_id,
slug
)
SELECT
'{{ domain }}' /* required */,
{{ project_scope }} /* required */,
'{{ source_ip }}',
{{ all_sources }},
{{ ttl }},
'{{ note }}',
'{{ project_id }}',
'{{ team_id }}',
'{{ slug }}'
RETURNING
ok,
pagination,
result
;

DELETE examples

Remove system bypass rules

DELETE FROM vercel.security.firewall_bypass
WHERE project_id = '{{ project_id }}' --required
AND team_id = '{{ team_id }}'
AND slug = '{{ slug }}'
;