Trigger Web Services
Overview
Universal Controller supports the following RESTful-based web services for Trigger operations.
Formatting specifications for each web service, including details about parameter requirements, are provided.
Common Web Services
The following web services are common to all Trigger types:
Detailed information for each of these web services is provided on this page.
Trigger-Specific Web Services
The following web services are specific to each Trigger type:
Create a Trigger
List Trigger Qualifying Times (Cron and Time Triggers only)
Modify a Trigger
Modify Time of Time Trigger (Time Trigger only)
Read a Trigger
For detail information about these Trigger-specific web services, see:
Assign an Execution User to a Trigger
| Description |
|---|---|
URI | |
HTTP Method | POST |
Description | Assigns an Execution User to the specified trigger. |
URI Parameters | |
Authentication | HTTP Basic |
Example URI | |
Consumes Content-Type | application/xml, application/json |
Produces Content-Type | n/a |
Example Request | See Assign an Execution User to a Trigger: XML and JSON Request Examples. |
Request Properties | See Assign an Execution User to a Trigger: Request Properties. |
Example Response |
|
Assign an Execution User to a 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 |
|
Assign an Execution to a Trigger: XML and JSON Request Examples
Examples | XML | JSON |
|---|---|---|
Request Example | <executionUser>
<username>test</username>
<password>pass1</password>
</executionUser>
| {
"username": "test",
"password": "pass1"
}
|
Assign an Execution User to a Trigger: Request Properties
Delete a Trigger
| Description |
|---|---|
URI | |
HTTP Method | DELETE |
Description | Assigns an execution user to the specified trigger. |
URI Parameters | |
Authentication | HTTP Basic |
Example URI | |
Example Response |
|
Delete a 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 |
|
Enable/Disable a Trigger
| Description |
|---|---|
URI | http://host_name/uc/resources/trigger/ops-enable-disable-trigger |
HTTP Method | POST |
Description | Enables/Disables a list of triggers. |
Example URI | http://localhost:8080/uc/resources/trigger/ops-enable-disable-trigger |
Authentication | HTTP Basic |
Consumes Content-Type | application/xml, application/json |
Produces Content-Type | application/xml, application/json |
Example Request | |
Request Properties | |
Example Response |
Enable/Disable a Trigger: XML and JSON Examples
Examples | XML | JSON |
|---|---|---|
Request Example | <enable-disable-trigger>
<trigger enable="true" name="uc - 1st and 15th"></trigger>
<trigger enable="false" name="uc - 1st Sunday of Month"></trigger>
</enable-disable-trigger> | [{
"enable": true,
"name": "uc - 1st and 15th"
},
{
"enable": false,
"name": "uc - 1st Sunday of Month"
}] |
Response Example | <command-response>
<type>Enable Disable Triggers</type>
<success>true</success>
<info>Successfully enabled trigger uc - 1st and 15th, Successfully disabled trigger uc - 1st Sunday of Month</info>
<errors />
</command-response> | {
"type": Enable/Disable Triggers",
"success": true,
"info": "Successfully enabled trigger "uc - 1st and 15th"., Successfully disabled trigger "uc - 1st Sunday of Month".",
"errors": ""
} |
Enable/Disable a Trigger: Request Trigger Properties
Property | UI Field Name | Description | Specifications | Required |
|---|---|---|---|---|
| n/a | There are two attributes for this property:
For example: <trigger enable="false" name="uc - 1st Sunday of Month"></trigger> |
| Y |
List Triggers
| Description |
|---|---|
URI | |
HTTP Method | POST |
Description | Lists triggers matching specific search criteria. |
Example URI | |
Authentication | HTTP Basic |
Consumes Content-Type | application/xml, application/json |
Produces Content-Type | application/xml, application/json |
Example Request | |
Request Properties | |
Example Response |
List Triggers: XML and JSON Examples
Examples | XML | JSON |
|---|---|---|
Request Example |
|
|
Response Example |
|
|
List Triggers: Request Properties
Property | UI Field Name | Description | Specifications | Required |
|---|---|---|---|---|
| Description | Filter the trigger list using the description. | Wildcards are supported. | N |
| Status | Indication of whether to list enabled (true) or disabled (false) triggers. | Boolean; Valid values: true/false. | N |
| Name | Name or partial name of one or more triggers. | Wildcards are supported. | N |
| Task(s) | List Triggers that reference any one of the specified links. | Comma-separated Task names. | N |
| n/a | Type of triggers to list. | Valid values:
| N |
List Triggers - Advanced
| Description |
|---|---|
URI | |
HTTP Method | GET |
Description | Retrieves trigger details using specific query parameters. |
Example URI | |
Authentication |