UpdateAliyunSmsSNSTextTemplate
UpdateAliyunSmsSNSTextTemplate
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
uuidStringRequiredThe template UUID.
Body Fields
updatealiyunsmssnstexttemplateObjectRequiredupdatealiyunsmssnstexttemplate request body object.
alarmTemplateCodeStringOptional. The resource alarm template code.
signStringOptional. The SMS message signature.
eventTemplateCodeStringOptional. The event template code.
eventTemplateStringOptional. The event alarm template text.
nameStringOptional. The template name.
descriptionStringOptional. The detailed description of the template.
templateStringOptional. The resource alarm template text.
recoveryTemplateStringOptional. The recovery template text.
defaultTemplateBooleanOptional. Whether to set the template as the default template.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
PUT/zstack/v1/zwatch/alarms/sns/text-templates/{uuid}/actions
/zstack/v1/zwatch/alarms/sns/text-templates/{uuid}/actions
Request Example
curl -X PUT 'http://{host}/zstack/v1/zwatch/alarms/sns/text-templates/{uuid}/actions' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"updatealiyunsmssnstexttemplate":{"alarmTemplateCode":"<alarmTemplateCode>","sign":"<sign>","eventTemplateCode":"<eventTemplateCode>","eventTemplate":"<eventTemplate>","name":"<name>","description":"<description>","template":"<template>","recoveryTemplate":"<recoveryTemplate>","defaultTemplate":true},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "alarmTemplateCode": "SMS_153055065", "sign": " Sample signature", "eventTemplateCode": "SMS_123456789", "eventTemplate": "Event ${EVENT_NAME} had just happened", "uuid": "f8b819b8af9c402fac43932ef95cb468", "name": "email template", "applicationPlatformType": "AliyunSms", "template": "Alarm ${ALARM_NAME} changes status to ${ALARM_CURRENT_STATUS}", "recoveryTemplate": "Resource ${EVENT_RESOURCE_ID} changes status to ${ALARM_CURRENT_STATUS}", "defaultTemplate": false, "createDate": "Oct 8, 2019 5:32:12 PM", "lastOpDate": "Oct 8, 2019 5:32:12 PM" } }Change History
This API has no change history records yet.
