This state is useful for sending messages to Teams during state runs.
New in version 2017.7.0.
teams-message:
msteams.post_card:
- message: 'This state was executed successfully.'
- hook_url: https://outlook.office.com/webhook/837
The hook_url can be specified in the master or minion configuration like below:
msteams:
hook_url: https://outlook.office.com/webhook/837
salt.states.msteams.
post_card
(name, message, hook_url=None, title=None, theme_color=None)¶Send a message to a Microsft Teams channel
send-msteams-message:
msteams.post_card:
- message: 'This state was executed successfully.'
- hook_url: https://outlook.office.com/webhook/837
The following parameters are required:
The message that is to be sent to the MS Teams channel.
The following parameters are optional:
The webhook URL given configured in Teams interface, if not specified in the configuration options of master or minion.
The title for the card posted to the channel
A hex code for the desired highlight color
Generated on June 18, 2020 at 04:09:58 UTC.
You are viewing docs for the latest stable release, 3001. Switch to docs for the previous stable release, 3000.3, or to a recent doc build from the master branch.
© 2020 SaltStack. All Rights Reserved, SaltStack Inc. | Privacy Policy