This documentation supports the 9.1.04 version and its patches of BMC Atrium Core. The documentation for version 9.1 to 9.1 Service Pack 3 and its patches is available here.

To view the latest version, select the version from the Product version menu.

How you can use REST API to integrate an external application

You can integrate a third-party application with BMC Atrium Core by using REST APIs. 

IntegratingCMDB

Benefits

Using REST API has the following benefits:

  • Improved integration process
  • Easier hybrid deployment
  • Platform independence

Scenario

Consider a scenario where BMC Atrium Discovery discovers data and pushes the data to CMDB. TrueSight Operation Management (TSOM) is responsible in monitoring the service. TSOM raises a query.


Workflow 

TaskActionCode example/ URLReference
1
  • TSOM subscribes to CMDB to fetch data for particular CIs.
  • Response to this request returns a subscription ID for TSOM.
To get the subscriber ID
http://servername:port/api/cmdb/v1.0/command

{   "command":
"SUBSCRIBE_FOR_NOTIFICATIONS", 
  "subscription" :{ 
  "subscriber_name": "Demo", 
  "instance_operations":
["CREATE", "UPDATE", "DELETE"], 
  "query_type":
"GRAPH_WALK", 
  "query": 
  {Query Details}
}
Subscribe for notification
2
  • TSOM uses the subscription ID (000000000000016)
    to request the changed CIs.
  • Response to this request returns a Transaction ID (000000000000018)


Request for changed CIs
{    "command" :
"REQUEST_CHANGED_CIS", 
    "subscriber_id":
"000000000000016"
}
Request for changed CI
3.
  • Now, TSOM can use the subscription ID (000000000000016) and the Transaction ID (000000000000018) in the URL to get the changed CIs.
  • Response to this request is a list of changed CIs.


http://servername:port/api/cmdb/v1.0/cisubscription
/changedcis/000000000000016/000000000000018?pageindex=1
Retrieve the changed CIs
Was this page helpful? Yes No Submitting... Thank you

Comments