Atlassian Bamboo deployment project list API

Bamboo Datacenter API have one end point to get list of all deployment project.
curl --request GET \
–url ‘http://{baseurl}/rest/api/latest/deploy/project/all’ \
–header ‘Accept: application/json’
But this is not supporting any pagination, so is there any upper limit of project it can return?
What if there are thousands of deployment projects?

There’s no documented limit. The REST reference gives deploy/project/all no parameters at all, and it returns every deployment project the calling user can see in one array.

For thousands of projects, the dashboard endpoint is the paginated one. It takes start and limit, with limit capped at 500, and the response carries next and prev links.

GET /rest/api/latest/deploy/dashboard/paginate?start=0&limit=500

It isn’t new either. The old 8.0.2 reference already has it returning pages, though it only lists filter there, so on an older version check that start and limit are honoured.

Pagination for the all endpoint is requested in BAM-21452, which is still gathering interest. Its only report is a timeout on a very large list. That may have been a proxy. I haven’t run any of this against a Bamboo instance, so I can’t say where the single array starts to struggle.