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

Change Publication Subscription Mode REST API

Change Publication Subscription Mode REST API

Use the
Data Integration Hub
Change Publication Subscription Mode REST API to change the mode of a publication or a subscription, that is, to enable a disabled publication or subscription or to disable an enabled publication or subscription.
To change the mode of a publication, use the following REST URL:
http://<DIH_console_host_port>/dih-console/api/v1/publication/changemode
For example:
http://localhost:18080/dih-console/api/v1/publication/changemode
To change the mode of a subscription, use the following REST URL:
http://<DIH_console_host_port>/dih-console/api/v1/subscription/changemode
For example:
http://localhost:18080/dih-console/api/v1/subscription/changemode
Request syntax for changing the mode of a publication
To change the mode of a publication, use the following request syntax:
{ "publicationName": "<publicationName>", "mode": "<enable/disable>" }
For example:
{ "publicationName": "daily_sales", "mode": "enable" }
Request syntax for changing the mode of a subscription
To change the mode of a subscription, use the following request syntax:
{ "subscriptionName": "<subscriptionName>", "mode": "<enable/paused/disable>" }
For example:
{ "subscriptionName": "daily_reports", "mode": "disable" }

Sample File

The
<DIH_InstallationDir>\samples\rest_api_samples
folder contains a sample client application and a readme file that describes the application.

0 COMMENTS

We’d like to hear from you!