Google cloud storage 如何查看给定GCS存储桶当前配置的对象更改通知(OCN)?

Google cloud storage 如何查看给定GCS存储桶当前配置的对象更改通知(OCN)?,google-cloud-storage,gsutil,Google Cloud Storage,Gsutil,如何查看给定GCS存储桶当前配置的对象更改通知(OCN) 我想应该是这样的: gsutil通知列表gs://my bucket name 但随后我对gsutil帮助通知中的这一点感到惊讶: LIST LIST子命令提供通知配置的列表 属于给定的桶。每个通知的列表名称 config可与delete子命令一起用于删除该文件 特定通知配置 不会列出任何对象更改通知。仅云发布/订阅 将列出通知订阅配置 注意最后一段。您应该添加-o,如以下示例所示: gsutil notification list -o

如何查看给定GCS存储桶当前配置的对象更改通知(OCN)

我想应该是这样的:
gsutil通知列表gs://my bucket name

但随后我对gsutil帮助通知中的这一点感到惊讶:

LIST LIST子命令提供通知配置的列表 属于给定的桶。每个通知的列表名称 config可与delete子命令一起用于删除该文件 特定通知配置

不会列出任何对象更改通知。仅云发布/订阅 将列出通知订阅配置


注意最后一段。

您应该添加-o,如以下示例所示:

gsutil notification list -o gs://${BucketName}
这将列出对象更改通知:

Bucket ${BucketName} has the following active Object Change Notifications:
Notification channel 1:
    Channel identifier: xxxxxxxx
    Resource identifier: xxxxxx
    Application URL: url=https://xxxxxx.appspot.com/notify
    Created by:
    Creation time: xxxx

参考:

您应该添加-o,如以下示例所示:

gsutil notification list -o gs://${BucketName}
这将列出对象更改通知:

Bucket ${BucketName} has the following active Object Change Notifications:
Notification channel 1:
    Channel identifier: xxxxxxxx
    Resource identifier: xxxxxx
    Application URL: url=https://xxxxxx.appspot.com/notify
    Created by:
    Creation time: xxxx
参考: