Agent Management API pagination
GET
requests that return multiple entities support pagination with the offset
and limit
parameters.
- offset
-
The page number. Pages start at 0; you can get the number of entities matching your request with the
count
command to calculate the number of pages. - limit
-
The number of entities to return.
For example, the following request retrieves the first 10 agents.
Replace example.com
with your NXLog Platform domain, {ORG_ID}
with your organization ID, and {TOKEN}
with your Personal Access Token.
$ curl --request GET \
--url "https://agents.example.com/api/{ORG_ID}/api/v1/agents/*/?offset=0&limit=10" \
--header "Authorization: Bearer {TOKEN}"
An empty array signals that there are no more matching entities.