1. Registry
  2. Packages
  3. stackit
  4. API Docs
  5. getPostgresflexFlavors
Viewing docs for stackit v0.0.7
published on Monday, Aug 17, 2026 by stackitcloud
stackit logo
Viewing docs for stackit v0.0.7
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 dictionary
    data "stackit_get_postgresflex_flavors" "name" {
        # arguments
    }

    The following arguments are supported:

    ProjectId string
    STACKIT project ID.
    Region string
    Postgres Flex flavors data source region. If undefined, the provider region is used.
    Timeouts GetPostgresflexFlavorsTimeouts
    ProjectId string
    STACKIT project ID.
    Region string
    Postgres Flex flavors data source region. If undefined, the provider region is used.
    Timeouts GetPostgresflexFlavorsTimeouts
    project_id string
    STACKIT project ID.
    region string
    Postgres Flex flavors data source region. If undefined, the provider region is used.
    timeouts object
    projectId String
    STACKIT project ID.
    region String
    Postgres Flex flavors data source region. If undefined, the provider region is used.
    timeouts GetPostgresflexFlavorsTimeouts
    projectId string
    STACKIT project ID.
    region string
    Postgres Flex flavors data source region. If undefined, the provider region is used.
    timeouts GetPostgresflexFlavorsTimeouts
    project_id str
    STACKIT project ID.
    region str
    Postgres Flex flavors data source region. If undefined, the provider region is used.
    timeouts GetPostgresflexFlavorsTimeouts
    projectId 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<GetPostgresflexFlavorsFlavor>
    List of flavors available for the project.
    Id string
    Terraform's internal data source ID, structured as "projectId,region".
    ProjectId string
    STACKIT project ID.
    Region string
    Postgres Flex flavors data source region. If undefined, the provider region is used.
    Timeouts GetPostgresflexFlavorsTimeouts
    Flavors []GetPostgresflexFlavorsFlavor
    List of flavors available for the project.
    Id string
    Terraform's internal data source ID, structured as "projectId,region".
    ProjectId string
    STACKIT project ID.
    Region string
    Postgres Flex flavors data source region. If undefined, the provider region is used.
    Timeouts GetPostgresflexFlavorsTimeouts
    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<GetPostgresflexFlavorsFlavor>
    List of flavors available for the project.
    id String
    Terraform's internal data source ID, structured as "projectId,region".
    projectId String
    STACKIT project ID.
    region String
    Postgres Flex flavors data source region. If undefined, the provider region is used.
    timeouts GetPostgresflexFlavorsTimeouts
    flavors GetPostgresflexFlavorsFlavor[]
    List of flavors available for the project.
    id string
    Terraform's internal data source ID, structured as "projectId,region".
    projectId string
    STACKIT project ID.
    region string
    Postgres Flex flavors data source region. If undefined, the provider region is used.
    timeouts GetPostgresflexFlavorsTimeouts
    flavors Sequence[GetPostgresflexFlavorsFlavor]
    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 GetPostgresflexFlavorsTimeouts
    flavors List<Property Map>
    List of flavors available for the project.
    id String
    Terraform's internal data source ID, structured as "projectId,region".
    projectId 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.
    MaxGb int
    Maximum storage capacity available for the flavor in GB.
    Memory int
    Memory of the instance in GiB.
    MinGb int
    Minimum storage capacity available for the flavor in GB.
    NodeType string
    Node type of the flavor, either single or replica.
    StorageClasses List<GetPostgresflexFlavorsFlavorStorageClass>
    Storage classes available for the flavor.
    Cpu int
    CPU count of the instance.
    Description string
    Flavor description.
    Id string
    Flavor ID.
    MaxGb int
    Maximum storage capacity available for the flavor in GB.
    Memory int
    Memory of the instance in GiB.
    MinGb int
    Minimum storage capacity available for the flavor in GB.
    NodeType string
    Node type of the flavor, either single or replica.
    StorageClasses []GetPostgresflexFlavorsFlavorStorageClass
    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.
    maxGb Integer
    Maximum storage capacity available for the flavor in GB.
    memory Integer
    Memory of the instance in GiB.
    minGb Integer
    Minimum storage capacity available for the flavor in GB.
    nodeType String
    Node type of the flavor, either single or replica.
    storageClasses List<GetPostgresflexFlavorsFlavorStorageClass>
    Storage classes available for the flavor.
    cpu number
    CPU count of the instance.
    description string
    Flavor description.
    id string
    Flavor ID.
    maxGb number
    Maximum storage capacity available for the flavor in GB.
    memory number
    Memory of the instance in GiB.
    minGb number
    Minimum storage capacity available for the flavor in GB.
    nodeType string
    Node type of the flavor, either single or replica.
    storageClasses GetPostgresflexFlavorsFlavorStorageClass[]
    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[GetPostgresflexFlavorsFlavorStorageClass]
    Storage classes available for the flavor.
    cpu Number
    CPU count of the instance.
    description String
    Flavor description.
    id String
    Flavor ID.
    maxGb Number
    Maximum storage capacity available for the flavor in GB.
    memory Number
    Memory of the instance in GiB.
    minGb Number
    Minimum storage capacity available for the flavor in GB.
    nodeType String
    Node type of the flavor, either single or replica.
    storageClasses List<Property Map>
    Storage classes available for the flavor.

    GetPostgresflexFlavorsFlavorStorageClass

    Class string
    Storage class.
    MaxIoPerSec int
    Maximum I/O operations per second.
    MaxThroughInMb int
    Maximum throughput in MB per second.
    Class string
    Storage class.
    MaxIoPerSec int
    Maximum I/O operations per second.
    MaxThroughInMb int
    Maximum throughput in MB per second.
    class string
    Storage class.
    max_io_per_sec number
    Maximum I/O operations per second.
    max_through_in_mb number
    Maximum throughput in MB per second.
    class_ String
    Storage class.
    maxIoPerSec Integer
    Maximum I/O operations per second.
    maxThroughInMb Integer
    Maximum throughput in MB per second.
    class string
    Storage class.
    maxIoPerSec number
    Maximum I/O operations per second.
    maxThroughInMb number
    Maximum throughput in MB per second.
    class_ str
    Storage class.
    max_io_per_sec int
    Maximum I/O operations per second.
    max_through_in_mb int
    Maximum throughput in MB per second.
    class String
    Storage class.
    maxIoPerSec Number
    Maximum I/O operations per second.
    maxThroughInMb Number
    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 stackit Terraform Provider.
    stackit logo
    Viewing docs for stackit v0.0.7
    published on Monday, Aug 17, 2026 by stackitcloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial