Skip to main content

failed_logins

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

Overview

Namefailed_logins
TypeResource
Idcloudflare.zero_trust.failed_logins

Fields

The following fields are returned by SELECT queries:

Get failed logins response

NameDatatypeDescription
expirationinteger
metadataobject

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectuser_id, account_idGet all failed login attempts for a single user.

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
account_idstringThe Cloudflare account ID.
user_idstringThe user ID.

SELECT examples

Get all failed login attempts for a single user.

SELECT
expiration,
metadata
FROM cloudflare.zero_trust.failed_logins
WHERE user_id = '{{ user_id }}' -- required
AND account_id = '{{ account_id }}' -- required
;