Environment
- App Control: All Supported Versions
Symptoms
Timeouts occurring when doing an API query on /api/bit9platform/v1/computer:
Error :Invoke-RestMethod : The remote server returned an error: (408) Request Timeout.
Cause
Inefficient query
Resolution
By default, all fields are returned. Limiting the query to only required fields (by explicitly listing them) will improve performance.
GET /api/bit9platform/v1/computer?q=name:<DeviceName>&fields="id,name,connected,template,daysOffline,hasHealthCheckErrors,upgradeStatus,supportedKernel,policyStatus,enforcementLevel,disconnectedEnforcementLevel,ipAddress,policyName,policyId,automaticPolicy,agentVersion"&limit=100&offset=0
Additional Notes
Fields with known performance impacts:
- Processor_Count
- Machine_Model
- Processor_Speed
- Processor_Model
- Memory_Size
Related Content