z/OS Monitor Task Web Services

Overview

Universal Controller supports the following RESTful-based web services for z/OS Monitor 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 905019428 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 z/OS Monitor Task


Description

URI

http://host_name/uc/resources/task

HTTP Method

POST

Description

Creates a new z/OS Monitor task.
 
To persist sysIds, use the retainSysIds property.

Example URI

http://localhost:8080/uc/resources/task

Consumes Content-Type

application/xml, application/json

Produces Content-Type

n/a

Example

See z/OS Monitor Task: XML and JSON Examples, below.

Properties

See Properties.

Example Response

  • Status 200 /OK
    Successfully created the <task type> task with sysId <sysId>.

Modify a z/OS Monitor 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 z/OS Monitor Task properties without modifying related records, use the excludeRelated property.

Example

See z/OS Monitor Task: XML and JSON Examples.

Properties

See Properties.

Example Response

  • Status 200 /OK
    Successfully updated the <task type> task with sysId <sysId> to version <version>.

Read a z/OS Monitor Task


Description

URI

http://host_name/uc/resources/task

HTTP Method

GET

Description

Retrieves information on the specified task.

Request Parameters

taskid or taskname

Mutually Exclusive Parameters

taskid and taskname

Example URI

Consumes Content-Type

n/a

Produces Content-Type

application/xml, application/json

Example Response

Properties

See Properties.

z/OS Monitor Task: XML and JSON Examples

The retainSysIds and version properties are specified as attributes in XML.

The exportReleaseLevel and exportTable properties are specified as attributes in XML.


Examples

XML

JSON

Example for Task
 XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<taskZosMonitor exportReleaseLevel="7.7.0.0" exportTable="ops_task_zos_monitor" retainSysIds="true" version="6">
    <variables/>
    <notes/>
    <agent>AGNT0016</agent>
    <agentCluster />
    <agentClusterVar />
    <agentVar />
    <avgRunTime>32</avgRunTime>
    <avgRunTimeDisplay>32 Seconds</avgRunTimeDisplay>
    <broadcastCluster />
    <broadcastClusterVar />
    <cpDuration />
    <cpDurationUnit>Minutes</cpDurationUnit>
    <credentials />
    <credentialsVar />
    <customField1/>
    <customField2/>
    <efDayConstraint>None</efDayConstraint>
    <efDuration>00:00:00:00</efDuration>
    <efEnabled>false</efEnabled>
    <efNthAmount>5</efNthAmount>
    <efOffsetDuration />
    <efOffsetDurationUnit>Minutes</efOffsetDurationUnit>
    <efOffsetPercentage>0</efOffsetPercentage>
    <efOffsetType>Percentage</efOffsetType>
    <efTime>00:00</efTime>
    <efType>Time</efType>
    <enforceVariables>false</enforceVariables>
    <exclusiveWithSelf>false</exclusiveWithSelf>
    <executionRestriction>None</executionRestriction>
    <firstRun>2024-09-30 11:10:12 -0400</firstRun>
    <holdResources>false</holdResources>
    <lastRun>2024-09-30 12:50:51 -0400</lastRun>
    <lastRunTime>65</lastRunTime>
    <lastRunTimeDisplay>1 Minute 5 Seconds</lastRunTimeDisplay>
    <lfDayConstraint>None</lfDayConstraint>
    <lfDuration>00:00:00:00</lfDuration>
    <lfEnabled>false</lfEnabled>
    <lfNthAmount>5</lfNthAmount>
    <lfOffsetDuration />
    <lfOffsetDurationUnit>Minutes</lfOffsetDurationUnit>
    <lfOffsetPercentage>0</lfOffsetPercentage>
    <lfOffsetType>Percentage</lfOffsetType>
    <lfTime>00:00</lfTime>
    <lfType>Time</lfType>
    <lockVariables>false</lockVariables>
    <logLevel>Inherited</logLevel>
    <lsDayConstraint>None</lsDayConstraint>
    <lsDuration>00:00:00:00</lsDuration>
    <lsEnabled>false</lsEnabled>
    <lsNthAmount>5</lsNthAmount>
    <lsTime>00:00</lsTime>
    <lsType>Time</lsType>
    <maxRunTime>65</maxRunTime>
    <maxRunTimeDisplay>1 Minute 5 Seconds</maxRunTimeDisplay>
    <minRunTime>15</minRunTime>
    <minRunTimeDisplay>15 Seconds</minRunTimeDisplay>
    <name>ZOS SB Monitor</name>
    <actions/>
    <opswiseGroups/>
    <overrideInstanceWait>No</overrideInstanceWait>
    <resPriority>10</resPriority>
    <resolveNameImmediately>false</resolveNameImmediately>
    <restrictionPeriod>None</restrictionPeriod>
    <restrictionPeriodAfterDate />
    <restrictionPeriodAfterTime />
    <restrictionPeriodBeforeDate />
    <restrictionPeriodBeforeTime />
    <restrictionPeriodDateList/>
    <runCount>3</runCount>
    <runTime>95</runTime>
    <simulation>false</simulation>
    <startHeld>false</startHeld>
    <startHeldReason />
    <summary />
    <sysId>45ce9701e2fc48f8889e6f80a1c6d4a8</sysId>
    <exclusiveTasks/>
    <virtualResources/>
    <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 />
    <conditionCode>0-10,20</conditionCode>
    <expirationAction>Failed</expirationAction>
    <jobEvent>Step End</jobEvent>
    <jobName>SB_END</jobName>
    <relativeTimeFrom>00:00</relativeTimeFrom>
    <relativeTimeTo />
    <stepName>PAYROLL</stepName>
    <timeScope>-- None --</timeScope>
    <userId>BOB</userId>
</taskZosMonitor>
 JSON
{
    "type": "taskZosMonitor",
    "actions": {
        "abortActions": [],
        "emailNotifications": [],
        "setVariableActions": [],
        "snmpNotifications": [],
        "systemOperations": []
    },
    "agent": "AGNT0016",
    "agentCluster": null,
    "agentClusterVar": null,
    "agentVar": null,
    "avgRunTime": 32,
    "avgRunTimeDisplay": "32 Seconds",
    "broadcastCluster": null,
    "broadcastClusterVar": null,
    "conditionCode": "0-10,20",
    "cpDuration": null,
    "cpDurationUnit": "Minutes",
    "customField1": {
        "label": null,
        "value": null
    },
    "customField2": {
        "label": null,
        "value": null
    },
    "efDayConstraint": "None",
    "efDuration": "00:00:00:00",
    "efEnabled": false,
    "efNthAmount": 5,
    "efOffsetDuration": null,
    "efOffsetDurationUnit": "Minutes",
    "efOffsetPercentage": 0,
    "efOffsetType": "Percentage",
    "efTime": "00:00",
    "efType": "Time",
    "enforceVariables": false,
    "exclusiveTasks": [],
    "exclusiveWithSelf": false,
    "executionRestriction": "None",
    "expirationAction": "Failed",
    "exportReleaseLevel": "7.7.0.0",
    "exportTable": "ops_task_zos_monitor",
    "firstRun": "2024-09-30 11:10:12 -0400",
    "holdResources": false,
    "jobEvent": "Step End",
    "jobName": "SB_END",
    "lastRun": "2024-09-30 12:50:51 -0400",
    "lastRunTime": 65,
    "lastRunTimeDisplay": "1 Minute 5 Seconds",
    "lfDayConstraint": "None",
    "lfDuration": "00:00:00:00",
    "lfEnabled": false,
    "lfNthAmount": 5,
    "lfOffsetDuration": null,
    "lfOffsetDurationUnit": "Minutes",
    "lfOffsetPercentage": 0,
    "lfOffsetType": "Percentage",
    "lfTime": "00:00",
    "lfType": "Time",
    "lockVariables": false,
    "logLevel": "Inherited",
    "lsDayConstraint": "None",
    "lsDuration": "00:00:00:00",
    "lsEnabled": false,
    "lsNthAmount": 5,
    "lsTime": "00:00",
    "lsType": "Time",
    "maxRunTime": 65,
    "maxRunTimeDisplay": "1 Minute 5 Seconds",
    "minRunTime": 15,
    "minRunTimeDisplay": "15 Seconds",
    "name": "ZOS SB Monitor",
    "notes": [],
    "opswiseGroups": [],
    "overrideInstanceWait": "No",
    "relativeTimeFrom": "00:00",
    "relativeTimeTo": null,
    "resPriority": 10,
    "resolveNameImmediately": false,
    "restrictionPeriod": "None",
    "restrictionPeriodAfterDate": null,
    "restrictionPeriodAfterTime": null,
    "restrictionPeriodBeforeDate": null,
    "restrictionPeriodBeforeTime": null,
    "restrictionPeriodDateList": [],
    "retainSysIds": true,
    "runCount": 3,
    "runTime": 95,
    "simulation": false,
    "startHeld": false,
    "startHeldReason": null,
    "stepName": "PAYROLL",
    "summary": null,
    "sysId": "45ce9701e2fc48f8889e6f80a1c6d4a8",
    "timeScope": "-- None --",
    "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 --",
    "userEstimatedDuration": null,
    "userId": "BOB",
    "variables": [],
    "version": 6,
    "virtualResources": []
}


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.

Properties