Cisco Webex Teams
Cisco Webex Teams Pack.#
This Integration is part of theSend messages, create rooms and more, via the Cisco Spark API. This integration was integrated and tested with version 6.2.0 of Cisco Spark
#
Configure Cisco Webex Teams in CortexParameter | Required |
---|---|
Server URL (e.g. https://192.168.0.1) | True |
API Key | True |
Trust any certificate (not secure) | False |
Use system proxy settings | False |
#
CommandsYou can execute these commands from the CLI, as part of an automation, or in a playbook. After you successfully execute a command, a DBot message appears in the War Room with the command details.
#
cisco-spark-list-peopleList people
#
Base Commandcisco-spark-list-people
#
InputArgument Name | Description | Required |
---|---|---|
List people with this email address. For non-admin requests, either this or displayName are required. | Optional | |
displayName | List people whose name starts with this string. For non-admin requests, either this or email are required. | Optional |
orgId | List people in this organization. Only admin users of another organization (such as partners) may use this parameter. | Optional |
max | Limit the maximum number of people in the response. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
CiscoSpark.People | unknown | The list of people. |
#
cisco-spark-create-personCreate a new user account for a given organization. Only an admin can create a new user account.
#
Base Commandcisco-spark-create-person
#
InputArgument Name | Description | Required |
---|---|---|
emails | Email addresses of the person (comma separated). | Optional |
displayName | Full name of the person. | Optional |
firstName | First name of the person. | Optional |
lastName | Last name of the person. | Optional |
avatar | URL to the person's avatar in PNG format. | Optional |
orgId | ID of the organization to which this person belongs. | Optional |
roles | Roles of the person (comma separated). | Optional |
licenses | Licenses allocated to the person. | Optional |
#
Context OutputThere is no context output for this command.
#
cisco-spark-get-person-detailsShows details for a person, by ID.
#
Base Commandcisco-spark-get-person-details
#
InputArgument Name | Description | Required |
---|---|---|
personId | The person ID. | Required |
#
Context OutputThere is no context output for this command.
#
cisco-spark-update-personUpdate details for a person, by ID. Only an admin can update a person details.
#
Base Commandcisco-spark-update-person
#
InputArgument Name | Description | Required |
---|---|---|
emails | Email addresses of the person (comma separated). | Optional |
displayName | Full name of the person. | Optional |
firstName | First name of the person. | Optional |
lastName | Last name of the person. | Optional |
avatar | URL to the person's avatar in PNG format. | Optional |
orgId | ID of the organization to which this person belongs. | Optional |
roles | Roles of the person (comma separated). | Optional |
licenses | Licenses allocated to the person (comma separated). | Optional |
personId | The person ID. | Required |
#
Context OutputThere is no context output for this command.
#
cisco-spark-delete-personRemove a person from the system. Only an admin can remove a person.
#
Base Commandcisco-spark-delete-person
#
InputArgument Name | Description | Required |
---|---|---|
personId | The person ID. | Required |
#
Context OutputThere is no context output for this command.
#
cisco-spark-get-own-detailsShow the profile for the authenticated user.
#
Base Commandcisco-spark-get-own-details
#
InputArgument Name | Description | Required |
---|
#
Context OutputThere is no context output for this command.
#
cisco-spark-list-roomsList rooms.
#
Base Commandcisco-spark-list-rooms
#
InputArgument Name | Description | Required |
---|---|---|
teamId | Limit the rooms to those associatedwith a team, by ID. | Optional |
max | Limit the maximum number of rooms in the response. | Optional |
type | Available values: direct and group. direct returns all 1-to-1 rooms. group returns all group rooms. If not specified or values not matched, will return all room types. Possible values are: direct, group. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
CiscoSpark.Rooms | unknown | The list of rooms. |
#
cisco-spark-create-roomCreates a room.
#
Base Commandcisco-spark-create-room
#
InputArgument Name | Description | Required |
---|---|---|
title | A user-friendly name for the room. | Required |
teamId | The ID for the team with which this room is associated. | Optional |
#
Context OutputThere is no context output for this command.
#
cisco-spark-get-room-detailsShows details for a room, by ID.
#
Base Commandcisco-spark-get-room-details
#
InputArgument Name | Description | Required |
---|---|---|
roomId | The room ID. | Required |
#
Context OutputThere is no context output for this command.
#
cisco-spark-update-roomUpdates details for a room, by ID.
#
Base Commandcisco-spark-update-room
#
InputArgument Name | Description | Required |
---|---|---|
roomId | The room ID. | Required |
title | A user-friendly name for the room. | Required |
#
Context OutputThere is no context output for this command.
#
cisco-spark-delete-roomDeletes a room, by ID. Deleted rooms cannot be recovered.
#
Base Commandcisco-spark-delete-room
#
InputArgument Name | Description | Required |
---|---|---|
roomId | The room ID. | Required |
#
Context OutputThere is no context output for this command.
#
cisco-spark-list-membershipsLists all room memberships. Use either personId or personEmail to filter the results.
#
Base Commandcisco-spark-list-memberships
#
InputArgument Name | Description | Required |
---|---|---|
roomId | Limit results to a specific room, by ID. | Optional |
personId | Limit results to a specific person, by ID. | Optional |
personEmail | Limit results to a specific person, by email address. | Optional |
max | Limit the maximum number of items in the response. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
CiscoSpark.Memberships | unknown | List of memberships. |
#
cisco-spark-create-membershipAdd someone to a room by Person ID or email address; optionally making them a moderator.
#
Base Commandcisco-spark-create-membership
#
InputArgument Name | Description | Required |
---|---|---|
roomId | The room ID. | Required |
personId | The person ID. | Optional |
personEmail | The email address of the person. | Optional |
isModerator | Set to true to make the person a room moderator. Possible values are: true, false. | Optional |
#
Context OutputThere is no context output for this command.
#
cisco-spark-get-membership-detailsGet details for a membership by ID.
#
Base Commandcisco-spark-get-membership-details
#
InputArgument Name | Description | Required |
---|---|---|
membershipId | The membership ID. | Required |
#
Context OutputThere is no context output for this command.
#
cisco-spark-update-membershipUpdates properties for a membership by ID.
#
Base Commandcisco-spark-update-membership
#
InputArgument Name | Description | Required |
---|---|---|
membershipId | The membership ID. | Required |
isModerator | Set to true to make the person a room moderator. Possible values are: true, false. | Required |
#
Context OutputThere is no context output for this command.
#
cisco-spark-delete-membershipDeletes a membership by ID.
#
Base Commandcisco-spark-delete-membership
#
InputArgument Name | Description | Required |
---|---|---|
membershipId | The membership ID. | Required |
#
Context OutputThere is no context output for this command.
#
cisco-spark-list-messagesLists all messages in a room.
#
Base Commandcisco-spark-list-messages
#
InputArgument Name | Description | Required |
---|---|---|
roomId | List messages for a room, by ID. | Required |
mentionedPeople | List messages where the caller is mentioned by specifying "me" or the caller personId. | Optional |
before | List messages sent before a date and time, in ISO8601 format. | Optional |
beforeMessage | List messages sent before a message, by ID. | Optional |
max | Limit the maximum number of messages in the response. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
CiscoSpark.Messages | unknown | List of messages, by roomId. |
#
cisco-spark-create-messagePosts a plain text message, and optionally, a media content attachment, to a room.
#
Base Commandcisco-spark-create-message
#
InputArgument Name | Description | Required |
---|---|---|
roomId | The room ID. | Optional |
toPersonId | The ID of the recipient when sending a private 1:1 message. | Optional |
toPersonEmail | The email address of the recipient when sending a private 1:1 message. | Optional |
text | The message, in plain text. If markdown is specified this parameter may be optionally used to provide alternate text forUI clients that do not support rich text. | Optional |
markdown | The message, in markdown format. | Optional |
files | The public URL to a binary file to be posted into the room. Only one file is allowed per message. Uploaded files are automatically converted into a format that all Spark clients can render. For the supported media types and the behavior of uploads, see the Message AttachmentsGuide. | Optional |
#
Context OutputThere is no context output for this command.
#
cisco-spark-get-message-detailsShows details for a message, by message ID.
#
Base Commandcisco-spark-get-message-details
#
InputArgument Name | Description | Required |
---|---|---|
messageId | The message ID. | Required |
#
Context OutputThere is no context output for this command.
#
cisco-spark-delete-messageDeletes a message, by message ID.
#
Base Commandcisco-spark-delete-message
#
InputArgument Name | Description | Required |
---|---|---|
messageId | The message ID. | Required |
#
Context OutputThere is no context output for this command.
#
cisco-spark-list-teamsLists teams to which the authenticated user belongs.
#
Base Commandcisco-spark-list-teams
#
InputArgument Name | Description | Required |
---|---|---|
max | Limit the maximum number of teams in the response. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
CiscoSpark.Teams | unknown | List of teams. |
#
cisco-spark-create-teamCreates a team. The authenticated user is automatically added as a member of the team.
#
Base Commandcisco-spark-create-team
#
InputArgument Name | Description | Required |
---|---|---|
name | A user-friendly name for the team. | Required |
#
Context OutputThere is no context output for this command.
#
cisco-spark-get-team-detailsShows details for a team, by ID.
#
Base Commandcisco-spark-get-team-details
#
InputArgument Name | Description | Required |
---|---|---|
teamId | The team ID. | Required |
#
Context OutputThere is no context output for this command.
#
cisco-spark-update-teamUpdates details for a team, by ID.
#
Base Commandcisco-spark-update-team
#
InputArgument Name | Description | Required |
---|---|---|
teamId | The team ID. | Required |
name | A user-friendly name for the team. | Required |
#
Context OutputThere is no context output for this command.
#
cisco-spark-delete-teamDeletes a team, by ID.
#
Base Commandcisco-spark-delete-team
#
InputArgument Name | Description | Required |
---|---|---|
teamId | The team ID. | Required |
#
Context OutputThere is no context output for this command.
#
cisco-spark-list-team-membershipsLists all team memberships for a given team, specified by the teamId query parameter.
#
Base Commandcisco-spark-list-team-memberships
#
InputArgument Name | Description | Required |
---|---|---|
teamId | List team memberships for a team, by ID. | Required |
max | Limit the maximum number of items in the response. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
CiscoSpark.TeamMemberships | unknown | List of team memberships. |
#
cisco-spark-create-team-membershipAdd someone to a team by Person ID or email address; optionally making them a moderator.
#
Base Commandcisco-spark-create-team-membership
#
InputArgument Name | Description | Required |
---|---|---|
teamId | The team ID. | Required |
personId | The person ID. | Optional |
personEmail | The email address of the person. | Optional |
isModerator | Set to true to make the person a team moderator. Possible values are: true, false. | Optional |
#
Context OutputThere is no context output for this command.
#
cisco-spark-get-team-membership-detailsShows details for a team membership, by ID.
#
Base Commandcisco-spark-get-team-membership-details
#
InputArgument Name | Description | Required |
---|---|---|
membershipId | The membership ID. | Required |
#
Context OutputThere is no context output for this command.
#
cisco-spark-update-team-membershipUpdates a team membership, by ID.
#
Base Commandcisco-spark-update-team-membership
#
InputArgument Name | Description | Required |
---|---|---|
membershipId | The membership ID. | Required |
isModerator | Set to true to make the person a team moderator. Possible values are: true, false. | Required |
#
Context OutputThere is no context output for this command.
#
cisco-spark-delete-team-membershipDeletes a team membership, by ID.
#
Base Commandcisco-spark-delete-team-membership
#
InputArgument Name | Description | Required |
---|---|---|
membershipId | The membership ID. | Required |
#
Context OutputThere is no context output for this command.
#
cisco-spark-list-webhooksLists all of your webhooks.
#
Base Commandcisco-spark-list-webhooks
#
InputArgument Name | Description | Required |
---|---|---|
max | Limit the maximum number of webhooks in the response. Setting this to greater than 100 will return an error. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
CiscoSpark.Webhooks | unknown | List of webhooks. |
#
cisco-spark-create-webhookCreates a webhook.
#
Base Commandcisco-spark-create-webhook
#
InputArgument Name | Description | Required |
---|---|---|
name | A user-friendly name for this webhook. | Required |
targetUrl | The URL that receives POST requests for each event. | Required |
resource | The resource type for the webhook. Creating a webhook requires 'read' scope on the resource the webhook is for. | Required |
event | The event type for the webhook. | Required |
filter | The filter that defines the webhook scope. | Optional |
secret | Secret used to generate payload signature. | Optional |
#
Context OutputThere is no context output for this command.
#
cisco-spark-get-webhook-detailsShows details for a webhook, by ID.
#
Base Commandcisco-spark-get-webhook-details
#
InputArgument Name | Description | Required |
---|---|---|
webhookId | The webhook ID. | Required |
#
Context OutputThere is no context output for this command.
#
cisco-spark-update-webhookUpdates a webhook, by ID.
#
Base Commandcisco-spark-update-webhook
#
InputArgument Name | Description | Required |
---|---|---|
webhookId | The webhook ID. | Required |
name | A user-friendly name for this webhook. | Required |
targetUrl | The URL that receives POST requests for each event. | Required |
#
Context OutputThere is no context output for this command.
#
cisco-spark-delete-webhookDeletes a webhook, by ID.
#
Base Commandcisco-spark-delete-webhook
#
InputArgument Name | Description | Required |
---|---|---|
webhookId | The webhook ID. | Required |
#
Context OutputThere is no context output for this command.
#
cisco-spark-list-organizationsList all organizations visible by your account.
#
Base Commandcisco-spark-list-organizations
#
InputArgument Name | Description | Required |
---|---|---|
max | Limit the maximum number of entries in the response. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
CiscoSpark.Organizations | unknown | List of organizations. |
#
cisco-spark-get-organization-detailsShows details for an organization, by ID.
#
Base Commandcisco-spark-get-organization-details
#
InputArgument Name | Description | Required |
---|---|---|
orgId | The organization ID. | Required |
#
Context OutputThere is no context output for this command.
#
cisco-spark-list-licensesList all licenses for a given organization. If no orgId is specified, the default is the organization of the authenticated user.
#
Base Commandcisco-spark-list-licenses
#
InputArgument Name | Description | Required |
---|---|---|
orgId | Specify the organization. | Optional |
max | Limit the maximum number of entries in the response. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
CiscoSpark.Licenses | unknown | List of licenses. |
#
cisco-spark-get-license-detailsShows details for a license, by ID.
#
Base Commandcisco-spark-get-license-details
#
InputArgument Name | Description | Required |
---|---|---|
licenseId | The license ID. | Required |
#
Context OutputThere is no context output for this command.
#
cisco-spark-list-rolesList all roles.
#
Base Commandcisco-spark-list-roles
#
InputArgument Name | Description | Required |
---|---|---|
max | Limit the maximum number of entries in the response. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
CiscoSpark.Roles | unknown | List of roles. |
#
cisco-spark-get-role-detailsShows details for a role, by ID.
#
Base Commandcisco-spark-get-role-details
#
InputArgument Name | Description | Required |
---|---|---|
roleId | The role ID. | Required |
#
Context OutputThere is no context output for this command.
#
cisco-spark-send-message-to-personSends a message to a person, by email or person ID.
#
Base Commandcisco-spark-send-message-to-person
#
InputArgument Name | Description | Required |
---|---|---|
toPersonEmail | Email address of the recipient. | Optional |
toPersonId | The personId of the recipient. | Optional |
text | The message, in plain text. If markdown is specified this parameter may be optionally used to provide alternate text forUI clients that do not support rich text. | Optional |
markdown | The message, in markdown format. | Optional |
files | The public URL to a binary file to be posted into the room. Only one file is allowed per message. Uploaded files are automatically converted into a format that all Spark clients can render. For the supported media types and the behavior of uploads, see the Message AttachmentsGuide. | Optional |
#
Context OutputThere is no context output for this command.
#
cisco-spark-send-message-to-roomSends a message to a room, by name or room ID.
#
Base Commandcisco-spark-send-message-to-room
#
InputArgument Name | Description | Required |
---|---|---|
toRoomName | The room name. | Optional |
roomId | The room ID. | Optional |
text | The message, in plain text. If markdown is specified this parameter may be optionally used to provide alternate text forUI clients that do not support rich text. | Optional |
markdown | The message, in markdown format. | Optional |
files | The public URL to a binary file to be posted into the room. Only one file is allowed per message. Uploaded files are automatically converted into a format that all Spark clients can render. For the supported media types and the behavior of uploads, see the Message AttachmentsGuide. | Optional |
#
Context OutputThere is no context output for this command.