How do you sync a data source through REST?

Document ID : KB000014686
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

What is the procedure for syncing a data source through a REST client?

Environment:
Any CAPM environment
Answer:

First, put the following URL into a web browser to get the data source id's:

http://<capc>:8181/pc/center/webservice/datasources

 

This would be an example:

<dataSource>

<id>3</id>

<type>DATA_AGGREGATOR</type>

<name>Data Aggregator@radjo03-E5598</name>

<version>3.1.0.216</version>

<minVersion>1.0</minVersion>

<guid>5dedca8f05564fb4b26781dab8a691a8</guid>

 

Now, from a REST client do the following:

  1. Go to the Auth tab and log in as the admin user with "Basic" credentials
  2. Change the "HTTP Method" to "Put"
  3. Add the following URL into the local bar: http://<pc>:8181/pc/center/webservice/datasources/dataSourceId/3/false 
  4. Run the REST call

This will do an incremental sync of the Data Aggregator data source.  The id number will change based on the data source

Additional Information:

In the URL: http://<pc>:8181/pc/center/webservice/datasources/dataSourceId/3/false 

  • false = incremental sync
  • true = full sync