Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 'Get CP XDR incidents' template #630

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,35 @@ type: action
definition:
name: get_xdr_incidents
namespace: integrations.check_point
title: Get Check Point Infinity XDR incidents for the last 7 days
description: Retrieve Check Point Infinity XDR incidents for the last 7 days.
title: Get Check Point Infinity XDR incidents
description: Retrieve Check Point Infinity XDR incidents for spicified date.
display_group: Check Point
expects:
filterBy:
filter:
type: str
description: Filter by createdAt or updatedAt
description: Filter by 'createdAt' or 'updatedAt'
default: updatedAt
start_time:
type: datetime
description: The start date (YYYY-MM-DDTHH:mm:ss.ssZ) of the time frame to look from (default is 7 days ago)
default: null
end_time:
type: datetime
description: The end date (YYYY-MM-DDTHH:mm:ss.ssZ) of the time frame to look from (default is today)
default: null
steps:
- ref: get_auth_token
action: integrations.check_point.get_auth_token
args: {}

- ref: get_xdr_incidents
action: core.http_request
args:
url: https://cloudinfra-gw.portal.checkpoint.com/app/xdr/api/xdr/v1/incidents/
method: GET
params:
filterBy: ${{ inputs.filter }}
from: ${{ inputs.start_time || (FN.now() - FN.days(7)) }}
to: ${{ inputs.end_time || FN.now() }}
timeout: 60
headers:
accept: application/json
Expand Down