Use the Cloud Integration Hub Run Publication Subscription REST API to run a specific publication or a specific subscription. You can run the publication or the subscription regardless of its mode. That is, you can run an enabled and disabled publication, and an enabled, paused, and disabled subscription.
Note: You can use the Run Publication Subscription REST API to publish data and subscribe to data with publications and subscriptions that trigger a Data Integration task or a file ingestion task.
The Run Publication Subscription API returns the response code of the action that you perform. If the publication or subscription runs successfully, the API returns the event ID of the publication or the subscription event that Cloud Integration Hub generates. You can run the Cloud Integration Hub Event Status API to query the status of the publication or subscription event.
Run Publication Subscription REST API Request
Cloud Integration Hub uses different REST URLs for running a publication and for running a subscription.
•<pod> is the name of the Informatica Intelligent Cloud Services point of delivery (PoD) where you access Cloud Integration Hub. For example: cih-pod1, or emw1-cih.
•<baseUrl> is the Informatica Intelligent Cloud Services URL. For example: dm-us.informaticacloud.com/.
•<pod> is the name of the Informatica Intelligent Cloud Services point of delivery (PoD) where you access Cloud Integration Hub. For example: cih-pod1, or emw1-cih.
•<baseUrl> is the Informatica Intelligent Cloud Services URL. For example: dm-us.informaticacloud.com/.
Tip: You can copy the values of <pod> and <baseUrl> from the Cloud Integration Hub URL after you access it from the My Services page of Informatica Intelligent Cloud Services.
Request syntax for running a subscription
To run a subscription, use the following request syntax:
Request headers
Include the following headers in the REST API request:
Run Publication Subscription REST API Action Response
When you use the Cloud Integration Hub Run Publication Subscription REST API to start the running of a publication or of a subscription, Cloud Integration Hub returns the response code of the action that you perform in the REST API response.
Running a publication or a subscription from the REST API returns one of the following response codes:
•SUCCESS. Cloud Integration Hub triggered the publication or the subscription successfully. The status message includes the event ID of the publication or the subscription event that Cloud Integration Hub generates.
•FAILED. Cloud Integration Hub could not trigger the publication or the subscription. The response provides the reason for the failure. For example, Cloud Integration Hub did not run the subscription because no publications are ready for consumption by the subscription.