我怎样才能查看当前配置的对象更改通知(OCNS)对于给定的GCS桶?

问题描述 投票:1回答:1

我怎样才能查看当前配置的对象更改通知(OCNS)对于给定的GCS桶?

我认为这将是如下:gsutil notification list gs://my-bucket-name

但后来我在gsutil help notification惊讶于这样的:

列表中的列表的子命令提供属于给定铲斗通知CONFIGS的列表。每个通知配置的列名可以与删除子命令用于删除该特定通知的配置。

没有对象更改通知将陆续上市。只有云端发布/订阅通知订阅CONFIGS将陆续上市。

注意最后一段。

google-cloud-storage gsutil
1个回答
0
投票

您应该添加-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

参考:notification command

© www.soinside.com 2019 - 2024. All rights reserved.