GetAskLinks

Creates external ask links for the `Ask` task with the given name.

python · Community Common Scripts

Details

IDGetAskLinks
Languagepython
From Version6.10.0
Docker Imagedemisto/python3:3.12.13.10116658

README

Creates external ask links for the Ask task with the given name.

Script Data


Name Description
Script Type python3
Cortex XSOAR Version 6.10.0

Dependencies


This script uses the following commands and scripts.

  • core-api-get
  • Core REST API

Inputs


Argument Name Description
task_name The name of the Ask task in the playbook to generate links.
inc_id The investigation id for which generate the links. When omitted, the current investigation is used.

Outputs


Path Description Type
Ask.Links.taskName The name of the task in the playbook for which this link is created. String
Ask.Links.link The link generated for the option. String
Ask.Links.option The option for which this link is created. String
Ask.Links.taskID The id of the task in the playbook for which this link is created. Number
args:
- name: task_name
  required: true
  description: 'The name of the Ask task in the playbook to generate links.'
- name: inc_id
  description: 'The investigation id for which generate the links. When omitted, the current investigation is used.'
comment: 'Creates external ask links for the `Ask` task with the given name.'
commonfields:
  id: GetAskLinks
  version: -1
name: GetAskLinks
outputs:
- contextPath: Ask.Links.taskName
  description: 'The name of the task in the playbook for which this link is created.'
  type: String
- contextPath: Ask.Links.link
  description: 'The link generated for the option.'
  type: String
- contextPath: Ask.Links.option
  description: 'The option for which this link is created.'
  type: String
- contextPath: Ask.Links.taskID
  type: Number
  description: 'The id of the task in the playbook for which this link is created.'
script: '-'
timeout: '0'
type: python
subtype: python3
dockerimage: demisto/python3:3.12.13.10116658
fromversion: 6.10.0
tests:
- No tests (auto formatted)