published on Friday, Feb 20, 2026 by stackitcloud
published on Friday, Feb 20, 2026 by stackitcloud
SQLServer Flex instance resource schema. Must have a region specified in the provider configuration.
Example Usage
resource "stackit_sqlserverflex_instance" "example" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
name = "example-instance"
acl = ["XXX.XXX.XXX.X/XX", "XX.XXX.XX.X/XX"]
backup_schedule = "00 00 * * *"
flavor = {
cpu = 4
ram = 16
}
storage = {
class = "class"
size = 5
}
version = 2022
}
# Only use the import statement, if you want to import an existing sqlserverflex instance
import {
to = stackit_sqlserverflex_instance.import-example
id = "${var.project_id},${var.region},${var.sql_instance_id}"
}
Create SqlserverflexInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SqlserverflexInstance(name: string, args: SqlserverflexInstanceArgs, opts?: CustomResourceOptions);@overload
def SqlserverflexInstance(resource_name: str,
args: SqlserverflexInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SqlserverflexInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
flavor: Optional[SqlserverflexInstanceFlavorArgs] = None,
project_id: Optional[str] = None,
acls: Optional[Sequence[str]] = None,
backup_schedule: Optional[str] = None,
name: Optional[str] = None,
options: Optional[SqlserverflexInstanceOptionsArgs] = None,
region: Optional[str] = None,
storage: Optional[SqlserverflexInstanceStorageArgs] = None,
version: Optional[str] = None)func NewSqlserverflexInstance(ctx *Context, name string, args SqlserverflexInstanceArgs, opts ...ResourceOption) (*SqlserverflexInstance, error)public SqlserverflexInstance(string name, SqlserverflexInstanceArgs args, CustomResourceOptions? opts = null)
public SqlserverflexInstance(String name, SqlserverflexInstanceArgs args)
public SqlserverflexInstance(String name, SqlserverflexInstanceArgs args, CustomResourceOptions options)
type: stackit:SqlserverflexInstance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SqlserverflexInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SqlserverflexInstanceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SqlserverflexInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SqlserverflexInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SqlserverflexInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var sqlserverflexInstanceResource = new Stackit.SqlserverflexInstance("sqlserverflexInstanceResource", new()
{
Flavor = new Stackit.Inputs.SqlserverflexInstanceFlavorArgs
{
Cpu = 0,
Ram = 0,
Description = "string",
Id = "string",
},
ProjectId = "string",
Acls = new[]
{
"string",
},
BackupSchedule = "string",
Name = "string",
Options = new Stackit.Inputs.SqlserverflexInstanceOptionsArgs
{
Edition = "string",
RetentionDays = 0,
},
Region = "string",
Storage = new Stackit.Inputs.SqlserverflexInstanceStorageArgs
{
Class = "string",
Size = 0,
},
Version = "string",
});
example, err := stackit.NewSqlserverflexInstance(ctx, "sqlserverflexInstanceResource", &stackit.SqlserverflexInstanceArgs{
Flavor: &stackit.SqlserverflexInstanceFlavorArgs{
Cpu: pulumi.Int(0),
Ram: pulumi.Int(0),
Description: pulumi.String("string"),
Id: pulumi.String("string"),
},
ProjectId: pulumi.String("string"),
Acls: pulumi.StringArray{
pulumi.String("string"),
},
BackupSchedule: pulumi.String("string"),
Name: pulumi.String("string"),
Options: &stackit.SqlserverflexInstanceOptionsArgs{
Edition: pulumi.String("string"),
RetentionDays: pulumi.Int(0),
},
Region: pulumi.String("string"),
Storage: &stackit.SqlserverflexInstanceStorageArgs{
Class: pulumi.String("string"),
Size: pulumi.Int(0),
},
Version: pulumi.String("string"),
})
var sqlserverflexInstanceResource = new SqlserverflexInstance("sqlserverflexInstanceResource", SqlserverflexInstanceArgs.builder()
.flavor(SqlserverflexInstanceFlavorArgs.builder()
.cpu(0)
.ram(0)
.description("string")
.id("string")
.build())
.projectId("string")
.acls("string")
.backupSchedule("string")
.name("string")
.options(SqlserverflexInstanceOptionsArgs.builder()
.edition("string")
.retentionDays(0)
.build())
.region("string")
.storage(SqlserverflexInstanceStorageArgs.builder()
.class_("string")
.size(0)
.build())
.version("string")
.build());
sqlserverflex_instance_resource = stackit.SqlserverflexInstance("sqlserverflexInstanceResource",
flavor={
"cpu": 0,
"ram": 0,
"description": "string",
"id": "string",
},
project_id="string",
acls=["string"],
backup_schedule="string",
name="string",
options={
"edition": "string",
"retention_days": 0,
},
region="string",
storage={
"class_": "string",
"size": 0,
},
version="string")
const sqlserverflexInstanceResource = new stackit.SqlserverflexInstance("sqlserverflexInstanceResource", {
flavor: {
cpu: 0,
ram: 0,
description: "string",
id: "string",
},
projectId: "string",
acls: ["string"],
backupSchedule: "string",
name: "string",
options: {
edition: "string",
retentionDays: 0,
},
region: "string",
storage: {
"class": "string",
size: 0,
},
version: "string",
});
type: stackit:SqlserverflexInstance
properties:
acls:
- string
backupSchedule: string
flavor:
cpu: 0
description: string
id: string
ram: 0
name: string
options:
edition: string
retentionDays: 0
projectId: string
region: string
storage:
class: string
size: 0
version: string
SqlserverflexInstance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SqlserverflexInstance resource accepts the following input properties:
- Flavor
Sqlserverflex
Instance Flavor - Project
Id string - STACKIT project ID to which the instance is associated.
- Acls List<string>
- The Access Control List (ACL) for the SQLServer Flex instance.
- Backup
Schedule string - The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *")
- Name string
- Instance name.
- Options
Sqlserverflex
Instance Options - Region string
- The resource region. If not defined, the provider region is used.
- Storage
Sqlserverflex
Instance Storage - Version string
- Flavor
Sqlserverflex
Instance Flavor Args - Project
Id string - STACKIT project ID to which the instance is associated.
- Acls []string
- The Access Control List (ACL) for the SQLServer Flex instance.
- Backup
Schedule string - The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *")
- Name string
- Instance name.
- Options
Sqlserverflex
Instance Options Args - Region string
- The resource region. If not defined, the provider region is used.
- Storage
Sqlserverflex
Instance Storage Args - Version string
- flavor
Sqlserverflex
Instance Flavor - project
Id String - STACKIT project ID to which the instance is associated.
- acls List<String>
- The Access Control List (ACL) for the SQLServer Flex instance.
- backup
Schedule String - The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *")
- name String
- Instance name.
- options
Sqlserverflex
Instance Options - region String
- The resource region. If not defined, the provider region is used.
- storage
Sqlserverflex
Instance Storage - version String
- flavor
Sqlserverflex
Instance Flavor - project
Id string - STACKIT project ID to which the instance is associated.
- acls string[]
- The Access Control List (ACL) for the SQLServer Flex instance.
- backup
Schedule string - The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *")
- name string
- Instance name.
- options
Sqlserverflex
Instance Options - region string
- The resource region. If not defined, the provider region is used.
- storage
Sqlserverflex
Instance Storage - version string
- flavor
Sqlserverflex
Instance Flavor Args - project_
id str - STACKIT project ID to which the instance is associated.
- acls Sequence[str]
- The Access Control List (ACL) for the SQLServer Flex instance.
- backup_
schedule str - The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *")
- name str
- Instance name.
- options
Sqlserverflex
Instance Options Args - region str
- The resource region. If not defined, the provider region is used.
- storage
Sqlserverflex
Instance Storage Args - version str
- flavor Property Map
- project
Id String - STACKIT project ID to which the instance is associated.
- acls List<String>
- The Access Control List (ACL) for the SQLServer Flex instance.
- backup
Schedule String - The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *")
- name String
- Instance name.
- options Property Map
- region String
- The resource region. If not defined, the provider region is used.
- storage Property Map
- version String
Outputs
All input properties are implicitly available as output properties. Additionally, the SqlserverflexInstance resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - ID of the SQLServer Flex instance.
- Replicas int
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - ID of the SQLServer Flex instance.
- Replicas int
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - ID of the SQLServer Flex instance.
- replicas Integer
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Id string - ID of the SQLServer Flex instance.
- replicas number
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
id str - ID of the SQLServer Flex instance.
- replicas int
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - ID of the SQLServer Flex instance.
- replicas Number
Look up Existing SqlserverflexInstance Resource
Get an existing SqlserverflexInstance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SqlserverflexInstanceState, opts?: CustomResourceOptions): SqlserverflexInstance@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
acls: Optional[Sequence[str]] = None,
backup_schedule: Optional[str] = None,
flavor: Optional[SqlserverflexInstanceFlavorArgs] = None,
instance_id: Optional[str] = None,
name: Optional[str] = None,
options: Optional[SqlserverflexInstanceOptionsArgs] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
replicas: Optional[int] = None,
storage: Optional[SqlserverflexInstanceStorageArgs] = None,
version: Optional[str] = None) -> SqlserverflexInstancefunc GetSqlserverflexInstance(ctx *Context, name string, id IDInput, state *SqlserverflexInstanceState, opts ...ResourceOption) (*SqlserverflexInstance, error)public static SqlserverflexInstance Get(string name, Input<string> id, SqlserverflexInstanceState? state, CustomResourceOptions? opts = null)public static SqlserverflexInstance get(String name, Output<String> id, SqlserverflexInstanceState state, CustomResourceOptions options)resources: _: type: stackit:SqlserverflexInstance get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Acls List<string>
- The Access Control List (ACL) for the SQLServer Flex instance.
- Backup
Schedule string - The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *")
- Flavor
Sqlserverflex
Instance Flavor - Instance
Id string - ID of the SQLServer Flex instance.
- Name string
- Instance name.
- Options
Sqlserverflex
Instance Options - Project
Id string - STACKIT project ID to which the instance is associated.
- Region string
- The resource region. If not defined, the provider region is used.
- Replicas int
- Storage
Sqlserverflex
Instance Storage - Version string
- Acls []string
- The Access Control List (ACL) for the SQLServer Flex instance.
- Backup
Schedule string - The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *")
- Flavor
Sqlserverflex
Instance Flavor Args - Instance
Id string - ID of the SQLServer Flex instance.
- Name string
- Instance name.
- Options
Sqlserverflex
Instance Options Args - Project
Id string - STACKIT project ID to which the instance is associated.
- Region string
- The resource region. If not defined, the provider region is used.
- Replicas int
- Storage
Sqlserverflex
Instance Storage Args - Version string
- acls List<String>
- The Access Control List (ACL) for the SQLServer Flex instance.
- backup
Schedule String - The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *")
- flavor
Sqlserverflex
Instance Flavor - instance
Id String - ID of the SQLServer Flex instance.
- name String
- Instance name.
- options
Sqlserverflex
Instance Options - project
Id String - STACKIT project ID to which the instance is associated.
- region String
- The resource region. If not defined, the provider region is used.
- replicas Integer
- storage
Sqlserverflex
Instance Storage - version String
- acls string[]
- The Access Control List (ACL) for the SQLServer Flex instance.
- backup
Schedule string - The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *")
- flavor
Sqlserverflex
Instance Flavor - instance
Id string - ID of the SQLServer Flex instance.
- name string
- Instance name.
- options
Sqlserverflex
Instance Options - project
Id string - STACKIT project ID to which the instance is associated.
- region string
- The resource region. If not defined, the provider region is used.
- replicas number
- storage
Sqlserverflex
Instance Storage - version string
- acls Sequence[str]
- The Access Control List (ACL) for the SQLServer Flex instance.
- backup_
schedule str - The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *")
- flavor
Sqlserverflex
Instance Flavor Args - instance_
id str - ID of the SQLServer Flex instance.
- name str
- Instance name.
- options
Sqlserverflex
Instance Options Args - project_
id str - STACKIT project ID to which the instance is associated.
- region str
- The resource region. If not defined, the provider region is used.
- replicas int
- storage
Sqlserverflex
Instance Storage Args - version str
- acls List<String>
- The Access Control List (ACL) for the SQLServer Flex instance.
- backup
Schedule String - The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *")
- flavor Property Map
- instance
Id String - ID of the SQLServer Flex instance.
- name String
- Instance name.
- options Property Map
- project
Id String - STACKIT project ID to which the instance is associated.
- region String
- The resource region. If not defined, the provider region is used.
- replicas Number
- storage Property Map
- version String
Supporting Types
SqlserverflexInstanceFlavor, SqlserverflexInstanceFlavorArgs
- Cpu int
- Ram int
- Description string
- Id string
- Cpu int
- Ram int
- Description string
- Id string
- cpu Integer
- ram Integer
- description String
- id String
- cpu number
- ram number
- description string
- id string
- cpu int
- ram int
- description str
- id str
- cpu Number
- ram Number
- description String
- id String
SqlserverflexInstanceOptions, SqlserverflexInstanceOptionsArgs
- Edition string
- Retention
Days int
- Edition string
- Retention
Days int
- edition String
- retention
Days Integer
- edition string
- retention
Days number
- edition str
- retention_
days int
- edition String
- retention
Days Number
SqlserverflexInstanceStorage, SqlserverflexInstanceStorageArgs
Package Details
- Repository
- stackit stackitcloud/pulumi-stackit
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
stackitTerraform Provider.
published on Friday, Feb 20, 2026 by stackitcloud
