IICS API Version V2 Connector Guide > IICS API Version V2 Connector Processes > Configuring the Get Connection and List Connections services
  

Configuring the Get Connection and List Connections services

You can use the Get Connection service in a process to retrieve the connection details by providing the connection ID. You can use the List Connections service in a process to retrieve all the connections in the organization.
To use the Get Connection or List Connections service in a process, perform the following steps:
  1. 1Create an IICS API Version V2 connection to connect to Informatica Cloud.
  2. 2On the Explore page, navigate to the process for which you want to use the Get Connection or List Connections service.
  3. 3Add a Service step to configure the Login service to log in to Informatica Cloud.
  4. To configure the Login service, perform the following steps:
    1. aClick the Service tab and select Service Type as Connection.
    2. bIn the Connection field, select the IICS API Version V2 connection.
    3. cIn the Action field, select Authentication > Login.
  5. 4Add a Service step to configure the Get Connection or List Connections service.
  6. To configure the Get Connection or List Connections service, perform the following steps:
    1. aClick the Service tab and select Service Type as Connection.
    2. bIn the Connection field, select the IICS API Version V2 connection.
    3. cIn the Action field, select Connection > Get Connection or Connection > List Connections as required.
    4. dClick the Input Fields tab, and then select the values as ICS Server URL for the ICS Server URL field and ICS Session ID for the ICS Session ID field.
    Additionally, for the Get Connection service, enter the connection ID in the Connection ID field for which you want to retrieve the details as shown in the following image:
    This image shows the Connection ID field for which you want to retrieve the connection details.
    Note: You can get the connection ID by invoking a process that contains a List Connections service.
  7. 5In the Start step, create an output field for the get connection or list of connections as shown in the following image:
  8. This image shows the output field for the get connection.
    To create an output field, perform the following steps:
    1. aClick the Start step.
    2. bClick the Output Fields tab.
    3. cClick the Add icon.
    4. dEnter the output field name.
    5. eIn the Type column, select More types.
    6. The Edit Type dialog box appears.
    7. fFrom the Category list, select Connection defined Types.
    8. gFrom the Connection list, select the IICS API Version V2 connection.
    9. hSelect the connection output type from the Types section.
    10. Note: You can check the connection object ID in the Output Fields section of the Service tab.
    11. iSelect Allow a list of objects of this type for a list of connections.
    12. jClick OK.
    13. Based on the selected object, the field is set to the object type or a list of object types.
  9. 6Add an Assignment step and add the output field you created in step 5 with the type Formula, and select Connection or Connections from the Fields tab in the Expression Editor as required as shown in the following image:
  10. This image shows the output field configured in the Assignment step for Get Connection.
  11. 7Click Save and Publish.
  12. 8Copy the REST Service URL from the Properties Details page, open a browser and paste the service URL.
  13. The service returns connection details or a list of connection details as a response.