Performing Secureerase On Drives; Retrieving Volumes - Cisco UCS C Series Programmer's Manual

Rest api
Hide thumbs Also See for UCS C Series:
Table of Contents

Advertisement

Examples of Server Tasks for 3.1(3)
}
},
"@odata.type":"#Cisco_Drives",
"@odata.id":"/redfish/v1/Systems/FCH1845V1X6/Storage/SLOT-HBA/Drives/PD-1",
"Links":{
"Volumes":[{
}],
"Volumes@odata.count":1,
"Chassis":"/redfish/v1/Chassis"
},
"BlockSizeBytes":512,
"Status":{
"State":"Enabled",
"Health":"OK"
},
"Protocol":"SAS",
"Name":"PD-1",
"EncryptionStatus":"Unecrypted",
"Revision":"0003",
"EncryptionAbility":"None",
"CapacityBytes":1000204140544,
"HotspareType":"None",
"Manufacturer":"SEAGATE",
"PredictedMediaLifeLeftPercent":"0",
"Model":"ST1000NM0023",
"FailurePredicted":"false"
}

Performing SecureErase on Drives

Request:
curl -XPOST -k -u admin:password
https://10.10.10.10/redfish/v1/Systems/FCH2005V1EN/Storage/SLOT-HBA/Drives/PD-8/Actions/Drive.SecureErase
-d'{}'
Response:
{
"error":{
"message":"Specified physical drive is not FDE capable",
"code":"InternalError"
}

Retrieving Volumes

Request:
curl -k -u admin:password
https://10.10.10.10/redfish/v1/Systems/FCH1845V1X6/Storage/SLOT-HBA/Volumes
Response:
{
"Members":[{
"@odata.id":"/redfish/v1/Systems/FCH1845V1X6/Storage/SLOT-HBA/Volumes/VD-0"
}],
Cisco UCS C-Series Servers REST API Programmer's Guide
68
"@odata.id":"/redfish/v1/Systems/FCH1845V1X6/Storage/SLOT-HBA/Volumes/VD-0"
Cisco IMC REST API Examples

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents