Object Storage
Create event rule
post
/object-storage/buckets/{bucket_uuid}/event-rulesSend 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
Range
1 ≤ length ≤ 64destination_uuid*string
Range
length ≤ 36events*array<string>
Range
items ≤ 10prefix?string
Range
length ≤ 1024Default""suffix?string
Range
length ≤ 1024Default""enabled?boolean
Default
trueResponses
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