Retrieving Secure Boot; Configuring Secure Boot; Configuring Port And Protocol Enabled In Manager Network Protocol - Cisco UCS C Series Programmer's Manual

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

Advertisement

Cisco IMC REST API Examples

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
Examples of Server Tasks for 3.1(3)
79

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents