Skip to main content

verification_codes

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

Overview​

Nameverification_codes
TypeResource
Idgoogleadmin.directory.verification_codes

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
etagstringETag of the resource.
itemsarrayA list of verification code resources.
kindstringThe type of the resource. This is always admin#directory#verificationCodesList. (default: admin#directory#verificationCodesList)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectuserKeyReturns the current set of valid backup verification codes for the specified user.
generateexecuserKeyGenerates new backup verification codes for the user.
invalidateexecuserKeyInvalidates the current backup verification codes for the 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
userKeystring

SELECT examples​

Returns the current set of valid backup verification codes for the specified user.

SELECT
etag,
items,
kind
FROM googleadmin.directory.verification_codes
WHERE userKey = '{{ userKey }}' -- required
;

Lifecycle Methods​

Generates new backup verification codes for the user.

EXEC googleadmin.directory.verification_codes.generate
@userKey='{{ userKey }}' --required
;