jdamata / terraform-provider-sonarqube

Terraform provider for managing Sonarqube configuration
GNU General Public License v3.0
64 stars 58 forks source link

Support all user token types #89

Closed ddrachau closed 1 year ago

ddrachau commented 2 years ago

Terraform Version

`Terraform v1.2.4 on linux_amd64

Affected Resource(s)

Expected Behavior

It would be great if the user token resource supports the new token types from SonarQube 9.5. API Parameter

Besides the current default 'USER_TOKEN' there are two new types 'GLOBAL_ANALYSIS_TOKEN' and 'PROJECT_ANALYSIS_TOKEN' (which requires an additional field 'projectKey'.

The request and response parameters are almost the same, so we probably just need two new terraform variables, which get piped to the api.