Rapid7 Schedules API
A Schedule defines the automated execution of a Scan, using a specified Scan Config. Both the App and Scan Config must be created prior to creating a Schedule. There are two options available to specify how often a schedule can occur, either a frequency or a recurrence rule (rrule). Only frequency supports the use of ONCE only schedules. If providing a rrule, the following fields are permitted:FREQ where FREQ is one of: HOURLY, DAILY, WEEKLY, MONTHLY INTERVALBYDAY where BYDAY is: a single day, SA,SU to represent weekend, or all weekdays. BYMONTHDAY where BYMONTHDAY is a range between: 1 - 31. BYSETPOS where BYSETPOS is one of: -1, 1, 2, 3, 4COUNT where COUNT is the number of occurrences you want the blackout to run forIf providing a rrule, the RFC 2445 section-4.8.5.4 IETF specification can be used as a guide for how to create rrules. Example: rrule = "FREQ=MONTHLY;INTERVAL=1;BYDAY=FR;BYSETPOS=-1" represents 'Run every month on the last Friday'.If providing a frequency, a schedule's frequency is defined by both the type and interval; specifying a type of ONCE does not require an interval. The permitted types are as follows:ONCEHOURLYDAILYWEEKLYMONTHLYEither a frequency or a rrule must be provided for create/update operations. If a frequency.type other than ONCE is provided, the date and time of the Schedule recurrences will be calculated based on the frequency or rrule defined, until the threshold of last_start (if one is provided, otherwise until a date considerably far into the future).