C H A P T E R
2
Cisco IMC REST API Examples
This chapter includes the following sections:
•
Examples of Server Tasks, on page 5
•
Examples of Server Tasks for 3.1(3), on page 51
•
Examples of Server Tasks for 4.0(4), on page 84
Examples of Server Tasks
This chapter includes the following examples on how to use the REST API to perform common server tasks:
•
Establishing Session-based Authentication, on page 7
•
Retrieving Redfish Version without Authentication, on page 9
•
Retrieving Service Root without Authentication, on page 10
•
Retrieving Metadata without Authentication, on page 10
•
Retrieving 'odata' without Authentication, on page 13
•
Retrieving Chassis Details, on page 13
•
Retrieving Chassis Power Details, on page 14
•
Retrieving Chassis Thermal Details, on page 16
•
Retrieving Chassis Log Services Details, on page 17
•
Retrieving Chassis SEL Details, on page 17
•
Retrieving Chassis SEL Entries Details, on page 18
•
Retrieving Details of a Specific SEL Entry, on page 19
•
Retrieving Manager Details, on page 19
•
Retrieving Cisco IMC Information, on page 20
•
Retrieving Serial Interface Details, on page 20
•
Retrieving Network Protocol Details, on page 21
•
Retrieving Ethernet Interfaces Details, on page 22
Cisco UCS C-Series Servers REST API Programmer's Guide
5