Views the information about a template.
Operation description
You can call this operation to view the information about a template.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dm:DescTemplate |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TemplateId |
integer |
Yes |
The template ID. |
3xxxx2 |
| FromType |
integer |
No |
This parameter is deprecated. It is retained for historical compatibility. |
Abandoned, historical reasons for compatibility |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| SmsContent |
string |
This parameter is deprecated. It is retained for historical compatibility. |
Abandoned, historical reasons for compatibility |
| RequestId |
string |
The request ID. |
95xxx5F |
| Remark |
string |
This parameter is deprecated. It is retained for historical compatibility. |
Abandoned, historical reasons for compatibility |
| SmsType |
string |
This parameter is deprecated. It is retained for historical compatibility. |
Abandoned, historical reasons for compatibility |
| CreateTime |
string |
The time when the template was created. |
2025-11-14T13:28Z |
| TemplateSubject |
string |
The template subject, which is used to create the email subject. |
test |
| TemplateStatus |
string |
The status of the template. Valid values:
|
2 |
| TemplateNickName |
string |
This parameter is deprecated. It is retained for historical compatibility. |
Abandoned, historical reasons for compatibility |
| TemplateType |
string |
This parameter is deprecated. It is retained for historical compatibility. |
Abandoned, historical reasons for compatibility |
| TemplateName |
string |
The template name. |
test1 |
| TemplateText |
string |
The template content. |
1 |
Examples
Success response
JSON format
{
"SmsContent": "Abandoned, historical reasons for compatibility",
"RequestId": "95xxx5F",
"Remark": "Abandoned, historical reasons for compatibility",
"SmsType": "Abandoned, historical reasons for compatibility",
"CreateTime": "2025-11-14T13:28Z",
"TemplateSubject": "test",
"TemplateStatus": "2",
"TemplateNickName": "Abandoned, historical reasons for compatibility",
"TemplateType": "Abandoned, historical reasons for compatibility",
"TemplateName": "test1",
"TemplateText": "
1"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.