assessments
Creates, updates, deletes, gets or lists an assessments
resource.
Overview
Name | assessments |
Type | Resource |
Id | google.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:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
create | insert | projectsId | Creates an Assessment of the likelihood an event is legitimate. | |
annotate | exec | projectsId , assessmentsId | Annotates 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.
Name | Datatype | Description |
---|---|---|
assessmentsId | string | |
projectsId | string |
INSERT
examples
- create
- Manifest
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
;
# Description fields are for documentation purposes
- name: assessments
props:
- name: projectsId
value: string
description: Required parameter for the assessments resource.
- name: event
value: object
description: >
Optional. The event being assessed.
- name: accountVerification
value: object
description: >
Optional. Account verification information for identity verification. The assessment event must include a token and site key to use this feature.
- name: privatePasswordLeakVerification
value: object
description: >
Optional. The private password leak verification field contains the parameters that are used to to check for leaks privately without sharing user credentials.
- name: assessmentEnvironment
value: object
description: >
Optional. The environment creating the assessment. This describes your environment (the system invoking CreateAssessment), NOT the environment of your user.
Lifecycle Methods
- annotate
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 }}"
}';