Skip to main content

POST /nodes/ssdRemainingLifeStatistics

Use this method to return remaining-life statistics for SSDs in all or specific managed servers.

Note
This REST API requires Lenovo XClarity Administrator v3.4.0 or later.

Authentication

Authentication with username and password is required.

Request URL

POST https://{management_server_IP}/nodes/ssdRemainingLifeStatistics

Query parameters

ParameterRequired / OptionalDescription
lowRemainingLifeBoundary={integer}OptionalLow remaining-life threshold, as a percentage

The default value is 10.

highRemainingLifeBoundary={integer}OptionalHigh remaining-life threshold, as a percentage

The default value is 50.

The following example returns statistics for SSDs with a low threshold of 10% and a high threshold of 50%.
POST https://192.0.2.0/nodes/ssdRemainingLifeStatistics
The following example returns statistics for SSDs with a low threshold of 15% and a high threshold of 85%.
POST https://192.0.2.0/nodes/ssdRemainingLifeStatistics
?lowRemainingLifeBoundary=15&highRemainingLifeBoundary=85

Request body

AttributesRequired / OptionalTypeDescription
uuidsOptionalArray of stringsReturns statistics for SSDs in one or more specific servers, specified by UUIDs separated by a comma

If not specified, statistics are returned for SSDs in all managed servers.

The following example returns remaining-life statistics for two managed servers.
{
"uuids": ["FBEF740B178F4EFAA846E7225EE256DC", "B1B549049DE811E00005000500050005"]
}

Response codes

CodeDescriptionComments
200OKThe request completed successfully.
400Bad RequestA query parameter or request attribute is missing or not valid, or the operation is not supported. A descriptive error message is returned in the response body.
500Internal Server ErrorAn internal error occurred. A descriptive error message is returned in the response body.

Response body

AttributesTypeDescription
highRemainingLifeIntegerNumber of SSDs for which the remaining life is greater than the highRemainingLifeBoundary
lowRemainingLifeIntegerNumber of SSDs for which the remaining life is less than or equal to the lowRemainingLifeBoundary
midRemainingLifeIntegerNumber of SSDs for which the remaining life is between the lowRemainingLifeBoundary and highRemainingLifeBoundary
unknownRemainingLifeIntegerNumber of SSDs for which the remaining life is unknown
Note
XCC cannot retrieve the SSD remaining life for onboard SATA drives.
The following example is returned if the request is successful.
{
"highRemainingLife": 180,
"lowRemainingLife": 1,
"midRemainingLife": 20,
"unknownRemainingLife": 0
}