As of December 31st, 2023 ThreadFix 2.X has reached End of Life and is no longer supported. For any further information please contact the Success and Implementation team.

Import Remote Provider (Import All) - API

/rest/{version}/remoteprovider/{remoteProviderId}/import


Descriptor

Value

HTTP Method

POST

Description

Triggers a Remote Provider import for all applications from the specified Remote Provider.

NOTE: Status for this import may not be immediately available.

Required Permissions

Manage Remote Providers and Upload Scans

Version Introduced2.5.0


Request Header Parameters

Parameter

Value

Required

Description

Accept

String

Yes

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


Sample Call:

curl --insecure -H 'Accept: application/json' -H "Authorization: APIKEY {API Key}" -X POST http://localhost:8080/threadfix/rest/latest/remoteprovider/2/import


Sample Output:


{
    "message": "",
    "success": true,
    "responseCode": -1,
    "object": "Importing scans.",
    "links": [
        {
            "method": "GET",
            "rel": "self",
            "href": "http://localhost:8080/threadfix/rest/remoteprovider/remoteProviderApplication/7/status"
        },
        {
            "method": "GET",
            "rel": "self",
            "href": "http://localhost:8080/threadfix/rest/remoteprovider/remoteProviderApplication/8/status"
        },
        {
            "method": "GET",
            "rel": "self",
            "href": "http://localhost:8080/threadfix/rest/remoteprovider/remoteProviderApplication/9/status"
        },
        {
            "method": "GET",
            "rel": "self",
            "href": "http://localhost:8080/threadfix/rest/remoteprovider/remoteProviderApplication/10/status"
        },
        {
            "method": "GET",
            "rel": "self",
            "href": "http://localhost:8080/threadfix/rest/remoteprovider/remoteProviderApplication/11/status"
        },
        {
            "method": "GET",
            "rel": "self",
            "href": "http://localhost:8080/threadfix/rest/remoteprovider/remoteProviderApplication/12/status"
        }
    ]
}

www.threadfix.it | www.coalfire.com
Copyright © 2024 Coalfire. All rights reserved.

This Information Security Policy is CoalFire - Public: Distribution of this material is not limited.