Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

The following endpoints is available for ThreadFix 3.1 and newer.

/api/application/queue/scans/pending

Descriptor

Value

HTTP Method

GET

Description

This endpoint returns all queued and processing scans.

Required Permission

View Scans Queue

Version Introduced

3.1.0


Request Header Parameters

Parameter

Value

Required

Description

Accept

String

Yes

A value of ‘application/json’ must be provided.

api-version

1.0

Yes

‘latest’ is also a valid option


Request GET Parameters

Parameter

Value

Required

Description

_page

1

Optional

 

_limit

50

Optional

 


Sample Call:

Code Block
https://localhost/api/application/queue/scans/pending?_page=1&_limit=50

Sample Output:

Code Block
{
    "content": [
        {
            "id": "bcf594a8-3015-11ec-9fca-d9567b52cc34",
            "active": true,
            "createdDate": "2021-10-18T13:17:26+00:00",
            "modifiedDate": "2021-10-18T13:17:26+00:00",
            "orgId": 3,
            "appId": 6,
            "userId": 1,
            "appName": "App 3-4",
            "primaryChannelTypeName": "AppScan Source",
            "importType": "FILE_UPLOAD",
            "sourceNameCount": 1,
            "sourceName": "[\"165072_WebGoat1.ozasmt\"]",
            "requestTime": "2021-10-18T13:17:26+00:00",
            "pendingScanStatus": "QUEUED_FOR_IMPORT",
            "combinedScan": true,
            "overrideNewestScan": false
        },
        {
            "id": "a7737252-3015-11ec-9fca-c37a853ccbb2",
            "active": true,
            "createdDate": "2021-10-18T13:16:50+00:00",
            "modifiedDate": "2021-10-18T13:16:50+00:00",
            "orgId": 5,
            "appId": 12,
            "userId": 1,
            "appName": "App 4-1",
            "primaryChannelTypeName": "AppScan Source",
            "importType": "FILE_UPLOAD",
            "sourceNameCount": 1,
            "sourceName": "[\"WebGoat_Benchmark_LargeScan.ozasmt\"]",
            "requestTime": "2021-10-18T13:16:50+00:00",
            "pendingScanStatus": "IMPORTING",
            "combinedScan": true,
            "overrideNewestScan": false
        }
    ],
    "pageable": {
        "sort": {
            "sorted": false,
            "unsorted": true,
            "empty": true
        },
        "offset": 0,
        "pageNumber": 0,
        "pageSize": 50,
        "unpaged": false,
        "paged": true
    },
    "totalElements": 2,
    "totalPages": 1,
    "last": true,
    "size": 50,
    "number": 0,
    "sort": {
        "sorted": false,
        "unsorted": true,
        "empty": true
    },
    "first": true,
    "numberOfElements": 2,
    "empty": false
}

Page Tree
rootQueue Management 3.1 - WIPX API
startDepth1