so = rz.scans.ScanOptions(targets='defaults')
so.probes = ('arp,aws-instances,azure,azuread,bacnet,bedrock,censys,coap,crestron,crowdstrike,dahua-dhip,defender365,'
'dns,dtls,echo,ethernetip,fins,gcp,genudp,googleworkspace,hiddiscoveryd,igel-discovery,ike,insightvm,'
'intune,ipmi,kerberos,knxnet,l2t,l2tp,lantronix,layer2,ldap,mdns,memcache,miradore,modbus,mssql,natpmp,'
'nessus,netbios,ntp,openvpn,pca,psdisco,qualys,rdns,rpcbind,s7comm,sample,sentinelone,shodan,sip,snmp,'
'ssdp,ssh,steam,syn,connect,tenable,tenablesecuritycenter,tftp,ubnt,vmware,webmin,wlan-list,wsd')
I don't know whether this is an SDK issue or an API issue but this optional parameter
probes(https://github.com/runZeroInc/runzero-sdk-py/blob/main/runzero/types/_data_models_gen.py#L498) is actually a mandatory parameter. If you don't specify its value the server returns a 400 error with description something like 'can't configure probes and options...'Moreover it doesn't accept the
defaultsvalue according to the documentation.I was able to fix the error only by setting its value to something like
And the last but not least it seems that its example (https://github.com/runZeroInc/runzero-sdk-py/blob/main/runzero/types/_data_models_gen.py#L500) is irrelevant as this parameter supposes specifying another (higher level) set of probes