Insight Remote Support
1819871 Members
2636 Online
109607 Solutions
New Discussion юеВ

Is there a Warranty API for HPE servers, switches and storage devices?

 
teetee2
Member

Is there a Warranty API for HPE servers, switches and storage devices?

Hello,

I am searching for an API to gather warranty and support entitlement information for HP devices. Many other vendors such as HP Inc or Dell have there kind of APIs where you provide the serial number and in return, you get the list of support entitlement entries for a specific device.

We are using your WEB page https://support.hpe.com/hpsc/wc/public/home in order to programmatically get the support entitlement information in a batch process. However, the web page creates a captcha if we query too many devices in a short period of time.

An API would be a much better approach to gather this data for our customers in batch mode.

Is there an API and if yes, how can we enroll for it?

13 REPLIES 13
toddg1
HPE Pro

Re: Is there a Warranty API for HPE servers, switches and storage devices?

Unfortunately, there is not an API for this - just the web validation page you referenced in your question.


I work for HPE
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
TheBenz
Senior Member

Re: Is there a Warranty API for HPE servers, switches and storage devices?

Hello,

My TS consulting person (Peter M.) reminded me that the Global Dashboard 1.5 has reports for Warranty information. 

Would that help?

OneView QuickSpecs:

What is New with HPE Global Dashboard 1.5

Increased security in the data center with FIPS support 
Improved access security with 2 Factor Authentication
Scheduled automated reports
New contract and warranty report
New report for easy tracking of HPE OneView licenses

Enterprise Architect
JayFromIT
Advisor

Re: Is there a Warranty API for HPE servers, switches and storage devices?

I made a script that uses powershell, chrome, and Selenium

I had to do something like this for all my servers, we didn't have infosight so I had to do this using GUI. yea... not going to happen for our 1k+ plus servers.

you need to install the PowerShell selenium module, please google how to install and use those modules.

https://www.powershellgallery.com/packages/Selenium/3.0.0-beta1

XXXXXXXXXXXX START OF CODE XXXXXXXXXXXX

$env:PATH += "C:\Program Files\WindowsPowerShell\Modules\Selenium\2.0.0\assemblies\"
Add-Type -Path "C:\Program Files\WindowsPowerShell\Modules\Selenium\2.0.0\assemblies\WebDriver.dll"
$ChromeDriver = New-Object OpenQA.Selenium.Chrome.ChromeDriver


HPe Warrenty lookup
$ChromeDriver.Navigate().GoToURL("https://support.hpe.com/hpsc/wc/public/home")
start-sleep -Seconds 5
$ChromeDriver.FindElementById("serialNumber0").SendKeys("$sn")
start-sleep -Seconds 1
$ChromeDriver.FindElementByName("submitButton").click()
start-sleep -Seconds 6
$warrantytext = ($ChromeDriver.FindElementByClassName("hpui-standard-table")).text
$warrantytemp = ($warrantytext -split("`n") | Select-String -Pattern "HPE HW Maintenance").ToString()
$warrantytemp1 = ((($warrantytemp -Split("Onsite Support "))[1]).Trim(" ")) -split(" ")
$warranty = $warrantytemp1[3] + " " + $warrantytemp1[4] + " " + $warrantytemp1[5]
$warranty

XXXXXXXXXXXX END OF CODE XXXXXXXXXXXX


#WARNING HPE website has some type a limit where if you request too much, it will recaptcha you so limit your request so I limit my code to 1 per 1 minute.

 

I am not a HPe Employee

Franquelin
Occasional Visitor

Re: Is there a Warranty API for HPE servers, switches and storage devices?

Hello 

Hpe add a new warranty check API : Overview (redoc.ly)

Overview

The Warranty Check API can use your productтАЩs serial number and optionally product number to check if it is under support along with the start and end dates.

Warranty Check API

GET: https://api-gw.support.hpe.com/apigwext/support/entitlement/v1/warrantyCheck/sn{/pn}

Field descriptions : 

  • sn Serial number for the device being evaluated.   Mandatory
  • pn Product number for the device being evaluated.   Optional

 

Return Codes : 

  • 200 API receives response Successful response.
  • 401 Unauthorized Client is unauthenticated. Client must authenticate itself first to get the requested response. See "Authentication" tab.
  • 404 Not Found The server cannot find the requested resource. This means the URL is not recognized. In an API, this can also mean that the endpoint is valid but the resource itself does not exist, for example the requested SN/PN combination is not available. Example: {"id": "210", "idClass": "DatanotFound", "message": "Product number was not found"}
  • 429 Too Many Requests Client has sent too many requests in a given amount of time. Requests are blocked by rate limiting policy. 
  • 500   Server is aware that it has encountered an error or is incapable of fulfilling the request. 

Note:

  • Warranties and contracts expired for over 12 months will not be listed.
  • The Warranty Check API will not provide support agreement information or Contract ID.
  • The subscription type of contracts will not be listed.
  • Currently only single product look up is supported with the API.

 

Suraj1
Occasional Visitor

Re: Is there a Warranty API for HPE servers, switches and storage devices?

Where can we get the clientid and secret required to create token

erjimenez
Visitor

Re: Is there a Warranty API for HPE servers, switches and storage devices?

Did you get a response for this?  I'm on the same boat.

toddg1
HPE Pro

Re: Is there a Warranty API for HPE servers, switches and storage devices?

a quick search on support.hpe.com for "warranty check" yields this document:

https://support.hpe.com/hpesc/public/docDisplay?docLocale=en_US&docId=cep-help_en_us&page=GUID-50EAA3CB-5951-4AF1-82F2-7003A28EB70C.html

Check this to see if it answers the question you have

I work for HPE
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
erjimenez
Visitor

Re: Is there a Warranty API for HPE servers, switches and storage devices?

Hi @toddg1 

Thanks for your reply. 

That link does not answer my question.  I'm trying to automate the warranty check using the warranty API (https://warranty-check.redoc.ly/developer-portal/), but I receive an unauthorized response.  I think the issue is that the client id and secret is separate from the credentials used to login to hpe.com. 

So my question is, where do I get the client id and secret?

Thanks!

toddg1
HPE Pro

Re: Is there a Warranty API for HPE servers, switches and storage devices?

There is not an automated way - only what I posted.

At least not at this time - but I don't know of any plans anytime soon for an API for users.

I work for HPE
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
erjimenez
Visitor

Re: Is there a Warranty API for HPE servers, switches and storage devices?

@toddg1 

I can automated on my end, I just need to know where to get the client id/secret so I start using the API.

Ledav
Visitor

Re: Is there a Warranty API for HPE servers, switches and storage devices?

Hello, request must be done on this page https://support.hpe.com/connect/s/wcapiregistration 

MladenV
Senior Member

Re: Is there a Warranty API for HPE servers, switches and storage devices?

Hi, 

it just redirects you to the support page:

We have received your request to be a pilot user of our Warranty Check API.

Please use HPE Support Center site support if you need help. https://support.hpe.com/connect/s/sitesupport

Ledav
Visitor

Re: Is there a Warranty API for HPE servers, switches and storage devices?

I think you have to wait for an approval on HPE side...