As we reach the end of September 2024, ThreadFix version 3.x on-premises has officially reached its End-of-Life. Therefore, there is no longer support or updates for this version of the product. We have fully transitioned our product and development teams to focus ThreadFix SaaS and migrating all customers over from the on-premises versions. Our Customer Success and Support teams are here to help you in migrating to ThreadFix SaaS and maximizing the value you see from this improved offering from Coalfire. This is the next phase of ThreadFix and our team is looking forward to continuing to support you on this journey.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

/rest/{version}/remoteprovider/scheduledImports/add

Descriptor

Value

Description

Schedules a remote provider import by either cron expression or date.

HTTP Method

POST

Required Permission

Manage Remote Providers

Version Introduced

2.7.7

Changes in 2.8.3

Added "scheduledTimezone" parameter.


Request Header Parameters

Parameter

Value

Required

Description

schedulingMethod

String

Yes

SELECT or CRON

frequency

String

No*

DAILY or WEEKLY. *Required if using SELECT scheduling method.

hour

Integer

No*

Hour to schedule import. Valid values are 1 to 12. *Required if using SELECT scheduling method.

minute

Integer

No*

Minute to schedule import. Valid values are 00 to 59. *Required if using SELECT scheduling method.

period

String

No*

AM or PM. *Required if using SELECT scheduling method.

day

String

No*

Day of the week (e.g. "Sunday"). *Required if using SELECT scheduling method and WEEKLY frequency.

cronExpression

String

No*

Cron expression string. For example, "20 6 * * ?". *Required if using CRON scheduling method.

remoteProviderId

Integer

No

The entity ID of the remote provider to be imported. Leave blank to import all remote providers.

applicationId

Integer

No

ID for the ThreadFix application to map to the Remote Provider application. Leave blank to import for all applications.

scheduledTimezone

String

No

Optional, if one is not provided it will default the to the server's timezone. Can be provided for both CRON and SELECT schedulingMethod.

Available Server Timezone Options.


Sample Call:

curl --insecure -H 'Accept: application/json' -H "Authorization: APIKEY {apikey}" -X POST --data "applicationId=1&remoteProviderId=1&schedulingMethod=select&frequency=daily&hour=9&minute=30&period=AM" http://localhost:8080/threadfix/rest/latest/remoteprovider/scheduledImports/add

Sample Output:

{
    "message": "",
    "success": true,
    "responseCode": -1,
    "object": [
        {
            "id": 1,
            "hour": 9,
            "minute": 30,
            "period": "AM",
            "day": null,
            "frequency": "Daily",
            "scheduleType": "SELECT",
            "cronExpression": null,
            "scheduledDate": "Daily at 9:30AM",
            "remoteProviderEntity": {
                "name": "Team Checkmarx",
                "id": 1
            },
            "application": null,
            "cronTranslation": null
        }
    ]
}

https://threadfix.it/ | www.denimgroup.com
© Copyright 2020 Denim Group, LTD. All Rights Reserved.

Table of content

  • No labels