Fortinet black logo

Administration Guide

Scheduled tasks

Copy Link
Copy Doc ID 8bec453a-b242-11e9-a989-00505692583a:871228
Download PDF

Retrieve scheduled tasks.

https://<servername>:8443/api/scheduler

Return value

Type

Description

id

Integer

Scheduled task record ID

hidden

boolean

Is task for internal use only.

paused

boolean

Is task paused.

previousScheduledTime

String

Last time task ran.

scheduledTime

String

Next time task scheduled to run

name

String

Name of scheduled task.

Example request

curl -k -u '<username>:<password>' -H "accept: application/xml" -X GET https://<servername>:8443/api/scheduler?limit=1

Example XML format

<schedulerSearchResult>

<status>success</status>

<limit>1</limit>

<nextOffset>1</nextOffset>

<offset>0</offset>

<total>11</total>

<schedules>

<schedule>

<hidden>false</hidden>

<id>1</id>

<name>Auto-Definition Synchronizer</name>

<paused>false</paused>

<previousScheduledTime>2017-01-23T10:45:22.326-05:00 </previousScheduledTime>

<scheduledTime>2017-01-30T10:45:33.393-05:00</scheduledTime>

</schedule>

</schedules>

</schedulerSearchResult>

Retrieve scheduled tasks.

https://<servername>:8443/api/scheduler

Return value

Type

Description

id

Integer

Scheduled task record ID

hidden

boolean

Is task for internal use only.

paused

boolean

Is task paused.

previousScheduledTime

String

Last time task ran.

scheduledTime

String

Next time task scheduled to run

name

String

Name of scheduled task.

Example request

curl -k -u '<username>:<password>' -H "accept: application/xml" -X GET https://<servername>:8443/api/scheduler?limit=1

Example XML format

<schedulerSearchResult>

<status>success</status>

<limit>1</limit>

<nextOffset>1</nextOffset>

<offset>0</offset>

<total>11</total>

<schedules>

<schedule>

<hidden>false</hidden>

<id>1</id>

<name>Auto-Definition Synchronizer</name>

<paused>false</paused>

<previousScheduledTime>2017-01-23T10:45:22.326-05:00 </previousScheduledTime>

<scheduledTime>2017-01-30T10:45:33.393-05:00</scheduledTime>

</schedule>

</schedules>

</schedulerSearchResult>