Cisco Cisco Workload Automation 6.3 Developer's Guide

Page of 190
28
Calendar
Calendar Examples
<tes:dates2>
Y</tes:dates2>
<tes:calendarid>207</tes:calendarid>
</tes:calendaryear>
<reqops xmlns="" xmlns:ns3="http://purl.org/atom/ns#" objid="uid3771">
<setprop objid="uid377" writeprop="calendarId" readprop="@result"/>
</reqops>
</tes:CalendarYear.create>
</entry>
Calendar Example 13 – Delete a Condition in a Daily Calendar 
The following REST API call deletes a condition in a daily calendar.
<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns="http://purl.org/atom/ns#">
<title>HTTP</title>
<tes:CalendarCondition.delete
xmlns:tes="http://www.tidalsoftware.com/client/tesservlet">
<tes:calendarcondition>
<tes:id>334</tes:id>
<tes:actionid>0</tes:actionid>
<tes:calendarname>test_daily</tes:calendarname>
<tes:sequencenumber>1</tes:sequencenumber>
<tes:calendarid>378</tes:calendarid>
<tes:action>1</tes:action>
<tes:conflictcalendarname>Daily</tes:conflictcalendarname>
<tes:offset>0</tes:offset>
<tes:conflictcalendarid>1</tes:conflictcalendarid>
</tes:calendarcondition>
</tes:CalendarCondition.delete>
</entry>
Calendar Example 14 – Add a Condition to a Daily Calendar 
The following REST API call adds a condition to a daily calendar.
<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns="http://purl.org/atom/ns#">
<title>HTTP</title>
<tes:Calendar.update xmlns:tes="http://www.tidalsoftware.com/client/tesservlet">
<tes:calendar>
<tes:weekdays>NYYYYYN</tes:weekdays>
<tes:frequency>1</tes:frequency>
<tes:type>2</tes:type>
<tes:id>378</tes:id>
<tes:createtime>2015-06-06T00:52:53-0700</tes:createtime>
<tes:monthdays>NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN</tes:monthdays>
<tes:ownername>testuser</tes:ownername>
<tes:intsect>N</tes:intsect>
<tes:description>My description -- Updated from WIN-7EL8UQCDFGG 
by domain\testuser on 06/06/2015 12:59:22 AM</tes:description>
<tes:name>test_daily</tes:name>
<tes:untildate>2018-12-31T00:00:00-0800</tes:untildate>
<tes:fromdate>2014-01-01T00:00:00-0800</tes:fromdate>
<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>