PARALLAX

cisco_webex

Send a message to a Cisco Webex Teams Room or Individual

Collection: community.general

Full Name: community.general.cisco_webex

Synopsis

Send a message to a Cisco Webex Teams Room or Individual

Parameters

NameTypeRequiredDefaultDescription
msgstringyesThe message you would like to send.
msg_typestringtextSpecifies how you would like the message formatted.
personal_tokenstringyesYour personal access token required to validate the Webex Teams API.
recipient_idstringyesThe unique identifier associated with the supplied O(recipient_type).
recipient_typestringyesThe request parameter you would like to send the message to. Messages can be sent to either a room or individual (by ID or E-Mail).

Example

yaml
- name: Cisco Webex Teams - Markdown Message to a Room
  community.general.cisco_webex:
    recipient_type: roomId
    recipient_id: "{{ room_id }}"
    msg_type: markdown
    personal_token: "{{ token }}"
    msg: "**Cisco Webex Teams Ansible Module - Room Message in Markdown**"

- name: Cisco Webex Teams - Text Message to a Room
  community.general.cisco_webex:
    recipient_type: roomId
    recipient_id: "{{ room_id }}"
    msg_type: text
    personal_token: "{{ token }}"
    msg: "Cisco Webex Teams Ansible Module - Room Message in Text"

- name: Cisco Webex Teams - Text Message by an Individuals ID
  community.general.cisco_webex:
    recipient_type: toPersonId
    recipient_id: "{{ person_id}}"
    msg_type: text
    personal_token: "{{ token }}"
    msg: "Cisco Webex Teams Ansible Module - Text Message to Individual by ID"

- name: Cisco Webex Teams - Text Message by an Individuals E-Mail Address
  community.general.cisco_webex:
    recipient_type: toPersonEmail
    recipient_id: "{{ person_email }}"
    msg_type: text
    personal_token: "{{ token }}"
    msg: "Cisco Webex Teams Ansible Module - Text Message to Individual by E-Mail"
Search
    ↑ ↓ move↵ openesc close