cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1765
Views
5
Helpful
2
Replies

How to get all SEL log via restful api(redfish)

kdy77k@gmail.com
Beginner
Beginner

HI all,

According to the example of official website

 curl -GET https://10.10.10.10/redfish/v1/Managers/CIMC/LogServices
/SEL/Entries\?\$skip=2\&\$top=2 -u admin:admin123 --insecure

The upper example code can get top two and skipping two records of sel log.

 

curl -GET https://10.10.10.10/redfish/v1/Chassis/1/LogServices/SEL/Erestfurestful api redfish SELl api redfish SELntries/ -k -u admin:Admin123

The example code can get the top 50 records of sel log by default.

 

My question is how to get all sel log with one http "get" request?

I also find two questions

1. In address "redfish/v1/Chassis/1/LogServices/SEL/Entries/" , I can't find total number of record of sel log and left number of record of sel log

2. In address "redfish/v1/Chassis/1/LogServices/SEL/Entries/" , I can't find the url link to next 50 record of sel log.

3. Does Cisco support parameter "expand"?  Refer to the DMTF specification.

 

$skipInteger indicating the number of Members in the Resource Collection to skip before retrieving the first resource.http://resourcecollection?$skip=5
$topInteger indicating the number of Members to include in the response. The minimum value for this parameter is 1. The default behavior is to return all Members.http://resourcecollection?$top=30
$expandInclude data from links in the resource inline within the current payload, depending on the value of the expand.http://resourcecollection?$expand=.($levels=1)
$selectInclude a subset of the properties of a resource based on the expression specified in the query parameters for this option.http://resourcecollection?$select=SystemType,Status
$filterInclude a subset of the members of a collection based on the expression specified in the query parameters for this option.http://resourcecollection?$filter=SystemType eq 'Physical'
1 Accepted Solution

Accepted Solutions

cohult
Cisco Employee
Cisco Employee

Hi,

You likely want to ask questions related to the DMTF Redfish RESTful API in the Cisco Unified Computing System (UCS) Discussions forum, not in this forum (the Cisco Network Services Orchestrator (NSO) Discussions forum), as NSO does not support the Redfish REST API northbound of NSO and there is no Network Element Driver for it southbound of NSO.

View solution in original post

2 Replies 2

cohult
Cisco Employee
Cisco Employee

Hi,

You likely want to ask questions related to the DMTF Redfish RESTful API in the Cisco Unified Computing System (UCS) Discussions forum, not in this forum (the Cisco Network Services Orchestrator (NSO) Discussions forum), as NSO does not support the Redfish REST API northbound of NSO and there is no Network Element Driver for it southbound of NSO.

Thank you, I have open a new question in Cisco UCS board.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the NSO Developer community:

Recognize Your Peers