Time Trigger Web Services
Universal Controller supports the following RESTful-based web services for Time Trigger operations, which are listed alphabetically on this page.
Formatting specifications for each web service, including details about parameter requirements, are provided.
For information on Trigger web services that are applicable to all trigger types, see:
Create a Time Trigger
Description | |
|---|---|
URI | http://host_name/uc/resources/trigger |
HTTP Method | POST |
Description | Creates a new Time trigger. |
Example URI | |
Consumes Content-Type | application/xml, application/json |
Produces Content-Type | n/a |
Example Request | |
Trigger Properties | |
Trigger-Related Record Properties |
|
Example Response |
|
Modify a Time Trigger
Description | |
|---|---|
URI | http://host_name/uc/resources/trigger |
HTTP Method | PUT |
Description | Modifies the trigger specified by the sysId in the request. To modify Time Trigger properties without modifying related records, use the excludeRelated property. |
Example URI | |
Consumes Content-Type | application/xml, application/json |
Produces Content-Type | n/a |
Example Request | |
Trigger Properties | |
Trigger-Related Record Properties |
|
Example Response |
|
Read a Time Trigger
Description | |
|---|---|
URI | |
HTTP Method | GET |
Description | Retrieves information for the specified trigger |
URI Parameters | See Read a Time Trigger: URI Parameters, below. |
Example URI | |
Consumes Content-Type | n/a |
Produces Content-Type | application/xml, application/json |
Trigger Properties | |
Trigger-Related Record Properties |
|
Example Response |
|
Read a Time Trigger: URI Parameters
Name | Description | Specifications | Required | Mutually Exclusive With |
|---|---|---|---|---|
| Unique ID for this trigger. | Y |
| |
| Name used within the Controller to identify this trigger. | Maximum 40 alphanumerics. | Y |
|
Time Trigger: XML and JSON Examples
In the XML web service, the exportReleaseLevel, exportTable, retainSysIds, and version properties are specified as attributes in the <trigger> element.
- JSON
- XML
Example for Trigger
JSON
{
"type": "triggerTime",
"action": "Do Not Trigger",
"adjustInterval": true,
"adjustmentAmount": 1,
"adjustmentType": "Day",
"calendar": "System Default",
"dateAdjective": "Every",
"dateAdjustment": "None",
"dateNouns": {
"value": "Saturday"
},
"dateQualifiers": {
"value": "Year"
},
"dayInterval": 2,
"dayStyle": "Complex",
"description": null,
"disabledBy": "",
"disabledTime": "",
"enabled": true,
"enabledBy": "ops.admin",
"enabledTime": "2021-03-03 12:46:11 -0500",
"enabledEnd": "00:00",
"enabledStart": "00:00",
"exportReleaseLevel": "7.2.0.0",
"exportTable": "ops_trigger_fm",
"forecast: false,
"fri: false,
"intervalStartingDate": null,
"mon: false,
"name": "test special day",
"nextScheduledTime": "2021-03-04 00:00:00 -0500",
"notes": [],
"opswiseGroups": [ ],
"rdExcludeBackup": true,
"restrictedTimes": false,
"restriction": false,
"restrictionAdjective": "Every",
"restrictionComplex": false,
"restrictionMode": "Or",
"restrictionNouns": [
{
"value": "Day"
}
],
"restrictionNthAmount": null,
"restrictionQualifiers": [
{
"value": "Year"
}
],
"restrictionSimple": false,
"retainSysIds": true,
"retentionDuration": 1,
"retentionDurationPurge": true,
"retentionDurationUnit": "Days",
"sat: false,
"simpleDateType": "Daily",
"simulationOption": "-- System Default --",
"situation": "Holiday",
"skipAfterDate": "2020-05-28",
"skipAfterTime": "02:15",
"skipBeforeDate": "2020-05-30",
"skipBeforeTime": "17:30",
"skipCondition": "None",
"skipCount": 0,
"skipDateList": [ ],
"skipRestriction": "Span",
"startTimeEnable": false,
"startingAt": "*:00",
"sun: false,
"sysId": "9c659c9c2c72460c9a2057663257b0be",
"tasks": ["CMD_WF", "PING"],
"taskIds": ["ffda846987be43c69c4dd62ac452eabf", "ca960a653a704fec893eb17adc6f5f3d"],
"thu: false,
"time": "00:00",
"timeInterval": null,
"timeIntervalUnits": "Hours",
"timeStyle": "Absolute",
"timeZone": null,
"tue: false,
"variables": [ ],
"version": 1
"wed: false,
}
Examples for Trigger-Related Records
VariablesJSON
"variables": [ {
"description": "description",
"name": "var1",
"value": "value1"
} ]
NotesJSON
"notes": [ {
"sysId": "76ad570c64b84f84aeaf281403856b10",
"text": "testNoteText",
"title": "testNoteTitle"
} ]
Example for Trigger
XML
<triggerTime exportReleaseLevel="7.2.0.0" exportTable="ops_trigger_time" retainSysIds="true" version="1">
<variables />
<action>Do Not Trigger</action>
<notes />
<adjustInterval>true</adjustInterval>
<adjustmentAmount>1</adjustmentAmount>
<adjustmentType>Day</adjustmentType>
<calendar>System Default</calendar>
<dateAdjective>Every</dateAdjective>
<dateAdjustment>None</dateAdjustment>
<dateNouns>
<dateNoun>Saturday</dateNoun>
</dateNouns>
<dateQualifiers>
<dateQualifier>Year<dateQualifier>
</dateQualifiers>
<dayInterval>2</dayInterval>
<dayStyle>Complex</dayStyle>
<description />
<disabledBy></disabledBy>
<disabledTime></disabledTime>
<enabled>true</enabled>
<enabledBy>ops.admin</enabledBy>
<enabledTime>2021-03-03 12:46:11 -0500</enabledTime>
<enabledEnd>00:00</enabledEnd>
<enabledStart>00:00</enabledStart>
<forecast>false</forecast>
<fri>false</fri>
<intervalStartingDate>2015-06-17</intervalStartingDate>
<mon>false</mon>
<name>test special day</name>
<nextScheduleTime>2021-03-04 00:00:00 -0500</nextScheduleTime>
<opswiseGroups />
<rdExcludeBackup>true</rdExcludeBackup>
<restrictedTimes>false</restrictedTimes>
<restriction>false</restriction>
<restrictionAdjective>Every</restrictionAdjective>
<restrictionComplex>false</restrictionComplex>
<restrictionMode>Or</restrictionMode>
<restrictionNouns>
<restrictionNoun>Day</restrictionNoun>
</restrictionNouns>
<restrictionNthAmount />
<restrictionQualifiers>
<restrictionQualifier>Year</retsrictionQualifier>
</restrictionQualifiers>
<restrictionSimple>false</restrictionSimple
<retentionDuration>1</retentionDuration
<retentionDurationPurge>true</retentionDurationPurge
<retentionDurationUnit>Days</retentionDurationUnit>
<sat>false</sat>
<simpleDateType>Daily</simpleDateType>
<simulationOption>-- System Default --</simulationOption
<situation>Holiday</situation
<skipAfterDate>2020-05-28</skipAfterDate
<skipAfterTime>02:15</skipAfterTime
<skipBeforeDate>2020-05-30</skipBeforeDate
<skipBeforeTime>17:30</skipBeforeTime
<skipCondition>None</skipCondition>
<skipCount>0</skipCount>
<skipDateList />
<skipRestriction>Span</skipRestriction
<startTimeEnable>false</startTimeEnable
<startingAt>*:00</startingAt>
<sun>false</sun
<sysId>0fc6b7d9c0a801c9017b6c27c259937e</sysId>
<tasks>
<task taskId="ffda846987be43c69c4dd62ac452eabf">CMD_WF</task>
<task taskId="ca960a653a704fec893eb17adc6f5f3d">PING</task>
</tasks>
<thu>false</thu>
<time>00:00</time>
<timeInterval />
<timeIntervalUnits>Hours</timeIntervalUnits>
<timeStyle>Absolute</timeStyle>
<timeZone />
<tue>false</tue>
<wed>false</wed>
</triggerTime>
Examples for Trigger-Related Records
VariablesXML
<variables>
<variable>
<description />
<name>testVar</name>
<value>value</value>
</variable>
</variables>
NotesXML
<notes>
<note>
<sysId>76ad570c64b84f84aeaf281403856b10</sysId>
<text>testNoteText</text>
<title>testNoteTitle</title>
</note>
</notes>
Properties
Trigger Properties: All Triggers
Property | UI Field Name | Description | Specifications | Required |
|---|---|---|---|---|
| Action | For all trigger types except Manual and Temporary; Action to take on a non-business day or holiday (see | Valid values:
Default is Do Not Trigger (1). info The following values are valid only for Cron and Time triggers:
| Y |
| Calendar | Calendar that defines the business days, holidays, and other special days that determine the run dates for the task(s) specified in the trigger. The Calendar will be used to verify any Custom Day references in | Default is System Default. | Y |
| n/a | User-Defined field. Example: | The label is included only if a value has been defined for the User Defined Trigger Field 1 Label Universal Controller system property. | N |
| n/a | User-Defined field. Example: | The label is included only if a value has been defined for the User Defined Trigger Field 2 Label Universal Controller system property. | N |
| Description | Description of this trigger. | N | |
| Disabled By | System-supplied. If Status = Enabled, ID of the user who most recently disabled this trigger. | Read-only. | N |
| Disabled Time | System-supplied. If Status = Enabled, Date and time that the trigger was disabled. | Read-only. | N |
| Status | System-defined; Specification for whether or nor the trigger is enabled. Only enabled triggers are processed by the Controller. | Read-only. | N |
| Enabled By | System-supplied. If Status = Enabled, ID of the user who most recently enabled this trigger. | Read-only. | N |
| Enabled Time | System-supplied. If Status = Enabled, Date and time that the trigger was enabled. | Read-only. | N |
| Enforce Variables | Specifies whether or not to enforce Override Trigger Variables when using Trigger Now... from the User Interface. Not applicable for Web Service APIs. | Valid values: true/false. Default is false. | N |
| n/a | For Modify Trigger web services; specification for whether or not to exclude related records from the update, even if they are provided in the request. info In XML web services, | Valid values: true/false. Default is false. | N |
| n/a | Universal Controller release that the record was exported from. info In XML web services, | read only | N |
| n/a | Record table information. info In XML web services, | read only | N |
| Forecast | For Cron, Temporary, and Time triggers only; Date and time when this trigger will be satisfied for the next number days, as specified in the Forecast Period In Days Universal Controller system property. The Controller writes the forecasting entries to the Forecasts List. | Boolean; Valid values: true/false. Default is false. | N |
| Lock Variables | Specifies whether or not to prevent editing variables when using Trigger Now... from the User Interface. Not applicable for Web Service APIs. | Boolean; Valid values: true/false. Default is false. | N |
| Name | Name used within the Controller to identify this trigger. | Maximum 255 alphanumerics. | Y |
| Next Scheduled Time | System-supplied; for time-based triggers. If Status = Enabled, the next date and time this trigger will be satisfied. See Displaying Trigger Forecast Information. | Read-only. | N |
| Member of Business Services | List of Business Service(s) that this trigger belongs to. XML JSON | N | |
| Exclude Backup | Set only if | Boolean; Valid values: true/false. Default is false. | N |
| Special Restriction | Indication of whether or not you want to specify additional parameters that tell the Controller how to handle exceptions, such as when the trigger is satisfied on a holiday or non-business day. You can specify simple and/or complex restrictions. For example, you can specify a | Boolean; Valid values: true/false. Default is false. | N |
| Restriction Adjective | Type of selection for | Valid values:
Default is Every (0). | Y |
| Complex Restriction | Set only if | Boolean; Valid values: true/false. Default is false. | Y |
| Restriction Mode | Set only if | Valid values:
Default is Or (2). | Y |
| Restriction Noun | Deprecated. Day to restrict the trigger to. To specify a Custom Day, use the name of the Custom Day. For example: XML JSON To specify a Local Custom Day, use the local attribute. For example: XML JSON info The Calendar for the trigger is used to verify Custom Day references. | Valid values:
| Y |
| Restriction Noun(s) | Day to restrict the trigger to. Used with Example: To specify a Custom Day, use the name of the Custom Day. For example: XML JSON To specify a Local Custom Day, use the local attribute. For example: XML JSON info The Calendar for the trigger is used to verify Custom Day references. | Valid values:
| Y |
| Restriction Nth Amount | Set only if | Integer | Y |
| Restriction Qualifier | Deprecated. Period to restrict the trigger to. To specify a Custom Day Period, use the name of the Custom Day Period. For example: XML JSON To specify a Local Custom Day Period, use the local attribute. For example: XML JSON info The Calendar for the trigger is used to verify Custom Day references. | Valid values:
| Y |
| Restriction Qualifier(s) | Period to restrict the trigger to. Used with Example: To specify a Custom Day, use the name of the Custom Day. For example: XML JSON To specify a Local Custom Day, use the local attribute. For example: XML JSON info The Calendar for the trigger is used to verify Custom Day references. | Valid values:
| Y |
| Simple Restriction | Set only if | Boolean; Valid values: true/false. Default is false. | Y |
| n/a | Specification for whether or not the web service will persist the sysId property.
info info In XML web services, | Valid values: true/false (default is true). | N |
| Retention Duration | Set only if | Integer | N |
| Purge By Retention Duration | Specification for whether triggered task instances can be purged by retention duration. | Boolean; Valid values: true/false. Default is false. | N |
| Retention Duration Unit | Set only if | Valid values:
Default is Days (4). | N |
| Simulate | Specifies if the instances generated by this trigger should execute under simulation mode. | Boolean; Valid values: true/false. Default is false. | N |
| Simulate Forecast | For Cron, Temporary, and Time triggers only; Enables the override of the Enable Trigger Simulation Universal Controller system property specification for whether or not to simulate the launching of tasks when triggers are eligible to fire. (If | Valid values:
Default is --System Default - (0). | N |
| Situation | Type of day that causes the Controller to initiate the specified | Valid values:
Default is Holiday (1). | Y |
| Skip Trigger if Active | Deprecated. Indication for whether or not the Controller should skip the next run of the specified task(s) if the previous run has not gone to a Complete status (that is, it is still active). | Boolean; Valid values: true/false. Default is false. | N |
| Skip After Date | Date after which the trigger will be skipped. | N | |
| Skip After Time | Time after which the trigger will be skipped. | N | |
| Skip Before Date | Date before which the trigger will be skipped. | N | |
| Skip Before Time | Time before which the trigger will be skipped. | N | |
| Task Launch Skip Condition | Controls when launching a task for the trigger will be skipped. info When reading a Trigger, both | Valid values:
Default is None (0). | N |
| Skip Count | Specification that the Controller should skip the next N times that this task is triggered. | Integer; Default is 0. | N |
| Skip Date List | Date(s) on which the trigger will be skipped. | ||
| Skip Restriction | Specification for when the trigger should skip and not launch the task(s). | Valid values:
Default is None (0). | |
| n/a | System ID field in the database for this trigger. | Persisted only if retainSysIds is set to true. | N |
| Tasks | Name of the task(s) being triggered when this trigger is satisfied. XML JSON | Y | |
| n/a | SysIDs of associated tasks (read-only). Provided alongside the existing XML JSON | Y | |
| Time Zone | Name of the time zone that will be applied to the time(s) specified in the trigger. | Y | |
| n/a | For Read and List web services; specification of the version being read or listed. info In XML web services, | Y |
Trigger Properties: Time Trigger
Property | UI Field Name | Description | Specifications | Required |
|---|---|---|---|---|
| Adjust Interval To Enable Start | Set only if | Boolean; Valid values: true/false. Default is true. | N |
| Adjustment Amount | Set only if | Integer. | Y |
| Adjustment Type | Set only if | Valid values:
Default is Day (1). | Y |
| Created By | Name of the user that created this record. | Read only | N |
| Created | Date and time that this record was created. | Read only | N |
| Date Adjective | If For example, to specify the 2nd to last day of the month (last day of the month less one day), select | Valid values:
Default is Every (0). | Y |
| Date Adjustment | If For example, to specify the 2nd to last day of the month (last day of the month less one day), select | Valid values:
Default is None (0). | N |
| Date Noun | Deprecated. Type of day you want to select. Used in conjunction with To specify a Custom Day, use the name of the Custom Day. For example: XML JSON To specify a Local Custom Day, use the local attribute. For example: XML JSON info The Calendar for the trigger is used to verify Custom Day references. | Valid values:
| Y |
| Date Noun(s) | If For example, to specify "the 2nd Monday and Tuesday or January and December," select To specify a Custom Day, use the name of the Custom Day. For example: XML JSON To specify a Local Custom Day, use the local attribute. For example: XML JSON info The Calendar for the trigger is used to verify Custom Day references. | Valid values:
| Y |
| Date Qualifier | Deprecated. Period for your date selection. Used in conjunction with To specify a Custom Day Period, use the name of the Custom Day Period. For example: XML JSON To specify a Local Custom Day Period, use the local attribute. For example: XML JSON info The Calendar for the trigger is used to verify Custom Day references. | Valid values:
| Y |
| Date Qualifier(s) | If For example, to specify "the 2nd Monday and Tuesday or January and December," select To specify a Custom Day, use the name of the Custom Day. For example: XML JSON To specify a Local Custom Day, use the local attribute. For example: XML JSON info The Calendar for the trigger is used to verify Custom Day references. | Valid values:
| Y |
| Day Interval | Interval (number of days) at which this trigger will run. | Integer. | Y |
| Day Style | Indication of when this trigger will be run. | Valid values:
Default is Simple (1). | Y |
| Enabled End | End time of the period during which the trigger should be active. | Use 24-hour time; format is hh:mm | Y |
| Enabled Start | Start time of the period during which the trigger should be active. | Use 24-hour time; format is hh:mm | Y |
| Friday | Set only if | Boolean; Valid values: true/false. Default is false. | N |
| Interval Start | First day of the interval on which this trigger will run. | Format: yyyy-mm-dd | Y |
| Monday | Set only if | Boolean; Valid values: true/false. Default is false. | N |
| Nth Amount | Value of N. | Integer | Y |
| Restrict Times | If | Boolean; Valid values: true/false. | N |
| Saturday | Set only if | Boolean; Valid values: true/false. Default is false. | N |
| n/a | Indication of when this trigger will be run. | Valid values:
Default is Daily (1). | Y |
| Initial Time Offset | Set only if | Format is hh:mm | Y |
| Enable Offset | Set only if | Boolean; Valid values: true/false. Default is false. | N |
| Sunday | Set only if | Boolean; Valid values: true/false. Default is false. | N |
| Thursday | Set only if | Boolean; Valid values: true/false. Default is false. | N |
| Time | Time when the trigger will be run. | Format is hh:mm, using 24-hour time. | Y |
| Time Interval | Number of | Integer | Y |
| Time Interval Units | Type of time interval. | Valid values:
Default is Hours (3). | Y |
| Time Style | Indicates whether this trigger is for a specific time or a series of times. | Valid values:
Default is Absolute (1). | N |
| Tuesday | Set only if | Boolean; Valid values: true/false. Default is false. | N |
| Updated By | Name of the user that last updated this record. | Read only | N |
| Updated | Date and time that this record was last updated. | Read only | N |
| Wednesday | Set only if | Boolean; Valid values: true/false. Default is false. | N |
Trigger-Related Records Properties: Variables
Property | UI Field Name | Description | Specifications | Required |
|---|---|---|---|---|
| Description | Description of the variable. | N | |
| Name | Name of the variable. | Y | |
| Value | Value of the variable. | Y |
Trigger-Related Records Properties: Notes
Property | UI Field Name | Description | Specifications | Required |
|---|---|---|---|---|
| n/a | System ID field in the database for the Note. | N | |
| Text | Text of the Note. | N | |
| Title | Title of the Note. | N |
Modify Time of Time Trigger
Description | |
|---|---|
URI | http://host_name/uc/resources/trigger/settime |
HTTP Method | POST |
Description | Modifies the Time field of a Time Trigger with the Time Style field set to time. |
Example URI | |
Authentication | HTTP Basic |
Consumes Content-Type | application/xml, application/json |
Produces Content-Type | application/xml, application/json |
Example Request | |
Example Request Properties | See Modify Time of Time Trigger: XML Request Properties. |
Example Response |
Modify Time of Time Trigger: XML and JSON Examples
- JSON
- XML
Example Request
JSON
{
"id": "ca85aa671ced45e192c17f6caf89bd12",
"time": "21:00"
}
or
{
"name": "test trigger",
"time": "21:00"
}
Example Response
JSON
{
"type": "set_trigger_time",
"success": true,
"info": "Successfully set time for trigger "test trigger".",
"errors": ""
}
Example Request
XML
<trigger>
<id>410d6c0bc0a801c901838d8ac43b3279</id>
<time>21:00</time>
</trigger>
or
<trigger>
<name>Test Trigger</name>
<time>21:00</time>
</trigger>
Example Response
XML
<command-response>
<type>set_trigger_time</type>
<success>true</success>
<info>Successfully set time for trigger "Test Trigger"</info>
<errors></errors>
</command-response>
Modify Time of Time Trigger: Request Properties
Property | UI Field Name | Description | Specifications | Required | Mutually Exclusive With |
|---|---|---|---|---|---|
id | n/a | sys_id used within the Controller to identify this trigger. | Y |
| |
name | Name | Name of the trigger. | Y |
| |
time | Time | Time that the trigger will be run. | Y |
List Trigger Qualifying Times
Description | |
|---|---|
URI | http://host_name/uc/resources/trigger/qualifyingtimes |
HTTP Method | GET |
Description | Lists Time trigger qualifying times from a specific starting date. |
URI Parameters | See List Trigger Qualifying Times: URI Parameters, below. |
Example URI | |
Authentication | HTTP Basic |
Example XML Response | |
List Trigger Qualifying Times: URI Parameters
Name | Description | Specifications | Required | Mutually Exclusive With |
|---|---|---|---|---|
| Unique ID for a trigger. | Y |
| |
| Name used within the Controller to identify a trigger. | Maximum 40 alphanumerics. | Y |
|
| Number of qualifying events to list. | Maximum is 1000; default is 30. | N | |
| Starting date of qualifying days to list. | Format: YYYY-MM-DD. Default is current date. | N |
List Trigger Qualifying Times: XML and JSON Examples
- JSON
- XML
JSON
{
"triggerTimeZone": "America/Denver",
"userTimeZone": "America/Denver",
"qualifyingTimes": [
{
"triggerTimeZone": "Tuesday, December 19, 2017 18:00:00 MST -0700",
"userTimeZone": "Tuesday, December 19, 2017 18:00:00 MST -0700"
},
{
"triggerTimeZone": "Tuesday, December 19, 2017 19:00:00 MST -0700",
"userTimeZone": "Tuesday, December 19, 2017 19:00:00 MST -0700"
}
...
]
}
XML
<qualifyingTimes triggerTimeZone="Africa/Accra" userTimeZone="America/Denver">
<qualifyingTime skip="true">
<triggerTimeZone>Tuesday, December 19, 2017 18:00:00 MST -0700 MST -0700</triggerTimeZone>
<userTimeZone>Tuesday, December 19, 2017 18:00:00 MST -0700 MST -0700</userTimeZone>
</qualifyingTime>
<qualifyingTime skip="true">
<triggerTimeZone>Tuesday, December 19, 2017 19:00:00 MST -0700 MST -0700</triggerTimeZone>
<userTimeZone>Tuesday, December 19, 2017 19:00:00 MST -0700 MST -0700</userTimeZone>
</qualifyingTime>
...
</qualifyingTimes>