* make roles optional * check if roles is unknown * add descriptions * update docs * change role condition handling * Update stackit/internal/services/sqlserverflex/user/resource.go Co-authored-by: João Palet <joao.palet@outlook.com> * Update stackit/internal/services/sqlserverflex/user/datasource.go Co-authored-by: João Palet <joao.palet@outlook.com> * Update stackit/internal/services/sqlserverflex/user/datasource.go Co-authored-by: João Palet <joao.palet@outlook.com> * fix escapes * adapt unit tests * update docs * Update stackit/internal/services/sqlserverflex/user/datasource.go Co-authored-by: João Palet <joao.palet@outlook.com> * Update stackit/internal/services/sqlserverflex/user/resource.go Co-authored-by: João Palet <joao.palet@outlook.com> * adapt unit tests * update docs --------- Co-authored-by: João Palet <joao.palet@outlook.com>
43 lines
1.3 KiB
Markdown
43 lines
1.3 KiB
Markdown
---
|
|
# generated by https://github.com/hashicorp/terraform-plugin-docs
|
|
page_title: "stackit_sqlserverflex_user Resource - stackit"
|
|
subcategory: ""
|
|
description: |-
|
|
[Warning: BETA] SQLServer Flex user resource schema. Must have a region specified in the provider configuration.
|
|
---
|
|
|
|
# stackit_sqlserverflex_user (Resource)
|
|
|
|
[Warning: BETA] SQLServer Flex user resource schema. Must have a `region` specified in the provider configuration.
|
|
|
|
## Example Usage
|
|
|
|
```terraform
|
|
resource "stackit_sqlserverflex_user" "example" {
|
|
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
|
instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
|
username = "username"
|
|
roles = ["role"]
|
|
}
|
|
```
|
|
|
|
<!-- schema generated by tfplugindocs -->
|
|
## Schema
|
|
|
|
### Required
|
|
|
|
- `instance_id` (String) ID of the SQLServer Flex instance.
|
|
- `project_id` (String) STACKIT project ID to which the instance is associated.
|
|
- `username` (String) Username of the SQLServer Flex instance.
|
|
|
|
### Optional
|
|
|
|
- `roles` (Set of String) Database access levels for the user. Possible values: [`##STACKIT_LoginManager##`, `##STACKIT_DatabaseManager##`]
|
|
|
|
### Read-Only
|
|
|
|
- `host` (String)
|
|
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`instance_id`,`user_id`".
|
|
- `password` (String, Sensitive) Password of the user account.
|
|
- `port` (Number)
|
|
- `user_id` (String) User ID.
|