Establishing A Session - 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
"/redfish/v1/Chassis/1/Thermal#/Temperatures/RISER1_INLET_TMP",
},
{
"/redfish/v1/Chassis/1/Thermal#/Temperatures/RISER1_OUTLETTMP",
},
{
"/redfish/v1/Chassis/1/Thermal#/Temperatures/RISER2_OUTLETTMP",
}
"/redfish/v1/$metadata#Chassis/Members/$entity/Thermal"
}

Establishing a Session

Request:
curl -XPOST https://10.10.10.10/redfish/v1/SessionService/Sessions --header 'Content-Type:
application/json; charset=utf-8' '-d{"Username": "admin", "Password": "password123"}'
–insecure –v
> POST /redfish/v1/SessionService/Sessions https/1.1
> User-Agent: curl/7.19.7 (i386-redhat-linux-gnu) libcurl/7.19.7
NSS/3.14.0.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: 10.10.10.10
> Accept: */*
> Content-Type: application/json; charset=utf-8
> Content-Length: 46
>
Cisco UCS C-Series Servers REST API Programmer's Guide
48
"LowerThresholdFatal": "N/A",
"LowerThresholdCritical": "70.0",
"@odata.id":
"LowerThresholdNonCritical": "N/A",
"UpperThresholdCritical": "60.0",
"UpperThresholdFatal": "N/A"
"ReadingCelsius": "37.0",
"Status": {
"State": "Enabled",
"Health": "OK"
},
"Name": "RISER1_OUTLETTMP",
"UpperThresholdNonCritical": "N/A",
"MemberID": 18,
"LowerThresholdFatal": "N/A",
"LowerThresholdCritical": "70.0",
"@odata.id":
"LowerThresholdNonCritical": "N/A",
"UpperThresholdCritical": "60.0",
"UpperThresholdFatal": "N/A"
"ReadingCelsius": "33.0",
"Status": {
"State": "Enabled",
"Health": "OK"
},
"Name": "RISER2_OUTLETTMP",
"UpperThresholdNonCritical": "N/A",
"MemberID": 19,
"LowerThresholdFatal": "N/A",
"LowerThresholdCritical": "70.0",
"@odata.id":
"LowerThresholdNonCritical": "N/A",
"UpperThresholdCritical": "60.0",
"UpperThresholdFatal": "N/A"
],
"@odata.context":
Cisco IMC REST API Examples

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents