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