Get Job List

get

/essbase/rest/v1/jobs

Returns job list for the given query parameters, including job status, type, and input and output information. If no query parameter is specified, returns a list of all the jobs.

Request

Query Parameters
  • Application name for which to retrieve job records.

  • Database name for which to retrieve job records.

  • Filter the job records using a keyword that may be part of the job ID, application name, database name, job file name (script), or user name. If this parameter and fullAppName are both specified, fullAppName takes precedence.

  • Maximum number of jobs to fetch.

    Default Value: 50
  • Number of jobs to omit from the start of the result set.

    Default Value: 0
  • Order By specification. By default, jobs records are returned by job IDs in descending order.

    Default Value: job_ID:desc
  • Include backup jobs in jobs records.

    Default Value: false
Back to Top

Response

Supported Media Types

200 Response

OK

Job records returned successfully.

Body ()
Root Schema : JobRecordPaginatedResultWrapper
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : properties
Type: object
Additional Properties Allowed
Show Source
Nested Schema : JobRecordBean
Type: object
Show Source
Nested Schema : jobInputInfo
Type: object
Additional Properties Allowed
Show Source
Nested Schema : jobOutputInfo
Type: object
Additional Properties Allowed
Show Source
Nested Schema : additionalProperties
Type: object
Nested Schema : additionalProperties
Type: object

500 Response

Internal Server Error.

503 Response

Service Unavailable

Naming exception or server exception.

Back to Top

Examples

The following example shows how to return a filtered Essbase jobs list.

This example uses cURL to access the REST API from a Windows shell script. The calling user's ID and password are variables whose values are set in properties.bat.

Script with cURL Command

The following example gets up to 10 jobs that use the keyword ASO_Sample.xlsx.

curl -X GET "https://myserver.example.com:9001/essbase/rest/v1/jobs?keyword=ASO_Sample.xlsx&offset=0&limit=10&systemjobs=false" -H "accept: application/json" -u %User%:%Password%

Example of Response Body

Two jobs were returned that involved ASO_Sample.xlsx.

{
  "items": [
    {
      "job_ID": 3,
      "appName": "ASOSamp",
      "dbName": "Basic",
      "jobType": "Import Excel",
      "jobfileName": "ASO_Sample.xlsx",
      "userName": "power1",
      "startTime": 1574812065000,
      "endTime": 1574812135000,
      "statusCode": 200,
      "statusMessage": "Completed",
      "links": [
        {
          "rel": "canonical",
          "href": "https://myserver.example.com:9001/essbase/rest/v1/jobs/3",
          "method": "GET"
        },
        {
          "rel": "post",
          "href": "https://myserver.example.com:9001/essbase/rest/v1/jobs/3",
          "method": "POST"
        }
      ]
    },
    {
      "job_ID": 2,
      "appName": "ASOSamp",
      "dbName": "Basic",
      "jobType": "Import Excel",
      "jobfileName": "ASO_Sample.xlsx",
      "userName": "power1",
      "startTime": 1574810127000,
      "endTime": 1574810180000,
      "statusCode": 200,
      "statusMessage": "Completed",
      "links": [
        {
          "rel": "canonical",
          "href": "https://myserver.example.com:9001/essbase/rest/v1/jobs/2",
          "method": "GET"
        },
        {
          "rel": "post",
          "href": "https://myserver.example.com:9001/essbase/rest/v1/jobs/2",
          "method": "POST"
        }
      ]
    }
  ],
  "offset": 0,
  "limit": 10,
  "count": 2,
  "totalResults": 2,
  "hasMore": false
}

Script with cURL Command

The following example gets all jobs for the Ratings cube in the application named Facility.

call properties.bat
curl -X GET "https://192.0.2.1:443/essbase/rest/v1/jobs?fullAppName=Facility&fullDatabaseName=Rating&links=none" -H "accept: application/json" -u %User%:%Password%

Example of Response Body

Three jobs were returned.

{
  "items" : [ {
    "job_ID" : 128,
    "appName" : "Facility",
    "dbName" : "Rating",
    "jobType" : "Export Data",
    "jobfileName" : null,
    "userName" : "power1",
    "startTime" : 1712778858000,
    "endTime" : 1712778858000,
    "statusCode" : 200,
    "statusMessage" : "Completed"
  }, {
    "job_ID" : 127,
    "appName" : "Facility",
    "dbName" : "Rating",
    "jobType" : "Data Load",
    "jobfileName" : "[\"\"]",
    "userName" : "power1",
    "startTime" : 1712697441000,
    "endTime" : 1712697441000,
    "statusCode" : 200,
    "statusMessage" : "Completed"
  }, {
    "job_ID" : 126,
    "appName" : "Facility",
    "dbName" : "Rating",
    "jobType" : "Clear Data",
    "jobfileName" : null,
    "userName" : "power1",
    "startTime" : 1712697424000,
    "endTime" : 1712697424000,
    "statusCode" : 200,
    "statusMessage" : "Completed"
  } ],
  "offset" : 0,
  "limit" : 50,
  "count" : 3,
  "totalResults" : 3,
  "hasMore" : false
}
Back to Top