Skip to Content
Google Cloud Platform for Architects
book

Google Cloud Platform for Architects

by Vitthal Srinivasan, Loonycorn Ravi, Judy Raj
June 2018
Intermediate to advanced
372 pages
8h 44m
English
Packt Publishing
Content preview from Google Cloud Platform for Architects

Setting up object change notifications with the gsutil notification watchbucket

The gsutil tool can be used to create a channel and also remove it once it is no longer required:

  1. Once we run the command, as follows, it initiates a channel with the Channel ID we provide. It reports the notifications to whichever application (even if it is third party) we decide by providing the application's URL. Also, we can deploy watch on one or more buckets simualtaneously:
gsutil notification watchbucket -i loony-channel -t my-client [App URL] gs://loonycorn-bucket-00
  
  1. To stop notifications, we need to stop the channel itself, which is done with the following command:
    gsutil notification stopchannel ChannelId ResourceId
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Google Cloud Platform Professional Cloud Architect

Google Cloud Platform Professional Cloud Architect

Victor Dantas
Google Cloud Platform for Developers

Google Cloud Platform for Developers

Ted Hunter, Steven Porter

Publisher Resources

ISBN: 9781788834308Other