Invoking Test Data Management REST APIs Using cURL

Invoking Test Data Management REST APIs Using cURL

Monitor the Workflow Execution Job

Monitor the Workflow Execution Job

You can monitor the status of the workflow execution job to confirm that it finishes successfully.
You can run the
/tdm/v1/jobs/{jobId}
API to view the status of a job.
  1. Enter the following cURL API request:
    curl -X GET "http://<host>:<port>/api/public/tdm/v1/jobs/3420" -H "accept: application/json" -H "authorization: Basic TmF0aXZlL0FkbWluaXN0cmF0b3I6QWRtaW5pc3RyYXRvcg=="
  2. Press Enter.
  3. Review the response.
    The following code is the response that the sample request returns:
    {"id":3420,"name":"Execute Workflow","description":"Plan: Plan_mask_test, Workflow: ", "status":"Succeeded","start_date":1561633289541,"end_date":1561633333497, "job_type":"Execute Workflow", "created_by_name":"Administrator","creation_date":1561633222055,"creation_date_str":"06/27/2019 04:30:22 PM", "last_updated_date":1561633222055,"last_updated_date_str":"06/27/2019 04:30:22 PM", "last_updated_by_name":"Administrator","schedule_on":0,"paused_at_step":0,"percent_complete":100, "job_action_type":null,"child_job_id":-1}
The response indicates that the workflow execution job succeeded. You can now update and include the cURL requests in a script to automate these tasks.

0 COMMENTS

We’d like to hear from you!