1. Registry
  2. Packages
  3. stackit
  4. API Docs
  5. getVpc
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 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" "example" {
      project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      vpc_id     = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    }
    

    Using getVpc

    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 getVpc(args: GetVpcArgs, opts?: InvokeOptions): Promise<GetVpcResult>
    function getVpcOutput(args: GetVpcOutputArgs, opts?: InvokeOutputOptions): Output<GetVpcResult>
    def get_vpc(project_id: Optional[str] = None,
                timeouts: Optional[GetVpcTimeouts] = None,
                vpc_id: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetVpcResult
    def get_vpc_output(project_id: pulumi.Input[Optional[str]] = None,
                timeouts: pulumi.Input[Optional[GetVpcTimeoutsArgs]] = None,
                vpc_id: pulumi.Input[Optional[str]] = None,
                opts: Optional[InvokeOutputOptions] = None) -> Output[GetVpcResult]
    func LookupVpc(ctx *Context, args *LookupVpcArgs, opts ...InvokeOption) (*LookupVpcResult, error)
    func LookupVpcOutput(ctx *Context, args *LookupVpcOutputArgs, opts ...InvokeOption) LookupVpcResultOutput

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

    public static class GetVpc 
    {
        public static Task<GetVpcResult> InvokeAsync(GetVpcArgs args, InvokeOptions? opts = null)
        public static Output<GetVpcResult> Invoke(GetVpcInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetVpcResult> Invoke(GetVpcInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetVpcResult> getVpc(GetVpcArgs args, InvokeOptions options)
    public static Output<GetVpcResult> getVpc(GetVpcArgs args, InvokeOptions options)
    public static Output<GetVpcResult> getVpc(GetVpcArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: stackit:index/getVpc:getVpc
      arguments:
        # arguments dictionary
    data "stackit_get_vpc" "name" {
        # arguments
    }

    The following arguments are supported:

    ProjectId string
    STACKIT project ID to which the VPC is associated.
    VpcId string
    The VPC ID.
    Timeouts GetVpcTimeouts
    ProjectId string
    STACKIT project ID to which the VPC is associated.
    VpcId string
    The VPC ID.
    Timeouts GetVpcTimeouts
    project_id string
    STACKIT project ID to which the VPC is associated.
    vpc_id string
    The VPC ID.
    timeouts object
    projectId String
    STACKIT project ID to which the VPC is associated.
    vpcId String
    The VPC ID.
    timeouts GetVpcTimeouts
    projectId string
    STACKIT project ID to which the VPC is associated.
    vpcId string
    The VPC ID.
    timeouts GetVpcTimeouts
    project_id str
    STACKIT project ID to which the VPC is associated.
    vpc_id str
    The VPC ID.
    timeouts GetVpcTimeouts
    projectId String
    STACKIT project ID to which the VPC is associated.
    vpcId String
    The VPC ID.
    timeouts Property Map

    getVpc Result

    The following output properties are available:

    Description string
    The description of the VPC.
    Id string
    Terraform's internal resource identifier. It is structured as "projectId,vpcId".
    Labels Dictionary<string, string>
    Labels are key-value string pairs which can be attached to a resource container
    Name string
    The name of the VPC.
    ProjectId string
    STACKIT project ID to which the VPC is associated.
    VpcId string
    The VPC ID.
    Timeouts GetVpcTimeouts
    Description string
    The description of the VPC.
    Id string
    Terraform's internal resource identifier. It is structured as "projectId,vpcId".
    Labels map[string]string
    Labels are key-value string pairs which can be attached to a resource container
    Name string
    The name of the VPC.
    ProjectId string
    STACKIT project ID to which the VPC is associated.
    VpcId string
    The VPC ID.
    Timeouts GetVpcTimeouts
    description string
    The description of the VPC.
    id string
    Terraform's internal resource identifier. It is structured as "projectId,vpcId".
    labels map(string)
    Labels are key-value string pairs which can be attached to a resource container
    name string
    The name of the VPC.
    project_id string
    STACKIT project ID to which the VPC is associated.
    vpc_id string
    The VPC ID.
    timeouts object
    description String
    The description of the VPC.
    id String
    Terraform's internal resource identifier. It is structured as "projectId,vpcId".
    labels Map<String,String>
    Labels are key-value string pairs which can be attached to a resource container
    name String
    The name of the VPC.
    projectId String
    STACKIT project ID to which the VPC is associated.
    vpcId String
    The VPC ID.
    timeouts GetVpcTimeouts
    description string
    The description of the VPC.
    id string
    Terraform's internal resource identifier. It is structured as "projectId,vpcId".
    labels {[key: string]: string}
    Labels are key-value string pairs which can be attached to a resource container
    name string
    The name of the VPC.
    projectId string
    STACKIT project ID to which the VPC is associated.
    vpcId string
    The VPC ID.
    timeouts GetVpcTimeouts
    description str
    The description of the VPC.
    id str
    Terraform's internal resource identifier. It is structured as "projectId,vpcId".
    labels Mapping[str, str]
    Labels are key-value string pairs which can be attached to a resource container
    name str
    The name of the VPC.
    project_id str
    STACKIT project ID to which the VPC is associated.
    vpc_id str
    The VPC ID.
    timeouts GetVpcTimeouts
    description String
    The description of the VPC.
    id String
    Terraform's internal resource identifier. It is structured as "projectId,vpcId".
    labels Map<String>
    Labels are key-value string pairs which can be attached to a resource container
    name String
    The name of the VPC.
    projectId String
    STACKIT project ID to which the VPC is associated.
    vpcId String
    The VPC ID.
    timeouts Property Map

    Supporting Types

    GetVpcTimeouts

    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