The gsutil tool can be used to create a channel and also remove it once it is no longer required:
- 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
- To stop notifications, we need to stop the channel itself, which is done with the following command:
gsutil notification stopchannel ChannelId ResourceId