v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-138134216.7 KB
notifications

Creates a notification subscription for a given bucket.

post/b/{bucket}/notificationConfigs

Path parameters

bucketstring required

The parent bucket of the notification.

Query parameters

userProjectstring

The project to be billed for this request. Required for Requester Pays buckets.

Request body

custom_attributesobject

An optional list of additional attributes to attach to each Cloud PubSub message published for this notification subscription.

etagstring

HTTP 1.1 Entity tag for this subscription notification.

event_typesstring[]

If present, only send notifications about listed event types. If empty, sent notifications for all event types.

idstring

The ID of the notification.

kindstring

The kind of item this is. For notifications, this is always storage#notification.

object_name_prefixstring

If present, only apply this notification configuration to object names that begin with this prefix.

payload_formatstring

The desired content of the Payload.

selfLinkstring

The canonical URL of this notification.

topicstring

The Cloud PubSub topic to which this subscription publishes. Formatted as: '//pubsub.googleapis.com/projects/{project-identifier}/topics/{my-topic}'

Response

Successful response