Insert
|
|||||
|
|
Creates a notification subscription for a given bucket
Authorization
To use this building block you will have to grant access to at least one of the following scopes:
- View and manage your data across Google Cloud Platform services
- Manage your data and permissions in Google Cloud Storage
- Manage your data in Google Cloud Storage
Input
This building block consumes 13 input parameters
Name | Format | Description |
---|---|---|
bucket Required |
STRING |
The parent bucket of the notification |
provisionalUserProject |
STRING |
The project to be billed for this request if the target bucket is requester-pays bucket |
userProject |
STRING |
The project to be billed for this request. Required for Requester Pays buckets |
custom_attributes |
OBJECT |
An optional list of additional attributes to attach to each Cloud PubSub message published for this notification subscription |
custom_attributes.customKey.value Required |
STRING |
An optional list of additional attributes to attach to each Cloud PubSub message published for this notification subscription |
etag |
STRING |
HTTP 1.1 Entity tag for this subscription notification |
event_types[] |
STRING |
|
id |
STRING |
The ID of the notification |
kind |
STRING |
The kind of item this is. For notifications, this is always storage#notification |
object_name_prefix |
STRING |
If present, only apply this notification configuration to object names that begin with this prefix |
payload_format |
STRING |
The desired content of the Payload |
selfLink |
STRING |
The canonical URL of this notification |
topic |
STRING |
The Cloud PubSub topic to which this subscription publishes. Formatted as: '//pubsub.googleapis.com/projects/{project-identifier}/topics/{my-topic}' |
= Parameter name
= Format
bucket STRING Required The parent bucket of the notification |
provisionalUserProject STRING The project to be billed for this request if the target bucket is requester-pays bucket |
userProject STRING The project to be billed for this request. Required for Requester Pays buckets |
custom_attributes OBJECT An optional list of additional attributes to attach to each Cloud PubSub message published for this notification subscription |
custom_attributes.customKey.value STRING Required An optional list of additional attributes to attach to each Cloud PubSub message published for this notification subscription |
etag STRING HTTP 1.1 Entity tag for this subscription notification |
event_types[] STRING |
id STRING The ID of the notification |
kind STRING The kind of item this is. For notifications, this is always storage#notification |
object_name_prefix STRING If present, only apply this notification configuration to object names that begin with this prefix |
payload_format STRING The desired content of the Payload |
selfLink STRING The canonical URL of this notification |
topic STRING The Cloud PubSub topic to which this subscription publishes. Formatted as: '//pubsub.googleapis.com/projects/{project-identifier}/topics/{my-topic}' |
Output
This building block provides 10 output parameters
Name | Format | Description |
---|---|---|
custom_attributes |
OBJECT |
An optional list of additional attributes to attach to each Cloud PubSub message published for this notification subscription |
custom_attributes.customKey.value |
STRING |
An optional list of additional attributes to attach to each Cloud PubSub message published for this notification subscription |
etag |
STRING |
HTTP 1.1 Entity tag for this subscription notification |
event_types[] |
STRING |
|
id |
STRING |
The ID of the notification |
kind |
STRING |
The kind of item this is. For notifications, this is always storage#notification |
object_name_prefix |
STRING |
If present, only apply this notification configuration to object names that begin with this prefix |
payload_format |
STRING |
The desired content of the Payload |
selfLink |
STRING |
The canonical URL of this notification |
topic |
STRING |
The Cloud PubSub topic to which this subscription publishes. Formatted as: '//pubsub.googleapis.com/projects/{project-identifier}/topics/{my-topic}' |
= Parameter name
= Format
custom_attributes OBJECT An optional list of additional attributes to attach to each Cloud PubSub message published for this notification subscription |
custom_attributes.customKey.value STRING An optional list of additional attributes to attach to each Cloud PubSub message published for this notification subscription |
etag STRING HTTP 1.1 Entity tag for this subscription notification |
event_types[] STRING |
id STRING The ID of the notification |
kind STRING The kind of item this is. For notifications, this is always storage#notification |
object_name_prefix STRING If present, only apply this notification configuration to object names that begin with this prefix |
payload_format STRING The desired content of the Payload |
selfLink STRING The canonical URL of this notification |
topic STRING The Cloud PubSub topic to which this subscription publishes. Formatted as: '//pubsub.googleapis.com/projects/{project-identifier}/topics/{my-topic}' |