HPE OneView
cancel
Showing results for 
Search instead for 
Did you mean: 

Getting server name via REST API (OneView)

 
StefanRS
Occasional Collector

Getting server name via REST API (OneView)

Hello,

How can I get server name via HPE OV REST API ?

I have tried https://hpeov_localplience//rest/server-hardware?start=0&count=1

But there are no references for server name only other stuff (CPU, MEM, interconect...)

I need this for blade and rackmount server ?

Thx

1 REPLY 1
StefanRS
Occasional Collector

Re: Getting server name via REST API (OneView)

Just to answer to myself serverName is missing in old versions of API I needed to pass {'x-api-version': '800'} in order to get server Name.