REST API - Get Entry Based on Attribute

Implemented

REST API - Get Entry Based on Attribute

0 vote

avatar

Hi Devo team,

I'm excited about the new REST API in Devolutions Server, but right now it seems you can only specify a specific Vault ID and Entry ID to return entries (/api/v1/vault/{vaultId}/entry/{id}). I'd love to have an endpoint where I can specify a Vault ID and an attribute value to return an entry. For example:

  • Vault ID + Entry Name
  • Vault ID + Username


I have a use case for this currently and this would be super helpful.

All Comments (5)

avatar

Hello,

Thank you for your feature request. I think it is something that could be done. Since you could have many entries with same name (in different folders), we could probably return an array of all entries ID. Would it make sense for you ? And for the case where you would like to use Vault ID + Username, you mean the username of a credential for example ? Here, we could get many entries as well so we could return an array of all entries with that username. Let us know if it would make sense for you.

Best regards,

François Dubois

avatar

Hi François!

I think the most useful would be Vault + Name returning an array of matches, or even Vault + Folder + Name returning an array of matches. The more I think about it, Vault + credential username might not be too useful.

Having the flexibility to return an array of matches on arbitrary fields may be useful, but even getting Vault + Name and/or Vault + Folder + Name would be a great start!

avatar

Hello,

Thank you for your quick reply. I'm creating a ticket in our board. We will post back here once we have an update.

Best regards,

François Dubois

avatar

Hi François!

I realize that you probably don't have any update, but is this feature being planned?

avatar

Hello,

I'm sorry, that thread has been forgotten and I didn't post back here. We improved that in our last 2024.2 release. You will find that endpoint



Where you have a query param "name" for the entry name and a query param "username" to filter on the entry username.

Please let me know if it works for you.

Best regards,

François Dubois

a7d4cafd-4e70-4605-9c0d-3fc140696063.png