Retrieve warranty data for all servers.
offset | integer >= 0 Default: 0 Zero-based resource offset to start the response from Example: offset=10 | ||||||||
limit | integer [ 0 .. 100 ] The maximum number of records to return. Example: limit=10 | ||||||||
filter | string Limit the resources operated on by an endpoint or when used with a multiple-GET endpoint, return only the subset of resources that match the filter. The filter grammar is a subset of OData 4.0. NOTE: The filter query parameter must use URL encoding.
Most clients do this automatically with inputs provided to them specifically as query parameters. Encoding must be done manually for any query parameters provided as part of the URL.
Warranty information can be filtered by:
The following examples are not an exhaustive list of all possible filtering options. Return server warranty information for the servers where a property equals a value.
<property> eq <value>
filter=supportState eq 'ACTIVE'Return server warranty information for the servers where a property is less than or equal to a value.
<property> lt <value>
filter=supportStartDate le 2024-07-01Return server warranty information for the servers where a property is greater than or equal to a value.
<property> gt <value>
filter=supportEndDate ge 2024-01-01Return server warranty information for the servers where a property is less than or equal to a value.
<property> lte <value>
filter=supportStartDate le 2024-07-01Return server warranty information for the servers where a property is greater than or equal to a value.
<property> gte <value>
filter=supportEndDate ge 2024-01-01Return server warranty information for the servers where property mathces multiple conditions.
<property> eq <value> and <property> le <value>
filter=supportState eq 'ACTIVE' and supportStartDate le 2024-07-01 |
OK
Bad request
Unauthorized
Forbidden
Not acceptable
Internal server error
{- "offset": 0,
- "count": 1,
- "total": 12,
- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "compute-ops-mgmt/server/warranty",
- "generation": 1,
- "deviceId": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "supportState": "ACTIVE",
- "supportLevel": "Warranty",
- "contractLevel": "HPE Warranty",
- "supportStartDate": "2019-08-24T14:15:22Z",
- "supportEndDate": "2019-08-24T14:15:22Z"
}
]
}