Redirecting you to Core API Docs - Event Actions

Index

This method allows you to extract events from views, or using an ad hoc query.

Method URL
GET /api/v2/event_actions.json

Parameters

Param Type Required Notes
page integer No Page you would like to extract results from when using pagination (default 1, 1-indexed)
per_page integer No Number of records you would like to extract per request (default is 500)

Example Request

/api/v2/event_actions.json?page=1&per_page=250

Example Response

[
  {
    "id": 1,
    "name": "Custom data check",
    "status": "enabled",
    "type": "slack",
    "variables": {
      "integration": "1",
      "text": " failed scanning",
      "icon_type": "icon_emoji",
      "icon_url": "",
      "icon_emoji": ":bomb:"
    },
    "view": "Failed Scans"
  }
]

Show

This method returns the details of the event action specified by the ID given in the URL.

Method URL
GET /api/v2/event_actions/[event_action_id].json
Example Request URL

Example Response

Code Status
200 OK

Example Response JSON

  {
    "id": 1,
    "name": "Custom data check",
    "status": "enabled",
    "type": "slack",
    "variables": {
      "integration": "1",
      "text": " failed scanning",
      "icon_type": "icon_emoji",
      "icon_url": "",
      "icon_emoji": ":bomb:"
    },
    "view": "Failed Scans"
  }
Tags: