< https/1.1 200 OK
< Server: Monkey
< Date: Wed, 24 Aug 2016 06:12:36 GMT
< Transfer-Encoding: Chunked
< X-Auth-Token:
a81a53a75544d448d7544775d355840d
< Status: 201
< Content-Type: application/json
< Content-Length:143
<
{
"@odata.id":"/redfish/v1/SessionService/Sessions/117",
"Description":"Session of user: admin",
"Name":"User Session #117",
"Id":117
}
Accessing the Session Details
Request:
curl -GET https://10.10.10.10/redfish/v1/SessionService/Sessions --header 'Authorization:
OAuth
a81a53a75544d448d7544775d355840d' –insecure
{
"Members":[{
"@odata.id":"/redfish/v1/SessionService/Sessions/117"
},{
"@odata.id":"/redfish/v1/SessionService/Sessions/116"
},{
"@odata.id":"/redfish/v1/SessionService/Sessions/115"
},{
"@odata.id":"/redfish/v1/SessionService/Sessions/114"
}],
"@odata.type":"#SessionCollection.1.0.0.SessionCollection",
"@odata.id":"/redfish/v1/SessionService/Sessions",
"Name":"Session Collection",
"[email protected]":4,
"@odata.context":"/redfish/v1/$metadata#SessionService/Sessions"
}
Accessing Details of a Particular Session
Request:
curl -GET https://10.10.10.10/redfish/v1/SessionService/Sessions/117 --header 'Authorization:
OAuth
a81a53a75544d448d7544775d355840d' --insecure
{
"Id":"117",
"Name":"User Session #117",
"@odata.context":"/redfish/v1/$metadata#SessionService/Sessions/Member
s/$entity",
"Oem":{
"SessionType":"redfish",
"RemoteIP":"10.10.10.10"
},
"@odata.type":"#Session.1.0.0",
"UserName":"admin",
"@odata.id":"/redfish/v1/SessionService/Sessions/117",
"Description":"redfish session for user admin"
Cisco UCS C-Series Servers REST API Programmer's Guide
49
Cisco IMC REST API Examples
Examples of Server Tasks