Viewing docs for stackit v0.0.7
published on Monday, Aug 17, 2026 by stackitcloud
published on Monday, Aug 17, 2026 by stackitcloud
Viewing docs for stackit v0.0.7
published on Monday, Aug 17, 2026 by stackitcloud
published on Monday, Aug 17, 2026 by stackitcloud
Postgres Flex flavors data source schema.
Example Usage
data "stackit_postgresflex_flavors" "example" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
# region is taken from the provider configuration
}
# Example usage with an instance
resource "stackit_postgresflex_instance" "example" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
name = "example"
flavor_id = one([for flavor in data.stackit_postgresflex_flavors.example.flavors : flavor.id if flavor.cpu == 2 && flavor.memory == 4 && flavor.node_type == "Single"])
backup_schedule = "0 16 * * *"
storage = {
class = "premium-perf2-stackit"
size = 5
}
version = "17"
network = {
acl = ["192.168.0.0/24"]
}
}
Using getPostgresflexFlavors
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getPostgresflexFlavors(args: GetPostgresflexFlavorsArgs, opts?: InvokeOptions): Promise<GetPostgresflexFlavorsResult>
function getPostgresflexFlavorsOutput(args: GetPostgresflexFlavorsOutputArgs, opts?: InvokeOutputOptions): Output<GetPostgresflexFlavorsResult>def get_postgresflex_flavors(project_id: Optional[str] = None,
region: Optional[str] = None,
timeouts: Optional[GetPostgresflexFlavorsTimeouts] = None,
opts: Optional[InvokeOptions] = None) -> GetPostgresflexFlavorsResult
def get_postgresflex_flavors_output(project_id: pulumi.Input[Optional[str]] = None,
region: pulumi.Input[Optional[str]] = None,
timeouts: pulumi.Input[Optional[GetPostgresflexFlavorsTimeoutsArgs]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetPostgresflexFlavorsResult]func GetPostgresflexFlavors(ctx *Context, args *GetPostgresflexFlavorsArgs, opts ...InvokeOption) (*GetPostgresflexFlavorsResult, error)
func GetPostgresflexFlavorsOutput(ctx *Context, args *GetPostgresflexFlavorsOutputArgs, opts ...InvokeOption) GetPostgresflexFlavorsResultOutput> Note: This function is named GetPostgresflexFlavors in the Go SDK.
public static class GetPostgresflexFlavors
{
public static Task<GetPostgresflexFlavorsResult> InvokeAsync(GetPostgresflexFlavorsArgs args, InvokeOptions? opts = null)
public static Output<GetPostgresflexFlavorsResult> Invoke(GetPostgresflexFlavorsInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetPostgresflexFlavorsResult> Invoke(GetPostgresflexFlavorsInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetPostgresflexFlavorsResult> getPostgresflexFlavors(GetPostgresflexFlavorsArgs args, InvokeOptions options)
public static Output<GetPostgresflexFlavorsResult> getPostgresflexFlavors(GetPostgresflexFlavorsArgs args, InvokeOptions options)
public static Output<GetPostgresflexFlavorsResult> getPostgresflexFlavors(GetPostgresflexFlavorsArgs args, InvokeOutputOptions options)
fn::invoke:
function: stackit:index/getPostgresflexFlavors:getPostgresflexFlavors
arguments:
# arguments dictionarydata "stackit_get_postgresflex_flavors" "name" {
# arguments
}The following arguments are supported:
- Project
Id string - STACKIT project ID.
- Region string
- Postgres Flex flavors data source region. If undefined, the provider region is used.
- Timeouts
Get
Postgresflex Flavors Timeouts
- Project
Id string - STACKIT project ID.
- Region string
- Postgres Flex flavors data source region. If undefined, the provider region is used.
- Timeouts
Get
Postgresflex Flavors Timeouts
- project_
id string - STACKIT project ID.
- region string
- Postgres Flex flavors data source region. If undefined, the provider region is used.
- timeouts object
- project
Id String - STACKIT project ID.
- region String
- Postgres Flex flavors data source region. If undefined, the provider region is used.
- timeouts
Get
Postgresflex Flavors Timeouts
- project
Id string - STACKIT project ID.
- region string
- Postgres Flex flavors data source region. If undefined, the provider region is used.
- timeouts
Get
Postgresflex Flavors Timeouts
- project_
id str - STACKIT project ID.
- region str
- Postgres Flex flavors data source region. If undefined, the provider region is used.
- timeouts
Get
Postgresflex Flavors Timeouts
- project
Id String - STACKIT project ID.
- region String
- Postgres Flex flavors data source region. If undefined, the provider region is used.
- timeouts Property Map
getPostgresflexFlavors Result
The following output properties are available:
- Flavors
List<Get
Postgresflex Flavors Flavor> - List of flavors available for the project.
- Id string
- Terraform's internal data source ID, structured as "
projectId,region". - Project
Id string - STACKIT project ID.
- Region string
- Postgres Flex flavors data source region. If undefined, the provider region is used.
- Timeouts
Get
Postgresflex Flavors Timeouts
- Flavors
[]Get
Postgresflex Flavors Flavor - List of flavors available for the project.
- Id string
- Terraform's internal data source ID, structured as "
projectId,region". - Project
Id string - STACKIT project ID.
- Region string
- Postgres Flex flavors data source region. If undefined, the provider region is used.
- Timeouts
Get
Postgresflex Flavors Timeouts
- flavors list(object)
- List of flavors available for the project.
- id string
- Terraform's internal data source ID, structured as "
projectId,region". - project_
id string - STACKIT project ID.
- region string
- Postgres Flex flavors data source region. If undefined, the provider region is used.
- timeouts object
- flavors
List<Get
Postgresflex Flavors Flavor> - List of flavors available for the project.
- id String
- Terraform's internal data source ID, structured as "
projectId,region". - project
Id String - STACKIT project ID.
- region String
- Postgres Flex flavors data source region. If undefined, the provider region is used.
- timeouts
Get
Postgresflex Flavors Timeouts
- flavors
Get
Postgresflex Flavors Flavor[] - List of flavors available for the project.
- id string
- Terraform's internal data source ID, structured as "
projectId,region". - project
Id string - STACKIT project ID.
- region string
- Postgres Flex flavors data source region. If undefined, the provider region is used.
- timeouts
Get
Postgresflex Flavors Timeouts
- flavors
Sequence[Get
Postgresflex Flavors Flavor] - List of flavors available for the project.
- id str
- Terraform's internal data source ID, structured as "
projectId,region". - project_
id str - STACKIT project ID.
- region str
- Postgres Flex flavors data source region. If undefined, the provider region is used.
- timeouts
Get
Postgresflex Flavors Timeouts
- flavors List<Property Map>
- List of flavors available for the project.
- id String
- Terraform's internal data source ID, structured as "
projectId,region". - project
Id String - STACKIT project ID.
- region String
- Postgres Flex flavors data source region. If undefined, the provider region is used.
- timeouts Property Map
Supporting Types
GetPostgresflexFlavorsFlavor
- Cpu int
- CPU count of the instance.
- Description string
- Flavor description.
- Id string
- Flavor ID.
- Max
Gb int - Maximum storage capacity available for the flavor in GB.
- Memory int
- Memory of the instance in GiB.
- Min
Gb int - Minimum storage capacity available for the flavor in GB.
- Node
Type string - Node type of the flavor, either single or replica.
- Storage
Classes List<GetPostgresflex Flavors Flavor Storage Class> - Storage classes available for the flavor.
- Cpu int
- CPU count of the instance.
- Description string
- Flavor description.
- Id string
- Flavor ID.
- Max
Gb int - Maximum storage capacity available for the flavor in GB.
- Memory int
- Memory of the instance in GiB.
- Min
Gb int - Minimum storage capacity available for the flavor in GB.
- Node
Type string - Node type of the flavor, either single or replica.
- Storage
Classes []GetPostgresflex Flavors Flavor Storage Class - Storage classes available for the flavor.
- cpu number
- CPU count of the instance.
- description string
- Flavor description.
- id string
- Flavor ID.
- max_
gb number - Maximum storage capacity available for the flavor in GB.
- memory number
- Memory of the instance in GiB.
- min_
gb number - Minimum storage capacity available for the flavor in GB.
- node_
type string - Node type of the flavor, either single or replica.
- storage_
classes list(object) - Storage classes available for the flavor.
- cpu Integer
- CPU count of the instance.
- description String
- Flavor description.
- id String
- Flavor ID.
- max
Gb Integer - Maximum storage capacity available for the flavor in GB.
- memory Integer
- Memory of the instance in GiB.
- min
Gb Integer - Minimum storage capacity available for the flavor in GB.
- node
Type String - Node type of the flavor, either single or replica.
- storage
Classes List<GetPostgresflex Flavors Flavor Storage Class> - Storage classes available for the flavor.
- cpu number
- CPU count of the instance.
- description string
- Flavor description.
- id string
- Flavor ID.
- max
Gb number - Maximum storage capacity available for the flavor in GB.
- memory number
- Memory of the instance in GiB.
- min
Gb number - Minimum storage capacity available for the flavor in GB.
- node
Type string - Node type of the flavor, either single or replica.
- storage
Classes GetPostgresflex Flavors Flavor Storage Class[] - Storage classes available for the flavor.
- cpu int
- CPU count of the instance.
- description str
- Flavor description.
- id str
- Flavor ID.
- max_
gb int - Maximum storage capacity available for the flavor in GB.
- memory int
- Memory of the instance in GiB.
- min_
gb int - Minimum storage capacity available for the flavor in GB.
- node_
type str - Node type of the flavor, either single or replica.
- storage_
classes Sequence[GetPostgresflex Flavors Flavor Storage Class] - Storage classes available for the flavor.
- cpu Number
- CPU count of the instance.
- description String
- Flavor description.
- id String
- Flavor ID.
- max
Gb Number - Maximum storage capacity available for the flavor in GB.
- memory Number
- Memory of the instance in GiB.
- min
Gb Number - Minimum storage capacity available for the flavor in GB.
- node
Type String - Node type of the flavor, either single or replica.
- storage
Classes List<Property Map> - Storage classes available for the flavor.
GetPostgresflexFlavorsFlavorStorageClass
- Class string
- Storage class.
- Max
Io intPer Sec - Maximum I/O operations per second.
- Max
Through intIn Mb - Maximum throughput in MB per second.
- Class string
- Storage class.
- Max
Io intPer Sec - Maximum I/O operations per second.
- Max
Through intIn Mb - Maximum throughput in MB per second.
- class string
- Storage class.
- max_
io_ numberper_ sec - Maximum I/O operations per second.
- max_
through_ numberin_ mb - Maximum throughput in MB per second.
- class_ String
- Storage class.
- max
Io IntegerPer Sec - Maximum I/O operations per second.
- max
Through IntegerIn Mb - Maximum throughput in MB per second.
- class string
- Storage class.
- max
Io numberPer Sec - Maximum I/O operations per second.
- max
Through numberIn Mb - Maximum throughput in MB per second.
- class_ str
- Storage class.
- max_
io_ intper_ sec - Maximum I/O operations per second.
- max_
through_ intin_ mb - Maximum throughput in MB per second.
- class String
- Storage class.
- max
Io NumberPer Sec - Maximum I/O operations per second.
- max
Through NumberIn Mb - Maximum throughput in MB per second.
GetPostgresflexFlavorsTimeouts
- Read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- read String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- read str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- read String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Package Details
- Repository
- stackit stackitcloud/pulumi-stackit
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
stackitTerraform Provider.
Viewing docs for stackit v0.0.7
published on Monday, Aug 17, 2026 by stackitcloud
published on Monday, Aug 17, 2026 by stackitcloud