attack_challenge_mode
Creates, updates, deletes, gets or lists an attack_challenge_mode resource.
Overview
| Name | attack_challenge_mode |
| Type | Resource |
| Id | vercel.security.attack_challenge_mode |
Fields
The following fields are returned by SELECT queries:
SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
update | update | project_id, attack_mode_enabled, attack_mode_active_until | team_id, slug | Update the setting for determining if the project has Attack Challenge mode enabled. |
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 |
|---|---|---|
slug | string | The Team slug to perform the request on behalf of. |
team_id | string | The Team identifier to perform the request on behalf of. (wire: teamId) |
UPDATE examples
- update
Update the setting for determining if the project has Attack Challenge mode enabled.
UPDATE vercel.security.attack_challenge_mode
SET
project_id = '{{ project_id }}',
attack_mode_enabled = {{ attack_mode_enabled }},
attack_mode_active_until = {{ attack_mode_active_until }}
WHERE
project_id = '{{ project_id }}' --required
AND attack_mode_enabled = {{ attack_mode_enabled }} --required
AND attack_mode_active_until = '{{ attack_mode_active_until }}' --required
AND team_id = '{{ team_id}}'
AND slug = '{{ slug}}'
RETURNING
attack_mode_enabled,
attack_mode_updated_at;