AlgosecGetApplications
Find applications containing network objects related to IP address using AppViz.
- Type
- python
- Pack
- Algosec
Source
import demistomock as demisto # noqa: F401
from CommonServerPython import * # noqa: F401
def algosec_get_applications():
resp = demisto.executeCommand("algosec-get-applications", demisto.args())
if isError(resp[0]):
result = resp
else:
data = [demisto.get(x, "Contents") for x in resp]
if data:
data = data if isinstance(data, list) else [data]
data = flattenTable(data)
result = {"ContentsFormat": formats["table"], "Type": entryTypes["note"], "Contents": data}
else:
result = "No results."
return_results(result)
def main(): # pragma: no cover
try:
algosec_get_applications()
except Exception as e:
err_msg = f"Encountered an error while running the script: [{e}]"
return_error(err_msg, error=e)
if __name__ in ("__main__", "__builtin__", "builtins"):
main()
README
Finds applications containing network objects related to IP address using AppViz.
Script Data
| Name | Description |
|---|---|
| Script Type | python |
| Tags | Algosec |
Dependencies
This script uses the following commands and scripts.
- algosec-get-applications
Inputs
| Argument Name | Description |
|---|---|
| address | The IP address/Subnet to search. |
| type | The search method for the address. |
Outputs
There are no outputs for this script.