Skip to main content

GET /warranty

Use this method to return or download the warranty information.

Authentication

Authentication with username and password is required.

Request URL

GET https://{management_server_IP}/warranty

Query parameters

ParametersRequired / OptionalDescription
formatType=csvOptionalReturns information in CSV format
outputFormat=v2OptionalReturns warranty information for all device, whether they are covered under a warranty or not. If a device is not under warranty, the warrant type is Not Available.
The following example returns warranty information for devices that are covered under a warranty.
GET https://192.0.2.0/warranty
The following example returns a CSV file that contains warranty information for devices that are covered under a warranty.
GET https://192.0.2.0/warranty?formatType=csv
The following example returns warranty information for devices, including devices that are not covered under a warranty.
GET https://192.0.2.0/warranty?outputFormat=v2

Request body

None

Response codes

CodeDescriptionComments
200OKThe request completed successfully.

Response body

Table 1. Default output format
AttributesTypeDescription
​childrenArray of objectsWarranty information of each component of this device
 ​childrenArray of objectsWarranty information for each component in this device, using the same attributes as the parent
 idStringComponent UUID
 deviceTypeStringComponent type. This can be one of the following values.
  • nodes

detailsURLString 
deviceName​StringDevice name
​deviceTypeStringDevice type. This can be one of the following values.
  • Chassis
  • Edge Server. ThinkSystem SE server
  • IBM Tape. IBM tape library
  • Lenovo ThinkServer
  • Lenovo Storage
  • Rackswitch
  • Rack-Tower Server. ThinkSystem SD, ThinkSystem SR, or ThinkSystem ST, System x, Converged, or NeXtScale server
​endDateStringWarranty end date
groupNameArray of stringsList of names of the resource groups to which the device belongs
groupUUIDArray of stringsList of UUIDs of the resource groups to which the device belongs
​idStringDevice UUID
machineModelStringMachine model
machineTypeStringMachine type
​serialNumberStringDevice serial-number
Note
For RackSwitch devices, this is the entitled serial number.
​startDateString​Warranty start date
​statusString​Warranty status. This can be one of the following values.
  • active

  • expired

  • NA. Not applicable

warrantyType​StringWarranty type. This can be one of the following values.
  • 3PL

  • 3XL

  • MS12

  • NA. Not applicable

The following example is returned if the request is successful when the default output format is returned.
[{
"children": [{
"children": [{
"children": [],
"detailsURL": "compDetails/ITE/B672DEFF0F6C11E4A603DD6AA23A728A",
"deviceName": "IMM2-40f2e990d8b1",
"deviceType": "ITE",
"endDate": "NA",
"groupName": ["Not Available"],
"groupUUID": [""],
"id": 32184,
"machineModel": "AC1",
"machineType": "9532",
"serialNumber": "DSYH03P",
"startDate": "NA",
"status": "NA",
"warrantyType": "NA"
}],
"deviceType": "nodes",
"id": "56"
}],
"deviceName": "MM5CF3FC25D733",
"deviceType": "Chassis",
"detailsURL": "compDetails/Chassis/3C8EEA1291FE4523985396B6266513FB",
"endDate": "NA",
"groupName": ["Not Available"],
"groupUUID": [""],
"id": 32183,
"machineModel": "HC1",
"machineType": "8721",
"serialNumber": "23DWN32",
"startDate": "NA",
"status": "NA",
"warrantyType": "NA"
}]
Table 2. V2 output format
AttributesTypeDescription
availableBoolean 
​childrenArray of objectsWarranty information of each component of this device

This object contains the same attributes as the top level attributes.

deviceName​StringDevice name
deviceURIStringDevice URI
expirationDateStringWarranty end date
groupsArray of stringsList of names of the resource groups to which the device belongs
groupsUUIDsArray of stringsList of UUIDs of the resource groups to which the device belongs
mtmStringDevice machine type model
productNameStringDevice product name
​serialNumberStringDevice serial-number
Note
For RackSwitch devices, this is the entitled serial number.
​startDateString​Warranty start date
​statusString​Warranty status. This can be one of the following values.
  • active

  • expired

  • NA. Not applicable

​uuidStringDevice UUID
warrantyNumberStringWarranty type. This can be one of the following values.
  • 3PL

  • 3XL

  • MS12

  • NA. Not applicable

The following example is returned if the request is successful when the default output format is returned.
{
"available": true,
"children": [{
"available": true,
"children": [],
"deviceName": "Flex x240 M5 #1",
"deviceURI": "/compDetails/ITE/22907D8F413811E7A840000E1E7D58F0",
"expirationDate": "2020-05-27",
"groups": [],
"groupsUUIDs": [],
"mtm": "9532/AC1",
"productName": "Lenovo Flex System x240 M5 Compute Node",
"serialNumber": "S40ET01",
"startDate": "2017-05-28",
"status": "Expired",
"uuid": "22907D8F413811E7A840000E1E7D58F0",
"warrantyNumber": "3XL"
}],
"deviceURI": "/chassisMap/2485D17451AD4590B236AD55DE77691B",
"expirationDate": "2020-05-20",
"groups": [],
"groupsUUIDs": [],
"deviceName": "Chassis.15",
"mtm": "8721/HC2",
"productName": "Lenovo Flex System Enterprise Chassis",
"serialNumber": "S40EFR1",
"startDate": "2017-05-21",
"status": "Expired",
"uuid": "2485D17451AD4590B236AD55DE77691B",
"warrantyNumber": "3XL"
}