1/NetworkDeviceFunctions/eth0 -d'
{
"iSCSIBoot":{
"InitiatorName":"test-init-change",
"InitiatorIPAddress":"10.10.10.1",
"InitiatorNetmask":"255.255.2.5",
"PrimaryTargetIPAddress":"10.10.2.2",
"PrimaryTargetName":"test-primary-1-change"
}
}'
Editing iSCSI Boot Values
Request:
curl -XPATCH -k -u admin https://10.10.10.10/redfish/v1/Systems/WZP21330G5B/NetworkInterfaces/
1/NetworkDeviceFunctions/eth0 -d'{
"iSCSIBoot":{
"InitiatorName":"test-init-change",
"InitiatorIPAddress":"10.10.10.1",
"InitiatorNetmask":"255.255.2.5",
"PrimaryTargetIPAddress":"10.10.2.2",
"PrimaryTargetName":"test-primary-1-change",
"PrimaryLUN":20,
"InitiatorDefaultGateway":"10.10.10.12",
"PrimaryDNS":"192.168.1.1",
"SecondaryDNS":"192.168.1.2",
"SecondaryTargetName":"test-sec-change",
"SecondaryTargetIPAddress":"10.1.1.1",
"SecondaryLUN":30
}
}'
Editing iSCSI Boot Values – Authentication Mode
Request:
curl -XPATCH -k -u admin https://10.10.10.10/redfish/v1/Systems/WZP21330G5B/NetworkInterfaces/
1/NetworkDeviceFunctions/eth0 -d'{
"iSCSIBoot":{
"AuthenticationMethod":"CHAP",
"CHAPUsername":"test-CHAP",
"CHAPSecret":"testSecret"
}
}'
Request:
curl -XPATCH -k -u admin https://10.10.10.10/redfish/v1/Systems/WZP21330G5B/NetworkInterfaces/
1/NetworkDeviceFunctions/eth0 -d'
{
"iSCSIBoot":{
"AuthenticationMethod":"None"
}
Cisco UCS C-Series Servers REST API Programmer's Guide
126
Cisco IMC REST API Examples
Examples of Server Tasks for 4.0(4)