Web Service Task Web Services
Universal Controller supports the following RESTful-based web services for Web Service Task operations, which are listed alphabetically on this page.
Formatting specifications for each web service, including details about parameter requirements, are provided.
Links to detailed information about the properties used in these web services also is located on this page.
For information on Task web services that are applicable to all task types, see:
Create a Web Service Task
Description | |
|---|---|
URI | http://host_name/uc/resources/task |
HTTP Method | POST |
Description | Creates a new Web Service task. To persist sysIds, use the retainSysIds property. |
Example URI | |
Consumes Content-Type | application/xml, application/json |
Produces Content-Type | n/a |
Example | See Web Service Task: XML and JSON Examples, below. |
Properties | See Properties. |
Example Response |
|
Modify a Web Service Task
Description | |
|---|---|
URI | http://host_name/uc/resources/task |
Consumes Content-Type | application/xml, application/json |
Produces Content-Type | n/a |
HTTP Method | PUT |
Description | Modifies the task specified by the sysId in the request. To modify Web Service Task properties without modifying related records, use the excludeRelated property. |
Example | |
Properties | See Properties. |
Example Response |
|
Read a Web Service Task
Description | |
|---|---|
URI | http://host_name/uc/resources/task |
HTTP Method | GET |
Description | Retrieves information on the specified task. |
Request Parameters |
|
Mutually Exclusive Parameters |
|
Example URI | |
Consumes Content-Type | n/a |
Produces Content-Type | application/xml, application/json |
Example Response |
|
Properties | See Properties. |
Web Service Task: XML and JSON Examples
The retainSysIdsand versionproperties are specified as attributes in XML.
The exportReleaseLevel and exportTable properties are specified as attributes in XML.
- JSON
- XML
JSON
{
"type": "taskWebService",
"actions": {
"abortActions": [],
"emailNotifications": [],
"setVariableActions": [],
"snmpNotifications": [],
"systemOperations": []
},
"autoCleanup": true,
"avgRunTime": 3,
"avgRunTimeDisplay": "3 Seconds",
"cpDuration": null,
"cpDurationUnit": "Minutes",
"credentials": "web-cred",
"credentialsVar": null,
"customField1": {
"label": "Domain",
"value": "http://qa-cntlr-mssql:8080/uc/"
},
"customField2": {
"label": null,
"value": null
},
"efDayConstraint": "Nth Day",
"efDuration": "00:00:00:00",
"efEnabled": false,
"efNthAmount": 10,
"efOffsetDuration": null,
"efOffsetDurationUnit": "Minutes",
"efOffsetPercentage": 0,
"efOffsetType": "Percentage",
"efTime": "00:00",
"efType": "Time",
"excludeRelated": false,
"exclusiveTasks": [],
"executionRestriction": "Run",
"exportReleaseLevel": "7.2.0.0",
"exportTable": "ops_task_web_service",
"firstRun": "2021-03-15 13:59:37 -0400",
"formData": [
{
"name": "field1",
"value": "value1"
},
{
"name": "field2",
"value": "value2"
}
],
"holdResources": false,
"httpAuth": "Basic",
"httpHeaders": [
{
"name": "header1",
"value": "val1"
},
{
"name": "header2",
"value": "val2"
}
],
"httpMethod": "PUT",
"httpPayloadType": "Form Data",
"httpVersion": "1.1",
"insecure": false,
"lastRun": "2021-03-16 17:12:42 -0400",
"lastRunTime": 9,
"lastRunTimeDisplay": "9 Seconds",
"lfDayConstraint": "Nth Day",
"lfDuration": "00:00:00:00",
"lfEnabled": false,
"lfNthAmount": 1,
"lfOffsetDuration": null,
"lfOffsetDurationUnit": "Minutes",
"lfOffsetPercentage": 0,
"lfOffsetType": "Percentage",
"lfTime": "00:00",
"lfType": "Time",
"lsDayConstraint": "Nth Day",
"lsDuration": "00:00:00:00",
"lsEnabled": false,
"lsNthAmount": 7,
"lsTime": "00:00",
"lsType": "Time",
"maxRunTime": 9,
"maxRunTimeDisplay": "9 Seconds",
"minRunTime": 3,
"minRunTimeDisplay": "3 Seconds",
"mimeType": null,
"name": "uc - Test Email",
"notes": [],
"opswiseGroups": null,
"outputConditionOperator": "=",
"outputConditionStrategy": "Match Any",
"outputConditionValue": null,
"outputPathExpression": null,
"outputType": "Text",
"payload": null,
"payloadScript": null,
"payloadSource": "Form",
"protocol": "HTTP(S)/REST",
"resolveNameImmediately": false,
"responseProcessingType": "Default Success Status Code Range",
"resPriority": 10,
"restrictionPeriod": "Span",
"restrictionPeriodAfterDate": "2017-11-10",
"restrictionPeriodAfterTime": "10:30",
"restrictionPeriodBeforeDate": "2017-11-20",
"restrictionPeriodBeforeTime": "15:00",
"restrictionPeriodDateList": [],
"retainSysIds": true,
"retryIndefinitely": false,
"retryInterval": 60,
"retryMaximum": 0,
"retrySuppressFailure": false,
"runCount": 32,
"runTime": 108,
"soapAction": null,
"soapPayloadType": "Body",
"soapResponseOutput": "Body/First Element",
"soapVersion": "1.2",
"startHeld": false,
"startHeldReason": null,
"statusCodeRange": null,
"summary": "Test Email",
"sysId": "fb59a227517a421a92c15ff5aefe3b66",
"timeout": 20,
"timeZonePref": "-- System Default --",
"twDelayAmount": null,
"twDelayDuration": "00:00:00:00",
"twDelayType": "None",
"twWaitAmount": null,
"twWaitDayConstraint": "NONE",
"twWaitDuration": "00:00:00:00",
"twWaitTime": "00:00",
"twWaitType : "None",
"twWorkflowOnly": "-- System Default --",
"url": "http://localhost:8080/uc/resources/omsserver",
"urlParameters": [
{
"name": "param1",
"value": "value1"
},
{
"name": "param2",
"value": "value"
}
],
"userEstimatedDuration": null,
"variables": [],
"version": 1,
"virtualResources": []
}
XML
<taskWebService exportReleaseLevel="7.2.0.0" exportTable="ops_task_web_service" retainSysIds="true" version="1">
<actions />
<variables />
<notes />
<virtualResources />
<exclusiveTasks />
<avgRunTime>3</avgRunTime>
<avgRunTimeDisplay>3 Seconds</avgRunTimeDisplay>
<cpDuration />
<cpDurationUnit>Minutes</cpDurationUnit>
<credentials>web-cred</credentials>
<credentialsVar />
<customField1 label="Domain">web.com</customField1>
<customField2 />
<efDayConstraint>Nth</efDayConstraint>
<efDuration>00:00:00:00</efDuration>
<efEnabled>false</efEnabled>
<efNthAmount>10</efNthAmount>
<efOffsetDuration />
<efOffsetDurationUnit>Minutes</efOffsetDurationUnit>
<efOffsetPercentage>0</efOffsetPercentage>
<efOffsetType>Percentage</efOffsetType>
<efTime>00:00</efTime>
<efType>Time</efType>
<executionRestriction>Run</executionRestriction>
<firstRun>2021-03-15 13:59:37 -0400</firstRun>
<holdResources>false</holdResources>
<lastRun>2021-03-16 17:12:42 -0400</lastRun>
<lastRunTime>9</lastRunTime>
<lastRunTimeDisplay>9 seconds</lastRunTimeDisplay>
<lfDayConstraint>Nth</lfDayConstraint>
<lfDuration>00:00:00:00</lfDuration>
<lfEnabled>false</lfEnabled>
<lfNthAmount>1</lfNthAmount>
<lfOffsetDuration />
<lfOffsetDurationUnit>Minutes</lfOffsetDurationUnit>
<lfOffsetPercentage>0</lfOffsetPercentage>
<lfOffsetType>Percentage</lfOffsetType>
<lfTime>00:00</lfTime>
<lfType>Time</lfType>
<lsDayConstraint>Nth</lsDayConstraint>
<lsDuration>00:00:00:00</lsDuration>
<lsEnabled>false</lsEnabled>
<lsNthAmount>7</lsNthAmount>
<lsTime>00:00</lsTime>
<lsType>Time</lsType>
<maxRunTime>9</maxRunTime>
<maxRunTimeDisplay>9 Seconds</maxRunTimeDisplay>
<minRunTime>3</minRunTime>
<minRunTimeDisplay>3 Seconds</minRunTimeDisplay>
<name>uc - Test Email</name>
<opswiseGroups />
<resolveNameImmediately>false</resolveNameImmediately>
<resPriority>10</resPriority>
<restrictionPeriod>Span</restrictionPeriod>
<restrictionPeriodAfterDate>2017-11-10</restrictionPeriodAfterDate>
<restrictionPeriodAfterTime>10:30</restrictionPeriodAfterTime>
<restrictionPeriodBeforeDate>2017-11-20</restrictionPeriodBeforeDate>
<restrictionPeriodBeforeTime>15:00</restrictionPeriodBeforeTime>
<restrictionPeriodDateList />
<runCount>32</runCount>
<runTime>108</runTime>
<startHeld>false</startHeld>
<startHeldReason />
<summary>Test Email</summary>
<sysId>fb59a227517a421a92c15ff5aefe3b66</sysId>
<timeZonePref>-- System Default --</timeZonePref>
<twDelayAmount />
<twDelayDuration>00:00:00:00</twDelayDuration>
<twDelayType>None</twDelayType>
<twWaitAmount />
<twWaitDayConstraint>NONE</twWaitDayConstraint>
<twWaitDuration>00:00:00:00</twWaitDuration>
<twWaitTime>00:00</twWaitTime>
<twWaitType>None</twWaitType>
<twWorkflowOnly>-- System Default --</twWorkflowOnly>
<userEstimatedDuration />
<autoCleanup>true</autoCleanup>
<formData>
<formField>
<name>field1</name>
<value>value1</value>
</formField>
<formField>
<name>field2</name>
<value>value2</value>
</formField>
</formData>
<httpAuth>Basic</httpAuth>
<httpHeaders>
<httpHeader>
<name>header1</name>
<value>val1</value>
</httpHeader>
<httpHeader>
<name>header2</name>
<value>val2</value>
</httpHeader>
</httpHeaders>
<httpMethod>PUT</httpMethod>
<httpPayloadType>Form Data</httpPayloadType>
<httpVersion>1.1</httpVersion>
<insecure>false</insecure>
<mimeType />
<outputConditionOperator>=</outputConditionOperator>
<outputConditionStrategy>Match Any</outputConditionStrategy>
<outputConditionValue />
<outputPathExpression />
<outputType>Text</outputType>
<payload />
<payloadScript />
<payloadSource>Form</payloadSource>
<protocol>HTTP(S)/REST</protocol>
<responseProcessingType>Default Success Status Code Range</responseProcessingType>
<retryIndefinitely>false</retryIndefinitely>
<retryInterval>60</retryInterval>
<retryMaximum>0</retryMaximum>
<retrySuppressFailure>false</retrySuppressFailure>
<soapAction />
<soapPayloadType>Body</soapPayloadType>
<soapResponseOutput>Body/First Element</soapResponseOutput>
<soapVersion>1.2</soapVersion>
<statusCodeRange />
<timeout>20</timeout>
<url>http://www.rest.com/resources/users</url>
<urlParameters>
<urlParameter>
<name>param1</name>
<value>value1</value>
</urlParameter>
<urlParameter>
<name>param2</name>
<value>value2</value>
</urlParameter>
</urlParameters>
</taskWebService>
See Task Web Services - Task Actions for XML and JSON examples of task actions.
See Task Web Services - Task-Related Records for XML and JSON examples of task-related records.