Tuesday, May 31, 2022

OIC - Export an Integration Using REST API | Rest API for Oracle Integration

Use Case: Here, we will see how to export an integration using Oracle provided REST APIs. We will export the integration and write to a FTP location.

Export Rest API:

Verb: GET

URI: /ic/api/integration/v1/integrations/{id}/archive

We can get all the Rest APIs in docs.oracle.com site under integrations section.

https://docs.oracle.com/en/cloud/paas/integration-cloud/rest-api/index.html


Steps(High Level):

  • Create 3 connections - Rest trigger , Rest OIC self connection and FTP connection.
  • Create an App driven orchestration and configure Rest trigger
  • Take REST OIC connection and configure Rest api call for Export. Choose response as binary and type as application/octet-stream.
  • Call FTP adapter , configure and map the export stream response to FTP location.

Steps with screenshots:

Create Rest OIC connection to call Export.





Create FTP connection 





Create Rest Trigger connection.





Create an app driven orchestration integration.



Configure  Rest Trigger
Request: Identifier and Version
Response: Status









Drag and drop Rest OIC connection and configure Export.






Map the Identifier and Version to Id

Id = Identifier%7CVersion



Call FTP connection and configure write operation with no Schema.





Map the Export Stream response to FTP write file reference.




Added the activities in a scope.


Save and add the tracking and activate

Test


We can see .iar file exported successfully.

No comments:

Post a Comment

Featured Post

11g to 12c OSB projects migration points

1. Export 11g OSB code and import in 12c Jdeveloper. Steps to import OSB project in Jdeveloper:   File⇾Import⇾Service Bus Resources⇾ Se...