curl -XPOST -k -u admin:password
https://10.10.10.10/redfish/v1/Systems/FCH2005V1EN/Storage/SLOT-HBA/Volumes/VD-0/Actions/
Volume.Initialize -d'{}'
Performing SetEncryptionKey Action on Storage Controller
Request:
curl -XPOST -k -u admin:password
https://10.10.10.10/redfish/v1/Systems/FCH2005V1EN/Storage/SLOT-HBA/Actions/Storage.SetEncryptionKey
-d'
{"SecurityKeyId":"abcd", "SecurityKey":"12345"}'
Retrieving FlexFlash Storage Information
Request:
curl -k -u admin:password
https://10.10.10.10/redfish/v1/Systems/FCH2005V1EN/Storage/FlexFlash-0
Response:
{
"Drives":[{
"@odata.id":"/redfish/v1/Systems/FCH2005V1EN/Storage/FlexFlash-0/Drives/SLOT-1"
},{
"@odata.id":"/redfish/v1/Systems/FCH2005V1EN/Storage/FlexFlash-0/Drives/SLOT-2"
}],
"Links":{
"Enclosures":["/redfish/v1/Chassis/1"]
},
"@odata.type":"#Cisco_Storage",
"@odata.id":"/redfish/v1/Systems/FCH2005V1EN/Storage/FlexFlash-0",
"Volumes":[],
"StorageControllers":{
"SupportedControllerProtocols":"USB",
"MemberId":"FlexFlash",
"Status":{
"State":"Disabled",
"Health":"OK",
"HealthRollup":"OK"
},
"Name":"Cisco FlexFlash",
"FirmwareVersion":"1.3.2 build 169",
"Model":"Cisco FlexFlash",
"Manufacturer":"Cypress"
},
"Actions":{
"#Storage.SetEncryptionKey":{
"[email protected]":["Security Key"],
"Target":"/redfish/v1/Systems/FCH2005V1EN/Storage/FlexFlash-0/Actions/Storage.SetEncryptionKey",
"[email protected]":["Security Key Identifier"]
}
},
"@odata.context":"/redfish/v1/$metadata#Systems/Members/$entity/Storage/Members/$entity"
}
Cisco UCS C-Series Servers REST API Programmer's Guide
70
Cisco IMC REST API Examples
Examples of Server Tasks for 3.1(3)