--- # generated by https://github.com/hashicorp/terraform-plugin-docs page_title: "stackitprivatepreview_sqlserverflexalpha_user Resource - stackitprivatepreview" subcategory: "" description: |- SQLServer Flex user resource schema. Must have a region specified in the provider configuration. --- # stackitprivatepreview_sqlserverflexalpha_user (Resource) SQLServer Flex user resource schema. Must have a `region` specified in the provider configuration. ## Example Usage ```terraform resource "stackitprivatepreview_sqlserverflexalpha_user" "example" { project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" username = "username" roles = ["role"] } # Only use the import statement, if you want to import an existing sqlserverflex user import { to = stackitprivatepreview_sqlserverflexalpha_user.import-example id = "${var.project_id},${var.region},${var.sql_instance_id},${var.sql_user_id}" } ``` ## Schema ### Required - `instance_id` (String) ID of the SQLServer Flex instance. - `project_id` (String) STACKIT project ID to which the instance is associated. - `roles` (Set of String) Database access levels for the user. The values for the default roles are: `##STACKIT_DatabaseManager##`, `##STACKIT_LoginManager##`, `##STACKIT_ProcessManager##`, `##STACKIT_ServerManager##`, `##STACKIT_SQLAgentManager##`, `##STACKIT_SQLAgentUser##` - `username` (String) Username of the SQLServer Flex instance. ### Optional - `region` (String) ### Read-Only - `default_database` (String) - `host` (String) - `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`region`,`instance_id`,`user_id`". - `password` (String, Sensitive) Password of the user account. - `port` (Number) - `status` (String) - `user_id` (String) User ID.