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

[Marketplace Contribution] Community Common Scripts - Content Pack Update #27457

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
5 changes: 5 additions & 0 deletions Packs/CommunityCommonScripts/ReleaseNotes/1_0_12.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

#### Scripts

##### New: delete_expired_indicator_with_exlusion
- Use this script to delete indicators that have expired.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import demistomock as demisto # noqa: F401
from CommonServerPython import * # noqa: F401
# Call the 'deleteIndicators' command to delete expired indicators
res = demisto.executeCommand("deleteIndicators", {
"query": "expirationStatus:expired",
"doNotWhitelist": "true"
})

# Return the results of the 'deleteIndicators' command execution
return_results(res)
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
commonfields:
id: delete_expired_indicator_with_exlusion
version: -1
contentitemexportablefields:
contentitemfields:
fromServerVersion: ""
dockerimage: demisto/python3:3.10.12.63474
comment: deletes expired indicators.
enabled: true
name: delete_expired_indicator_with_exlusion
runas: DBotWeakRole
runonce: false
script: ''
scripttarget: 0
subtype: python3
tags: []
type: python
fromversion: 6.8.0
tests:
- No tests (auto formatted)
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Use this script to delete indicators that have expired.
The executeCommand function is called with two arguments. The first argument is the name of the command, which is "deleteIndicators". The second argument is a dictionary containing additional parameters for the command. In this case, the query parameter is set to "expirationStatus:expired", which specifies that only indicators with an expiration status of "expired" should be deleted. The doNotWhitelist parameter is set to "true", indicating that any indicators deleted should not be updated on exclusion list.
## Script Data

---

| **Name** | **Description** |
| --- | --- |
| Script Type | python3 |
| Cortex XSOAR Version | 6.8.0 |

## Inputs
---
There are no inputs for this script.

## Outputs
---
There are no outputs for this script.
2 changes: 1 addition & 1 deletion Packs/CommunityCommonScripts/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Community Common Scripts",
"description": "A pack that contains community scripts",
"support": "community",
"currentVersion": "1.0.11",
"currentVersion": "1.0.12",
"author": "",
"url": "https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/bd-p/Cortex_XSOAR_Discussions",
"email": "",
Expand Down