gomorpheus / terraform-provider-morpheus

Terraform Morpheus provider
MIT License
17 stars 21 forks source link

[Feature Request] data source to get list of existing roles #217

Closed doubletwist13 closed 7 months ago

doubletwist13 commented 7 months ago

It would be nice to be able to get a list of roles (user and/or tenant). This appears to be present in the SDK/API so hopefully it's a simple matter of adding the datasource to this provider.

martezr commented 7 months ago

The tenant role is already available (https://registry.terraform.io/providers/gomorpheus/morpheus/latest/docs/data-sources/tenant_role) so it would just be a matter of adding the user role data source.

martezr commented 7 months ago

The user_role data source has been added in the latest release of the Terraform provider - https://registry.terraform.io/providers/gomorpheus/morpheus/latest/docs/data-sources/user_role