requestScansForSite
Declaration
suspend fun requestScansForSite( siteId: String, timeoutMs: Long = DEFAULT_TIMEOUT_MS ): ScanResult
Summary
Returns
ScanResult containing the site's scans.
Throws
SitesException— if the request fails with an error. A token scoped tosite-assets:readcannot list scans and fails withSitesError.HTTP_FORBIDDEN.kotlinx.coroutines.CancellationException— if the coroutine is cancelled.
Parameters
| Name | Type | Summary |
|---|---|---|
| siteId | String | The site ID to list scans for. |
| timeoutMs | Long | Maximum time to wait for the request to complete. |
Requests every scan of a site, of all types and statuses.
Filter on
ScanInfo.scanTypeforScanType.VALIDATIONto find scans that playback opens.