Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For information on Task web services that are applicable to all task types, see:

Anchor
Create a Universal Monitor Task
Create a Universal Monitor Task

...


Description

URI

http://host_name/uc/resources/task

HTTP Method

POST

Description

Creates a new Universal 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 Universal Monitor Task: XML and JSON Examples, below.

Properties

See 206384670.

Example Response

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

...


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 Universal Monitor Task properties without modifying related records, use the excludeRelated property.

Example

See Universal Monitor Task: XML and JSON Examples.

Properties

See 206384670.

Example Response

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

...


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 206384670.

...

Examples

XML

JSON

Example for Task


Code Block
languagetext
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<taskUniversalMonitor exportReleaseLevel="7.5.0.0" exportTable="ops_task_universal_monitor" retainSysIds="true" version="4">
    <variables/>
    <notes/>
    <eventBusinessServiceCriteria>Member of Specific Business Services or Unassigned</eventBusinessServiceCriteria>
    <eventBusinessServices>
        <businessService>X</businessService>
        <businessService>Y</businessService>
        <businessService>Z</businessService>
    </eventBusinessServices>
    <cpDuration />
    <cpDurationUnit>Minutes</cpDurationUnit>
    <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>
    <eventTemplate label="UAC - Agent Changed">uac_agent_changed</eventTemplate>
    <eventType>Global</eventType>
    <exclusiveWithSelf>false</exclusiveWithSelf>
    <executionRestriction>None</executionRestriction>
    <expirationAction>Failed</expirationAction>
    <filter>
        <logicalOperator>And</logicalOperator>
    </filter>
    <firstRun></firstRun>
    <holdResources>false</holdResources>
    <lastRun></lastRun>
    <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>
    <name>UM</name>
    <actions/>
    <opswiseGroups/>
    <relativeTimeFrom>00:00</relativeTimeFrom>
    <relativeTimeTo />
    <resPriority>10</resPriority>
    <resolveNameImmediately>false</resolveNameImmediately>
    <restrictionPeriod>None</restrictionPeriod>
    <restrictionPeriodAfterDate />
    <restrictionPeriodAfterTime />
    <restrictionPeriodBeforeDate />
    <restrictionPeriodBeforeTime />
    <restrictionPeriodDateList/>
    <runCount>0</runCount>
    <runTime>0</runTime>
    <simulation>false</simulation>
    <startHeld>false</startHeld>
    <startHeldReason />
    <summary />
    <sysId>36d6cd11669741098963c8f3eb2250ef<<sysId>36d6cd11669751098963c8f3eb2250ef</sysId>
    <exclusiveTasks/>
    <virtualResources/>
    <taskUniversal />
    <taskUniversalVariables/>
    <template />
    <templateEventTemplate />
    <timeScope>-- None --</timeScope>
    <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 />
</taskUniversalMonitor>



Code Block
languagetext
{
    "type": "taskUniversalMonitor",
    "actions": {
        "abortActions": [],
        "emailNotifications": [],
        "setVariableActions": [],
        "snmpNotifications": [],
        "systemOperations": []
    },
    "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,
    "eventBusinessServiceCriteria": "Member of Specific Business Services or Unassigned",
    "eventBusinessServices": [
        "X",
        "Y",
        "Z"
    ],
    "eventTemplate": {
        "label": "UAC - Agent Changed",
        "value": "uac_agent_changed"
    },
    "eventType": "Global",
    "exclusiveTasks": [],
    "exclusiveWithSelf": false,
    "executionRestriction": "None",
    "expirationAction": "Failed",
    "exportReleaseLevel": "7.5.0.0",
    "exportTable": "ops_task_universal_monitor",
    "filter": {
        "logicalOperator": "And"
    },
    "firstRun": "",
    "holdResources": false,
    "lastRun": "",
    "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",
    "name": "UM",
    "notes": [],
    "opswiseGroups": [],
    "relativeTimeFrom": "00:00",
    "relativeTimeTo": null,
    "resPriority": 10,
    "resolveNameImmediately": false,
    "restrictionPeriod": "None",
    "restrictionPeriodAfterDate": null,
    "restrictionPeriodAfterTime": null,
    "restrictionPeriodBeforeDate": null,
    "restrictionPeriodBeforeTime": null,
    "restrictionPeriodDateList": [],
    "retainSysIds": true,
    "runCount": 0,
    "runTime": 0,
    "simulation": false,
    "startHeld": false,
    "startHeldReason": null,
    "summary": null,
    "sysId": "36d6cd11669741098963c8f3eb2250ef36d6cd11669751098963c8f3eb2250ef",
    "taskUniversal": null,
    "taskUniversalVariables": [],
    "template": null,
    "templateEventTemplate": null,
    "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,
    "variables": [],
    "version": 4,
    "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.

Anchor
Properties
Properties

Properties