Slack policy

A Slack policy contains the connection details that are used by a Slack Request node when connecting to Slack.

You can use a Slack Request node in a message flow to connect IBM® App Connect Enterprise to Slack and issue requests to send or retrieve messages, or to add, delete, or retrieve objects such as files, channels, users, and groups. The Slack policy controls, at run time, access to the Slack application and resources.

The Slack policy is created when you configure a connection between a Slack Request node and a Slack account by using the Connector Discovery wizard. During the process of discovery, account credentials are stored in the vault and connection details are stored in a Slack policy. The policy is created with a type of Slack, and the name of the policy is returned to the Slack Request node and specified in the Connection tab of the node, in the format {policyProjectName}:policyName.

You can also create, update, or delete a Slack policy by using the Manage Discovery Connector Policies and Credentials wizard, which you can access by right-clicking the policy project in the IBM App Connect Enterprise Toolkit and then clicking New > Discovery Connector policies and credentials.

You must deploy this policy before message flows that use the policy are started. If you redeploy a Slack policy, all message flows that are using the policy will be stopped and restarted.

For more information about using Slack policies, see Using Slack with IBM App Connect Enterprise.

Table 1. Properties of the Slack policy
Property Property name in .policyxml file Description of properties
Credential Name credentialName This property specifies the name of the credential that will be used for the connection to Slack.

The specified credential can be defined during connector discovery and stored in the vault. Alternatively, you can specify an existing credential that was configured by using the mqsicredentials command or the server.conf.yaml file, or loaded through an external credential provider.

Slack Authentication method authenticationMethod This property is reserved for future use and must be set to the value BASIC_OAUTH.
Slack Application Type applicationType This property is reserved for future use and must be set to the value online.
Slack Application Version applicationVersion This property is reserved for future use and must be set to the value v1.