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] Netskope v2 - Content Pack Update #30485

Merged
merged 3 commits into from Oct 29, 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
4 changes: 3 additions & 1 deletion Packs/NetskopeV2/Integrations/NetskopeV2/NetskopeV2.py
Expand Up @@ -228,7 +228,9 @@ def main() -> None:
:rtype:
"""

api_key = demisto.params().get('api_key')
api_key = demisto.params().get("api_key_credentials", {}).get("password") or demisto.params().get("api_key")
if not api_key:
return_error('Please provide a valid API Key')
base_url = urljoin(demisto.params()['url'], '/api/v2/policy/urllist/')
verify_certificate = not demisto.params().get('insecure', False)
proxy = demisto.params().get('proxy', False)
Expand Down
30 changes: 18 additions & 12 deletions Packs/NetskopeV2/Integrations/NetskopeV2/NetskopeV2.yml
Expand Up @@ -9,30 +9,36 @@ configuration:
type: 0
- display: API Key
name: api_key
required: true
required: false
type: 4
hidden: true
- name: api_key_credentials
type: 9
required: false
displaypassword: API Key
hiddenusername: true
- display: Trust any certificate (not secure)
name: insecure
type: 8
required: false
- display: Use system proxy settings
name: proxy
type: 8
required: false
type: 8
description: Block URLs, domains and file hashes.
display: Netskope (API v2)
name: Netskope (API v2)
script:
commands:
- arguments:
- description: Name of the URL list
- description: Name of the URL list.
name: list_name
required: true
- description: URLs to add to the list
- description: URLs to add to the list.
isArray: true
name: url
required: true
description: Add URLs to the Netskope URL block list
description: Add URLs to the Netskope URL block list.
name: netskopev2-add-url
outputs:
- contextPath: Netskope.URLList.id
Expand Down Expand Up @@ -61,14 +67,14 @@ script:
description: URL List pending status ('1' if pending, '0' if not).
type: number
- arguments:
- description: Name of the URL list
- description: Name of the URL list.
name: list_name
required: true
- description: URLs to remove from the list
- description: URLs to remove from the list.
isArray: true
name: url
required: true
description: Remove URLs from the Netskope URL block list
description: Remove URLs from the Netskope URL block list.
name: netskopev2-remove-url
outputs:
- contextPath: Netskope.URLList.id
Expand Down Expand Up @@ -97,7 +103,7 @@ script:
description: URL List pending status ('1' if pending, '0' if not).
type: number
- arguments: []
description: Get all applied and pending URL lists
description: Get all applied and pending URL lists.
name: netskopev2-get-lists
outputs:
- contextPath: Netskope.List.id
Expand Down Expand Up @@ -126,10 +132,10 @@ script:
description: URL List pending status ('1' if pending, '0' if not).
type: number
- arguments:
- description: Name of the URL list
- description: Name of the URL list.
name: list_name
required: true
description: Get URL list by ID
description: Get URL list by ID.
name: netskopev2-get-list
outputs:
- contextPath: Netskope.List.id
Expand Down Expand Up @@ -157,7 +163,7 @@ script:
- contextPath: Netskope.List.pending
description: URL List pending status ('1' if pending, '0' if not).
type: number
dockerimage: demisto/python3:3.10.12.63474
dockerimage: demisto/python3:3.10.13.78960
runonce: false
script: ''
subtype: python3
Expand Down
@@ -1 +1 @@
## Netskope (API v2)
## Netskope (API v2)
Binary file modified Packs/NetskopeV2/Integrations/NetskopeV2/NetskopeV2_image.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions Packs/NetskopeV2/ReleaseNotes/1_0_2.md
@@ -0,0 +1,7 @@

#### Integrations

##### Netskope (API v2)

- Added the credential support for the *API Key* integration parameter.
- Updated the Docker image to: *demisto/python3:3.10.13.78960*.
2 changes: 1 addition & 1 deletion Packs/NetskopeV2/pack_metadata.json
Expand Up @@ -2,7 +2,7 @@
"name": "Netskope v2",
"description": "Block URLs, domains and file hashes.",
"support": "community",
"currentVersion": "1.0.1",
"currentVersion": "1.0.2",
"author": "randomizerxd",
"url": "",
"email": "",
Expand Down