Object Storage

Create event rule

post/object-storage/buckets/{bucket_uuid}/event-rules

Send some events of the bucket to a destination: objects created, removed (lifecycle expirations included) or tagged, optionally only under a prefix or with a suffix. The rule is applied in the background, usually within a minute. Deliveries may be billed per million, see the tier's prices.

Authorization

Authorization
Authorization*string

Bearer YOUR_API_TOKEN with an API token. The X-API-Key: YOUR_API_TOKEN header works too.

Path parameters

bucket_uuid*string

Request body

application/jsonRequired
name*string
Range1 ≤ length ≤ 64
destination_uuid*string
Rangelength ≤ 36
events*array<string>
Rangeitems ≤ 10
prefix?string
Rangelength ≤ 1024Default""
suffix?string
Rangelength ≤ 1024Default""
enabled?boolean
Defaulttrue

Responses

Successful Response

application/json

uuid*string
name*string
bucket_uuid*string
destination?ObjectStorageEventRuleDestination | null
Properties (3)
uuid*string
name*string
type*string
events*array<string>
prefix*string
suffix*string
enabled*boolean
status*string
error_message?string | null
created_at?string | null