terraform-provider-stackitp.../docs/resources/sqlserverflex_user.md
Alexander Dahmen 721e10a02f
chore(examples): Add import examples for all resources (#939)
* chore(examples): Add import examples for all resources

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>

* Add guide: How to import resources

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>

---------

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
2025-08-08 14:03:27 +02:00

1.7 KiB

page_title subcategory description
stackit_sqlserverflex_user Resource - stackit 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

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

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

  • region (String)
  • 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##

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.