Skip to main content

connections

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

Overview

Nameconnections
TypeResource
Idgoogle.connectors.connections

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
check_statusexecprojectsId, locationsId, connectionsIdReports the status of the connection. Note that when the connection is in a state that is not ACTIVE, the implementation of this RPC method must return a Status with the corresponding State instead of returning a gRPC status code that is not "OK", which indicates that ConnectionStatus itself, not the connection, failed.
check_readinessexecprojectsId, locationsId, connectionsIdReports readiness status of the connector. Similar logic to GetStatus but modified for kubernetes health check to understand.
exchange_auth_codeexecprojectsId, locationsId, connectionsIdExchangeAuthCode exchanges the OAuth authorization code (and other necessary data) for an access token (and associated credentials).
refresh_access_tokenexecprojectsId, locationsId, connectionsIdRefreshAccessToken exchanges the OAuth refresh token (and other necessary data) for a new access token (and new associated credentials).
execute_sql_queryexecprojectsId, locationsId, connectionsIdExecutes a SQL statement specified in the body of the request. An example of this SQL statement in the case of Salesforce connector would be 'select * from Account a, Order o where a.Id = o.AccountId'.

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
connectionsIdstring
locationsIdstring
projectsIdstring

Lifecycle Methods

Reports the status of the connection. Note that when the connection is in a state that is not ACTIVE, the implementation of this RPC method must return a Status with the corresponding State instead of returning a gRPC status code that is not "OK", which indicates that ConnectionStatus itself, not the connection, failed.

EXEC google.connectors.connections.check_status 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@connectionsId='{{ connectionsId }}' --required;