Api - finding a machine by thumbprint

Hey,

I am trying to retrieve a machine’s information from the api by thumbprint, which the api template indicates is possible:

"Machines": "/api/machines{/id}{?skip,thumbprint,deploymentId,name,take,ids}",`

So if I make the following request, I expect one result:

https://<server>/api/machines?thumbprint=somevalidthumbprint

But instead I get results as if I had made a request without the thumbprint parameter specified.

Do you know if this is supposed to be a supported parameter, or if I am calling it wrong?

Octopus Version: 3.17.1

Thanks,
Andy

Hi Andy,

Thanks for getting in touch! It looks like we need to use machines/all?thumbprint for this to work, I’m checking with the team to see if this is a bug or something we need to explain better in the /api/ page.

So if you change your query to:

https://<server>/api/machines/all?thumbprint=somevalidthumbprint

It should return the requested targets.

Let me know how you go here or if you have any further questions/issues. :slight_smile:

Best regards,
Daniel

Hi Daniel,

The updated query works fine, thanks for it.

Hi Andy,

No worries! Feel free to get in touch at any time. :slight_smile:

Best regards,
Daniel