RetrievePlaybookDependencies

Retrieves all Playbook (and Sub-Playbook) Names, Integrations, Automation Scripts, Commands not using-brand, and lists for a provided Playbook name. Also accepts inputs for incident types, layouts, incident fields, indicator fields, jobs, mappers, and pre-process rules connected to the parent playbook. Results can be output as an HTML or Markdown list.

python · Community Common Scripts

Details

IDRetrievePlaybookDependencies
Languagepython
From Version6.8.0
Docker Imagedemisto/python3:3.12.13.11879924

README

Retrieves all Playbook (and Sub-Playbook) names, Integrations, Automation Scripts, Commands and Lists for a provided Playbook name.

Script Data


Name Description
Script Type python3

Inputs


Argument Name Description
playbook_name Name of Playbook

Outputs


Path Description Type
RetrievePlaybookDependencies.Parent Playbook Name of parent playbook provided. Unknown
RetrievePlaybookDependencies.Playbooks Names of all Playbooks and Sub-Playbooks used. Unknown
RetrievePlaybookDependencies.Integrations Names of all Integrations used. Unknown
RetrievePlaybookDependencies.Automations Names of all Automation Scripts used. Unknown
RetrievePlaybookDependencies.Commands Names of all brandless Commands used. Unknown
RetrievePlaybookDependencies.Lists Names of all Lists used. Unknown
RetrievePlaybookDependencies.MarkdownString Markdown formatted string data of playbook dependencies. Unknown

Troubleshooting

Multi-tenant environments should be configured with the Cortex Rest API instance when using this
automation. Make sure the Use tenant parameter (in the Cortex Rest API integration) is checked
to ensure that API calls are made to the current tenant instead of the master tenant.

args:
- description: Name of Playbook.
  name: playbook_name
  required: true
- auto: PREDEFINED
  defaultValue: "false"
  description: Set 'true' to have a raw markdown list of results displayed in the war room.
  name: Markdown
  predefined:
  - "true"
  - "false"
  type: textArea
- auto: PREDEFINED
  default: true
  defaultValue: 'false'
  description: Set 'true' to have a raw html list of results displayed in the war room.
  name: HTML
  predefined:
  - 'false'
  - 'true'
- description: A list of incident types associated with the use case. If left empty then will display "None".
  isArray: true
  name: incident_types
- description: A list of incident layouts to be included in the documentation. If left empty then will display "None".
  isArray: true
  name: layouts
- description: A list of incident fields to be included in the documentation. If left empty then will display "None".
  isArray: true
  name: incident_fields
- description: A list of indicator fields to be included in the documentation. If left empty then will display "None".
  isArray: true
  name: indicator_fields
- description: A list of jobs to be included in the documentation. If left empty then will display "None".
  isArray: true
  name: jobs
- description: A list of mappers to be included in the documentation. If left empty then will display "None".
  isArray: true
  name: mappers
- description: A list of preprocess rules to be included in the documentation. If left empty then will display "None".
  isArray: true
  name: pre_process_rules
comment: Retrieves all Playbook (and Sub-Playbook) Names, Integrations, Automation Scripts, Commands not using-brand, and lists for a provided Playbook name. Also accepts inputs for incident types, layouts, incident fields, indicator fields, jobs, mappers, and pre-process rules connected to the parent playbook. Results can be output as an HTML or Markdown list.
commonfields:
  id: RetrievePlaybookDependencies
  version: -1
contentitemexportablefields:
  contentitemfields:
    fromServerVersion: ""
dockerimage: demisto/python3:3.12.13.11879924
enabled: true
name: RetrievePlaybookDependencies
outputs:
- contextPath: RetrievePlaybookDependencies
  description: The automations (sorted into base and custom scripts), brandless commands, integrations, lists, and un-branded commands a playbook and its sub-playbooks use. Will generate html and/or markdown lists for documentation.
runas: DBotWeakRole
runonce: false
script: ''
scripttarget: 0
subtype: python3
tags: []
timeout: 600ns
type: python
fromversion: 6.8.0
tests:
- No tests (auto formatted)