Insight Remote Support
1825706 Members
3241 Online
109686 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/connect/s/warrantycheck 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?

Moderator[Updated the link, you also visit https://support.hpe.com/connect/s/  to find the latest info ]

22 REPLIES 22
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/connect/s/warrantycheck")
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

Moderator[ Updated the link. You may also visit https://support.hpe.com/connect/s/  to find the latest info ]

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}Moderator [above link is no longer valid]

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!

Moderator [above link is no longer valid, please visit https://support.hpe.com/connect/s/  to find the latest info ]

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  

Moderator [above link is no longer valid, please visit https://support.hpe.com/connect/s/  to find the latest info ]

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

AlexMilotin
Advisor

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

I would assume that you didn't pursue this any longer, right ?

MladenV
Senior Member

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

I just got no response, it would stil be useful.
AlexMilotin
Advisor

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

Whould this be helpful ?

Authentication
Our API endpoint is secured. You must first obtain a security JSON web token by calling our Identity service. Token 
generated will be valid for one hour.
Identity service CURL example:
curl -L -X POST 'https://api-gw.support.hpe.com/apigwext/services/oauth/token' -H 'Authorization: Basic 
base64_encoded_credentials' -F 'grant_type="client_credentials"'
Response from Identity service
{
 "access_token": "access_token_value",
 "token_type": "access_token_type",
 "expires_in": expiration_value,
 "scope": "read write",
 "cc_id": "client_id",
 "ga_id": "group_account_id",
 "sc_id": "security_context_id",
 "domain": "domain_name",
 "zip_authorities": "some_zip_authorities",
 "jti": "jti"
}
Fields
access_token: Holds JWT to use with Warranty Check API call
token_type: Type of generated token
expires_in: Token is valid for 1 hour from when it was generated, this field shows in what time it will expire

-------------------------------------------------------------------------------------------------------------------------------
Call Warranty Check API
CURL Example:
curl -L -X GET ' https://apigw.support.hpe.com/apigwext/support/entitlement/v1/warrantyCheck/serial_number/product_number
 -H 'Authorization: access_token_type access_token_value'
Response Examples:One product, multiple support levels:
{
"entitlementBySnPnInstanceHSLList": [
{
"log_tracking_id": "Yv5DwXoAbcrJPrmscp@w1wAAAAE",
"serialNumber": "MXQ1340CFM",
"productNumber": "867959-B21",
"countryCode": "US",
"supportLevels": [
{
"serviceLevel": "Tech Care",
"serviceLevelRank": 2,
"contractLevel": "HPE Pointnext Tech Care",
"contractLevelRank": 1,
"startDate": "2022-01-16",
"endDate": "2025-01-15"
},
{
"serviceLevel": "Warranty",
"serviceLevelRank": 6,
"contractLevel": "Warranty",
"contractLevelRank": 1,
"startDate": "2022-01-13",
"endDate": "2025-02-11"
}
],
"currentHighestSupportLevel": {
"serviceLevel": "Tech Care",
"contractLevel": "HPE Pointnext Tech Care"
}
}
]
}

----------------------------------

Sometimes multiple products share the same serial number. If the product number is not provided, you might get 
responses for multiple products. 
Sample:
{
 "entitlementBySnPnInstanceHSLList": [
 {
"log_tracking_id": "Yv5P@uGzoTxms1JSIjsUQgAAAAk",
 "serialNumber": "CZJ637799T",
 "productNumber": "382197-421",
 "countryCode": "US",
 "supportLevels": [
 {
 "serviceLevel": "Warranty",
 "serviceLevelRank": 6,
 "contractLevel": "Warranty",
 "contractLevelRank": 1,
 "startDate": "2022-01-25",
 "endDate": "2025-01-24"
 }
 ],
 "currentHighestSupportLevel": {
 "serviceLevel": "Warranty",
 "contractLevel": "Warranty"
 }
 },
 {
 "log_tracking_id": "Yv5P@uGzoTxms1JSIjsUQgAAAAk",
 "serialNumber": "CZJ637799T",
 "productNumber": "815097-B21",
 "countryCode": "US",
 "supportLevels": [
 {
 "serviceLevel": "Warranty",
 "serviceLevelRank": 6,
 "contractLevel": "Warranty",
 "contractLevelRank": 1,
 "startDate": "2022-01-25",
 "endDate": "2025-01-24"
 }
 ],
 "currentHighestSupportLevel": {
 "serviceLevel": "Warranty",
 "contractLevel": "Warranty"
 }
 }
 ]
}
Sample of the non-active support level:
{
 "entitlementBySnPnInstanceHSLList": [
 {
 "log_tracking_id": "Yv5RiSNl88ZPaMHletb7dgAAAAQ",
 "serialNumber": "BL273738UJ",
 "productNumber": "668357
 "supportLevels": [],
 "currentHighestSupportLevel": {
 "serviceLevel": "NOSUPPORT",
 "contractLevel": "NOSUPPORT"
 }
 }
 ]
}

 

MladenV
Senior Member

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

Hi,

Yes, would be great, but how do i obtain token?
dstj
Senior Member

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

Indeed, how do we get credentials to access this API?

Last I checked with HPE (Feb, 2025), their response was that "the situation has not changed", the situation was (from May 2024):
 

The situation remains unchanged, we have no new information from the Warranty Check Product Management team. They are continuing to work through the analysis and development of their API to meet the requirements of general release availability.

The pilot is limited to a small set of HPE Customers.

This has been going on for a couple of years now, bringing me to conclude that HPE simply doesn't care about it.
AlexMilotin
Advisor

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

Based on a quick look it seems that this gateway access is to GreenLake cloud API.

How to use an API access token for HPE GreenLake for Compute Ops Management | HPE Developer Portal

It might as well be a general way and it's not only related to GreenLake, but for Aruba and other services as well.

I have a case opened to HPE, let's see what their answer is.

 

MladenV
Senior Member

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

Hi,

That would be great if it isn't limited to only devices you have in Greenlake Workspace.
I will try it later as I have Greenlake API, but haven't tried for equipment that is not listed under workspace.

Best regards,
Mladen
AlexMilotin
Advisor

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

If you find where to generate the secret  

I don't seem to have the API options in there other then Personal API Clients, and i have to select one of the 

 

image.pngimage.png

 

AlexMilotin
Advisor

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

Nevermind, i just got the answer from HPE

"For the customer, bulk warranty check access is currently unavailable as the feature is still under development and has not been onboarded yet.

In case of any clarifications, please do contact us and we will be glad to assist you."