Hi, I'm Ask INFA!
What would you like to know?
ASK INFAPreview
Please to access Ask INFA.

Table of Contents

Search

  1. Preface
  2. IDMC REST API
  3. REST API resource quick references
  4. Platform REST API version 2 resources
  5. Platform REST API version 3 resources
  6. Data Integration REST API
  7. Cloud Data Integration for PowerCenter (CDI-PC) REST API
  8. Data Ingestion and Replication REST API
  9. Customer Managed REST API
  10. RunAJob utility
  11. ParamSetCli utility
  12. REST API codes

REST API Reference

REST API Reference

Getting the job operation status

Getting the job operation status

Use this resource to get the current run status of a
database ingestion and replication
job or
application ingestion and replication
job in a Customer Managed runtime environment.

GET request

To get the job operation status, use the following API call:
GET https://<agent-host>:9443/rm/dbmi/api/v1/job/<job-id>/status RM-USER-TOKEN: <rm-token>
To start a job with curl, use the following command:
curl -ik -X GET https://<agent-host>:9443/rm/dbmi/api/v1/job/<job-id>/status \ -H "RM-USER-TOKEN: <rm-token>"
The following table describes the URL parameter:
Field
Type
Required
Description
job-id
Number
Yes
ID of the job.

GET response

Returns the job ID and status if the request is successful. Returns an error if errors occur.
A successful request returns the following response:
{"jobStatus":"RUNNING","operation":"STOP","operationState":"DONE"}
The following table describes the attributes:
Field
Type
Description
jobStatus
String
Current status of the job. Valid values are:
  • DEPLOYED
  • AWAITING_AUTO_RESTART
  • RUNNING
  • WARNING
  • FAILED
  • STOPPED
  • ABORTED
  • COMPLETED
Operation
String
Latest operation requested for the job. Valid values are:
  • STOP
  • ABORT
The value is null if you haven't requested a stop or abort operation for the job.
operationState
String
State of the latest operation. Options are:
  • REQUESTED. The operation was received but isn't yet applied to the job.
  • DONE. The operation was applied.
The value is null if the operation field is null.
The following examples show how the response changes when you stop a running job, and the response after you abort a job:
Scenario
Response
Running job with no operation requested.
{"jobStatus":"RUNNING","operation":null,"operationState":null}
Stop requested but not yet applied
{"jobStatus":"RUNNING","operation":"STOP","operationState":"REQUESTED"}
Stop applied and the job still running
{"jobStatus":"RUNNING","operation":"STOP","operationState":"DONE"}
Job stopped
jobStatus":"STOPPED","operation":"STOP","operationState":"DONE"}
Job aborted
{"jobStatus":"ABORTED","operation":"ABORT","operationState":"DONE"}

0 COMMENTS

We’d like to hear from you!