创建通知内容模板
最近更新时间: 2026-10-10 00:14:48
1. 接口描述
接口请求域名: cls.api3.fincloud.tencent.com。
创建通知内容模板
默认接口请求频率限制:20次/秒。
接口更新时间:2025-03-28 14:43:53。
接口只验签名不鉴权。
2. 输入参数
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见公共请求参数。
| 参数名称 | 必选 | 允许NULL | 类型 | 描述 |
|---|---|---|---|---|
| Action | 是 | 否 | String | 公共参数,本接口取值:CreateNoticeContent |
| Version | 是 | 否 | String | 公共参数,本接口取值:2020-10-16 |
| Region | 是 | 否 | String | 公共参数,地域信息可通过DescribeRegions接口查看产品支持的地域列表 |
| Name | 是 | 否 | String | 模板名称。 示例值: 告警内容模板 |
| Type | 否 | 否 | Uint64 | 模板内容语言。0:zh1:英文 示例值: 0 |
| NoticeContents | 否 | 否 | Array of NoticeContent | 模板详细配置。 示例值:查看 |
3. 输出参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| NoticeContentId | String | 通知内容配置ID 示例值: noticetemplate-57f5808c-4a55-11eb-b378-0242ac130002 |
| RequestId | String | 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 |
4. 错误码
该接口暂无业务逻辑相关的错误码,其他错误码详见公共错误码。
5. 示例
示例1 创建通知内容信息
创建通知内容信息
输入示例
POST / HTTP/1.1
Host: cls.api3.fincloud.tencent.com
Content-Type: application/json
X-TC-Action: CreateNoticeContent
<Common Parameters>
{
"Name":"testEmail",
"Type":0,
"NoticeContents":[
{
"Type":"Email",
"TriggerContent":{
"Title":"title",
"Content":"this is content",
"Headers":[
"Content-Type:application/json"
]
},
"RecoveryContent":{
"Title":"title",
"Content":"this is content",
"Headers":[
"Content-Type:application/json"
]
}
}
]
}
输出示例
{
"Response": {
"NoticeContentId": "noticetemplate-d20a21f7-f6ac-4a7b-ba1b-1aa49be5fed1",
"RequestId": "d20a21f7-f6ac-4a7b-ba1b-1aa49be5fed1"
}
}