Skip to content

Commit

Permalink
Absolute V1 (demisto#18079)
Browse files Browse the repository at this point in the history
* stated the yml file

* start implementation

* auth implementation

* auth implementation works correctly

* update_custom_device_field_command added

* added more commands

* added UT and query fix

* more commands implementation

* edit outputs

* added get location command

* added description

* added description

* fixes

* fixes

* added UT

* added UTs

* added UTs

* added UTs

* added UTs

* added UTs

* added UTs

* added UTs

* added UTs

* update docker

* update mypy

* Delete test.py

* delete file

* update location command

* update custom fields command hr

* update hr

* change auth params

* change hm create freeze msg

* update command

* update command

* update command

* added TPB

* fixed an issue where the response is empty

* added readme

* added query example to readme

* secrets ignore

* code review

* update human readable for freeze req command

* Update Absolute_description.md

Done.

* Update Absolute.yml

Done.

* Update README.md

Done.

* Update README.md

Done.

* fix error response

* fix error response

Co-authored-by: ShirleyDenkberg <[email protected]>
  • Loading branch information
abaumgarten and ShirleyDenkberg authored Apr 12, 2022
1 parent c61ab4f commit 9599681
Show file tree
Hide file tree
Showing 20 changed files with 4,733 additions and 0 deletions.
Empty file added Packs/Absolute/.pack-ignore
Empty file.
8 changes: 8 additions & 0 deletions Packs/Absolute/.secrets-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
https://absolute.com
absolute.com
https://cc.absolute.com
https://cc.us.absolute.com
https://cc.eu2.absolute.com
https://api.absolute.com
https://api.us.absolute.com
https://api.eu2.absolute.com
962 changes: 962 additions & 0 deletions Packs/Absolute/Integrations/Absolute/Absolute.py

Large diffs are not rendered by default.

928 changes: 928 additions & 0 deletions Packs/Absolute/Integrations/Absolute/Absolute.yml

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions Packs/Absolute/Integrations/Absolute/Absolute_description.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
## Absolute

To configure an instance of Absolute, you need to obtain the following information.

* Server URL
* Token ID
* Secret Key

## Get your Token ID and Secret Key

### Token ID
* The token ID is a random GUIs string and is public information (like username).
* It is associated with the same role and device group as the Absolute user account.

### Secret Key
The secret key is a random sequence of bits and is private and contains sensitive information.

### Create a Token ID and Secret Key
1. In the Absolute console, click the **+** (in the quick access toolbar) > **API Token**.
2. On the **API Token Management** page, click the **Create token** button. The Create Token dialog box appears.
3. Enter a **Token name** and **Description**.
4. Click **Save** (The Token Created dialog box displays your generated token ID).
5. Download the token ID and secret key or view the secret key.
Note: If you close this dialog box before downloading or copying the secret key, you cannot retrieve it later.

### Download the Token ID and Secret Key
1. Click **Download Token**.
2. Save the .token file.
3. Use a text editor to open and view the file.
4. To view the secret key:
1. Click **View Secret Key**. The secret key is populated.
2. Copy both values of the **Token ID** and **Secret key** to a text file and save the file.
5. Click **Close**.

#### Notes:
1. On the **API Token Management** page, the new token is added to your list of tokens.
2. If a 401 error causes the API authentication to fail, you can enable authentication debugging from the Absolute console.
3. The secret key is comparable to a password. Keep it secure, and do not share it with anyone.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
500 changes: 500 additions & 0 deletions Packs/Absolute/Integrations/Absolute/Absolute_test.py

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions Packs/Absolute/Integrations/Absolute/Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
pylint = "*"
pytest = "==5.0.1"
pytest-mock = "*"
requests-mock = "*"
pytest-asyncio = "*"

[packages]
pytest = "*"
requests = "*"

[requires]
python_version = "3.7"
Loading

0 comments on commit 9599681

Please sign in to comment.