Retrieving Secure Boot
Request:
curl -k -u admin:password https://10.10.10.10/redfish/v1/Systems/FCH2005V1EN/SecureBoot
Response:
{
"SecureBootCurrentBoot":"Enabled",
"Id":"SecureBoot",
"Name":"SecureBoot",
"@odata.context":"/redfish/v1/$metadata#Systems/Members/$entity/SecureBoot",
"@odata.type":"#Cisco_SecureBoot",
"SecureBootEnable":false,
"@odata.id":"/redfish/v1/Systems/FCH2005V1EN/SecureBoot",
"Description":"UEFI SecureBoot configuration of this system"
}
Configuring Secure Boot
Request:
curl -XPATCH -k -u admin:password
https://10.10.10.10/redfish/v1/Systems/FCH2005V1EN/SecureBoot -d '
{"SecureBootEnable" : "true"}'
Response:
{
"SecureBootCurrentBoot":"Enabled",
"Id":"SecureBoot",
"SecureBootEnable":true,
"Name":"SecureBoot",
"Description":"UEFI SecureBoot configuration of this system"
}
Configuring Port and Protocol Enabled in Manager Network Protocol
Request:
curl -k -u admin:password -XPATCH
https://10.10.10.10/redfish/v1/Managers/CIMC/ManagerNetworkProtocol -d
'{"SSH":{"Port":"300","ProtocolEnabled":"Disabled"},
"SNMP":{"Port":"100","ProtocolEnabled":"Disabled"}}'
Response:
{
"FQDN":"C240-FCH2005V1ENN",
"SNMP":{
"ProtocolEnabled":false,
"Port":100
},
"Id":"ManagerNetworkProtocol",
"NTP":{
"ProtocolEnabled":true,
Cisco UCS C-Series Servers REST API Programmer's Guide
79
Cisco IMC REST API Examples
Examples of Server Tasks for 3.1(3)