Description
Sends a notification to DingTalk by using a webhook URL. For more information, see Application types.
Syntax
Action: ACS::Notify::DingTalkWebhook
Properties:
webhook: String
msgtype: String
text: Json
link: Json
markdown: Json
at: JsonAttributes
Attribute | Description | Type | Required | Default value | Limit |
webhook | The webhook URL of DingTalk. | String | Yes | ||
msgtype | The message type. | String | No | text | |
text | The content of the message of the text type. This attribute is required if the msgtype attribute is set to text. | Json | No | {'content': 'I am what I am. I am fireworks of a different color.'} | |
link | The content of the message of the link type. This attribute is required if the msgtype attribute is set to link. | Json | No | {'text': 'This is a link message.', 'title': 'This is a link message.', 'picUrl': 'https://img.alicdn.com/tfs/TB1NwmBEL9TBuNjy1zbXXXpepXa-2400-1218.png ', 'messageUrl': 'https://open.dingtalk.com/document/ '} | |
markdown | The content of the message of the Markdown type. This attribute is required if the msgtype attribute is set to markdown. | Json | No | {'title': 'Hangzhou weather', 'text': '#### Hangzhou weather \n> 9 degrees. Northwest wind: level 1. Air quality index (AQI): 89. Relative temperature: 73%\n> \n> ###### The weather was released at 10:20. \n'} | |
at | The users who are notified. | Json | No | {'atMobiles': ['150XXXXXXXX'], 'atUserIds': ['user123'], 'isAtAll': False} |
Output
None
References
For more information, see ACS::Notify::DingTalkWebhook.yml at GitHub.