Table of Contents

Search

  1. Preface
  2. Introduction to Data Integration Hub
  3. PowerCenter Mappings and Workflows
  4. Data Engineering Integration and Streaming Mapping and Workflows
  5. Data Quality Mappings and Workflows
  6. Informatica Cloud Mappings and Tasks
  7. Data Integration Hub Workflows
  8. Data Integration Hub Transformations
  9. Operational Data Store Dashboard and Reports
  10. Forms Designer
  11. Data Integration Hub Publications and Subscriptions APIs
  12. Data Extraction APIs

Developer Guide

Developer Guide

Run Publication Subscription REST API Request

Run Publication Subscription REST API Request

Data Integration Hub
uses different REST URLs for running a publication and for running a subscription.
To run a publication, use the following REST URL:
http://<DIH_console_host_port>/dih-console/api/v1/publication/start
For example:
http://localhost:18080/dih-console/api/v1/publication/start
To run a subscription, use the following REST URL:
http://<DIH_console_host_port>/dih-console/api/v1/subscription/start
For example:
http://localhost:18080/dih-console/api/v1/subscription/start
The start subscription REST API does not support concurrent triggers of the same subscription. It is recommended that you trigger the subscription after a couple of seconds.
Request syntax for running a publication
To run a publication, use the following request syntax:
{ "publicationName": "<publicationName>", "parameters": [ {"name": "param1", "value": "value"}, {"name": "param2", "value": "value"} ], "paramFileContent": "<content of parameter file>", "runPreprocess": "<true/false>", "runDisabled": "<true/false>" }
The following list describes the elements of the request:
  • publicationName
    . Name of the publication to run.
  • parameters
    . Optional request parameters.
  • paramFileContent
    . Content of optional parameter file.
  • runPreprocess
    . Whether or not to run a publication pre-process before the publication runs.
  • runDisabled
    . Whether or not to run a publication that is in a Disabled status.
For example:
{ "publicationName": "daily_sales", "parameters": [ {"name": "SRC_SAP", "value": "sapbw.etl-tools.info"}, {"name": "TGT_ORA", "value": "oracle_sap_staging"} ], "paramFileContent": "[DWH_PROJECT.WF:wkf_daily_loading] \n $$platform=rh7", "runPreprocess": "false", "runDisabled": "true" }
Request syntax for running a subscription
To run a subscription, use the following request syntax:
{ "subscriptionName": "<subscriptionName>", "parameters": [ {"name": "param1", "value": "value"}, {"name": "param2", "value": "value"} ], "paramFileContent": "<content of parameter file>", "runDisabled": "<true/false>" }
The following list describes the elements of the request:
  • subscriptionName
    . Name of the subscription to run.
  • parameters
    . Optional request parameters.
  • paramFileContent
    . Content of optional parameter file.
  • runDisabled
    . Whether or not to run a subscription that is in a Disabled status.
For example:
{ "subscriptionName": "daily_report", "parameters": [ {"name": "SRC_ORA", "value": "oracle_sap_staging"}, {"name": "SuccessEmail", "value": "customer@informatica.com"} ], "paramFileContent": "[DWH_PROJECT.WF:wkf_daily_loading] \n $$platform=rh7", "runDisabled": "true" }

0 COMMENTS

We’d like to hear from you!