更新触发器UpdateTrigger
更新时间:2024-07-05
接口描述
- 本接口用于更新触发器。
请求结构
Plain Text
1PUT /v1/relation HTTP/1.1
2Host: cfc.bj.baidubce.com
3Authorization: authorization string
4
5{
6 "RelationId": "string",
7 "Target": "string",
8 "Source": "string",
9 "Data": {
10 "config1": "string",
11 "config2": "string"
12 }
13}
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名称 | 类型 | 是否必需 | 参数位置 | 描述 |
---|---|---|---|---|
RelationId | String | 是 | Body参数 | 触发器Id |
Target | String | 是 | Body参数 | 函数BRN |
Source | SourceType | 是 | Body参数 | 触发源 |
Data | RelationConfiguration | 否 | Body参数 | 触发器参数配置 |
响应头域
除公共头域,无其它特殊头域。
响应参数
参数名称 | 类型 | 描述 |
---|---|---|
Relation | Relation | Relation |
请求示例
Plain Text
1PUT /v1/relation HTTP/1.1
2Host: cfc.bj.baidubce.com
3Authorization: authorization string
4
5{
6 "Data": {
7 "AuthType": "anonymous",
8 "Method": "GET",
9 "ResourcePath": "helloFly003"
10 },
11 "RelationId": "brn:bce:cfc-http-trigger:bj:cd64f99c69d7c404b61de0a4f1865834:b8542048977633ad0a867aefc33fd32a/cfc/GET/helloFly003",
12 "Source": "cfc-http-trigger/v1/CFCAPI",
13 "Target": "brn:bce:cfc:bj:cd64f99c69d7c404b61de0a4f1865834:function:helloCFCDocs:$LATEST"
14}
响应示例
Plain Text
1HTTP/1.1 200
2Content-type: application/json
3
4{
5 "Relation": {
6 "RelationId": "brn:bce:cfc-http-trigger:bj:cd64f99c69d7c404b61de0a4f1865834:b8542048977633ad0a867aefc33fd32a/cfc/GET/helloFly003",
7 "Sid": "",
8 "Source": "cfc-http-trigger/v1/CFCAPI",
9 "Target": "brn:bce:cfc:bj:cd64f99c69d7c404b61de0a4f1865834:function:helloCFCDocs:$LATEST",
10 "Data": {
11 "AuthType": "anonymous",
12 "Method": "GET",
13 "ResourcePath": "helloFly003"
14 }
15 }
16}