50 lines
1.7 KiB
Markdown
50 lines
1.7 KiB
Markdown
---
|
|
# generated by https://github.com/hashicorp/terraform-plugin-docs
|
|
page_title: "stackit_sqlserverflex_user Resource - stackit"
|
|
subcategory: ""
|
|
description: |-
|
|
SQLServer Flex user resource schema. Must have a region specified in the provider configuration.
|
|
---
|
|
|
|
# stackit_sqlserverflex_user (Resource)
|
|
|
|
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"]
|
|
}
|
|
|
|
# Only use the import statement, if you want to import an existing sqlserverflex user
|
|
import {
|
|
to = stackit_sqlserverflex_user.import-example
|
|
id = "${var.project_id},${var.region},${var.sql_instance_id},${var.sql_user_id}"
|
|
}
|
|
```
|
|
|
|
<!-- 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.
|
|
- `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
|
|
|
|
- `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)
|
|
- `user_id` (String) User ID.
|