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

[Delete Custom Content] Add input - using #27859

Merged
merged 8 commits into from Jul 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Packs/ContentManagement/.pack-ignore
Expand Up @@ -35,7 +35,7 @@ ignore=RM106
ignore=PB106

[file:playbook-Delete_Custom_Content.yml]
ignore=PB105
ignore=PB105,PB106

[known_words]
cliname
Expand Down
Expand Up @@ -55,6 +55,8 @@ tasks:
scriptarguments:
uri:
simple: /content/bundle
using:
simple: ${inputs.instance_name}
separatecontext: false
continueonerrortype: ""
view: |-
Expand Down Expand Up @@ -127,6 +129,8 @@ tasks:
simple: ${inputs.dry_run}
include_ids_dict:
simple: ${GetIdsFromCustomContent.included_ids}
using:
simple: ${inputs.instance_name}
separatecontext: false
continueonerrortype: ""
view: |-
Expand Down Expand Up @@ -400,6 +404,11 @@ inputs:
required: true
description: If true, will not actually delete any content entities.
playbookInputQuery:
- key: instance_name
value: {}
required: false
description: Core REST API instance name to use.
playbookInputQuery:
outputs: []
tests:
- No tests (auto formatted)
Expand Down
Expand Up @@ -31,6 +31,7 @@ core-api-download
| **Name** | **Description** | **Default Value** | **Required** |
| --- | --- | --- | --- |
| dry_run | If true, will not actually delete any content entities. | true | Required |
| instance_name | Core REST API instance name to use. | | Optional |

## Playbook Outputs

Expand Down
13 changes: 13 additions & 0 deletions Packs/ContentManagement/ReleaseNotes/1_2_10.md
@@ -0,0 +1,13 @@

#### Playbooks

##### Delete Custom Content

- Added new inputs `instance_name` (which `Core REST API` instance to use).

#### Scripts

##### DeleteContent
- Updated the Docker image to: *demisto/python3:3.10.12.63474*.

- Added the option to specify `Core REST API` instance to use by setting the **using** value when running the script.
254 changes: 147 additions & 107 deletions Packs/ContentManagement/Scripts/DeleteContent/DeleteContent.py

Large diffs are not rendered by default.

Expand Up @@ -66,7 +66,7 @@ tags:
timeout: 3600
type: python
subtype: python3
dockerimage: demisto/python3:3.10.12.62631
dockerimage: demisto/python3:3.10.12.63474
tests:
- No tests (auto formatted)
fromversion: 6.0.0
Expand Down
2 changes: 1 addition & 1 deletion Packs/ContentManagement/pack_metadata.json
Expand Up @@ -2,7 +2,7 @@
"name": "XSOAR CI/CD",
"description": "This pack enables you to orchestrate your XSOAR system configuration.",
"support": "xsoar",
"currentVersion": "1.2.9",
"currentVersion": "1.2.10",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down