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

SC Organization Endpoint #666

Open
underwateroverlander opened this issue Jan 18, 2023 · 1 comment
Open

SC Organization Endpoint #666

underwateroverlander opened this issue Jan 18, 2023 · 1 comment
Labels
documentation Documentation issues Tenable.sc Tenable.sc Package

Comments

@underwateroverlander
Copy link

underwateroverlander commented Jan 18, 2023

Describe the bug
The sc.organization.create call requires vulnScoringSystem to be included. There is currently no defined parameter for this and documentation needs to be updated.

To Reproduce
Steps to reproduce the behavior:

  1. Try to create repository with org = sc.organization.create('MainOrg') returns: ERROR:restfly.errors.APIError:[403: POST] https://localhost:443/rest/organization body=b'{"type":"regular","response":"","error_code":142,"error_msg":"Please specify a valid vulnerability scoring system for this Organization.\\nThe attribute \'vulnScoringSystem\' is required.

Expected behavior
With the parameter built in and documented, Org should be created.

System Information (please complete the following information):

  • OS: [e.g. MacOS] MacOS (Docker)
  • Architecture [e.g. 64bit, 32bit] 64bit
  • Version [e.g. 2.7.9] pyTenable 1.4.11 (latest), Tenable.sc 5.23.1
  • Memory [e.g. 4G] 16GB
@aseemsavio aseemsavio added documentation Documentation issues Tenable.sc Tenable.sc Package labels Jan 18, 2023
@SteveMcGrath
Copy link
Contributor

The error notes what's missing here:

org = sc.organization.create('MainOrg', vulnScoringSystem='CVSSv3')

The module should likely be updated to include that by default, as it is the default scoring system used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Documentation issues Tenable.sc Tenable.sc Package
Projects
None yet
Development

No branches or pull requests

3 participants