You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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):
The process would be to take the string from the attribute above, and make a call to the following endpoint:
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:
The text was updated successfully, but these errors were encountered: