最近更新时间:2024.04.19 11:53:53
首次发布时间:2023.06.30 15:23:34
创建告警联系人组。
参数名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | CreateContactGroup | 公共参数,本接口值:CreateContactGroup。 |
Version | String | 是 | 2021-03-03 | 公共参数,本接口值:2021-03-03。 |
Name | String | 是 | test | 联系人组名称:
|
ContactIds | Array of String | 否 | ["4a337d5b-0959-4cc7-a3ea-2f71332d4ff3"] | 配置该联系人组中的联系人 ID。 |
POST /?Action=CreateContactGroup&Version=2021-03-03 Content-Type:application/json { "Name": " test", "ContactIds": ["4a337d5b-0959-4cc7-a3ea-2f71332d4ff3"] }
参数名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Id | String | f9626b5a-0c9e-420e-b6e5-4c66b84f080d | 联系人组 ID。 |
HTTP/1.1 200 OK Content-Type:application/json { "ResponseMetadata": { "RequestId": "202211302208xxxx", "Action": "CreateContactGroup", "Version": "2021-03-03", "Service": "vmp", "Region": "cn-beijing" }, "Result": { "Id": "f9626b5a-0c9e-420e-b6e5-4c66b84f080d" } }
本接口错误码如下表所示,公共错误码请参见 公共错误码。
HTTP 状态码 | 错误码 | 错误信息 | 描述 |
---|---|---|---|
409 | Conflict.Name | The specified name conflicts with existing ContactGroup. | 在同一账户下不能有相同名称的联系人组。 |