StoreOnce Backup Storage

storeonce rest api

 
arie_5
Occasional Advisor

storeonce rest api

Hi,

i am trying to get the list of failed hardware parts of storeonce using REST api.

i have find that currently there are 2 versions:  version 3 and version 4.

each one of them have cmpleatly diferent api.

version 3 - "fusion/chassis/*all*/serverhardware/*all*?view=info&media=json&notitle=true"

version 4 - "hwmonitor/storage?listDetailed=true"

is there a common request to identify the version of the store once?

or even better a comon way to get the failed part on both versions?

5 REPLIES 5
gustenar
HPE Pro

Re: storeonce rest api

Hello @arie_5,

 

Version 3 API is based on a OS set of codes for Generation 3 products while version 4 API is based on the OS set of codes for Generation 4 products and there is no common API command set between them.

I am an HPE employee
Accept or Kudo
gustenar
HPE Pro

Re: storeonce rest api

Hello @arie_5,

 

Let us know if you have further questions regarding this topic. 

Thanks

I am an HPE employee
Accept or Kudo
gustenar
HPE Pro

Re: storeonce rest api

Hello @arie_5,

Do you have further questions regarding this topic? Let us know if we can assist. 

I am an HPE employee
Accept or Kudo
arie_5
Occasional Advisor

Re: storeonce rest api

hi all,

thanks for the replay.

i was expected to get more "action" instaraction.

what i have done: is get to "https://ip/" . if the responce contain "ibrix" its V3, othere wize its V4.

for each i have put the respective command : V3 - "fusion/chassis/*all*/...." , V4 - "/hwmonitor/servers....".

for parsing the output i hve used '{"name":"drive"' to get the failed disk on V4. '"type": "drive"' for V3.

parsing the failed power - the word "powerSupply" was searched.

 

is there a document that could have saved me the week of testing? - for other new futures i will nead.

thanks. Arie

gustenar
HPE Pro

Re: storeonce rest api

@arie_5,

 

There is a manual for version 3 and 4. I'm including links:

 

HPE StoreOnce REST API and SDK version 3.18.x User Guide

https://support.hpe.com/hpesc/public/docDisplay?docId=c04608993

 

For version 4 use:

https://hewlettpackard.github.io/storeonce-rest/index.html

 

Hope this helps. 

I am an HPE employee
Accept or Kudo