Call GET threaddata with your Pro2 log-in credentials to get a JSON report for all data on specific threads.

About this API

The GET thread data API is a REST API that, when called, queries a Pro2 replication database for all data for specific threads in a replication database. You specify the database host name and port in the URL of the call. To ensure security, you include the log-in credentials for your account in the query. The request returns a variety of data, such as thread status, logging level, disposition, and more.

Request

Direct the API call to the URL:

http://host_name:port/pro2/rest/Pro2/DPR?dMode=System/threaddata
Request format example as a curl command:
curl 
-X GET 
-u username:password 
-v http://host_name:port/pro2/rest/Pro2/DPR?dMode=System/threaddata

Response

The response returns a data-set report of all thread data in JSON format.

The following is an example response:
{
  "ProDataSet": {
    "THREADCTL": [
      {
        "ThreadID": 0,
        "Updtime": "2020-01-22T02:36:22.322",
        "ThreadStatus": "STOPPED",
        "LogLevel": "Moderate",
        "Disposition": "Delete Record",
        "RepControl": "Enabled",
        "ThreadType": "CDC",
        "ControlType": "",
        "isAdd": false,
        "isRunning": false
      },
      {
        "ThreadID": 0,
        "Updtime": "2020-01-29T05:02:54.958",
        "ThreadStatus": "STOPPED",
        "LogLevel": "Moderate",
        "Disposition": "Mark as Applied",
        "RepControl": "Enabled",
        "ThreadType": "JOB",
        "ControlType": "",
        "isAdd": false,
        "isRunning": false
      },
      {
        "ThreadID": 1,
        "Updtime": "2020-02-07T04:20:04.654",
        "ThreadStatus": "STOPPED",
        "LogLevel": "Minimum",
        "Disposition": "Mark as Applied",
        "RepControl": "Enabled",
        "ThreadType": "REPLICATION",
        "ControlType": "",
        "isAdd": false,
        "isRunning": false
      },
      {
        "ThreadID": 1,
        "Updtime": "2020-03-20T07:17:21.075",
        "ThreadStatus": "STOPPED",
        "LogLevel": "Moderate",
        "Disposition": "Delete Record",
        "RepControl": "Enabled",
        "ThreadType": "REPLICATION-AUDIT",
        "ControlType": "",
        "isAdd": false,
        "isRunning": false
      }
    ]
  }
}