- 事件总线
- 事件
- 事件源
- 事件目标
- 事件规则
- 事件流
- API端点
- 其他
接口说明
更新一个事件源的配置。
请求参数
字段名称 | 字段详情 |
---|---|
EventSourceNamestring | 事件源名称。 示例值:myrabbitmq.source参考取值来源: CreateEventSource QueryEventTraces ListAliyunOfficialEventSources |
Descriptionstring | 事件源描述详情。 示例值:RabbitMQ事件源 |
LinkedExternalSourceboolean | 是否连接外部数据源 示例值:true |
ExternalSourceTypestring | 外部数据源类型 示例值:SLS参考取值来源: ListUserDefinedEventSources |
ExternalSourceConfigobject | 外部数据源配置 示例值:{\"ConsumePosition\":\"end\",\"LogStore\":\"oss_log\",\"Project\":\"slsaudit-center-5795350335281001-cn-beijing\",\"RoleName\":\"sls-beijing-tf\"} |
EventBusNamestring | 绑定的总线。 示例值:my-event-bus
参考取值来源: CreateEventBus ListEventBuses GetEventStreaming |
SourceMNSParametersobject | 轻量消息队列(原 MNS)事件源参数。 |
SourceRocketMQParametersobject | 请求参数 SourceRocketMQParameters |
SourceRabbitMQParametersobject | 请求参数 SourceRabbitMQParameters |
SourceSLSParametersobject | SourceSLSParameters |
SourceScheduledEventParametersobject | 请求参数 SourceScheduledEventParameters |
SourceHttpEventParametersobject | 请求参数 SourceHttpEventParameters |
SourceKafkaParametersobject | 请求参数 SourceKafkaParameters |
请求说明
请求示例 : `POST /openapi/updateEventSource HTTP/1.1 Host: 164901546557****.eventbridge.cn-hangzhou.aliyuncs.com Date: Sat, 18 Apr 2020 05:30:41 GMT x-eventbridge-version: 2020-04-01 Authorization: acs vZ3VL0SuJdHi****:Jo2PbT******azYAYoYslKLvWzg= Content-Type: application/json;charset=UTF-8 Content-Length: 26
{ "EventSourceName":"myRocketMQ.source", "Description":"RocketMQ 事件源", "SourceRocketMQParameters":{ "InstanceId":"MQ_INST_164901546557_BAAN", "GroupID":"GID_group1", "Topic":"mytopic", "Offset":"CONSUME_FROM_LAST_OFFSET", "Tag":"test", "RegionId":"cn-hangzhou" }, "EventBusName":"my-event-bus" }`
返回参数
字段名称 | 字段详情 |
---|---|
Messagestring | 错误信息。 示例值:Remote error. requestId: [xxxx-9D10-65DFDFA3A75D], error code: [EventSourceNotExist], message: [The event source in request is not exist! ] |
RequestIdstring | 阿里云为该请求生成的唯一标识符。 示例值:c057d379-ea65-41ec-a8a8-90627a9**** |
Databoolean | 更新结果。 示例值:true |
Codestring | 接口返回码:展开详情 示例值:Success |
Successboolean | 操作成功返回 true。 示例值:true |
变更时间 | 变更内容概要 | 操作 | |
---|---|---|---|
2023-10-19 | 变更请求参数SourceScheduledEventParameters | ||
2023-08-01 | 变更请求参数EventBusName 变更请求参数SourceMNSParameters 变更请求参数SourceRocketMQParameters | ||
2023-04-21 | 变更请求参数EventSourceName 变更请求参数Description 变更请求参数EventBusName 新增请求参数SourceScheduledEventParameters 新增请求参数SourceKafkaParameters | ||
2023-04-06 | 变更请求参数SourceRocketMQParameters 删除返回参数 |