Rerun Job
/essbase/rest/v1/jobs/{id}
Reruns the job, returning job information and new job ID.
Request
-
id(required): integer(int64)
Job ID.
Response
- application/json
- application/xml
200 Response
OK
Job information returned successfully for newly created job ID.
object
-
appName:
string
Application name.
-
dbName:
string
Cube name.
-
endTime:
integer(int64)
End time of the job.
-
job_ID:
integer(int64)
ID number of the job.
-
jobfileName:
string
The script file used for the job.
-
jobInputInfo:
object jobInputInfo
Additional Properties Allowed: additionalProperties
-
jobOutputInfo:
object jobOutputInfo
Additional Properties Allowed: additionalProperties
-
jobType:
string
The type of job. Examples:
dataload
,dimbuild
,calc
,clear
,importExcel
,exportExcel
,lcmExport
,lcmImport
,clearAggregation
,buildAggregation
,asoBufferDataLoad
,asoBufferCommit
,exportData
,mdxScript
. -
links:
array links
-
startTime:
integer(int64)
Start time of the job.
-
statusCode:
integer(int32)
Job status code indicating progress. Each code has a corresponding statusMessage.
statusCode statusMessage 100 IN_PROGRESS 200 COMPLETED 300 COMPLETED_WITH_WARNINGS 400 FAILED -
statusMessage:
string
Job status message string indicating progress. Each string has a corresponding statusCode.
statusCode statusMessage 100 IN_PROGRESS 200 COMPLETED 300 COMPLETED_WITH_WARNINGS 400 FAILED -
userName:
string
User who ran the job. Users have access to job listings based on their assigned user role. For example, if you have the Service Administrator role, you can see all jobs; if you have the User role, you can see only the jobs you ran.
object
object
500 Response
Internal Server Error.
503 Response
Service Unavailable
Naming exception or server exception. Job ID is incorrect or invalid.
Examples
The following example shows how to rerun a previously executed job ID. A new job ID is created.
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
call properties.bat
curl -X POST "https://myserver.example.com:9001/essbase/rest/v1/jobs/28" -H "accept: application/json" -u %User%:%Password%
Example of Response Body
{
"job_ID": 42,
"appName": "Sample",
"dbName": "Basic",
"jobType": "Export Data",
"jobfileName": null,
"userName": "dbmanager",
"startTime": 1585007505000,
"endTime": 1585007505000,
"statusCode": 100,
"statusMessage": "In Progress",
"jobInputInfo": {
"compress": false,
"columnFormat": false,
"dataLevel": "3"
},
"jobOutputInfo": {
"scriptOutputFileName": "",
"scriptOutputFileNamePath": "",
"infoMessage": "",
"errorMessage": ""
},
"links": [
{
"rel": "get",
"href": "https://myserver.example.com:9001/essbase/rest/v1/jobs/42",
"method": "GET"
}
]
}