文档首页/ 对象存储服务 OBS/ SDK参考/ C/ 参数列表/ 设置事件通知请求参数
更新时间:2026-03-13 GMT+08:00
分享

设置事件通知请求参数

字段名

类型

约束

说明

options

请求桶的上下文,配置option(C SDK)

必选

桶参数

notification_conf

obs_smn_notification_configuration*

必选

消息通知配置事件通知的容器

handler

obs_response_handler *

必选

回调函数

callback_data

void *

可选

回调数据

参数obs_smn_notification_configuration描述如下表:

字段名

类型

说明

topic_conf

obs_smn_topic_configuration*

配置事件通知主题的容器

topic_conf_num

unsigned int

topic_conf的个数

参数obs_smn_topic_configuration描述如下表:

字段名

类型

说明

topic

char *

事件通知主题的URN,当OBS检测到桶中发生特定的事件后,将会发布通知消息至该主题

id

char *

每项事件通知配置的唯一标识,如果用户未指定ID,系统将自动分配一个ID

filter_rule

obs_smn_filter_rule *

过滤规则键值对的容器

filter_rule_num

unsigned int

filter_rule的个数

event

obs_smn_event_enum*

需要发布通知消息的事件类型

event_num

unsigned int

事件类型的个数

相关文档