1. Registry
  2. Packages
  3. stackit
  4. API Docs
  5. getVpcRegion
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

    VPC region datasource schema

    This datasource is part of the experimental feature vpc and is likely going to undergo significant changes or be removed in the future. Use it at your own discretion.

    Example Usage

    data "stackit_vpc_region" "example" {
      project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      vpc_id     = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      region     = "eu01"
    }
    

    Using getVpcRegion

    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 getVpcRegion(args: GetVpcRegionArgs, opts?: InvokeOptions): Promise<GetVpcRegionResult>
    function getVpcRegionOutput(args: GetVpcRegionOutputArgs, opts?: InvokeOutputOptions): Output<GetVpcRegionResult>
    def get_vpc_region(project_id: Optional[str] = None,
                       region: Optional[str] = None,
                       timeouts: Optional[GetVpcRegionTimeouts] = None,
                       vpc_id: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetVpcRegionResult
    def get_vpc_region_output(project_id: pulumi.Input[Optional[str]] = None,
                       region: pulumi.Input[Optional[str]] = None,
                       timeouts: pulumi.Input[Optional[GetVpcRegionTimeoutsArgs]] = None,
                       vpc_id: pulumi.Input[Optional[str]] = None,
                       opts: Optional[InvokeOutputOptions] = None) -> Output[GetVpcRegionResult]
    func LookupVpcRegion(ctx *Context, args *LookupVpcRegionArgs, opts ...InvokeOption) (*LookupVpcRegionResult, error)
    func LookupVpcRegionOutput(ctx *Context, args *LookupVpcRegionOutputArgs, opts ...InvokeOption) LookupVpcRegionResultOutput

    > Note: This function is named LookupVpcRegion in the Go SDK.

    public static class GetVpcRegion 
    {
        public static Task<GetVpcRegionResult> InvokeAsync(GetVpcRegionArgs args, InvokeOptions? opts = null)
        public static Output<GetVpcRegionResult> Invoke(GetVpcRegionInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetVpcRegionResult> Invoke(GetVpcRegionInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetVpcRegionResult> getVpcRegion(GetVpcRegionArgs args, InvokeOptions options)
    public static Output<GetVpcRegionResult> getVpcRegion(GetVpcRegionArgs args, InvokeOptions options)
    public static Output<GetVpcRegionResult> getVpcRegion(GetVpcRegionArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: stackit:index/getVpcRegion:getVpcRegion
      arguments:
        # arguments dictionary
    data "stackit_get_vpc_region" "name" {
        # arguments
    }

    The following arguments are supported:

    ProjectId string
    STACKIT project ID to which the VPC region is associated.
    VpcId string
    The VPC ID to which the VPC region is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    Timeouts GetVpcRegionTimeouts
    ProjectId string
    STACKIT project ID to which the VPC region is associated.
    VpcId string
    The VPC ID to which the VPC region is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    Timeouts GetVpcRegionTimeouts
    project_id string
    STACKIT project ID to which the VPC region is associated.
    vpc_id string
    The VPC ID to which the VPC region is associated.
    region string
    The resource region. If not defined, the provider region is used.
    timeouts object
    projectId String
    STACKIT project ID to which the VPC region is associated.
    vpcId String
    The VPC ID to which the VPC region is associated.
    region String
    The resource region. If not defined, the provider region is used.
    timeouts GetVpcRegionTimeouts
    projectId string
    STACKIT project ID to which the VPC region is associated.
    vpcId string
    The VPC ID to which the VPC region is associated.
    region string
    The resource region. If not defined, the provider region is used.
    timeouts GetVpcRegionTimeouts
    project_id str
    STACKIT project ID to which the VPC region is associated.
    vpc_id str
    The VPC ID to which the VPC region is associated.
    region str
    The resource region. If not defined, the provider region is used.
    timeouts GetVpcRegionTimeouts
    projectId String
    STACKIT project ID to which the VPC region is associated.
    vpcId String
    The VPC ID to which the VPC region is associated.
    region String
    The resource region. If not defined, the provider region is used.
    timeouts Property Map

    getVpcRegion Result

    The following output properties are available:

    Id string
    Terraform's internal resource ID. It is structured as "projectId, vpcId, region".
    ProjectId string
    STACKIT project ID to which the VPC region is associated.
    VpcId string
    The VPC ID to which the VPC region is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    Timeouts GetVpcRegionTimeouts
    Id string
    Terraform's internal resource ID. It is structured as "projectId, vpcId, region".
    ProjectId string
    STACKIT project ID to which the VPC region is associated.
    VpcId string
    The VPC ID to which the VPC region is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    Timeouts GetVpcRegionTimeouts
    id string
    Terraform's internal resource ID. It is structured as "projectId, vpcId, region".
    project_id string
    STACKIT project ID to which the VPC region is associated.
    vpc_id string
    The VPC ID to which the VPC region is associated.
    region string
    The resource region. If not defined, the provider region is used.
    timeouts object
    id String
    Terraform's internal resource ID. It is structured as "projectId, vpcId, region".
    projectId String
    STACKIT project ID to which the VPC region is associated.
    vpcId String
    The VPC ID to which the VPC region is associated.
    region String
    The resource region. If not defined, the provider region is used.
    timeouts GetVpcRegionTimeouts
    id string
    Terraform's internal resource ID. It is structured as "projectId, vpcId, region".
    projectId string
    STACKIT project ID to which the VPC region is associated.
    vpcId string
    The VPC ID to which the VPC region is associated.
    region string
    The resource region. If not defined, the provider region is used.
    timeouts GetVpcRegionTimeouts
    id str
    Terraform's internal resource ID. It is structured as "projectId, vpcId, region".
    project_id str
    STACKIT project ID to which the VPC region is associated.
    vpc_id str
    The VPC ID to which the VPC region is associated.
    region str
    The resource region. If not defined, the provider region is used.
    timeouts GetVpcRegionTimeouts
    id String
    Terraform's internal resource ID. It is structured as "projectId, vpcId, region".
    projectId String
    STACKIT project ID to which the VPC region is associated.
    vpcId String
    The VPC ID to which the VPC region is associated.
    region String
    The resource region. If not defined, the provider region is used.
    timeouts Property Map

    Supporting Types

    GetVpcRegionTimeouts

    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