最近更新时间:2024.04.19 11:53:53
首次发布时间:2023.06.30 15:23:34
删除告警联系人。
参数名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DeleteContacts | 公共参数,本接口值:DeleteContacts。 |
Version | String | 是 | 2021-03-03 | 公共参数,本接口值:2021-03-03。 |
Ids | Array of String | 是 | ["4a337d5b-0959-4cc7-a3ea-2f71332d4ff3"] | 联系人 ID。 |
POST /?Action=DeleteContacts&Version=2021-03-03 Content-Type:application/json { "Ids": ["4a337d5b-0959-4cc7-a3ea-2f71332d4ff3"] }
参数名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
SuccessfulItems | Array of String | ["4a337d5b-0959-4cc7-a3ea-2f71332d4ff3"] | 成功删除的联系人 ID。 |
UnsuccessfulItems | Array of UnsuccessfulItem | - | 未成功删除的联系人信息。 |
参数名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Id | String | 603c20ce-e0eb-4206-90ef-7962b95c0afa | 未成功删除的联系人 ID。 |
Error | Object UnsuccessfulItemError | - | 未成功删除的原因。 |
参数名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Code | String | NotFound.Ids | 错误码。 |
Message | String | The specified Contact {{id}} is not found. | 错误信息。 |
Data | Map[String]String | - | 错误元数据。 |
HTTP/1.1 200 OK Content-Type:application/json { "ResponseMetadata": { "RequestId": "202211302208xxxx", "Action": "DeleteContacts", "Version": "2021-03-03", "Service": "vmp", "Region": "cn-beijing" }, "Result": { "SuccessfulItems": ["4a337d5b-0959-4cc7-a3ea-2f71332d4ff3"], "UnsuccessfulItems": [ { "Id": "603c20ce-e0eb-4206-90ef-7962b95c0afa", "Error": { "Code": " NotFound.Ids", "Message": "The specified Contact {{id}} is not found.", "Data": } } ] } }
本接口错误码如下表所示,公共错误码请参见 公共错误码。
HTTP 状态码 | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | MissingParameter.{{parameter}} | The required parameter {{parameter}} is missing. | 缺少必要的参数。 |
403 | ProductUnsubscribed | You are not subscribed to the Volcengine Managed Service for Prometheus (VMP). Please go to the VMP console web page to subscribe to the service | 当前账号未订阅 VMP 服务。 |
404 | NotFound.Id | The specified Contact {{Id}} is not found. | 未找到指定联系人。 |