创建告警回调。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | CreateWebhook | 接口名称。当前 API 的名称为 CreateWebhook 。 |
Version | String | 是 | 2018-01-01 | 接口版本。当前 API 的版本为 2018-01-01 。 |
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=CreateWebhook&Version=2018-01-01 Content-Type: application/json { "Name": "webhook-demo", "Type": "wecom", "Url": "https://qyapi.weixin.qq.com/xxxx" }
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
Data | Array of String | ["155255269369******"] | Webhook ID。 |
{ "ResponseMetadata": { "Action": "CreateWebhook", "Region": "cn-beijing", "Service": "Volc_Observe", "Version": "2018-01-01", "RequestId": "20230604110420****100232280022D31" }, "Result": { "Data": [ "155255269369******" ] } }
本接口无特有的错误码。更多信息请参见 错误码。