This OIC Gen2 api lets you download -
- ICS Diagnostic Log
- ICS flow log
- Audit Log
- icsdiagnosticlog
- icsflowlog
- icsauditlog
Download the Diagnostic Log
- access.log
- oic_server1.log
- oic_server1.out
- oic_server1-nodemanager.log
This OIC Gen2 api lets you download -
The OIC REST api docs tell us how to use OAuth with REST API calls -
Let's try these out -
Pre-requisite is an integration application you set up in your identity domain -
This is a question I often get asked by customers - "Can I have a report of my integrations, listing their dependencies?"
e.g. Integration 1 invokes ATP and then another integration via local invoke.
Simple with the OIC APIs - let's start with a simple integration flow -
But let's use the 2nd api - the key is the id found here -
So, with this id, I invoke the 2nd api - Retrieve Integration -
/ic/api/integration/v1/integrations/AA_EF_ASYNC2|01.00.0000?integrationInstance=myOICInstance
Here we get more detail - note the connections structure - this lists the 2 connections explicitly used in the integration, namely the REST Trigger and the ATP invoke. But what about the local invoke? EF_ASYNC2 invokes EF_ASYNC3.
This info is in the endpoints section -
Here I see -
In OIC, COLLOCATED always refers to Local Invoke. Note the name attribute - I set this in the integration to LocalAsync3 - I edit the integration AA_EF_ASYNC2 and change the name to that of the integration being invoked -
My integration simply logs this data, naturally, I could, also write this to a file.
Above, my lookup.
Here are the Lookup REST APIs -
Retrieve is easy -
Per default, retrieve does not show me the row values e.g. USD, GBP etc.
I just need to add the following query parameter, in order to retrieve the contents -
Update - let's add a couple of new entries
EURO / 3 and CAD / 4
So what does my request look like?
Now let's check the Lookup in OIC -
As you can see, the original entries have been overwritten.
In this case, update means essentially replace..
So how can I have a scenario where I just want to augment the lookup list?
Simple enough with OIC - I create a REST connection in OIC -
I will essentially do what I did in Postman - with one exception -
Here is my completed integration -
The REST Trigger Request payload is as follows -
GetLookupData Invoke is configured as follows -
The Map to GetLookupData is as follows -
I set expand to "datarow"
UpdateLookupData Invoke is configured as follows -
Map to UpdateLookupData is configured as follows -
Here I need to merge the original entries from the initial GET with the new entries in the REST Request payload.
I begin by repeating the rows below -
I map the result of the GET to 1 of 2 rows -
I map the new values from the initial request to 2 of 2 rows -
Time to test - here are the current contents of the Lookup -
Here is my test payload -
Here is the result -
Welcome to this short series of posts for OIC beginners - OIC Provisioning and Configuration - enabling other OIC components, enabling OIC...