Skip to main content

Google Cloud Pub/Sub Connector

Google Cloud Pub/Sub Google Cloud Pub/Sub provides messaging between applications. Publisher applications can send messages to a 'topic' and other applications can subscribe to that topic to receive the messages.

Connections

Google Pub/Sub Private Key

Authenticate requests to Google Cloud Storage using values obtained from the Google Cloud Platform.

InputCommentsDefault
Client EmailThe email address of the client you would like to connect.
Private KeyThe private key of the client you would like to connect.
Project IdThe ID of the project that hosts the storage bucket
ScopesSpace delimited listing of scopes. https://developers.google.com/identity/protocols/oauth2/scopes#pubsubhttps://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/pubsub

OAuth2

OAuth2 Connection

This connection uses OAuth 2.0, a common authentication mechanism for integrations. Read about how OAuth 2.0 works here.

InputCommentsDefault
ScopesSpace delimited listing of scopes. https://developers.google.com/identity/protocols/oauth2/scopes#pubsubhttps://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/pubsub
Client IDThe Google Cloud Pub/Sub app's Client Identifier.
Client SecretThe Google Cloud Pub/Sub app's Client Secret.

Triggers

PubSub Notification

PubSub Notification Trigger Settings

Actions

Create Subscription

Creates a subscription to a given topic.

InputCommentsDefault
Connection
Project IDProject ID of the datasets to be listed
SubscriptionThe name of the subscription to create.
TopicThe name of the topic from which this subscription is receiving messages. The value of this field will be deleted-topic if the topic has been deleted.
Topic Name or Full FormatSelect if the provided topic input is a full format topic name including project, for example: 'projects/projectId/topics/topicName' or just the topic name, for example: 'topicName'
Push ConfigIf push delivery is used with this subscription, this field is used to configure it.
BigQuery ConfigIf delivery to BigQuery is used with this subscription, this field is used to configure it.
Ack Deadline SecondsThe approximate amount of time (on a best-effort basis) Pub/Sub waits for the subscriber to acknowledge receipt before resending the message. In the interval after the message is delivered and before it is acknowledged, it is considered to be outstanding. During that time period, the message will not be redelivered (on a best-effort basis). For pull subscriptions, this value is used as the initial value for the ack deadline. To override this value for a given message, call subscriptions.modifyAckDeadline with the corresponding ackId if using non-streaming pull or send the ackId in a StreamingModifyAckDeadlineRequest if using streaming pull. The minimum custom deadline you can specify is 10 seconds. The maximum custom deadline you can specify is 600 seconds (10 minutes). If this parameter is 0, a default value of 10 seconds is used.
Retain Acked MessagesIndicates whether to retain acknowledged messages. If true, then messages are not expunged from the subscription's backlog, even if they are acknowledged, until they fall out of the messageRetentionDuration window. This must be true if you would like to subscriptions.seek to a timestamp in the past to replay previously-acknowledged messages.false
Message Retention DurationIndicates the minimum duration to retain a message after it is published to the topic. If this field is set, messages published to the topic in the last messageRetentionDuration are always available to subscribers. For instance, it allows any attached subscription to seek to a timestamp that is up to messageRetentionDuration in the past. If this field is not set, message retention is controlled by settings on individual subscriptions. Cannot be more than 31 days or less than 10 minutes. A duration in seconds with up to nine fractional digits, ending with 's'. Example: '1200s'.
LabelsThe labels associated with this dataset. You can use these to organize and group your datasets. You can set this property when inserting or updating a dataset. See Creating and Updating Dataset Labels for more information.
Enable Message OrderingIf true, messages published with the same orderingKey in PubsubMessage will be delivered to the subscribers in the order in which they are received by the Pub/Sub system. Otherwise, they may be delivered in any order.false
Expiration PolicyA policy that specifies the conditions for this subscription's expiration. A subscription is considered active as long as any connected subscriber is successfully consuming messages from the subscription or is issuing operations on the subscription. If expirationPolicy is not set, a default policy with ttl of 31 days will be used. The minimum allowed value for expirationPolicy.ttl is 1 day. If expirationPolicy is set, but expirationPolicy.ttl is not set, the subscription never expires.
FilterAn expression written in the Pub/Sub filter language. If non-empty, then only PubsubMessages whose attributes field matches the filter are delivered on this subscription. If empty, then no messages are filtered out.
Dead Letter PolicyA policy that specifies the conditions for dead lettering messages in this subscription. If deadLetterPolicy is not set, dead lettering is disabled.
Retry PolicyA policy that specifies how Pub/Sub retries message delivery for this subscription. If not set, the default retry policy is applied. This generally implies that messages will be retried as soon as possible for healthy subscribers. RetryPolicy will be triggered on NACKs or acknowledgement deadline exceeded events for a given message.
DetachedIndicates whether the subscription is detached from its topic. Detached subscriptions don't receive messages from their topic and don't retain any backlog. subscriptions.pull and StreamingPull requests will return FAILED_PRECONDITION. If the subscription is a push subscription, pushes to the endpoint will not be made.false
Enable Exactly Once DeliveryIf true, Pub/Sub provides the following guarantees for the delivery of a message with a given value of messageId on this subscription: - The message sent to a subscriber is guaranteed not to be resent before the message's acknowledgement deadline expires. - An acknowledged message will not be resent to a subscriber.false
Topic Message Retention DurationOutput only. Indicates the minimum duration for which a message is retained after it is published to the subscription's topic. If this field is set, messages published to the subscription's topic in the last topicMessageRetentionDuration are always available to subscribers. See the messageRetentionDuration field in Topic. This field is set only in responses from the server; it is ignored if it is set in any requests. A duration in seconds with up to nine fractional digits, ending with 's'. Example: '1200s'.
StateOutput only. An output-only field indicating whether or not the subscription can receive messages.

Create Topic

Creates the given topic with the given name.

InputCommentsDefault
Connection
Project IDProject ID of the datasets to be listed
TopicName of the new topic
LabelsThe labels associated with this dataset. You can use these to organize and group your datasets. You can set this property when inserting or updating a dataset. See Creating and Updating Dataset Labels for more information.
Message Storage PolicyPolicy constraining the set of Google Cloud Platform regions where messages published to the topic may be stored. If not present, then no constraints are in effect.
KMS Key NameThe resource name of the Cloud KMS CryptoKey to be used to protect access to messages published on this topic.
Schema SettingsSettings for validating messages published against a schema.
Satisfies PZSOutput only. Reserved for future use.false
Message Retention DurationIndicates the minimum duration to retain a message after it is published to the topic. If this field is set, messages published to the topic in the last messageRetentionDuration are always available to subscribers. For instance, it allows any attached subscription to seek to a timestamp that is up to messageRetentionDuration in the past. If this field is not set, message retention is controlled by settings on individual subscriptions. Cannot be more than 31 days or less than 10 minutes. A duration in seconds with up to nine fractional digits, ending with 's'. Example: '1200s'.

Create Webhook Subscription

Creates a webhook subscription to a given topic.

InputCommentsDefault
Connection
Project IDProject ID of the datasets to be listed
Subscription NameThe name of the subscription to create.
TopicThe name of the topic to get.
Topic Name or Full FormatSelect if the provided topic input is a full format topic name including project, for example: 'projects/projectId/topics/topicName' or just the topic name, for example: 'topicName'
Webhook URLThe URL of the endpoint to which messages are sent. This is typically the webhook URL of a sibling flow.

Delete Subscription

Deletes an existing subscription.

InputCommentsDefault
Connection
Project IDProject ID of the datasets to be listed
SubscriptionThe name of the subscription to get.
Subscription Name or Full FormatSelect if the provided subscription input is a full format subscription name including project, for example: 'projects/projectId/subscriptions/subscriptionName' or just the topic name, for example: 'subscriptionName'

Delete Topic

Deletes the topic with the given name.

InputCommentsDefault
Connection
Project IDProject ID of the datasets to be listed
TopicThe name of the topic to get.
Topic Name or Full FormatSelect if the provided topic input is a full format topic name including project, for example: 'projects/projectId/topics/topicName' or just the topic name, for example: 'topicName'

Get Policy

Gets the access control policy for a resource.

InputCommentsDefault
Connection
ResourceThe resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Requested Policy VersionThe maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1.

Get Subscription

Gets the configuration details of a subscription.

InputCommentsDefault
Connection
Project IDProject ID of the datasets to be listed
SubscriptionThe name of the subscription to get.
Subscription Name or Full FormatSelect if the provided subscription input is a full format subscription name including project, for example: 'projects/projectId/subscriptions/subscriptionName' or just the topic name, for example: 'subscriptionName'

Get Topic

Gets the configuration of a topic.

InputCommentsDefault
Connection
Project IDProject ID of the datasets to be listed
TopicThe name of the topic to get.
Topic Name or Full FormatSelect if the provided topic input is a full format topic name including project, for example: 'projects/projectId/topics/topicName' or just the topic name, for example: 'topicName'

List Subscriptions

Lists matching Subscriptions.

InputCommentsDefault
Connection
Project IDProject ID of the datasets to be listed
Page TokenMaximum number of subscriptions to return.
Page SizeThe value returned by the last ListSubscriptionsResponse; indicates that this is a continuation of a prior subscriptions.list call, and that the system should return the next page of data.

List Topics

Lists matching topics.

InputCommentsDefault
Connection
Project IDProject ID of the datasets to be listed
Page TokenPage token, returned by a previous call, to request the next page of results
Page SizeOptional. The value returned by the last ListTopicsResponse; indicates that this is a continuation of a prior topics.list call, and that the system should return the next page of data.

Pull Messages

Pulls messages from the server.

InputCommentsDefault
Connection
Project IDProject ID of the datasets to be listed
SubscriptionThe name of the subscription to get.
Subscription Name or Full FormatSelect if the provided subscription input is a full format subscription name including project, for example: 'projects/projectId/subscriptions/subscriptionName' or just the topic name, for example: 'subscriptionName'
Max MessagesThe maximum number of messages to return for this request. Must be a positive integer. The Pub/Sub system may return fewer than the number specified.
Return ImmediatelyIf this field set to true, the system will respond immediately even if it there are no messages available to return in the subscriptions.pull response. Otherwise, the system may wait (for a bounded amount of time) until at least one message is available, rather than returning no messages. Warning: setting this field to true is discouraged because it adversely impacts the performance of subscriptions.pull operations. We recommend that users do not set this field.false

Raw Request

Send raw HTTP request to Google Cloud Pub/Sub

InputCommentsDefault
Connection
API VersionThe API version to use. This is used to construct the base URL for the request.v1
URLInput the path only (/projects/{projectId}/topics), The base URL is already included (https://pubsub.googleapis.com/{version}). For example, to connect to https://pubsub.googleapis.com/v1/projects/{projectId}/topics, only /projects/{projectId}/topics is entered in this field.
MethodThe HTTP method to use.
DataThe HTTP body payload to send to the URL.
Form DataThe Form Data to be sent as a multipart form upload.
File DataFile Data to be sent as a multipart form upload.
File Data File NamesFile names to apply to the file data inputs. Keys must match the file data keys above.
Query ParameterA list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2.
HeaderA list of headers to send with the request.
Response TypeThe type of data you expect in the response. You can request json, text, or binary data.json
TimeoutThe maximum time that a client will await a response to its request
Debug RequestEnabling this flag will log out the current request.false
Retry Delay (ms)The delay in milliseconds between retries.0
Retry On All ErrorsIf true, retries on all erroneous responses regardless of type.false
Max Retry CountThe maximum number of retries to attempt.0
Use Exponential BackoffSpecifies whether to use a pre-defined exponential backoff strategy for retries.false

Set Gmail IAM Policy for Topic

Configure a topic to allow publish notifications from Gmail.

InputCommentsDefault
Connection
TopicThe full name of the topic to set the IAM policy for

Set Policy

Sets the access control policy on the specified resource.

InputCommentsDefault
Connection
ResourceThe resource for which the policy is being requested. See Resource names for the appropriate value for this field.
PolicyThe complete policy to be applied to the resource. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services (such as Projects) might reject them.

Update Push Config

This may be used to change a push subscription to a pull one (signified by an empty PushConfig) or vice versa, or change the endpoint URL and other attributes of a push subscription.

InputCommentsDefault
Connection
Project IDProject ID of the datasets to be listed
SubscriptionThe name of the subscription to get.
Subscription Name or Full FormatSelect if the provided subscription input is a full format subscription name including project, for example: 'projects/projectId/subscriptions/subscriptionName' or just the topic name, for example: 'subscriptionName'
Push EndpointA URL locating the endpoint to which messages should be pushed. For example, a Webhook endpoint might use https://example.com/push.
AttributesEndpoint configuration attributes that can be used to control different aspects of the message delivery. The only currently supported attribute is x-goog-version, which you can use to change the format of the pushed message. This attribute indicates the version of the data expected by the endpoint. This controls the shape of the pushed message (i.e., its fields and metadata). The only supported values for the x-goog-version attribute are: - v1beta1: uses the push format defined in the v1beta1 Pub/Sub API. - v1 or v1beta2: uses the push format defined in the v1 Pub/Sub API.
Oidc TokenIf specified, Pub/Sub will generate and attach an OIDC JWT token as an Authorization header in the HTTP request for every pushed message.

Update Subscription

Updates an existing subscription.

InputCommentsDefault
Connection
Project IDProject ID of the datasets to be listed
SubscriptionThe name of the subscription to get.
TopicThe name of the topic from which this subscription is receiving messages. The value of this field will be deleted-topic if the topic has been deleted.
Subscription Name or Full FormatSelect if the provided subscription input is a full format subscription name including project, for example: 'projects/projectId/subscriptions/subscriptionName' or just the topic name, for example: 'subscriptionName'
Update MaskIndicates which fields in the provided topic to update. Must be specified and non-empty. Note that if updateMask contains 'messageStoragePolicy' but the messageStoragePolicy is not set in the topic provided above, then the updated value is determined by the policy configured at the project or organization level. This is a comma-separated list of fully qualified names of fields. Example: 'user.displayName,photo'.
Push ConfigIf push delivery is used with this subscription, this field is used to configure it.
BigQuery ConfigIf delivery to BigQuery is used with this subscription, this field is used to configure it.
Ack Deadline SecondsThe approximate amount of time (on a best-effort basis) Pub/Sub waits for the subscriber to acknowledge receipt before resending the message. In the interval after the message is delivered and before it is acknowledged, it is considered to be outstanding. During that time period, the message will not be redelivered (on a best-effort basis). For pull subscriptions, this value is used as the initial value for the ack deadline. To override this value for a given message, call subscriptions.modifyAckDeadline with the corresponding ackId if using non-streaming pull or send the ackId in a StreamingModifyAckDeadlineRequest if using streaming pull. The minimum custom deadline you can specify is 10 seconds. The maximum custom deadline you can specify is 600 seconds (10 minutes). If this parameter is 0, a default value of 10 seconds is used.
Retain Acked MessagesIndicates whether to retain acknowledged messages. If true, then messages are not expunged from the subscription's backlog, even if they are acknowledged, until they fall out of the messageRetentionDuration window. This must be true if you would like to subscriptions.seek to a timestamp in the past to replay previously-acknowledged messages.false
Message Retention DurationIndicates the minimum duration to retain a message after it is published to the topic. If this field is set, messages published to the topic in the last messageRetentionDuration are always available to subscribers. For instance, it allows any attached subscription to seek to a timestamp that is up to messageRetentionDuration in the past. If this field is not set, message retention is controlled by settings on individual subscriptions. Cannot be more than 31 days or less than 10 minutes. A duration in seconds with up to nine fractional digits, ending with 's'. Example: '1200s'.
LabelsThe labels associated with this dataset. You can use these to organize and group your datasets. You can set this property when inserting or updating a dataset. See Creating and Updating Dataset Labels for more information.
Enable Message OrderingIf true, messages published with the same orderingKey in PubsubMessage will be delivered to the subscribers in the order in which they are received by the Pub/Sub system. Otherwise, they may be delivered in any order.false
Expiration PolicyA policy that specifies the conditions for this subscription's expiration. A subscription is considered active as long as any connected subscriber is successfully consuming messages from the subscription or is issuing operations on the subscription. If expirationPolicy is not set, a default policy with ttl of 31 days will be used. The minimum allowed value for expirationPolicy.ttl is 1 day. If expirationPolicy is set, but expirationPolicy.ttl is not set, the subscription never expires.
FilterAn expression written in the Pub/Sub filter language. If non-empty, then only PubsubMessages whose attributes field matches the filter are delivered on this subscription. If empty, then no messages are filtered out.
Dead Letter PolicyA policy that specifies the conditions for dead lettering messages in this subscription. If deadLetterPolicy is not set, dead lettering is disabled.
Retry PolicyA policy that specifies how Pub/Sub retries message delivery for this subscription. If not set, the default retry policy is applied. This generally implies that messages will be retried as soon as possible for healthy subscribers. RetryPolicy will be triggered on NACKs or acknowledgement deadline exceeded events for a given message.
DetachedIndicates whether the subscription is detached from its topic. Detached subscriptions don't receive messages from their topic and don't retain any backlog. subscriptions.pull and StreamingPull requests will return FAILED_PRECONDITION. If the subscription is a push subscription, pushes to the endpoint will not be made.false
Enable Exactly Once DeliveryIf true, Pub/Sub provides the following guarantees for the delivery of a message with a given value of messageId on this subscription: - The message sent to a subscriber is guaranteed not to be resent before the message's acknowledgement deadline expires. - An acknowledged message will not be resent to a subscriber.false
Topic Message Retention DurationOutput only. Indicates the minimum duration for which a message is retained after it is published to the subscription's topic. If this field is set, messages published to the subscription's topic in the last topicMessageRetentionDuration are always available to subscribers. See the messageRetentionDuration field in Topic. This field is set only in responses from the server; it is ignored if it is set in any requests. A duration in seconds with up to nine fractional digits, ending with 's'. Example: '1200s'.
StateOutput only. An output-only field indicating whether or not the subscription can receive messages.

Update Topic

Updates an existing topic.

InputCommentsDefault
Connection
Project IDProject ID of the datasets to be listed
TopicName of the topic
Topic Name or Full FormatSelect if the provided topic input is a full format topic name including project, for example: 'projects/projectId/topics/topicName' or just the topic name, for example: 'topicName'
Update MaskIndicates which fields in the provided topic to update. Must be specified and non-empty. Note that if updateMask contains 'messageStoragePolicy' but the messageStoragePolicy is not set in the topic provided above, then the updated value is determined by the policy configured at the project or organization level. This is a comma-separated list of fully qualified names of fields. Example: 'user.displayName,photo'.
LabelsThe labels associated with this dataset. You can use these to organize and group your datasets. You can set this property when inserting or updating a dataset. See Creating and Updating Dataset Labels for more information.
Message Storage PolicyPolicy constraining the set of Google Cloud Platform regions where messages published to the topic may be stored. If not present, then no constraints are in effect.
KMS Key NameThe resource name of the Cloud KMS CryptoKey to be used to protect access to messages published on this topic.
Schema SettingsSettings for validating messages published against a schema.
Satisfies PZSOutput only. Reserved for future use.false
Message Retention DurationIndicates the minimum duration to retain a message after it is published to the topic. If this field is set, messages published to the topic in the last messageRetentionDuration are always available to subscribers. For instance, it allows any attached subscription to seek to a timestamp that is up to messageRetentionDuration in the past. If this field is not set, message retention is controlled by settings on individual subscriptions. Cannot be more than 31 days or less than 10 minutes. A duration in seconds with up to nine fractional digits, ending with 's'. Example: '1200s'.