Skip to content

slack ask

Ask a question through Slack Message to users/channels

Description

Ask a question through Slack Message to users/channels

Synopsis

slack ask
    --name <name>
    --message <message>
    [--options <options>]
    [--timeout <timeout>]
    [--retry_interval <retry_interval>]

Arguments

name - (string)

     Slack User/Channel IDs to post the message
     Example: --name "#general"
     Default: _None_      Attributes: required, multiple allowed

message - (string)

     Message to post in the channel
     Example: --message "Build has been successful"
     Default: _None_      Attributes: required

options - (string)

     Values to be displayed to post in the channel (Leave empty to receive any kind of text response)
     Example: --options "value1"
     Default: _None_      Attributes: optional, multiple allowed

timeout - (duration)

     timeout duration in minutes for the request
     Example: --timeout "5h"
     Default: 5h      Attributes: optional

retry_interval - (duration)

     interval duration in minutes to retry the request
     Example: --retry_interval "1h"
     Default: 1h      Attributes: optional

Examples

slack ask --name "#general" --message "Build has been successful" --options "value1"

Access Control

To use this command, you need access to the following:

Field Value
Action "update"
Service Type "slack"
Service Instance
Namespace
Object Type "message"
Object ID name

Please see Access Control for details.