06-06-2021 10:57 PM
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.
$skip | Integer indicating the number of Members in the Resource Collection to skip before retrieving the first resource. | http://resourcecollection?$skip=5 |
$top | Integer 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 |
$expand | Include data from links in the resource inline within the current payload, depending on the value of the expand. | http://resourcecollection?$expand=.($levels=1) |
$select | Include 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 |
$filter | Include 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' |
Solved! Go to Solution.
06-07-2021 02:01 AM - edited 06-07-2021 02:01 AM
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.
06-07-2021 02:01 AM - edited 06-07-2021 02:01 AM
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.
06-07-2021 02:52 AM
Thank you, I have open a new question in Cisco UCS board.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide