channel_connections
Creates, updates, deletes, gets or lists a channel_connections
resource.
Overview
Name | channel_connections |
Type | Resource |
Id | google.eventarc.channel_connections |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Required. The name of the connection. |
activationToken | string | Input 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. |
channel | string | Required. 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. |
createTime | string | Output only. The creation time. |
uid | string | Output only. Server assigned ID of the resource. The server guarantees uniqueness and immutability until deleted. |
updateTime | string | Output only. The last-modified time. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | channelConnectionsId, locationsId, projectsId | Get a single ChannelConnection. |
list | SELECT | locationsId, projectsId | List channel connections. |
create | INSERT | locationsId, projectsId | Create a new ChannelConnection in a particular project and location. |
delete | DELETE | channelConnectionsId, locationsId, projectsId | Delete 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.eventarc.channel_connections (
locationsId,
projectsId,
name,
channel,
activationToken
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ channel }}',
'{{ activationToken }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: uid
value: string
- name: channel
value: string
- name: createTime
value: string
- name: updateTime
value: string
- name: activationToken
value: string
DELETE
example
Deletes the specified channel_connections
resource.
/*+ delete */
DELETE FROM google.eventarc.channel_connections
WHERE channelConnectionsId = '{{ channelConnectionsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';