How do you sync a data source through REST?
search cancel

How do you sync a data source through REST?

book

Article ID: 14686

calendar_today

Updated On:

Products

CA Performance Management - Usage and Administration

Issue/Introduction

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

Environment

Any CAPM environment

Resolution

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@HOST</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