List Jobs

Ops Center Protector REST API User Guide

Version
7.8.x
Audience
anonymous
Part Number
MK-99PRT005-08

To verify the backup has been triggered and to track its progress the Job resource can be requested from the JobStatusHandler.

List Jobs (maximum two items)
curl --insecure --cookie demosession
"https://demomaster/API/7.1/master/JobStatusHandler/objects/Jobs?offset=0&
count=2"
List Jobs Response
{
    "job": [
        {
            "actions": [
            ],
            "description": "Distribute Rules",
            "id": "{0021ad82-a8c2-4e32-8c48-caf3a89c199a}",
            "parameters": [
                {
                    "key": "DataFlowID_1",
                    "value": "1c020dc1-c60c-4a54-9b94-17bbfc12a9a3"
                },
                {
                    "key": "DataFlowName_1",
                    "value": "demodataflow"
                }
            ],
            "progress": "Completed",
            "reporterNode": "demomaster@BZ-334922-442788-343Z2Z-YYZ744[0-1-1]",
            "status": "eJOB_SUCCEEDED",
            "subType": {
                "id": "Deactivate Data Flow(s)",
                "subSystem": "Rules Manager"
            },
            "timeCompleted": "2020-05-11T11:39:17Z",
            "timeStarted": "2020-05-11T11:39:14Z",
            "timeUpdated": "2020-05-11T11:39:17Z",
            "type": "eJOBTYPE_OTHER",
            "userTags": [
            ]
        },
        {
            "actions": [
            ],
            "description": "Compile Rules",
            "id": "{030401a2-948e-4189-b0b0-b14e1596079e}",
            "parameters": [
                {
                    "key": "DataFlowID_1",
                    "value": "bd215091-0d8a-49f3-92e7-7db37acbb8b4"
                },
                {
                    "key": "DataFlowName_1",
                    "value": "demodataflow"
                }
            ],
            "progress": "Completed",
            "reporterNode": "demomaster@BZ-334922-442788-343Z2Z-YYZ744[0-1-1]",
            "status": "eJOB_SUCCEEDED",
            "subType": {
                "id": "Compile Data Flow(s)",
                "subSystem": "Rules Manager"
            },
            "timeCompleted": "2020-05-11T13:07:22Z",
            "timeStarted": "2020-05-11T13:07:22Z",
            "timeUpdated": "2020-05-11T13:07:22Z",
            "type": "eJOBTYPE_OTHER",
            "userTags": [
            ]
        }
    ],
    "pageInfo": {
        "count": 2,
        "end": false,
        "offset": 0,
        "totalCount": 20
    }
}