Test Slack Action

You can execute a test action to check if Slack is reachable or not.

POST  /rest/v1/actions/slack/test

Input ParametersInput Parameters

Parameter

Mandatory/Optional Data Type

Description

slackConnectionParam

   

Specify the channel and webhookUri of your Slack account used to create the action.

Example:

{

"channel": "Sample Channel",

"webhookUri": "https://hooks.slack.com/services/T95RLRTSL
/BRD8PBJ06/oxQZYxmrBEIex6Mh0R6mMmpl"

}

Sample - Test Slack ActionSample - Test Slack Action

API request

    
      curl -k -X POST -u <username>:<password>
'https://<QualysBaseURL>/cloudview-api/rest/v1/actions/slack/test'
      

Request POST Data

    
      "channel": "Sample Slack",
"webhookUri": "https://hooks.slack.com/services/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"
      

Response

    
      "success": "true"