Tenants.Get API don't return link Page.Next

API method returns only these links

"Links": {
    "Self": "/api/Spaces-1/tenants?skip=0&take=30",
    "Template": "/api/Spaces-1/tenants{?skip,projectId,ids,take,partialName,clonedFromTenantId}",
    "Page.All": "/api/Spaces-1/tenants?skip=0&take=2147483647",
    "Page.Current": "/api/Spaces-1/tenants?skip=0&take=30",
    "Page.Last": "/api/Spaces-1/tenants?skip=0&take=30"
  }

There is no Page.Next link, because of this, pagination in the dotnet client does not work
Version: 2023.1.9767

Hi @zdravulin

Thanks for bringing this to our attention. Could you let me know what API endpoint you are calling to get these links? I assume it’s calling “tenants”, but I’d like to be sure when I perform some tests and let our engineers know.

Thanks!
Kind Regards
Sean

Hi Sean,
I’m sending get request /api/tenants. Server returns list of tenants with links for navigation.

Hi @zdravulin

Thanks for clarifying. I did do testing around that, but wanted to make sure. I’ll put this to our engineers and see if we can get this rectified. I’m not sure when this will be fixed since it needs to be triaged, but when I get a public GitHub issue I’ll link this to you.

Kind Regards
Sean

1 Like

Hi @zdravulin

We’ve re-created as I mentioned before and we’ve put in a public issue today. You can follow it here: Page.Next hypermedia link missing in some results · Issue #8112 · OctopusDeploy/Issues · GitHub. Our engineering suggested that using the /tenants/all might be a workaround to help get the full list, but it would be dependant on the amount of tenants you have in your instance.

Kind Regards
Sean

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.