Downtime schedule examples

Keep the following in mind when setting the downtime schedule:

  • Retroactive downtime is not supported. You cannot:

    • Create a downtime that is scheduled in the past.

    • Delete a downtime that has started or that occurred in the past.

    • Modify a downtime that has started or that occurred in the past.

  • The date format of startDate/endDate is: yyyy-MM-dd'T'HH:mm:ssZ

  • For weekly and monthly downtimes, the startDate and endDate should be defined at midnight. For example:

    • <startDate>2010-07-24T00:00:00</startDate>

    • <endDate>2010-09-04T00:00:00</endDate>

Example of a Downtime Schedule with One Occurrence

<schedule xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="OnceScheduleType">
   <type>ONCE</type>
   <startDate>2010-06-08T14:40:00</startDate>
   <endDate>2010-06-08T14:45:00</endDate>
   <timeZone>Asia/Tokyo</timeZone>
</schedule>

Example of a Weekly Downtime Schedule

<schedule xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="WeeklyScheduleType">
   <type>WEEKLY</type>
   <startDate>2010-06-10T15:40:00</startDate>
   <timeZone>Europe/Zurich</timeZone>
   <days>
      <selectedDays>WEDNESDAY</selectedDays>
      <selectedDays>THURSDAY</selectedDays>
      <selectedDays>FRIDAY</selectedDays>
      <selectedDays>SATURDAY</selectedDays>
   </days>
   <startTimeInSecs>52800</startTimeInSecs>
   <durationInSecs>300</durationInSecs>
</schedule>

Example of a Monthly Downtime Schedule

<schedule xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="MonthlyScheduleType">
   <type>MONTHLY</type>
   <startDate>2010-06-10T14:40:00</startDate>
   <timeZone>America/Montevideo</timeZone>
   <days>
      <selectedDays>WEDNESDAY</selectedDays>
      <selectedDays>THURSDAY</selectedDays>
      <selectedDays>FRIDAY</selectedDays>
      <selectedDays>SATURDAY</selectedDays>
   </days>
   <startTimeInSecs>52800</startTimeInSecs>
   <durationInSecs>300</durationInSecs>
</schedule>