Add optional CI creation/deletion success indicators to web services calls

Add optional CI creation/deletion success indicators to web services calls

Add an option to display success indicators after each webservices call in order to verify whether  CIs/Relationships were created/deleted successfully without log access 

When the SM integration is active, the SM admin team can create/delete relationships in the CMDB via webservices. Naturally, SM users want to know if the operations they executed were successful, but they may lack access to SM integration logs for security reasons. The option to configure a success response from the webservices call would be helpful -- the form and format of such a response is at R&D's discretion.

Example create and delete events logged in the cmdb.soapapi.log on debug:
Creation:
2019-04-03 09:13:16,878  DEBUG  [qtp969818844-119851] (AbstractCmdbOpenApiUpdateCommand.java:124) - Model Update Add Or Update Data Command: The input data: com.hp.schemas.ucmdb.types.update.CIsAndRelationsUpdates@6a8b2b1e. The output data: DataContainer (total size=1):
Objects For Update(size=0)
Links For Update(size=1)
ID:$TempLink?,End1:ac3e3779891224a5f6c5339e28e80888,End2:4234a42ddb88f75a8f48baba14645da0,Type:usage@name=Production_Servers,
Referenced Objects(size=0)
Referenced Links(size=0)

Removal:
2019-04-03 09:17:30,964  DEBUG  [qtp969818844-119872] (AbstractCmdbOpenApiUpdateCommand.java:124) - Model Update Remove Data If Exist Command: The input data: com.hp.schemas.ucmdb.types.update.CIsAndRelationsUpdates@299ea7f4. The output data: DataContainer (total size=1):
Objects For Update(size=0)
Links For Update(size=1)
ID:$TempLink43c30357ff19c051971f3831d52c09e2,End1:ac3e3779891224a5f6c5339e28e80888,End2:4234a42ddb88f75a8f48baba14645da0,Type:usage@
Referenced Objects(size=0)
Referenced Links(size=0)

Tags (1)
2 Comments
Micro Focus Expert
Micro Focus Expert
Status changed to: Waiting for Votes

Thank you for sharing your idea! It’s open for comments and kudos, and we’re looking forward to input from the community. Once there is enough community traction, it will be further reviewed by the product team

Micro Focus Expert
Micro Focus Expert
Status changed to: Already Offered

We have been creating and updating the UCMDB REST API for some time now.  It is our recommendation that all API access into UCMDB be using the REST API.

In the case of this request, this capability already exists with the "Insert Topology" REST API, which allows for a very clear set of responses upon success or failure, as part of the REST API repose.  For instance, you can check the HTTP response to confirm it's 200 if successful, 400 (and others) if not.  Additonally, the response of this request will provide back the details as follows

{

     addedCis: list of [ucmdb_id]

     removedCis: list of [ucmdb_id],

     updatedCis: list of [ucmdb_id],

     ignoredCis: list of [ucmdb_id]

}

 

More details can be found here - https://docs.microfocus.com/UCMDB/11.0/ucmdb-docs/docs/eng/doc_lib/Content/REST_API/REST_API_Insert_Topology.htm

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.