davidmoremad / dome9 Goto Github PK
View Code? Open in Web Editor NEWPython wrapper for the Dome9 API
Home Page: https://dome9.readthedocs.io/
License: MIT License
Python wrapper for the Dome9 API
Home Page: https://dome9.readthedocs.io/
License: MIT License
Traceback (most recent call last):
File "C:\Users\david\Repositories\dome9-cli\cli\dome9cli.py", line 304, in <module>
fire.Fire(Dome9CLI())
File "C:\Users\david\.virtualenvs\dome9-cli-b-5h-f_6\lib\site-packages\fire\core.py", line 141, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "C:\Users\david\.virtualenvs\dome9-cli-b-5h-f_6\lib\site-packages\fire\core.py", line 466, in _Fire
component, remaining_args = _CallAndUpdateTrace(
File "C:\Users\david\.virtualenvs\dome9-cli-b-5h-f_6\lib\site-packages\fire\core.py", line 681, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "C:\Users\david\Repositories\dome9-cli\cli\dome9cli.py", line 294, in get_assessment
data = self._dome9.get_assessment(assessmentId)
File "C:\Users\david\.virtualenvs\dome9-cli-b-5h-f_6\lib\site-packages\dome9\dome9.py", line 426, in get_assessment
return self._get(route='AssessmentHistoryV2/%s' % str(assessmentId))
File "C:\Users\david\.virtualenvs\dome9-cli-b-5h-f_6\lib\site-packages\dome9\dome9.py", line 65, in _get
return self._request('get', route, payload)
File "C:\Users\david\.virtualenvs\dome9-cli-b-5h-f_6\lib\site-packages\dome9\dome9.py", line 61, in _request
raise Exception(err)
Exception: {'code': 404, 'message': 'Not Found', 'content': b'Resource with id 2222222222222 of type AssessmentHistoryEntity was not found'}
While trying to use list_protected_assets() it does not ever return for me. I believe the issue is here as when I comment out this line I get the return I expect.
Am I using the package incorrectly or should this line be removed?
Add audit logs in order to control access and events
Error installing dome9 (0.5) due to use of open() on setup.py:
Error build: https://github.com/Telefonica/dome9-cli/runs/6594916448?check_suite_focus=true
Collecting dome9
Downloading dome9-0.4.1.tar.gz (9.0 kB)
ERROR: Command errored out with exit status 1:
command: /opt/hostedtoolcache/Python/2.7.18/x64/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-zDaJct/dome9/setup.py'"'"'; __file__='"'"'/tmp/pip-install-zDaJct/dome9/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-NBhNnu
cwd: /tmp/pip-install-zDaJct/dome9/
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-zDaJct/dome9/setup.py", line 26, in <module>
version=read_file('VERSION').strip(),
File "/tmp/pip-install-zDaJct/dome9/setup.py", line [21](https://github.com/Telefonica/dome9-cli/runs/6594916448?check_suite_focus=true#step:4:22), in read_file
with open(filename, encoding="utf-8") as f:
TypeError: 'encoding' is an invalid keyword argument for this function
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Error: Process completed with exit code 1.
Add new way to authorizate dome9 SDK using a configuration file (something like ~/.dome9)
Hi, David.
Thanks for writing a great code.
I have a question about your code.
When I run "dome9.run_assessment", I get a 500 error, but I cannot determine if the problem is on the Dome9 side or in my code.
Here is the code I ran. All arguments are set separately with type str.
from dome9 import Dome9
dome9 = Dome9(key=api_key_id, secret=api_secret_key)
dome9.run_assessment(rulesetId, cloudAccountId, region=None)
And here is the error statement.
Exception: {'code': 500, 'message': 'Internal Server Error', 'content': b'An error has occured.'}
Please let me know your thoughts on where the problem lies.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.