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

The following fields are returned by SELECT queries:

Successful response

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.
createTimestring (google-datetime)Output only. The creation time.
labelsobjectOptional. Resource labels.
uidstringOutput only. Server assigned ID of the resource. The server guarantees uniqueness and immutability until deleted.
updateTimestring (google-datetime)Output only. The last-modified time.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, channelConnectionsIdGet a single ChannelConnection.
listselectprojectsId, locationsIdpageSize, pageTokenList channel connections.
createinsertprojectsId, locationsIdchannelConnectionIdCreate a new ChannelConnection in a particular project and location.
deletedeleteprojectsId, locationsId, channelConnectionsIdDelete a single ChannelConnection.

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
channelConnectionsIdstring
locationsIdstring
projectsIdstring
channelConnectionIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Get a single ChannelConnection.

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

INSERT examples

Create a new ChannelConnection in a particular project and location.

INSERT INTO google.eventarc.channel_connections (
data__name,
data__channel,
data__activationToken,
data__labels,
projectsId,
locationsId,
channelConnectionId
)
SELECT
'{{ name }}',
'{{ channel }}',
'{{ activationToken }}',
'{{ labels }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ channelConnectionId }}'
RETURNING
name,
done,
error,
metadata,
response
;

DELETE examples

Delete a single ChannelConnection.

DELETE FROM google.eventarc.channel_connections
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND channelConnectionsId = '{{ channelConnectionsId }}' --required;