Google Cloud Pub/Sub
Google Cloud Pub / Sub Pack.#
This Integration is part of theGoogle Cloud Pub / Sub is a fully-managed real-time messaging service that allows you to send and receive messages between independent applications. This integration was integrated and tested with Google Cloud Pub/Sub
#
Required PermissionsTo use this integration you must have a Service Account with one of the following roles:
- Project-Owner
- Project-Editor
- Pub/Sub Admin
- Pub/Sub Editor
#
Known LimitationsWhen clicking on Reset the "last run" timestamp, messages that were recently pulled (including pulls via classification mapper) might take a few minutes before they can be fetched again. Because the fetch ignores older messages once newer ones were fetched, it's recommended to wait a few minutes following a reset before trying to fetch again, to prevent older messages from being dropped.
#
Configure GooglePubSub in CortexParameter | Description | Required |
---|---|---|
service_account_json | Service Account Private Key File Contents (JSON) | True |
insecure | Trust any certificate (not secure) | False |
proxy | Use system proxy settings | False |
isFetch | Fetch incidents | False |
incidentType | Incident type | False |
default_subscription | Fetch Incidents Subscription ID | False |
default_project | Fetch Incidents Project ID | False |
default_max_msgs | Max Incidents Per Fetch | False |
#
CommandsYou can execute these commands from the CLI, as part of an automation, or in a playbook. After you successfully execute a command, a DBot message appears in the War Room with the command details.
#
gcp-pubsub-topics-listGet a list of the project's topics.
#
Base Commandgcp-pubsub-topics-list
#
InputArgument Name | Description | Required |
---|---|---|
project_id | ID of the project to look in. | Optional |
page_size | Max amount of entries to get. | Optional |
page_token | Next page token as returned from "gcp-pubsub-topics-list" command | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudPubSubTopics.name | String | Name of the topic |
GoogleCloudPubSub.Topics.nextPageToken | String | If not empty, indicates that there may be more topics that match the request. |
#
Command Example!gcp-pubsub-topics-list project_id=dmst-integrations
#
Context Example#
Human Readable Output#
Topics for project dmst-integrationsname |
---|
projects/dmst-integrations/topics/dmst-topic |
#
gcp-pubsub-topic-publish-messagePublish a message in a topic.
#
Base Commandgcp-pubsub-topic-publish-message
#
InputArgument Name | Description | Required |
---|---|---|
topic_id | ID of the topic e.g. "projects/{project_id}/topics/topic_id". | Required |
data | The message data field. If this field is empty, the message must contain at least one attribute. | Optional |
attributes | Attributes for this message. If this field is empty, the message must contain non-empty data. Input format: "key=val" pairs sepearated by ",". | Optional |
project_id | Project ID. | Optional |
delim_char_attributes | Set delimiter of attributes split. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudPubSubPublishedMessages.messageId | String | ID of the published message |
GoogleCloudPubSubPublishedMessages.topic | String | Topic of the published message |
GoogleCloudPubSubPublishedMessages.data | String | Text data of the published message. |
GoogleCloudPubSubPublishedMessages.attributes | Unknown | The message attributes. |
#
Command Example!gcp-pubsub-topic-publish-message data="42 is the answer" project_id=dmst-integrations topic_id=dmst-topic delim_char_attributes=","
#
Context Example#
Human Readable Output#
Google Cloud PubSub has published the message successfullyData | Message Id | Topic |
---|---|---|
42 is the answer | 874663628353499 | dmst-topic |
#
gcp-pubsub-topic-subscription-get-by-nameGet subscription details by subscription ID.
#
Base Commandgcp-pubsub-topic-subscription-get-by-name
#
InputArgument Name | Description | Required |
---|---|---|
project_id | ID of the project from which the subscription is receiving messages. | Optional |
subscription_id | ID of the subscription, without project/topic prefix. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudPubSubSubscriptions.ackDeadlineSeconds | Number | The amount of time Pub/Sub waits for the subscriber to acknowledge receipt before resending the message. |
GoogleCloudPubSubSubscriptions.expirationPolicy.ttl | String | The "time-to-live" duration for the subscription. |
GoogleCloudPubSubSubscriptions.messageRetentionDuration | String | How long to retain unacknowledged messages in the subscription's backlog |
GoogleCloudPubSubSubscriptions.name | String | Name of the subscription |
GoogleCloudPubSubSubscriptions.topic | String | Name of the topic from which the subscription is receiving messages |
#
Command Example!gcp-pubsub-topic-subscription-get-by-name subscription_id=test_sub_2 project_id=dmst-integrations
#
Context Example#
Human Readable Output#
Subscription test_sub_2ackDeadlineSeconds | expirationPolicy | messageRetentionDuration | name | pushConfig | topic |
---|---|---|---|---|---|
10 | ttl: 9999999999s | 604800s | projects/dmst-integrations/subscriptions/test_sub_2 | projects/dmst-integrations/topics/dmst-topic |
#
gcp-pubsub-topic-subscriptions-listGet a list of subscriptions by project ID or topic ID.
#
Base Commandgcp-pubsub-topic-subscriptions-list
#
InputArgument Name | Description | Required |
---|---|---|
project_id | ID of the project from which the subscription is receiving messages. | Optional |
topic_id | ID of the topic from which the subscription is receiving messages. | Optional |
page_size | Max number of results | Optional |
page_token | Next page token as returned from the API. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudPubSubSubscriptions.ackDeadlineSeconds | Number | The amount of time Pub/Sub waits for the subscriber to acknowledge receipt before resending the message. |
GoogleCloudPubSubSubscriptions.expirationPolicy.ttl | String | The "time-to-live" duration for the subscription |
GoogleCloudPubSubSubscriptions.messageRetentionDuration | String | How long to retain unacknowledged messages in the subscription's backlog |
GoogleCloudPubSubSubscriptions.name | String | Name of the subscription |
GoogleCloudPubSubSubscriptions.topic | String | Name of the topic from which the subscription is receiving messages. |
GoogleCloudPubSubSubscriptions.pushConfig.pushEndpoint | String | A URL locating the endpoint to which messages should be pushed. |
c | Unknown | If not empty, indicates that there may be more snapshot that match the request. |
#
Command Example!gcp-pubsub-topic-subscriptions-list project_id=dmst-integrations
#
Context Example#
Human Readable Output#
Subscriptions in project dmst-integrationsName | Topic | Ack Deadline Seconds | Labels |
---|---|---|---|
projects/dmst-integrations/subscriptions/dean-sub1 | projects/dmst-integrations/topics/dmst-topic | 11 | |
projects/dmst-integrations/subscriptions/dean-sub2 | projects/dmst-integrations/topics/dmst-topic | 10 | |
projects/dmst-integrations/subscriptions/test_sub_1 | projects/dmst-integrations/topics/dmst-topic | 10 | |
projects/dmst-integrations/subscriptions/test_sub | projects/dmst-integrations/topics/dmst-topic | 10 | |
projects/dmst-integrations/subscriptions/test_sub_2 | projects/dmst-integrations/topics/dmst-topic | 10 | |
projects/dmst-integrations/subscriptions/test_sub_1587031883059 | projects/dmst-integrations/topics/dmst-topic | 10 | |
projects/dmst-integrations/subscriptions/test_sub_1587032827289 | projects/dmst-integrations/topics/dmst-topic | 10 | test: true |
projects/dmst-integrations/subscriptions/test_sub_1587039285961 | projects/dmst-integrations/topics/dmst-topic | 10 | test: true |
projects/dmst-integrations/subscriptions/test_sub_1587038878685 | projects/dmst-integrations/topics/dmst-topic | 10 | test: true |
projects/dmst-integrations/subscriptions/test_sub_1587039587203 | projects/dmst-integrations/topics/dmst-topic | 10 | test: true |
projects/dmst-integrations/subscriptions/test_sub_1587040075117 | projects/dmst-integrations/topics/dmst-topic | 10 | test: true |
projects/dmst-integrations/subscriptions/test_sub_1587042146495 | projects/dmst-integrations/topics/dmst-topic | 10 | test: true |
projects/dmst-integrations/subscriptions/test_sub_1587043084505 | projects/dmst-integrations/topics/dmst-topic | 10 | test: true |
projects/dmst-integrations/subscriptions/doc_sub | projects/dmst-integrations/topics/dmst-topic | 10 | doc: true |
projects/dmst-integrations/subscriptions/gcf-function-1-us-central1-dmst-topic | projects/dmst-integrations/topics/dmst-topic | 600 |
#
gcp-pubsub-topic-messages-pullPull messages that were published.
#
Base Commandgcp-pubsub-topic-messages-pull
#
InputArgument Name | Description | Required |
---|---|---|
project_id | Project ID to pull messages from. | Optional |
subscription_id | Subscription ID to pull messages from. | Required |
max_messages | The maximum number of messages to return for this request. Must be a positive integer. | Optional |
ack | Acknowledge the messages pulled. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudPubSubPulledMessages.data | String | Text data of the pulled message. |
GoogleCloudPubSubPulledMessages.messageId | String | ID of the message |
GoogleCloudPubSubPulledMessages.publishTime | Date | The time the message was published |
GoogleCloudPubSubPulledMessages.attributes | Unknown | The message attributes. |
#
Command Example!gcp-pubsub-topic-messages-pull ack=true max_messages=1 project_id=dmst-integrations subscription_id=test_sub_2
#
Context Example#
Human Readable Output#
Google Cloud PubSub Messagesdata | messageId | publishTime |
---|---|---|
42 is the answer | 874662740221427 | 2020-04-16T13:32:41.398Z |
#
gcp-pubsub-topic-subscription-createCreate a pull or push subscription.
#
Base Commandgcp-pubsub-topic-subscription-create
#
InputArgument Name | Description | Required |
---|---|---|
project_id | ID of the project from which the subscription is receiving messages. | Optional |
subscription_id | ID of the created subscription. | Required |
topic_id | ID of the topic from which the subscription is receiving messages. | Required |
push_endpoint | A URL locating the endpoint to which messages should be pushed. | Optional |
push_attributes | Endpoint configuration attributes that can be used to control the message delivery, such as "x-goog-version", which you can use to change the format of the pushed message. Input format: "key=val" pairs sepearated by ",". | Optional |
ack_deadline_seconds | The amount of time Pub/Sub waits for the subscriber to acknowledge receipt before resending the message. | Optional |
retain_acked_messages | Indicates whether to retain acknowledged messages. | Optional |
message_retention_duration | How long to retain unacknowledged messages in the subscription's backlog. A duration of seconds e.g. "4.2s" | Optional |
labels | Input format: "key=val" pairs sepearated by ",". | Optional |
expiration_ttl | The "time-to-live" duration for the subscription. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudPubSubSubscriptions.ackDeadlineSeconds | Number | The amount of time Pub/Sub waits for the subscriber to acknowledge receipt before resending the message. |
GoogleCloudPubSubSubscriptions.expirationPolicy.ttl | String | The "time-to-live" duration for the subscription. |
GoogleCloudPubSubSubscriptions.messageRetentionDuration | String | How long to retain unacknowledged messages in the subscription's backlog |
GoogleCloudPubSubSubscriptions.name | String | Name of the subscription |
GoogleCloudPubSubSubscriptions.topic | String | Name of the topic from which the subscription is receiving messages |
GoogleCloudPubSubSubscriptions.projectName | String | Name of the project from which the subscription is receiving messages |
GoogleCloudPubSubSubscriptions.subscriptionName | String | Name of the newly created subscription |
GoogleCloudPubSubSubscriptions.labels | String | An object containing a list of "key": value pairs. |
#
Command Example!gcp-pubsub-topic-subscription-create expiration_ttl=86400s project_id=dmst-integrations topic_id=dmst-topic subscription_id=doc_sub_1
#
Context Example#
Human Readable Output#
Subscription doc_sub_1 was created successfullyackDeadlineSeconds | expirationPolicy | messageRetentionDuration | name | pushConfig | topic |
---|---|---|---|---|---|
10 | ttl: 86400s | 86400s | projects/dmst-integrations/subscriptions/doc_sub_1 | projects/dmst-integrations/topics/dmst-topic |
#
gcp-pubsub-topic-createCreate a topic.
#
Base Commandgcp-pubsub-topic-create
#
InputArgument Name | Description | Required |
---|---|---|
project_id | ID of the project the topic will belong to. | Optional |
topic_id | ID of the newly created topic. | Required |
labels | 'Input format: "key=val" pairs sepearated by ",".' | Optional |
allowed_persistence_regions | A comma separated list of IDs of GCP regions where messages that are published to the topic may be persisted in storage. e.g. "us-east4,asia-1". https://cloud.google.com/compute/docs/regions-zones#locations | Optional |
kms_key_name | The full name of the Cloud KMS CryptoKey to be used to restrict access to messages published on this topic. Full name format: projects//locations//keyRings//cryptoKeys/. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudPubSubTopics.name | String | Name of the topic |
GoogleCloudPubSubTopics.labels | Unknown | An object containing a list of "key": value pairs. |
GoogleCloudPubSubTopics.messageStoragePolicy.allowedPersistenceRegions | Unknown | A list of IDs of GCP regions where messages that are published to the topic may be persisted in storage. |
GoogleCloudPubSubTopics.kmsKeyName | String | The resource name of the Cloud KMS CryptoKey to be used to restrict access. |
#
Command Example!gcp-pubsub-topic-create project_id=dmst-integrations topic_id=dmst-doc-topic
#
Context Example#
Human Readable Output#
Topic dmst-doc-topic was created successfullyName |
---|
projects/dmst-integrations/topics/dmst-doc-topic |
#
gcp-pubsub-topic-deleteDelete a topic.
#
Base Commandgcp-pubsub-topic-delete
#
InputArgument Name | Description | Required |
---|---|---|
project_id | ID of the project the topic will belong to. | Optional |
topic_id | ID of the newly created topic. | Required |
#
Context OutputThere is no context output for this command.
#
Command Example!gcp-pubsub-topic-delete project_id=dmst-integrations topic_id=dmst-doc-topic
#
Context Example#
Human Readable OutputTopic dmst-doc-topic was deleted successfully
#
gcp-pubsub-topic-updateUpdates a topic.
#
Base Commandgcp-pubsub-topic-update
#
InputArgument Name | Description | Required |
---|---|---|
project_id | ID of the project the topic belongs to. | Optional |
topic_id | ID of the topic. | Required |
labels | 'Input format: "key=val" pairs sepearated by ",".' | Optional |
allowed_persistence_regions | A comma separated list of IDs of GCP regions where messages that are published to the topic may be persisted in storage. e.g. "us-east4,asia-1". https://cloud.google.com/compute/docs/regions-zones#locations | Optional |
kms_key_name | The full name of the Cloud KMS CryptoKey to be used to restrict access to messages published on this topic. Full name format: projects//locations//keyRings//cryptoKeys/. | Optional |
update_mask | Indicates which fields in the provided topic to update. A comma-separated list of fields. Example: "labels,messageStoragePolicy". | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudPubSubTopics.name | String | Name of the topic |
GoogleCloudPubSubTopics.labels | Unknown | An object containing a list of "key": value pairs. |
GoogleCloudPubSubTopics.messageStoragePolicy.allowedPersistenceRegions | Unknown | A list of IDs of GCP regions where messages that are published to the topic may be persisted in storage. |
GoogleCloudPubSubTopics.kmsKeyName | String | The resource name of the Cloud KMS CryptoKey to be used to restrict access. |
#
Command Example!gcp-pubsub-topic-update project_id=dmst-integrations topic_id=dmst-doc-topic labels="doc=true" update_mask=labels
#
Context Example#
Human Readable Output#
Topic dmst-doc-topic was updated successfullyLabels | Name |
---|---|
doc: true | projects/dmst-integrations/topics/dmst-doc-topic |
#
gcp-pubsub-topic-subscription-updateUpdate a subscription.
#
Base Commandgcp-pubsub-topic-subscription-update
#
InputArgument Name | Description | Required |
---|---|---|
update_mask | Indicates which fields in the provided subscription to update. A comma-separated list of fully qualified names of fields. Example: "pushConfig.pushEndpoint,ackDeadlineSeconds". | Required |
project_id | ID of the project from which the subscription is receiving messages. | Optional |
subscription_id | ID of the updated subscription. | Required |
topic_id | ID of the topic from which the subscription is receiving messages. | Required |
push_endpoint | A URL locating the endpoint to which messages should be pushed. | Optional |
push_attributes | Endpoint configuration attributes that can be used to control the message delivery. Input format: "key=val" pairs sepearated by ",". | Optional |
ack_deadline_seconds | The amount of time Pub/Sub waits for the subscriber to acknowledge receipt before resending the message. | Optional |
retain_acked_messages | Indicates whether to retain acknowledged messages. | Optional |
message_retention_duration | How long to retain unacknowledged messages in the subscription's backlog. A duration of seconds e.g. "4.2s" | Optional |
labels | Input format: "key=val" pairs sepearated by ",". | Optional |
expiration_ttl | The "time-to-live" duration for the subscription. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudPubSubSubscriptions.ackDeadlineSeconds | Number | The amount of time Pub/Sub waits for the subscriber to acknowledge receipt before resending the message. |
GoogleCloudPubSubSubscriptions.expirationPolicy.ttl | String | The "time-to-live" duration for the subscription. |
GoogleCloudPubSubSubscriptions.messageRetentionDuration | String | How long to retain unacknowledged messages in the subscription's backlog. |
GoogleCloudPubSubSubscriptions.name | String | Name of the subscription. |
GoogleCloudPubSubSubscriptions.topic | String | Name of the topic from which the subscription is receiving messages. |
GoogleCloudPubSubSubscriptions.projectName | String | Name of the project from which the subscription is receiving messages. |
GoogleCloudPubSubSubscriptions.subscriptionName | String | Name of the subscription. |
GoogleCloudPubSubSubscriptions.labels | String | An object containing a list of "key": value pairs. |
#
Command Example!gcp-pubsub-topic-subscription-update labels="doc=true" project_id=dmst-integrations subscription_id=doc_sub_1 topic_id=dmst-topic update_mask=labels
#
Context Example#
Human Readable Output#
Subscription doc_sub_1 was updated successfullyackDeadlineSeconds | expirationPolicy | labels | messageRetentionDuration | name | pushConfig | topic |
---|---|---|---|---|---|---|
10 | ttl: 86400s | doc: true | 86400s | projects/dmst-integrations/subscriptions/doc_sub_1 | attributes: {"x-goog-version": "v1"} | projects/dmst-integrations/topics/dmst-topic |
#
gcp-pubsub-topic-messages-seekSeeks a subscription to a given point in time or to a given snapshot.
#
Base Commandgcp-pubsub-topic-messages-seek
#
InputArgument Name | Description | Required |
---|---|---|
project_id | ID of the project from which the subscription is receiving messages. | Optional |
subscription_id | ID of the subscription, without project/topic prefix. | Required |
time_string | A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z". | Optional |
snapshot | The snapshot to seek to. | Optional |
#
Context OutputThere is no context output for this command.
#
Command Example!gcp-pubsub-topic-messages-seek time_string="2020-04-16T13:27:55.117Z" project_id=dmst-integrations topic_id=dmst-topic subscription_id=doc_sub_1
#
Context Example#
Human Readable OutputMessage seek was successful for time: 2020-04-16T13:27:55.117Z
#
gcp-pubsub-topic-snapshots-listGet a list of snapshots by project ID and topic ID.
#
Base Commandgcp-pubsub-topic-snapshots-list
#
InputArgument Name | Description | Required |
---|---|---|
project_id | The ID of the project from which this snapshot is retaining messages. | Optional |
topic_id | The ID of the topic from which this snapshot is retaining messages. | Optional |
page_size | Max number of results | Optional |
page_token | Next page token as returned from the API. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudPubSubSnapshots.name | String | The name of the snapshot. |
GoogleCloudPubSubSnapshots.topic | Unknown | The name of the topic from which this snapshot is retaining messages. |
GoogleCloudPubSubSnapshots.expireTime | Date | The snapshot is guaranteed to exist up until this time. |
GoogleCloudPubSubSnapshots.labels | Unknown | An object containing a list of "key": value pairs. |
GoogleCloudPubSub.Snapshots.nextPageToken | String | If not empty, indicates that there may be more snapshot that match the request. |
#
Command Example!gcp-pubsub-topic-snapshots-list project_id=dmst-integrations
#
Context Example#
Human Readable Output#
Snapshots for project dmst-integrationsname |
---|
projects/dmst-integrations/snapshots/doc_snapshot |
#
gcp-pubsub-topic-snapshot-createCreates a snapshot from the requested subscription. Snapshots are used in gcp-pubsub-topic-messages-seek command.
#
Base Commandgcp-pubsub-topic-snapshot-create
#
InputArgument Name | Description | Required |
---|---|---|
project_id | ID of the project from which the subscription is receiving messages. | Optional |
subscription_id | The subscription whose backlog the snapshot retains. | Required |
labels | Input format: "key=val" pairs sepearated by ",". | Optional |
snapshot_id | The id of the snapshot. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudPubSubSnapshots.name | String | The name of the snapshot. |
GoogleCloudPubSubSnapshots.topic | Unknown | The name of the topic from which this snapshot is retaining messages. |
GoogleCloudPubSubSnapshots.expireTime | Date | The snapshot is guaranteed to exist up until this time. |
GoogleCloudPubSubSnapshots.labels | Unknown | An object containing a list of "key": value pairs |
#
Command Example!gcp-pubsub-topic-snapshot-create project_id=dmst-integrations subscription_id=test_sub_2 snapshot_id=doc_snapshot
#
Context Example#
Human Readable Output#
Snapshot doc_snapshot was created successfullyExpire Time | Name | Topic |
---|---|---|
2020-04-23T13:37:26.199Z | projects/dmst-integrations/snapshots/doc_snapshot | projects/dmst-integrations/topics/dmst-topic |
#
gcp-pubsub-topic-snapshot-updateUpdates an existing snapshot. Snapshots are used in gcp-pubsub-topic-messages-seek command.
#
Base Commandgcp-pubsub-topic-snapshot-update
#
InputArgument Name | Description | Required |
---|---|---|
project_id | The ID of the project from which the subscription is receiving messages. | Optional |
expire_time | The snapshot is guaranteed to exist up until this time. A newly-created snapshot expires no later than 7 days from the time of its creation. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2020-04-01T08:01:23.045678910Z" | Optional |
labels | Input format: "key=val" pairs sepearated by ",". | Optional |
snapshot_id | The id of the snapshot. | Required |
update_mask | Indicates which fields in the provided snapshot to update. A comma-separated list of fields. Example: "labels,topic,expireTime". | Required |
topic_id | The ID of the topic from which this snapshot is retaining messages. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudPubSubSnapshots.name | String | The name of the snapshot. |
GoogleCloudPubSubSnapshots.topic | Unknown | The name of the topic from which this snapshot is retaining messages. |
GoogleCloudPubSubSnapshots.expireTime | Date | The snapshot is guaranteed to exist up until this time. |
GoogleCloudPubSubSnapshots.labels | Unknown | An object containing a list of "key": value pairs |
#
Command Example!gcp-pubsub-topic-snapshot-update project_id=dmst-integrations subscription_id=test_sub_2 snapshot_id=doc_snapshot labels="doc=true" update_mask=labels topic_id=dmst-topic
#
Context Example#
Human Readable Output#
Snapshot doc_snapshot was updated successfullyExpire Time | Labels | Name | Topic |
---|---|---|---|
2020-04-23T13:37:26.199Z | doc: true | projects/dmst-integrations/snapshots/doc_snapshot | projects/dmst-integrations/topics/dmst-topic |
#
gcp-pubsub-topic-snapshot-deleteRemoves an existing snapshot.
#
Base Commandgcp-pubsub-topic-snapshot-delete
#
InputArgument Name | Description | Required |
---|---|---|
project_id | The ID of the project from which the subscription is receiving messages. | Optional |
snapshot_id | The id of the snapshot. | Required |
#
Context OutputThere is no context output for this command.
#
Command Example!gcp-pubsub-topic-snapshot-delete project_id=dmst-integrations snapshot_id=doc_snapshot
#
Context Example#
Human Readable OutputSnapshot doc_snapshot was deleted successfully
#
gcp-pubsub-topic-snapshot-deleteRemoves an existing snapshot.
#
Base Commandgcp-pubsub-topic-ack-messages
#
InputArgument Name | Description | Required |
---|---|---|
subscription_id | The subscription that will have the messages acked. | Required |
ack_ids | List of comma separated ids to ACK, as received from "gcp-pubsub-topic-messages-pull" or from "fetch-incidents". | Required |
project_id | The project id that the messages were pulled from. | Optional |
#
Context OutputThere is no context output for this command.
#
Command Example!gcp-pubsub-topic-ack-messages ack_ids=example_ack_id subscription_id=test_sub_2
#
Context Example#
Human Readable Output#
Subscription test_sub_2 had the following ids acknowledgedACK ID |
---|
example_ack_id |