vmware/terraform-provider-vra

Lookup data source vra_blueprint by id

thomasinsel opened this issue · 0 comments

Code of Conduct

This project has a Code of Conduct that all participants are expected to understand and follow:

Description

It would be very helpful to be able to search for a blueprint by its id. For example, from the blueprint_id field of a vra_deployment.

However, it looks like the current implementation does not use the id argument as documented. I see in https://github.com/vmware/terraform-provider-vra/blob/main/vra/data_source_blueprint.go that it searches only by name, so if I specify an id I always get the error message:

Error: more than one blueprint found with the same name, try to narrow filter by project_id

Describe alternatives you've considered

References

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment