Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get the project ID based on the name #2594

Open
russellseymour opened this issue Oct 16, 2024 · 3 comments · May be fixed by #2714
Open

Get the project ID based on the name #2594

russellseymour opened this issue Oct 16, 2024 · 3 comments · May be fixed by #2714
Labels
good first issue Good for newcomers

Comments

@russellseymour
Copy link

Feature description

When working with the API, it requires the ID of the project to work with.

This is a GUID so is not easy to remember. So this request to add an endpoint that returns the ID of a valid project based on the name.

Why would it be useful?

When wokring with the API, people will remember the name of the project over the ID. I am looking to build an automated system that interacts with Infisical and I need to be able to allow the project name to be specified, however I then need to translate this into the project id,

Additional context

The only way I can see to get the ID at the moment is to look at the UI and see the ID in the URL. This means people have to log into the UI to get the ID before they can run the automated process using the API

@akhilmhdh
Copy link
Member

Agreed. This what we are also planning to do. All endpoints will move to id based and then there will slug to id converter endpoints.

For now you can use project list api to filter out and find the id but the endpoint for project will be published soon

@akhilmhdh akhilmhdh added the good first issue Good for newcomers label Nov 4, 2024
@mdayanabbas
Copy link

Hey try out these approches once:
Make sure Bun is installed and accessible (use which bun).
Try infisical run -- /path/to/bun run index.ts
Set environment variable PATH to include Bun's location.
Create a script to set up Bun and run it with Infisical.
Look for specific Bun instructions or known issues.

@guptave2
Copy link

Hi, I apologize for not asking to be assigned before submitting the PR. I've already made the changes and submitted [PR #2714]. Please let me know if there's anything else you'd like me to do!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants