Domain name for API request: cls.intl.tencentcloudapi.com.
This API is used to modify notification content configuration.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: ModifyNoticeContent. |
| Version | Yes | String | Common Params. The value used for this API: 2020-10-16. |
| Region | No | String | Common Params. This parameter is not required for this API. |
| NoticeContentId | Yes | String | Notification content template ID. Obtain the notification content template ID by searching the notification content template (https://www.tencentcloud.com/document/api/614/111714?from_cn_redirect=1). |
| Name | No | String | Notification content template name. |
| Type | No | Integer | Content language of the notification. 0-Chinese by default, 1-English |
| NoticeContents.N | No | Array of NoticeContent | Notification content template details. |
| Parameter Name | Type | Description |
|---|---|---|
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
Modifying Notification Content Configuration
POST / HTTP/1.1
Host: cls.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyNoticeContent
<Common request parameters>
{
"NoticeContentId": "noticetemplate-5b2ea996-4dae-47cc-bbad-5b12888b4c89",
"Name": "Dedicated Internal Monitoring Alarm"
"Type": 0,
"NoticeContents": [
{
"Type": "Http",
"TriggerContent": {
"Title": "this is title",
"Content": "this is content",
"Headers": [
"Content-Type:application/json"
]
},
"RecoveryContent": {
"Title": "this is title",
"Content": "this is content",
"Headers": [
"Content-Type:application/json"
]
}
}
]
}
{
"Response": {
"RequestId": "d20a21f7-f6ac-4a7b-ba1b-1aa49be5fed1"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| FailedOperation | Operation failed. |
| InternalError | Internal error. |
| InvalidParameter | Incorrect parameter. |
| InvalidParameter.AlarmConflict | The alarm policy already exists. |
| InvalidParameter.AlarmNoticeConflict | The alarm notification template already exists. |
| MissingParameter | Missing parameter. |
| OperationDenied | Operation denied. |
| OperationDenied.ACLFailed | ACL verification failed. |
| OperationDenied.AccountDestroy | The account has been terminated. |
| OperationDenied.AccountIsolate | The account has overdue payments. |
| OperationDenied.AccountNotExists | The account does not exist. |
| ResourceNotFound.AlarmNoticeNotExist | The alarm notification template does not exist. |
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários