Help Center
Login Sign up
  1. Home
  2. API reference
  3. API documentation (JSON/XML)
  4. Tasks
  5. Job tasks

Job history list

API reference (XML/JSON) · Updated 2023-09-18

Function

The JobHistoryList task inquires the completed jobs.

For more information about list queries, see here.

Description

Route: POST ​/job​/history​/_search

Keywords

The data of the following keywords are returned by default:

  • action
  • created
  • execution
  • id
  • object
  • owner
  • status
  • subStatus

  • subType
  • updated
  • updater
{
	"filters": [
		{
			"key": "id",
			"value": "431029382*",
			"operator": "LIKE"
		}
	],
	"view": {
		"children": 1,
		"limit": 2,
        "offset": 0,
		"from": "2019-01-01T00:00:00.000+0000",
		"to": "2050-12-31T00:00:00.000+0000"
	},
	"orders": [
		{
			"key": "job.id"
		}
	]
}
{
    "stid": "20220620-app3-dev-9151",
    "status": {
        "code": "S300135",
        "text": "Workflow job histories have been inquired successfully.",
        "type": "SUCCESS"
    },
    "object": {
        "type": "ObjectJob",
        "summary": 10
    },
    "data": [
        {
            "job": {
                "created": "2021-10-01T02:11:57.000+0200",
                "updated": "2021-10-01T02:12:58.000+0200",
                "owner": {
                    "context": 4,
                    "user": "customer"
                },
                "updater": {
                    "context": 4,
                    "user": "customer"
                },
                "status": "SUCCESS",
                "subStatus": "",
                "execution": "2021-10-01T02:11:58.000+0200",
                "action": "recovery",
                "subType": "",
                "id": 4310293820
            },
            "object": {
                "type": "Zone",
                "value": "ns1.example.com",
                "data": {
                    "origin": "ns1.example.com"
                }
            }
        },
        {
            "job": {
                "created": "2021-10-01T02:13:22.000+0200",
                "updated": "2021-10-01T02:14:23.000+0200",
                "owner": {
                    "context": 1,
                    "user": "root"
                },
                "updater": {
                    "context": 4,
                    "user": "customer"
                },
                "status": "SUCCESS",
                "subStatus": "",
                "execution": "2021-10-01T02:13:22.000+0200",
                "action": "recovery",
                "subType": "",
                "id": 4310293821
            },
            "object": {
                "type": "Zone",
                "value": "ns2.example.com",
                "data": {
                    "origin": "ns2.example.com"
                }
            }
        }
    ]
}