Skip to main content

actions

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

Overview​

Nameactions
TypeResource
Idgoogle.connectors.actions

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringName of the action.
descriptionstringBrief Description of action
displayNamestringDisplay Name of action to be shown on client side
inputJsonSchemaobjectJsonSchema representation of this actions's input schema (id: JsonSchema)
inputParametersarrayList containing input parameter metadata.
metadataobjectMetadata like service latency, etc.
resultJsonSchemaobjectJsonSchema representation of schema metadata (id: JsonSchema)
resultMetadataarrayList containing the metadata of result fields.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, connectionsId, actionsIdexecutionConfig.headers, viewGets the schema of the given action.
listselectprojectsId, locationsId, connectionsIdexecutionConfig.headers, pageSize, pageToken, viewGets the schema of all the actions supported by the connector.
executeexecprojectsId, locationsId, connectionsId, actionsIdExecutes an action with the name specified in the request. The input parameters for executing the action are passed through the body of the ExecuteAction request.

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
actionsIdstring
connectionsIdstring
locationsIdstring
projectsIdstring
executionConfig.headersstring
pageSizeinteger (int32)
pageTokenstring
viewstring

SELECT examples​

Gets the schema of the given action.

SELECT
name,
description,
displayName,
inputJsonSchema,
inputParameters,
metadata,
resultJsonSchema,
resultMetadata
FROM google.connectors.actions
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND connectionsId = '{{ connectionsId }}' -- required
AND actionsId = '{{ actionsId }}' -- required
AND executionConfig.headers = '{{ executionConfig.headers }}'
AND view = '{{ view }}'
;

Lifecycle Methods​

Executes an action with the name specified in the request. The input parameters for executing the action are passed through the body of the ExecuteAction request.

EXEC google.connectors.actions.execute
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@connectionsId='{{ connectionsId }}' --required,
@actionsId='{{ actionsId }}' --required
@@json=
'{
"executionConfig": "{{ executionConfig }}",
"parameters": "{{ parameters }}"
}'
;