Request to provide API or Command details to add the devices into CA-PC

Document ID : KB000103776
Last Modified Date : 02/07/2018
Show Technical Document Details
Introduction:
We are planning to automate the addition of devices into CAPC by hostname, is there any command or APIs available to add the devices into CAPC in the backend instead of using the GUI - > Discovery profile ? 
Background:
After installing CAPM, you will want to add devices to the database to be monitored.
Typically this is done in the Performance Center management gui. 
Environment:
CAPM 3.x
Instructions:
You can do this using REST.

Here is an example of the rest call you would make:
I included one sample hostname, please substitute relevant hostnames for your environment.
..
Method: POST
URL: http://YOUR_DA:8581/rest/tenant/1/discoveryprofiles/
Application/xml
Body:
 
<DiscoveryProfile version="1.0.0">
                <IcmpDiscoveryEnabled>true</IcmpDiscoveryEnabled>
                <HostNamesList>
                                <HostNames>target-hostname</HostNames>
                </HostNamesList>          
                <CreatePingables>false</CreatePingables>
                <UseListOfSnmpProfiles>false</UseListOfSnmpProfiles>
                <RunStatus>START</RunStatus>
                <IPDomainMember version="1.0.0">
                                <IPDomainID>2</IPDomainID>
                </IPDomainMember>
                <Item version="1.0.0">
                                <Name>Initial_Device_Population</Name>
                </Item>
</DiscoveryProfile>
 
 ..
 
 
 
Additional Information: