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

Regression on the scan create method #886

Open
madtools opened this issue Feb 19, 2025 · 0 comments
Open

Regression on the scan create method #886

madtools opened this issue Feb 19, 2025 · 0 comments

Comments

@madtools
Copy link

Describe the bug
Since version 1.7.0, it is not possible to create a scan (sc.scans.create method) with max_time 0 (unlimited). The PyTenable library does not convert it to the value "unlimited" as it was done before.

To Reproduce
Steps to reproduce the behavior:
Create a scan, using the sc.scans.create API with a max_time of 0.

Expected behavior
We expect the scan to be created with the Max Scan Time configured to Unlimited

Screenshots
Response received from Security Center:
{"type":"regular","response":"","error_code":146,"error_msg":"The attribute 'maxScanTime' contains the value '0'. It should be between 1 to 120 hours and sent in seconds or 'unlimited'.\n","warnings":[],"timestamp":1739910455}

System Information (please complete the following information):
Security Center version 6.4.0

Additional context
Add any other context about the problem here.

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

1 participant