Skip to main content

channel_connections

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

Overview

Namechannel_connections
TypeResource
Idgoogle.eventarc.channel_connections

Fields

NameDatatypeDescription
namestringRequired. The name of the connection.
activationTokenstringInput only. Activation token for the channel. The token will be used during the creation of ChannelConnection to bind the channel with the provider project. This field will not be stored in the provider resource.
channelstringRequired. The name of the connected subscriber Channel. This is a weak reference to avoid cross project and cross accounts references. This must be in projects/{project}/location/{location}/channels/{channel_id} format.
createTimestringOutput only. The creation time.
uidstringOutput only. Server assigned ID of the resource. The server guarantees uniqueness and immutability until deleted.
updateTimestringOutput only. The last-modified time.

Methods

NameAccessible byRequired ParamsDescription
getSELECTchannelConnectionsId, locationsId, projectsIdGet a single ChannelConnection.
listSELECTlocationsId, projectsIdList channel connections.
createINSERTlocationsId, projectsIdCreate a new ChannelConnection in a particular project and location.
deleteDELETEchannelConnectionsId, locationsId, projectsIdDelete a single ChannelConnection.

SELECT examples

List channel connections.

SELECT
name,
activationToken,
channel,
createTime,
uid,
updateTime
FROM google.eventarc.channel_connections
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new channel_connections resource.

/*+ create */
INSERT INTO google.eventarc.channel_connections (
locationsId,
projectsId,
name,
channel,
activationToken
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ channel }}',
'{{ activationToken }}'
;

DELETE example

Deletes the specified channel_connections resource.

/*+ delete */
DELETE FROM google.eventarc.channel_connections
WHERE channelConnectionsId = '{{ channelConnectionsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';