Clarity Service Management

Expand all | Collapse all

Create CMDB relationship in CI using web service

  • 1.  Create CMDB relationship in CI using web service

    Posted 12-31-2014 06:12 AM

    As per our requirement, we need to create CMDB relationship in a CI. We need to create Application relationship and Cluster relationship inside CI using SOAP.

     

    We are able to create relationship between two CI, but no idea how to create relationship between CI and Application/Cluster handle.

     

    Can anybody please help, which method/API need to be use for creating CMDB relationship?



  • 2.  Re: Create CMDB relationship in CI using web service

    Posted 01-05-2015 12:29 AM

    Hi Reeki,

     

    Were you referring to Application/Cluster classes or trying to create relationship type? May be any screenshots would help. If it is only creating relationship between CIs, then  you can use createobject() method with the object type "bhmheir".

     

    Thanks,

    Naveen



  • 3.  Re: Create CMDB relationship in CI using web service

    Posted 01-05-2015 04:12 AM

    Thanks for your reply.

     

    We are trying to create relationship between CI and Application/Cluster object. For that we need to use 'hosts' and 'fails over' relations type. I don't have much idea about how to create or which method need to use it.



  • 4.  Re: Create CMDB relationship in CI using web service

    Posted 01-05-2015 04:21 AM

    reeki

     

    "Application/Cluster objects" should also be CIs in your CMDB in my opinion, and then creating the required relationships would be completely similar to other relationships that you originally stated that you were able to create without any difficulties. I.e. I would expect your challenges potentially being in the modeling of the application and/or cluster CI types. You may want to refer to https://support.ca.com/phpdocs/0/8165/8165_whitepaper_IT_Serv_Modeling_for_the_CA_CMDB_v6.pdf for ideas.

     

    Thanks,

    John Sorensen



  • 5.  Re: Create CMDB relationship in CI using web service

    Posted 01-05-2015 04:45 AM

    Thanks for your replay,

     

    We can create a cluster relationship from CMDB UI, but as per our requirement we need to use SOAP API and from that we have to create relationship between CI and cluster object.

    In API we are able to get CI handle object and Cluster object, but don't know how to create relationship using SOAP API method.

    Also we have tried to use CreateLrelRelationship method, but did not find out the lrelname parameter's value.

    I am looking for API to implement this feature.

     

     




  • 6.  Re: Create CMDB relationship in CI using web service

    Posted 01-05-2015 04:23 AM

    Reeki,

     

    Its better to create a relation type 'hosts' and 'fails over' manually and then use createobject method to create relationship type between the CIs.

     

    Thanks,

    Naveen



  • 7.  Re: Create CMDB relationship in CI using web service

    Posted 01-06-2015 01:20 AM

    Thanks for reply,

     

    I have look into createObject method, which contains some parameters that we need to pass as like - SID, ObjectType, attrVals, attributes, createObjectResult, newHandle etc.

     

    We have SID, CI object handle and Application object handle, What I need to pass as attrVals, attributes, createObjectResult, newHandle parameters?

     

    Thanks,

    --Reeki



  • 8.  Re: Create CMDB relationship in CI using web service

    Posted 01-06-2015 03:40 AM

    Reeki,

     

    I think you can leave blank values for attrVals, attributes, createObjectResult, newHandle parameters.

     

    Thanks,

    Naveen