firemon-api 0.3.3__tar.gz → 0.3.9__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. {firemon-api-0.3.3 → firemon_api-0.3.9}/.pre-commit-config.yaml +1 -1
  2. firemon_api-0.3.9/.readthedocs.yaml +18 -0
  3. firemon_api-0.3.9/PKG-INFO +93 -0
  4. {firemon-api-0.3.3 → firemon_api-0.3.9}/README.md +11 -6
  5. firemon_api-0.3.9/docs/_static/logo_firemon.png +0 -0
  6. {firemon-api-0.3.3 → firemon_api-0.3.9}/docs/_templates/sidebarintro.html +2 -0
  7. firemon_api-0.3.9/docs/api/api.rst +18 -0
  8. firemon_api-0.3.9/docs/api/apps/controlpanel/certauth.rst +7 -0
  9. firemon_api-0.3.9/docs/api/apps/controlpanel/cleanup.rst +7 -0
  10. firemon_api-0.3.9/docs/api/apps/controlpanel/config.rst +7 -0
  11. firemon_api-0.3.9/docs/api/apps/controlpanel/database.rst +7 -0
  12. firemon_api-0.3.9/docs/api/apps/controlpanel/diagpkg.rst +7 -0
  13. firemon_api-0.3.9/docs/api/apps/controlpanel.rst +13 -0
  14. firemon_api-0.3.9/docs/api/apps/orchestration/changes.rst +7 -0
  15. firemon_api-0.3.9/docs/api/apps/orchestration.rst +9 -0
  16. firemon_api-0.3.9/docs/api/apps/policyplanner/packets.rst +7 -0
  17. firemon_api-0.3.9/docs/api/apps/policyplanner/policyplan.rst +7 -0
  18. firemon_api-0.3.9/docs/api/apps/policyplanner/siql.rst +7 -0
  19. firemon_api-0.3.9/docs/api/apps/policyplanner/tasks.rst +7 -0
  20. firemon_api-0.3.9/docs/api/apps/policyplanner/workflows.rst +7 -0
  21. firemon_api-0.3.9/docs/api/apps/policyplanner.rst +13 -0
  22. firemon_api-0.3.9/docs/api/apps/securitymanager/access_path.rst +7 -0
  23. firemon_api-0.3.9/docs/api/apps/securitymanager/centralsyslogconfigs.rst +7 -0
  24. firemon_api-0.3.9/docs/api/apps/securitymanager/centralsyslogs.rst +7 -0
  25. firemon_api-0.3.9/docs/api/apps/securitymanager/collectionconfigs.rst +7 -0
  26. firemon_api-0.3.9/docs/api/apps/securitymanager/collectors.rst +7 -0
  27. firemon_api-0.3.9/docs/api/apps/securitymanager/deviceclusters.rst +7 -0
  28. firemon_api-0.3.9/docs/api/apps/securitymanager/devicegroups.rst +7 -0
  29. firemon_api-0.3.9/docs/api/apps/securitymanager/devicepacks.rst +7 -0
  30. firemon_api-0.3.9/docs/api/apps/securitymanager/devices.rst +7 -0
  31. firemon_api-0.3.9/docs/api/apps/securitymanager/elasticsearch.rst +7 -0
  32. firemon_api-0.3.9/docs/api/apps/securitymanager/license.rst +7 -0
  33. firemon_api-0.3.9/docs/api/apps/securitymanager/logging.rst +7 -0
  34. firemon_api-0.3.9/docs/api/apps/securitymanager/maps.rst +7 -0
  35. firemon_api-0.3.9/docs/api/apps/securitymanager/revisions.rst +7 -0
  36. firemon_api-0.3.9/docs/api/apps/securitymanager/routes.rst +7 -0
  37. firemon_api-0.3.9/docs/api/apps/securitymanager/rulerec.rst +7 -0
  38. firemon_api-0.3.9/docs/api/apps/securitymanager/siql.rst +7 -0
  39. firemon_api-0.3.9/docs/api/apps/securitymanager/users.rst +7 -0
  40. firemon_api-0.3.9/docs/api/apps/securitymanager/zones.rst +7 -0
  41. firemon_api-0.3.9/docs/api/apps/securitymanager.rst +30 -0
  42. firemon_api-0.3.9/docs/api/apps/structures.rst +9 -0
  43. firemon_api-0.3.9/docs/api/apps.rst +30 -0
  44. firemon_api-0.3.9/docs/api/core/app.rst +7 -0
  45. firemon_api-0.3.9/docs/api/core/endpoint.rst +7 -0
  46. firemon_api-0.3.9/docs/api/core/errors.rst +7 -0
  47. firemon_api-0.3.9/docs/api/core/query.rst +7 -0
  48. firemon_api-0.3.9/docs/api/core/response.rst +7 -0
  49. firemon_api-0.3.9/docs/api/core.rst +13 -0
  50. {firemon-api-0.3.3 → firemon_api-0.3.9}/docs/conf.py +23 -8
  51. {firemon-api-0.3.3 → firemon_api-0.3.9}/docs/index.rst +13 -2
  52. firemon_api-0.3.9/docs/requirements.txt +22 -0
  53. {firemon-api-0.3.3 → firemon_api-0.3.9}/docs/user/quickstart.rst +10 -10
  54. firemon_api-0.3.9/pyproject.toml +54 -0
  55. firemon_api-0.3.9/requirements.txt +3 -0
  56. firemon_api-0.3.9/setup.cfg +4 -0
  57. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/__init__.py +25 -16
  58. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/apps/__init__.py +48 -41
  59. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/apps/controlpanel/__init__.py +0 -2
  60. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/apps/controlpanel/certauth.py +3 -9
  61. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/apps/controlpanel/cleanup.py +2 -8
  62. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/apps/controlpanel/config.py +4 -10
  63. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/apps/controlpanel/database.py +4 -10
  64. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/apps/controlpanel/diagpkg.py +5 -11
  65. firemon_api-0.3.9/src/firemon_api/apps/orchestration/__init__.py +7 -0
  66. firemon_api-0.3.9/src/firemon_api/apps/orchestration/changes.py +177 -0
  67. firemon_api-0.3.9/src/firemon_api/apps/policyoptimizer/__init__.py +1 -0
  68. firemon_api-0.3.9/src/firemon_api/apps/policyplanner/__init__.py +23 -0
  69. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/apps/policyplanner/packets.py +22 -59
  70. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/apps/policyplanner/policyplan.py +15 -19
  71. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/apps/policyplanner/siql.py +2 -11
  72. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/apps/policyplanner/tasks.py +7 -26
  73. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/apps/policyplanner/workflows.py +5 -15
  74. firemon_api-0.3.9/src/firemon_api/apps/securitymanager/__init__.py +87 -0
  75. firemon_api-0.3.9/src/firemon_api/apps/securitymanager/access_path.py +202 -0
  76. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/apps/securitymanager/centralsyslogconfigs.py +11 -12
  77. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/apps/securitymanager/centralsyslogs.py +16 -19
  78. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/apps/securitymanager/collectionconfigs.py +32 -18
  79. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/apps/securitymanager/collectors.py +32 -49
  80. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/apps/securitymanager/deviceclusters.py +10 -13
  81. firemon_api-0.3.9/src/firemon_api/apps/securitymanager/devicegroups.py +377 -0
  82. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/apps/securitymanager/devicepacks.py +30 -43
  83. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/apps/securitymanager/devices.py +265 -176
  84. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/apps/securitymanager/elasticsearch.py +6 -11
  85. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/apps/securitymanager/license.py +14 -11
  86. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/apps/securitymanager/logging.py +20 -20
  87. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/apps/securitymanager/maps.py +32 -35
  88. firemon_api-0.3.9/src/firemon_api/apps/securitymanager/networksegments.py +204 -0
  89. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/apps/securitymanager/revisions.py +46 -57
  90. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/apps/securitymanager/routes.py +18 -35
  91. firemon_api-0.3.9/src/firemon_api/apps/securitymanager/rulerec.py +24 -0
  92. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/apps/securitymanager/siql.py +25 -38
  93. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/apps/securitymanager/users.py +48 -36
  94. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/apps/securitymanager/zones.py +27 -36
  95. firemon_api-0.3.9/src/firemon_api/apps/structure/__init__.py +26 -0
  96. firemon_api-0.3.9/src/firemon_api/apps/structure/apa.py +10 -0
  97. firemon_api-0.3.9/src/firemon_api/apps/structure/collector.py +24 -0
  98. firemon_api-0.3.9/src/firemon_api/apps/structure/device.py +33 -0
  99. firemon_api-0.3.9/src/firemon_api/apps/structure/policyplan.py +26 -0
  100. firemon_api-0.3.9/src/firemon_api/apps/structure/rulerec.py +43 -0
  101. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/core/api.py +55 -41
  102. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/core/app.py +10 -11
  103. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/core/endpoint.py +43 -43
  104. firemon_api-0.3.9/src/firemon_api/core/errors.py +22 -0
  105. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/core/query.py +52 -79
  106. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/core/response.py +94 -74
  107. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/core/utils.py +3 -12
  108. firemon_api-0.3.9/src/firemon_api.egg-info/PKG-INFO +93 -0
  109. firemon_api-0.3.9/src/firemon_api.egg-info/SOURCES.txt +123 -0
  110. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api.egg-info/requires.txt +1 -0
  111. firemon-api-0.3.3/Makefile +0 -2
  112. firemon-api-0.3.3/PKG-INFO +0 -105
  113. firemon-api-0.3.3/README.rst +0 -81
  114. firemon-api-0.3.3/docs/_static/logo_firemon.png +0 -0
  115. firemon-api-0.3.3/firemon_api/apps/controlpanel/errors.py +0 -2
  116. firemon-api-0.3.3/firemon_api/apps/policyoptimizer/__init__.py +0 -11
  117. firemon-api-0.3.3/firemon_api/apps/policyplanner/__init__.py +0 -19
  118. firemon-api-0.3.3/firemon_api/apps/securitymanager/__init__.py +0 -65
  119. firemon-api-0.3.3/firemon_api/apps/securitymanager/access_path.py +0 -134
  120. firemon-api-0.3.3/firemon_api.egg-info/PKG-INFO +0 -105
  121. firemon-api-0.3.3/firemon_api.egg-info/SOURCES.txt +0 -72
  122. firemon-api-0.3.3/firemon_api.egg-info/not-zip-safe +0 -1
  123. firemon-api-0.3.3/pyproject.toml +0 -11
  124. firemon-api-0.3.3/requirements.txt +0 -3
  125. firemon-api-0.3.3/setup.cfg +0 -44
  126. firemon-api-0.3.3/setup.py +0 -5
  127. {firemon-api-0.3.3 → firemon_api-0.3.9}/.gitignore +0 -0
  128. {firemon-api-0.3.3 → firemon_api-0.3.9}/docs/Makefile +0 -0
  129. {firemon-api-0.3.3 → firemon_api-0.3.9}/docs/_templates/sidebarlogo.html +0 -0
  130. {firemon-api-0.3.3 → firemon_api-0.3.9}/docs/make.bat +0 -0
  131. {firemon-api-0.3.3 → firemon_api-0.3.9}/docs/policyplanner/tickets.rst +0 -0
  132. {firemon-api-0.3.3 → firemon_api-0.3.9}/docs/policyplanner/workflows.rst +0 -0
  133. {firemon-api-0.3.3 → firemon_api-0.3.9}/docs/securitymanager/devicepacks.rst +0 -0
  134. {firemon-api-0.3.3 → firemon_api-0.3.9}/docs/securitymanager/devices.rst +0 -0
  135. {firemon-api-0.3.3 → firemon_api-0.3.9}/docs/securitymanager/siql.rst +0 -0
  136. {firemon-api-0.3.3 → firemon_api-0.3.9}/docs/securitymanager/users.rst +0 -0
  137. {firemon-api-0.3.3 → firemon_api-0.3.9}/docs/user/advanced.rst +0 -0
  138. {firemon-api-0.3.3 → firemon_api-0.3.9}/docs/user/install.rst +0 -0
  139. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api/core/__init__.py +0 -0
  140. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api.egg-info/dependency_links.txt +0 -0
  141. {firemon-api-0.3.3 → firemon_api-0.3.9/src}/firemon_api.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  repos:
2
2
  - repo: https://github.com/ambv/black
3
- rev: 20.8b1
3
+ rev: 24.10.0
4
4
  hooks:
5
5
  - id: black
6
6
  #- repo: https://github.com/pre-commit/mirrors-mypy
@@ -0,0 +1,18 @@
1
+ # Read the Docs configuration file for Sphinx projects
2
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3
+
4
+ # Required
5
+ version: 2
6
+
7
+ build:
8
+ os: ubuntu-22.04
9
+ tools:
10
+ python: "3.10"
11
+
12
+ sphinx:
13
+ configuration: docs/conf.py
14
+
15
+ # Explicitly set the version of Python and its requirements
16
+ python:
17
+ install:
18
+ - requirements: docs/requirements.txt
@@ -0,0 +1,93 @@
1
+ Metadata-Version: 2.4
2
+ Name: firemon-api
3
+ Version: 0.3.9
4
+ Summary: Python Wrapper for Firemon APIs
5
+ Author-email: Luke Johannsen <luke.johannsen@firemon.com>
6
+ License: MIT License
7
+ Project-URL: Documentation, https://firemon-api.readthedocs.io/en/latest/
8
+ Project-URL: Repository, https://github.com/lukejohannsen/firemon-api
9
+ Keywords: firemon,api,development
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Topic :: Software Development
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.8
16
+ Classifier: Programming Language :: Python :: 3.9
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Requires-Python: >=3.8
21
+ Description-Content-Type: text/markdown
22
+ Requires-Dist: chardet
23
+ Requires-Dist: requests
24
+ Requires-Dist: tenacity
25
+
26
+ # FireMon-API
27
+
28
+ This project is for wrapper for the Firemon APIs (Security Manager, etc).
29
+
30
+ The User Guide available on [Read the Docs](https://firemon-api.readthedocs.io)
31
+
32
+ # Current Design
33
+
34
+ Everything is basically being coded by hand to a fit a schema that makes sense to me. Endpoints are made and return objects which may have their own functions. For example search and manipulation of devices and their data. This is an attempt to make the API a bit more user friendly without requiring more interaction by the user.
35
+
36
+ ## Application Requests
37
+
38
+ The user may use the `/api-doc` from your FireMon server to extrapolate the need keys and methods to make and use the `request()` function for the specific FireMon application. This method is handy to test out what will be returned. This is handy for testing out functions and seeing results before coding up code that tries and fit the rhyme scheme for this module or get results that may yet not be coded.
39
+
40
+ ```
41
+ >>> fm.sm.request(key="device", use_domain=True).get()
42
+ [{'id': 27, 'domainId': 1, 'name': 'PA-VM 11.0.1', 'managementIp': <snip...>]
43
+ ```
44
+
45
+ ## Dynamic API
46
+
47
+ I have attempted to create a dynamic interface for all API calls if there is something needed that does not currently fit within the re-imagining of the API schema for user friendliness. Each application should automatically create these. Unfortunately many of the `operationId` for the API are not helpful in what they actually do:
48
+
49
+ ex: (`get_1`, `get_2`, `get_3`, ...)
50
+
51
+ Probably best to avoid this unless you are a sadist.
52
+
53
+ # Usage
54
+
55
+ Import module. Disable unverfied https certificate warnings. Switch https verification off.
56
+
57
+ ```
58
+ >>> import firemon_api as fmapi
59
+ >>> fmapi.disable_warnings()
60
+ >>> fm = fmapi.api('saffron', verify=False).auth('firemon', 'firemon')
61
+ >>> fm
62
+ <Firemon(url='https://saffron', version='10.0.0')>
63
+ >>> for dev in fm.sm.devices.all():
64
+ ... print(dev.name)
65
+ ...
66
+ asa-2961.lab.firemon.com
67
+ ASA5505-8-3-2
68
+ ciscoASA8dot2
69
+ CSM-2
70
+ vSRX-3
71
+ ```
72
+
73
+ Create a new Device. Newer versions of Firemon require we specify which Collector Group and ID to use. Grab the first Collector Group.
74
+
75
+ Use all the default information from the device pack for our device.
76
+
77
+ Add in some required information and other settings to our dictionary.
78
+
79
+ Create the device.
80
+
81
+ ```
82
+ >>> cg = fm.sm.collectorgroups.all()[0]
83
+ >>> config = fm.sm.dp.get('juniper_srx').template()
84
+ >>> config['name'] = 'Conan'
85
+ >>> config['description'] = 'A test of the API'
86
+ >>> config['managementIp'] = '10.2.2.2'
87
+ >>> config['collectorGroupId'] = cg.id
88
+ >>> config['collectorGroupName'] = cg.name
89
+ >>> config['extendedSettingsJson']['password'] = 'abc12345'
90
+ >>> dev = fm.sm.devices.create(config)
91
+ >>> dev
92
+ <Device(Conan)>
93
+ ```
@@ -6,20 +6,25 @@ The User Guide available on [Read the Docs](https://firemon-api.readthedocs.io)
6
6
 
7
7
  # Current Design
8
8
 
9
- Everything is basically being coded by hand to attempt to fit a schema that makes sense to me. Endpoints are made and return objects which may have their own functions. For example search and manipulation of devices and their data. This is attempt to make the API a bit more user friendly without requiring more interaction by the user.
9
+ Everything is basically being coded by hand to a fit a schema that makes sense to me. Endpoints are made and return objects which may have their own functions. For example search and manipulation of devices and their data. This is an attempt to make the API a bit more user friendly without requiring more interaction by the user.
10
10
 
11
- I have attempted to create a dynamic interface for all API calls if there is something needed that does not currently fit within the re-imagining of the API schema for user friendliness. Each application should automatically create these. Unfortunately many of the `operationId` for the API are not helpful in what they actually do:
12
-
13
- ex: (`get_1`, `get_2`, `get_3`, ...)
11
+ ## Application Requests
14
12
 
15
- Or use the `/api-doc` from your FireMon server to extrapolate the need keys and methods to make and use the `request()`
16
- function for the specific FireMon application.
13
+ The user may use the `/api-doc` from your FireMon server to extrapolate the need keys and methods to make and use the `request()` function for the specific FireMon application. This method is handy to test out what will be returned. This is handy for testing out functions and seeing results before coding up code that tries and fit the rhyme scheme for this module or get results that may yet not be coded.
17
14
 
18
15
  ```
19
16
  >>> fm.sm.request(key="device", use_domain=True).get()
20
17
  [{'id': 27, 'domainId': 1, 'name': 'PA-VM 11.0.1', 'managementIp': <snip...>]
21
18
  ```
22
19
 
20
+ ## Dynamic API
21
+
22
+ I have attempted to create a dynamic interface for all API calls if there is something needed that does not currently fit within the re-imagining of the API schema for user friendliness. Each application should automatically create these. Unfortunately many of the `operationId` for the API are not helpful in what they actually do:
23
+
24
+ ex: (`get_1`, `get_2`, `get_3`, ...)
25
+
26
+ Probably best to avoid this unless you are a sadist.
27
+
23
28
  # Usage
24
29
 
25
30
  Import module. Disable unverfied https certificate warnings. Switch https verification off.
@@ -1,8 +1,10 @@
1
+ <!--
1
2
  <p class="logo">
2
3
  <a href="{{ pathto(master_doc) }}">
3
4
  <img class="logo" src="{{ pathto('_static/logo_firemon.png', 1) }}" alt="Firemon logo" />
4
5
  </a>
5
6
  </p>
7
+ -->
6
8
 
7
9
  <p>
8
10
  FireMon-API is a Python web wrapper for the FireMon SIP (Security Mangager, etc...)
@@ -0,0 +1,18 @@
1
+ FireMon API
2
+ ===========
3
+
4
+ .. automodule:: firemon_api
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
8
+
9
+ .. autoclass:: firemon_api.api
10
+ :members:
11
+ :undoc-members:
12
+ :show-inheritance:
13
+
14
+
15
+ .. autoclass:: firemon_api.core.api.FiremonAPI
16
+ :members:
17
+ :undoc-members:
18
+ :show-inheritance:
@@ -0,0 +1,7 @@
1
+ firemon_api.apps.controlpanel.certauth
2
+ ======================================
3
+
4
+ .. automodule:: firemon_api.apps.controlpanel.certauth
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,7 @@
1
+ firemon_api.apps.controlpanel.cleanup
2
+ ======================================
3
+
4
+ .. automodule:: firemon_api.apps.controlpanel.cleanup
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,7 @@
1
+ firemon_api.apps.controlpanel.config
2
+ ====================================
3
+
4
+ .. automodule:: firemon_api.apps.controlpanel.config
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,7 @@
1
+ firemon_api.apps.controlpanel.database
2
+ ======================================
3
+
4
+ .. automodule:: firemon_api.apps.controlpanel.database
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,7 @@
1
+ firemon_api.apps.controlpanel.diagpkg
2
+ =====================================
3
+
4
+ .. automodule:: firemon_api.apps.controlpanel.diagpkg
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,13 @@
1
+ Control Panel
2
+ =============
3
+
4
+ The Control Panel application is used to view and manage the FMOS settings and health
5
+
6
+ .. toctree::
7
+ :maxdepth: 1
8
+
9
+ controlpanel/certauth
10
+ controlpanel/cleanup
11
+ controlpanel/config
12
+ controlpanel/database
13
+ controlpanel/diagpkg
@@ -0,0 +1,7 @@
1
+ firemon_api.apps.orchestration.changes
2
+ ======================================
3
+
4
+ .. automodule:: firemon_api.apps.orchestration.changes
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,9 @@
1
+ Orchestration
2
+ =============
3
+
4
+ The Orchestration application is used to directly execute automation without having to make Policy Planner tickets.
5
+
6
+ .. toctree::
7
+ :maxdepth: 1
8
+
9
+ orchestration/changes
@@ -0,0 +1,7 @@
1
+ firemon_api.apps.policyplanner.packets
2
+ ======================================
3
+
4
+ .. automodule:: firemon_api.apps.policyplanner.packets
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,7 @@
1
+ firemon_api.apps.policyplanner.policyplan
2
+ =========================================
3
+
4
+ .. automodule:: firemon_api.apps.policyplanner.policyplan
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,7 @@
1
+ firemon_api.apps.policyplanner.siql
2
+ ===================================
3
+
4
+ .. automodule:: firemon_api.apps.policyplanner.siql
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,7 @@
1
+ firemon_api.apps.policyplanner.tasks
2
+ ====================================
3
+
4
+ .. automodule:: firemon_api.apps.policyplanner.tasks
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,7 @@
1
+ firemon_api.apps.policyplanner.workflows
2
+ ========================================
3
+
4
+ .. automodule:: firemon_api.apps.policyplanner.workflows
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,13 @@
1
+ Policy Planner
2
+ ==============
3
+
4
+ The Policy Planner application is a ticketing system to plan and automate change requests.
5
+
6
+ .. toctree::
7
+ :maxdepth: 1
8
+
9
+ policyplanner/packets
10
+ policyplanner/policyplan
11
+ policyplanner/siql
12
+ policyplanner/tasks
13
+ policyplanner/workflows
@@ -0,0 +1,7 @@
1
+ firemon_api.apps.securitymanager.access_path
2
+ ============================================
3
+
4
+ .. automodule:: firemon_api.apps.securitymanager.access_path
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,7 @@
1
+ firemon_api.apps.securitymanager.centralsyslogconfigs
2
+ =====================================================
3
+
4
+ .. automodule:: firemon_api.apps.securitymanager.centralsyslogconfigs
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,7 @@
1
+ firemon_api.apps.securitymanager.centralsyslogs
2
+ ===============================================
3
+
4
+ .. automodule:: firemon_api.apps.securitymanager.centralsyslogs
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,7 @@
1
+ firemon_api.apps.securitymanager.collectionconfigs
2
+ ==================================================
3
+
4
+ .. automodule:: firemon_api.apps.securitymanager.collectionconfigs
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,7 @@
1
+ firemon_api.apps.securitymanager.collectors
2
+ ===========================================
3
+
4
+ .. automodule:: firemon_api.apps.securitymanager.collectors
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,7 @@
1
+ firemon_api.apps.securitymanager.deviceclusters
2
+ ===============================================
3
+
4
+ .. automodule:: firemon_api.apps.securitymanager.deviceclusters
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,7 @@
1
+ firemon_api.apps.securitymanager.devicegroups
2
+ =============================================
3
+
4
+ .. automodule:: firemon_api.apps.securitymanager.devicegroups
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,7 @@
1
+ firemon_api.apps.securitymanager.devicepacks
2
+ ============================================
3
+
4
+ .. automodule:: firemon_api.apps.securitymanager.devicepacks
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,7 @@
1
+ firemon_api.apps.securitymanager.devices
2
+ ========================================
3
+
4
+ .. automodule:: firemon_api.apps.securitymanager.devices
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,7 @@
1
+ firemon_api.apps.securitymanager.elasticsearch
2
+ ==============================================
3
+
4
+ .. automodule:: firemon_api.apps.securitymanager.elasticsearch
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,7 @@
1
+ firemon_api.apps.securitymanager.license
2
+ ========================================
3
+
4
+ .. automodule:: firemon_api.apps.securitymanager.license
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,7 @@
1
+ firemon_api.apps.securitymanager.logging
2
+ ========================================
3
+
4
+ .. automodule:: firemon_api.apps.securitymanager.logging
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,7 @@
1
+ firemon_api.apps.securitymanager.maps
2
+ =====================================
3
+
4
+ .. automodule:: firemon_api.apps.securitymanager.maps
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,7 @@
1
+ firemon_api.apps.securitymanager.revisions
2
+ ==========================================
3
+
4
+ .. automodule:: firemon_api.apps.securitymanager.revisions
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,7 @@
1
+ firemon_api.apps.securitymanager.routes
2
+ =======================================
3
+
4
+ .. automodule:: firemon_api.apps.securitymanager.routes
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,7 @@
1
+ firemon_api.apps.securitymanager.rulerec
2
+ ========================================
3
+
4
+ .. automodule:: firemon_api.apps.securitymanager.rulerec
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,7 @@
1
+ firemon_api.apps.securitymanager.siql
2
+ =====================================
3
+
4
+ .. automodule:: firemon_api.apps.securitymanager.siql
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,7 @@
1
+ firemon_api.apps.securitymanager.users
2
+ ======================================
3
+
4
+ .. automodule:: firemon_api.apps.securitymanager.users
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,7 @@
1
+ firemon_api.apps.securitymanager.zones
2
+ ======================================
3
+
4
+ .. automodule:: firemon_api.apps.securitymanager.zones
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,30 @@
1
+ Security Manager
2
+ ================
3
+
4
+ The Security Manager application is main application to manage FireMon resources, devices, and data.
5
+
6
+ This application is where the bulk of the data and logic is located.
7
+
8
+ .. toctree::
9
+ :maxdepth: 1
10
+
11
+ securitymanager/access_path
12
+ securitymanager/centralsyslogconfigs
13
+ securitymanager/centralsyslogs
14
+ securitymanager/collectionconfigs
15
+ securitymanager/collectors
16
+ securitymanager/deviceclusters
17
+ securitymanager/devicegroups
18
+ securitymanager/devicepacks
19
+ securitymanager/devices
20
+ securitymanager/elasticsearch
21
+ securitymanager/license
22
+ securitymanager/logging
23
+ securitymanager/maps
24
+ securitymanager/revisions
25
+ securitymanager/routes
26
+ securitymanager/rulerec
27
+ securitymanager/siql
28
+ securitymanager/users
29
+ securitymanager/zones
30
+
@@ -0,0 +1,9 @@
1
+ Structures
2
+ ==========
3
+
4
+ Start documenting all the structures that may be used in different APIs
5
+
6
+ .. automodule:: firemon_api.apps.structure
7
+ :members:
8
+ :undoc-members:
9
+ :show-inheritance:
@@ -0,0 +1,30 @@
1
+ FireMon Applications
2
+ ====================
3
+
4
+ FireMon is broken out into a number of applications. Each application gets auto-set to the FireMon API class once a user is authenticated.
5
+
6
+ ::
7
+
8
+ >>> import firemon_api as fmapi
9
+ >>> fm = fmapi.auth("goldfin-9-13-0", verify=False).auth('admin', 's3cr3t')
10
+ >>> fm.sm.devices.all()
11
+
12
+
13
+ Each application will have "Endpoints" calls that will return "Records".
14
+
15
+ Records may have their own methods to act on other data or return other "Records".
16
+
17
+ If an Endpoint or Record has not been coded up or the user does not feel like dealing with any of the other code that may come with and Endpoint or Record they may make a request against the application directly.
18
+
19
+ ::
20
+
21
+ >>> json = fm.sm.request(key="device", use_domain=True).get()
22
+
23
+ .. toctree::
24
+ :maxdepth: 1
25
+
26
+ apps/controlpanel
27
+ apps/orchestration
28
+ apps/policyplanner
29
+ apps/securitymanager
30
+ apps/structures
@@ -0,0 +1,7 @@
1
+ firemon_api.core.app
2
+ =====================
3
+
4
+ .. automodule:: firemon_api.core.app
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,7 @@
1
+ firemon_api.core.endpoint
2
+ =========================
3
+
4
+ .. automodule:: firemon_api.core.endpoint
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,7 @@
1
+ firemon_api.core.errors
2
+ =======================
3
+
4
+ .. automodule:: firemon_api.core.errors
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,7 @@
1
+ firemon_api.core.query
2
+ =======================
3
+
4
+ .. automodule:: firemon_api.core.query
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,7 @@
1
+ firemon_api.core.response
2
+ =========================
3
+
4
+ .. automodule:: firemon_api.core.response
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,13 @@
1
+ FireMon Core
2
+ ====================
3
+
4
+ Core holds the main base objects and logic for queries and retrun values for all of the FireMon Applications.
5
+
6
+ .. toctree::
7
+ :maxdepth: 1
8
+
9
+ core/errors
10
+ core/query
11
+ core/response
12
+ core/endpoint
13
+ core/app