创建一个联系人。
一个账户最多创建100个联系人。
ServiceName : Volc_Observe
Region : cn-beijing
AccessKey : xxx
SecretKey : xxx
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | CreateContacts | 接口名称。当前 API 的名称为 CreateContacts 。 |
Version | String | 是 | 2018-01-01 | 接口版本。当前 API 的版本为 2018-01-01 。 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Name | String | 是 |
| 联系人名称。
|
String | 是 |
| 告警邮件地址。 | |
Phone | String | 否 |
| 告警电话。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
Data | Array of String | ["157255269369******"] | 创建告警联系人的ID。 |
POST https://open.volcengineapi.com?Action=CreateContacts&Version=2018-01-01
ServiceName: Volc_Observe
Region: cn-beijing
AccessKey: xxx
SecretKey: xxx
{
"Name":"testuser",
"Email":"1000@volc.com",
"Phone":"13450000000"
}
{
"ResponseMetadata": {
"RequestId": "2022092215001701017423503808******",
"Action": "CreateContacts",
"Version": "2018-01-01",
"Service": "Volc_Observe",
"Region": ""
},
"Result": {
"Data": [
"157255269369******"
]
}
}
本接口无特有的错误码。更多信息请参见错误码。