Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about run_assessment #10

Open
TP9-dev opened this issue Feb 24, 2023 · 2 comments
Open

Question about run_assessment #10

TP9-dev opened this issue Feb 24, 2023 · 2 comments

Comments

@TP9-dev
Copy link

TP9-dev commented Feb 24, 2023

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.

@samforger
Copy link
Contributor

Hey,

I ran into the same issue using run_assement(), and I found that I had to add the CloudAccountType to get the request to work. See this commit for the changes I had to make.

@davidmoremad
Copy link
Owner

Sorry for disconnection, but I'm back to work.
Merged. Thank you Sam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants