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

Add Support for Projects #292

Open
utkonos opened this issue Jul 6, 2022 · 0 comments
Open

Add Support for Projects #292

utkonos opened this issue Jul 6, 2022 · 0 comments

Comments

@utkonos
Copy link

utkonos commented Jul 6, 2022

Not sure about individual accounts, but business groups in DO have had the concept of a "Project" for a while. These are groupings of resources including VMs. It would be nice to be able to specify a project for a new VM. Reading the DO API docs, there isn't a parameter to specify a project on droplet creation, but there is an endpoint that assigns a resource (in this case a droplet) to a project once the resource is created. I propose a new attribute for configuring providers (optional of course):

provider.project = 'WidgetFactory'

The process would be to take the string from the attribute above, and make a call to the following endpoint:

GET /v2/projects

Search the returned JSON by the provider string and determine the project's UUID. That UUID along with the UUID of the created droplet are then used in a call to the following endpoint:

POST /v2/projects/$PROJECT_ID/resources
@utkonos utkonos closed this as completed May 26, 2023
@utkonos utkonos closed this as not planned Won't fix, can't repro, duplicate, stale May 26, 2023
@utkonos utkonos reopened this Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant