Skip to content

Commit

Permalink
[Marketplace Contribution] Netskope v2 - Content Pack Update (#30485)
Browse files Browse the repository at this point in the history
* [Marketplace Contribution] Netskope v2 - Content Pack Update (#30476)

* "contribution update to pack "Netskope v2""

* Added 'hidden: true' to encrypted parameter

* Added periods to match formatting requirements

* Update Packs/NetskopeV2/Integrations/NetskopeV2/NetskopeV2.yml

Co-authored-by: Moshe Eichler <78307768+MosheEichler@users.noreply.github.com>

* Update Packs/NetskopeV2/Integrations/NetskopeV2/NetskopeV2.py

Co-authored-by: Moshe Eichler <78307768+MosheEichler@users.noreply.github.com>

* Update Packs/NetskopeV2/Integrations/NetskopeV2/NetskopeV2.yml

Co-authored-by: Moshe Eichler <78307768+MosheEichler@users.noreply.github.com>

* Update Packs/NetskopeV2/Integrations/NetskopeV2/NetskopeV2.py

Co-authored-by: Moshe Eichler <78307768+MosheEichler@users.noreply.github.com>

* Update Packs/NetskopeV2/pack_metadata.json

Co-authored-by: Moshe Eichler <78307768+MosheEichler@users.noreply.github.com>

* Update Packs/NetskopeV2/ReleaseNotes/1_1_0.md

Co-authored-by: Moshe Eichler <78307768+MosheEichler@users.noreply.github.com>

* Rename 1_1_0.md to 1_0_2.md

---------

Co-authored-by: Nicole Casartelli <npcasartelli@gmail.com>
Co-authored-by: Moshe Eichler <78307768+MosheEichler@users.noreply.github.com>

* RN

---------

Co-authored-by: xsoar-bot <67315154+xsoar-bot@users.noreply.github.com>
Co-authored-by: Nicole Casartelli <npcasartelli@gmail.com>
Co-authored-by: Moshe Eichler <78307768+MosheEichler@users.noreply.github.com>
Co-authored-by: MosheEichler <meichler@paloaltonetworks.com>
  • Loading branch information
5 people committed Oct 29, 2023
1 parent def8497 commit 0f858bf
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 15 deletions.
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

0 comments on commit 0f858bf

Please sign in to comment.