Cisco Cisco Workload Automation 6.3 Developer's Guide

Page of 190
22
Calendar
Calendar Examples
    <tes:id>30</tes:id>
  </tes:Calendar.compileSingleCalendar>
</entry>
Calendar Example 4 – Compile All Calendars
The Calendar object also provides a method called compileCalendars.The parameter called id (e.g. 1) is required, but 
ignored. The following REST API call will compile all calendars.
<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns="http://purl.org/atom/ns#">
 <id>xxx</id>
  <tes:Calendar.compileCalendars
xmlns:tes="http://www.tidalsoftware.com/client/tesservlet">
</tes:Calendar.compileCalendars>
</entry>
Calendar Example 5 – Create a List Calendar 
The following REST API call will create a list calendar that specifies three dates. See 
 
following the example to learn how calendar days are specified.
<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns="http://purl.org/atom/ns#">
<title>HTTP</title>
<tes:Calendar.create xmlns:tes="http://www.tidalsoftware.com/client/tesservlet">
<tes:calendar>
<tes:frequency>0</tes:frequency>
<tes:weekdays>NNNNNNN</tes:weekdays>
<tes:type>6</tes:type>
<tes:id>-2</tes:id>
<tes:createtime>2015-06-06T00:43:21-0700</tes:createtime>
<tes:monthdays>NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN</tes:monthdays>
<tes:ownername>testuser</tes:ownername>
<tes:intsect>N</tes:intsect>
<tes:description>My description -- Deployed from WIN-7EL8UQCDFGG 
by domain\testuser on 06/06/2015 12:43:48 AM</tes:description>
<tes:untildate>2018-12-31T00:00:00-0800</tes:untildate>
<tes:name>test_list</tes:name>
<tes:untildateasstring>20181231000000</tes:untildateasstring>
<tes:offset>0</tes:offset>
<tes:forecastdate>2018-12-31T00:00:00-0800</tes:forecastdate>
<tes:ownerid>1</tes:ownerid>
<tes:pub>Y</tes:pub>
<tes:weeks>NNNNN</tes:weeks>
<tes:forecastdateasstring>20181231000000</tes:forecastdateasstring>
<tes:months>NNNNNNNNNNNN</tes:months>
<tes:typestring>List</tes:typestring>
</tes:calendar>
<reqops xmlns="" xmlns:ns3="http://purl.org/atom/ns#" objid="uid-2"/>
</tes:Calendar.create>
<tes:CalendarYear.create xmlns:tes="http://www.tidalsoftware.com/client/tesservlet">
<tes:calendaryear>
<tes:calendarname>test_list</tes:calendarname>
<tes:dates1>
Y
Y</tes:dates1>
<tes:calendaryear>2015</tes:calendaryear>
<tes:dates2>
Y</tes:dates2>
<tes:calendarid>207</tes:calendarid>
</tes:calendaryear>