Performing Setencryptionkey Action On Storage Controller; Retrieving Flexflash Storage Information - 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)
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":{
"SecurityKey@Redfish.AllowableValues":["Security Key"],
"Target":"/redfish/v1/Systems/FCH2005V1EN/Storage/FlexFlash-0/Actions/Storage.SetEncryptionKey",
"SecurityKeyId@Redfish.AllowableValues":["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

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the UCS C Series and is the answer not in the manual?

Table of Contents