Highlighted
Super Contributor.
Super Contributor.
936 views

Using RESTful service commands to delete completed downtime entries.

Jump to solution

Hi

Has anyone been able to delete completed downtimes from BSM?

I have tried to use the HTTP REST method shown in the manual but I cannot get the correct syntyax to make it work.

If I use:

http://<HPBSMserver>/topaz/bsmservices/customers/[customerId]/downtimes/[downtimeId]

 

with DELETE at the start, IE automatically adds an HTTP before the delete and any ttempt to prevent this has failed.

I am runnign BSM 9.02 and I have been runnign this command on the GW server (2008)

 

Am I doing something very wrong?

 

Thanks
Adam

Labels (1)
0 Likes
1 Solution

Accepted Solutions
Highlighted
Super Contributor.
Super Contributor.

Thats great thank you.

The JMX bean worked perfectly.

 

Thank you Dmitry.

View solution in original post

0 Likes
4 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

Yes, you are doing wrong things. You cannot run HTTP DELETE from within IE by using the URL. You have to use a special tool that allows running HTTP DELETE, e.g. curl or a special plugin in Firefox.

 

An alternative way to achieve what you want is to use JMX console on BSM server - http://<bsm_server>:8080/jmx-console. 

There, under Topaz, go to service=DowntimeManager
And you can Invoke the function java.lang.String deleteDowntimeByID()

 

In order to find out ID of a specific downtine you want to delete you can type the following URL in IE:

http://<HPBSM server>/topaz/bsmservices/customers/1/downtimes

0 Likes
Highlighted
Super Contributor.
Super Contributor.

Thats great thank you.

The JMX bean worked perfectly.

 

Thank you Dmitry.

View solution in original post

0 Likes
Highlighted
Frequent Contributor.
Frequent Contributor.

Hi Dmitry,

 

In our env, we are using three gateway.

Could you please confirm, in each gateway i will perform this procedure or any of the one is sufficient?

 

Thanks,

Ansuman

0 Likes
Highlighted
Super Contributor.
Super Contributor.

ANy 1 of the 3 will be fine as the data is held centrally

0 Likes
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.