Getting different machine list between REST API and UI

resolved
usability
known
(Peter) #1

Any advice on why I’m getting a different machine list when looking at
http:///app#/Spaces-1/infrastructure/machines?environmentIds=Environments-703&roles=
and
http:///api/environments/Environments-703/machines

The above shows machines for MY-ROLE. The below doesn’t show those machines.

(Peter) #2

Okay. I just found the issue. I’m new to Octopus REST API.

I needed to add ?Take= to get more than the default 20 machines. Also, I needed to pay attention to the TotalResults and the ItemsPerPage that were returned in the JSON.

THANK YOU !!!

(Daniel Fischer) #4

Hi Peter,

Thanks for the update here! If you have any further questions at all, or get stuck with anything, please don’t hesitate to let me know. :slight_smile:

Best regards,
Daniel