更新告警回调。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | UpdateWebhook | 接口名称。当前 API 的名称为 UpdateWebhook 。 |
Version | String | 是 | 2018-01-01 | 接口版本。当前 API 的版本为 2018-01-01 。 |
Id | String | 是 | 180514893563335**** | Webhook ID。 |
Name | String | 是 | webhook-demo | Webhook 名称。
|
Type | String | 是 | wecom | Webhook 类型,取值:
|
Url | String | 是 | https://qyapi.weixin.qq.com/xxxx | Webhook 地址。 注意 请填写可以通过公网访问的地址,且长度不超过 1000 个字节。 |
POST https://open.volcengineapi.com?Action=UpdateWebhook&Version=2018-01-01 Content-Type: application/json { "Id": "180514893563335****", "Name": "webhook-demo", "Type": "wecom", "Url": "https://qyapi.weixin.qq.com/xxxx" }
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
Data | Array of String | ["180514893563335****"] | Webhook ID。 |
{ "ResponseMetadata": { "Action": "UpdateWebhook", "Region": "cn-beijing", "Service": "Volc_Observe", "Version": "2018-01-01", "RequestId": "20230604110420****100232280022D31" }, "Result": { "Data": [ "180514893563335****" ] } }
本接口无特有的错误码。更多信息请参见 错误码。