Skip to main content

assessments

Creates, updates, deletes, gets or lists an assessments resource.

Overview

Nameassessments
TypeResource
Idgoogle.recaptchaenterprise.assessments

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:

NameAccessible byRequired ParamsOptional ParamsDescription
createinsertprojectsIdCreates an Assessment of the likelihood an event is legitimate.
annotateexecprojectsId, assessmentsIdAnnotates a previously created Assessment to provide additional information on whether the event turned out to be authentic or fraudulent.

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
assessmentsIdstring
projectsIdstring

INSERT examples

Creates an Assessment of the likelihood an event is legitimate.

INSERT INTO google.recaptchaenterprise.assessments (
data__event,
data__accountVerification,
data__privatePasswordLeakVerification,
data__assessmentEnvironment,
projectsId
)
SELECT
'{{ event }}',
'{{ accountVerification }}',
'{{ privatePasswordLeakVerification }}',
'{{ assessmentEnvironment }}',
'{{ projectsId }}'
RETURNING
name,
accountDefenderAssessment,
accountVerification,
assessmentEnvironment,
event,
firewallPolicyAssessment,
fraudPreventionAssessment,
fraudSignals,
phoneFraudAssessment,
privatePasswordLeakVerification,
riskAnalysis,
tokenProperties
;

Lifecycle Methods

Annotates a previously created Assessment to provide additional information on whether the event turned out to be authentic or fraudulent.

EXEC google.recaptchaenterprise.assessments.annotate 
@projectsId='{{ projectsId }}' --required,
@assessmentsId='{{ assessmentsId }}' --required
@@json=
'{
"annotation": "{{ annotation }}",
"reasons": "{{ reasons }}",
"accountId": "{{ accountId }}",
"hashedAccountId": "{{ hashedAccountId }}",
"transactionEvent": "{{ transactionEvent }}"
}';