SecurityCenter scans.create(max_time: int) issue on value #760
Labels
documentation
Documentation issues
Tenable.sc
Tenable.sc Package
upstream-api
The issue is related to the calling API or API Docs
Max_time in API use hours, but pytenable documentation indicate in seconds. I tried to create scan with max_time=1 and see on web SecurityCenter, I got max duration = 1 hour.
In documentation it's write: "max_time (int, optional) – The maximum amount of time that the scan may run in seconds. 0 or less for unlimited. The default is 3600 seconds."
In reality, it's not on seconds, but in hours.
I use SecurityCenter version 6.1.0
To Reproduce
from tenable.sc import TenableSC
import configparser
import warnings
warnings.filterwarnings("ignore")
class connectSC:
SC = dict()
uri = dict()
sc = connectSC()
sc.SC['my_org'].scans.create(name='Test', repo=6, max_time=1, policy_id=1000290, asset_lists=['1978'])
now check on web SecurityCenter the scan Test max duration is 1 hour. If I set to 3600, it's "Nothing Selected"
The text was updated successfully, but these errors were encountered: