Odata API doesn't return all expected results. It is limited to only 10 items

book

Article ID: 209602

calendar_today

Updated On:

Products

CA Network Flow Analysis (NetQos / NFA)

Issue/Introduction

Using NFA Odata API, we don't see all expected items returned by the API.  Only the first ten rows are returned.  Where can I get the rest of the results?

Cause

The Odata API is designed to only return the first 10 items.  A link is generated to the next ten.

Environment

Release : 10.0

Component : NQPRFC

Resolution

After returning the first 10 items, the Odata API provides a link at the end of the results.  This link provides the next ten items (and a new link if needed).

For example, here are the last three lines returned data from an interfaces 'get' request:

    ],
    "@odata.nextLink""http://localhost:8981/odata/api/interfaces?$skiptoken=10"
}