Skip to main content

asps

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

Overview

Nameasps
TypeResource
Idgoogleadmin.directory.asps

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringThe name of the application that the user, represented by their userId, entered when the ASP was created.
codeIdinteger (int32)The unique ID of the ASP.
creationTimestring (int64)The time when the ASP was created. Expressed in Unix time format.
etagstringETag of the ASP.
kindstringThe type of the API resource. This is always admin#directory#asp. (default: admin#directory#asp)
lastTimeUsedstring (int64)The time when the ASP was last used. Expressed in Unix time format.
userKeystringThe unique ID of the user who issued the ASP.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectuserKey, codeIdGets information about an ASP issued by a user.
listselectuserKeyLists the ASPs issued by a user.
deletedeleteuserKey, codeIdDeletes an ASP issued by a 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
codeIdstring
userKeystring

SELECT examples

Gets information about an ASP issued by a user.

SELECT
name,
codeId,
creationTime,
etag,
kind,
lastTimeUsed,
userKey
FROM googleadmin.directory.asps
WHERE userKey = '{{ userKey }}' -- required
AND codeId = '{{ codeId }}' -- required;

DELETE examples

Deletes an ASP issued by a user.

DELETE FROM googleadmin.directory.asps
WHERE userKey = '{{ userKey }}' --required
AND codeId = '{{ codeId }}' --required;