Files
developer.sailpoint.com/docs/tools/sdk/python/Reference/V3/Models/Schedule.md
2025-02-20 12:59:19 -05:00

2.0 KiB

id, title, pagination_label, sidebar_label, sidebar_class_name, keywords, slug, tags
id title pagination_label sidebar_label sidebar_class_name keywords slug tags
schedule Schedule Schedule Schedule pythonsdk
python
Python
sdk
Schedule
Schedule
/tools/sdk/python/v3/models/schedule
SDK
Software Development Kit
Schedule
Schedule

Schedule

Properties

Name Type Description Notes
type Enum [ 'WEEKLY', 'MONTHLY', 'ANNUALLY', 'CALENDAR' ] Determines the overall schedule cadence. In general, all time period fields smaller than the chosen type can be configured. For example, a DAILY schedule can have 'hours' set, but not 'days'; a WEEKLY schedule can have both 'hours' and 'days' set. [required]
months ScheduleMonths [optional]
days ScheduleDays [optional]
hours ScheduleHours [required]
expiration datetime Specifies the time after which this schedule will no longer occur. [optional]
time_zone_id str The time zone to use when running the schedule. For instance, if the schedule is scheduled to run at 1AM, and this field is set to "CST", the schedule will run at 1AM CST. [optional]
}

Example

from sailpoint.v3.models.schedule import Schedule

schedule = Schedule(
type='WEEKLY',
months=sailpoint.v3.models.schedule_months.Schedule_months(
                    type = 'LIST', 
                    values = [1], 
                    interval = 2, ),
days=sailpoint.v3.models.schedule_days.Schedule_days(
                    type = 'LIST', 
                    values = [1], 
                    interval = 2, ),
hours=sailpoint.v3.models.schedule_hours.Schedule_hours(
                    type = 'LIST', 
                    values = [1], 
                    interval = 2, ),
expiration=datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
time_zone_id='CST'
)

[Back to top]