Jurgen
Jurgen

Reputation: 347

How to notify of object change in cloud store using gsutil without ApplicationUrl

I would like to notify my script running on linux of an object change in a bucket.

After reading the documentation I can notify an Application through url but this is not what I am looking for.

Is there any way I may listen for an object change through gsutil in my script?

Upvotes: 1

Views: 49

Answers (1)

jterrace
jterrace

Reputation: 67163

Cloud Pub/Sub is the recommended solution for getting notified of changes to a bucket. With the Cloud Pub/Sub integration, you can subscribe to changes from your script to the topic being published to.

If you want to receive the notifications from a command, you can use gcloud pubsub subscriptions pull.

Upvotes: 1

Related Questions