1. Packages
  2. Packages
  3. Aiven Provider
  4. API Docs
  5. getProjectVpc
Viewing docs for Aiven v6.56.0
published on Friday, Jun 12, 2026 by Pulumi
aiven logo
Viewing docs for Aiven v6.56.0
published on Friday, Jun 12, 2026 by Pulumi

    Gets information about the VPC for an Aiven project.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aiven from "@pulumi/aiven";
    
    const example = aiven.getProjectVpc({
        project: "my-project",
        projectVpcId: "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
    });
    
    import pulumi
    import pulumi_aiven as aiven
    
    example = aiven.get_project_vpc(project="my-project",
        project_vpc_id="1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aiven/sdk/v6/go/aiven"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := aiven.GetProjectVpc(ctx, &aiven.LookupProjectVpcArgs{
    			Project:      pulumi.StringRef("my-project"),
    			ProjectVpcId: pulumi.StringRef("1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aiven = Pulumi.Aiven;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Aiven.GetProjectVpc.Invoke(new()
        {
            Project = "my-project",
            ProjectVpcId = "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aiven.AivenFunctions;
    import com.pulumi.aiven.inputs.GetProjectVpcArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = AivenFunctions.getProjectVpc(GetProjectVpcArgs.builder()
                .project("my-project")
                .projectVpcId("1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: aiven:getProjectVpc
          arguments:
            project: my-project
            projectVpcId: 1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d
    
    pulumi {
      required_providers {
        aiven = {
          source = "pulumi/aiven"
        }
      }
    }
    
    data "aiven_getprojectvpc" "example" {
      project        = "my-project"
      project_vpc_id = "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d"
    }
    

    Using getProjectVpc

    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 getProjectVpc(args: GetProjectVpcArgs, opts?: InvokeOptions): Promise<GetProjectVpcResult>
    function getProjectVpcOutput(args: GetProjectVpcOutputArgs, opts?: InvokeOptions): Output<GetProjectVpcResult>
    def get_project_vpc(cloud_name: Optional[str] = None,
                        project: Optional[str] = None,
                        project_vpc_id: Optional[str] = None,
                        timeouts: Optional[GetProjectVpcTimeouts] = None,
                        vpc_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetProjectVpcResult
    def get_project_vpc_output(cloud_name: pulumi.Input[Optional[str]] = None,
                        project: pulumi.Input[Optional[str]] = None,
                        project_vpc_id: pulumi.Input[Optional[str]] = None,
                        timeouts: pulumi.Input[Optional[GetProjectVpcTimeoutsArgs]] = None,
                        vpc_id: pulumi.Input[Optional[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetProjectVpcResult]
    func LookupProjectVpc(ctx *Context, args *LookupProjectVpcArgs, opts ...InvokeOption) (*LookupProjectVpcResult, error)
    func LookupProjectVpcOutput(ctx *Context, args *LookupProjectVpcOutputArgs, opts ...InvokeOption) LookupProjectVpcResultOutput

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

    public static class GetProjectVpc 
    {
        public static Task<GetProjectVpcResult> InvokeAsync(GetProjectVpcArgs args, InvokeOptions? opts = null)
        public static Output<GetProjectVpcResult> Invoke(GetProjectVpcInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetProjectVpcResult> getProjectVpc(GetProjectVpcArgs args, InvokeOptions options)
    public static Output<GetProjectVpcResult> getProjectVpc(GetProjectVpcArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aiven:index/getProjectVpc:getProjectVpc
      arguments:
        # arguments dictionary
    data "aiven_getprojectvpc" "name" {
        # arguments
    }

    The following arguments are supported:

    CloudName string
    Target cloud. The field is required with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId.
    Project string
    Project name.
    ProjectVpcId string
    Project VPC ID. The field is required with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId.
    Timeouts GetProjectVpcTimeouts
    VpcId string
    The ID of the VPC in project/project_vpc_id format. The field conflicts with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId. Deprecated: This attribute is deprecated and will be removed in a future version. Use projectVpcId instead.

    Deprecated: This attribute is deprecated and will be removed in a future version. Use projectVpcId instead.

    CloudName string
    Target cloud. The field is required with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId.
    Project string
    Project name.
    ProjectVpcId string
    Project VPC ID. The field is required with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId.
    Timeouts GetProjectVpcTimeouts
    VpcId string
    The ID of the VPC in project/project_vpc_id format. The field conflicts with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId. Deprecated: This attribute is deprecated and will be removed in a future version. Use projectVpcId instead.

    Deprecated: This attribute is deprecated and will be removed in a future version. Use projectVpcId instead.

    cloud_name string
    Target cloud. The field is required with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId.
    project string
    Project name.
    project_vpc_id string
    Project VPC ID. The field is required with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId.
    timeouts object
    vpc_id string
    The ID of the VPC in project/project_vpc_id format. The field conflicts with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId. Deprecated: This attribute is deprecated and will be removed in a future version. Use projectVpcId instead.

    Deprecated: This attribute is deprecated and will be removed in a future version. Use projectVpcId instead.

    cloudName String
    Target cloud. The field is required with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId.
    project String
    Project name.
    projectVpcId String
    Project VPC ID. The field is required with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId.
    timeouts GetProjectVpcTimeouts
    vpcId String
    The ID of the VPC in project/project_vpc_id format. The field conflicts with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId. Deprecated: This attribute is deprecated and will be removed in a future version. Use projectVpcId instead.

    Deprecated: This attribute is deprecated and will be removed in a future version. Use projectVpcId instead.

    cloudName string
    Target cloud. The field is required with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId.
    project string
    Project name.
    projectVpcId string
    Project VPC ID. The field is required with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId.
    timeouts GetProjectVpcTimeouts
    vpcId string
    The ID of the VPC in project/project_vpc_id format. The field conflicts with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId. Deprecated: This attribute is deprecated and will be removed in a future version. Use projectVpcId instead.

    Deprecated: This attribute is deprecated and will be removed in a future version. Use projectVpcId instead.

    cloud_name str
    Target cloud. The field is required with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId.
    project str
    Project name.
    project_vpc_id str
    Project VPC ID. The field is required with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId.
    timeouts GetProjectVpcTimeouts
    vpc_id str
    The ID of the VPC in project/project_vpc_id format. The field conflicts with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId. Deprecated: This attribute is deprecated and will be removed in a future version. Use projectVpcId instead.

    Deprecated: This attribute is deprecated and will be removed in a future version. Use projectVpcId instead.

    cloudName String
    Target cloud. The field is required with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId.
    project String
    Project name.
    projectVpcId String
    Project VPC ID. The field is required with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId.
    timeouts Property Map
    vpcId String
    The ID of the VPC in project/project_vpc_id format. The field conflicts with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId. Deprecated: This attribute is deprecated and will be removed in a future version. Use projectVpcId instead.

    Deprecated: This attribute is deprecated and will be removed in a future version. Use projectVpcId instead.

    getProjectVpc Result

    The following output properties are available:

    CloudName string
    Target cloud. The field is required with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId.
    Id string
    Resource ID composed as: project/project_vpc_id.
    NetworkCidr string
    IPv4 network range CIDR.
    Project string
    Project name.
    ProjectVpcId string
    Project VPC ID. The field is required with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId.
    State string
    Project VPC state. The possible values are ACTIVE, APPROVED, DELETED and DELETING.
    Timeouts GetProjectVpcTimeouts
    VpcId string
    The ID of the VPC in project/project_vpc_id format. The field conflicts with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId. Deprecated: This attribute is deprecated and will be removed in a future version. Use projectVpcId instead.

    Deprecated: This attribute is deprecated and will be removed in a future version. Use projectVpcId instead.

    CloudName string
    Target cloud. The field is required with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId.
    Id string
    Resource ID composed as: project/project_vpc_id.
    NetworkCidr string
    IPv4 network range CIDR.
    Project string
    Project name.
    ProjectVpcId string
    Project VPC ID. The field is required with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId.
    State string
    Project VPC state. The possible values are ACTIVE, APPROVED, DELETED and DELETING.
    Timeouts GetProjectVpcTimeouts
    VpcId string
    The ID of the VPC in project/project_vpc_id format. The field conflicts with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId. Deprecated: This attribute is deprecated and will be removed in a future version. Use projectVpcId instead.

    Deprecated: This attribute is deprecated and will be removed in a future version. Use projectVpcId instead.

    cloud_name string
    Target cloud. The field is required with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId.
    id string
    Resource ID composed as: project/project_vpc_id.
    network_cidr string
    IPv4 network range CIDR.
    project string
    Project name.
    project_vpc_id string
    Project VPC ID. The field is required with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId.
    state string
    Project VPC state. The possible values are ACTIVE, APPROVED, DELETED and DELETING.
    timeouts object
    vpc_id string
    The ID of the VPC in project/project_vpc_id format. The field conflicts with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId. Deprecated: This attribute is deprecated and will be removed in a future version. Use projectVpcId instead.

    Deprecated: This attribute is deprecated and will be removed in a future version. Use projectVpcId instead.

    cloudName String
    Target cloud. The field is required with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId.
    id String
    Resource ID composed as: project/project_vpc_id.
    networkCidr String
    IPv4 network range CIDR.
    project String
    Project name.
    projectVpcId String
    Project VPC ID. The field is required with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId.
    state String
    Project VPC state. The possible values are ACTIVE, APPROVED, DELETED and DELETING.
    timeouts GetProjectVpcTimeouts
    vpcId String
    The ID of the VPC in project/project_vpc_id format. The field conflicts with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId. Deprecated: This attribute is deprecated and will be removed in a future version. Use projectVpcId instead.

    Deprecated: This attribute is deprecated and will be removed in a future version. Use projectVpcId instead.

    cloudName string
    Target cloud. The field is required with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId.
    id string
    Resource ID composed as: project/project_vpc_id.
    networkCidr string
    IPv4 network range CIDR.
    project string
    Project name.
    projectVpcId string
    Project VPC ID. The field is required with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId.
    state string
    Project VPC state. The possible values are ACTIVE, APPROVED, DELETED and DELETING.
    timeouts GetProjectVpcTimeouts
    vpcId string
    The ID of the VPC in project/project_vpc_id format. The field conflicts with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId. Deprecated: This attribute is deprecated and will be removed in a future version. Use projectVpcId instead.

    Deprecated: This attribute is deprecated and will be removed in a future version. Use projectVpcId instead.

    cloud_name str
    Target cloud. The field is required with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId.
    id str
    Resource ID composed as: project/project_vpc_id.
    network_cidr str
    IPv4 network range CIDR.
    project str
    Project name.
    project_vpc_id str
    Project VPC ID. The field is required with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId.
    state str
    Project VPC state. The possible values are ACTIVE, APPROVED, DELETED and DELETING.
    timeouts GetProjectVpcTimeouts
    vpc_id str
    The ID of the VPC in project/project_vpc_id format. The field conflicts with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId. Deprecated: This attribute is deprecated and will be removed in a future version. Use projectVpcId instead.

    Deprecated: This attribute is deprecated and will be removed in a future version. Use projectVpcId instead.

    cloudName String
    Target cloud. The field is required with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId.
    id String
    Resource ID composed as: project/project_vpc_id.
    networkCidr String
    IPv4 network range CIDR.
    project String
    Project name.
    projectVpcId String
    Project VPC ID. The field is required with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId.
    state String
    Project VPC state. The possible values are ACTIVE, APPROVED, DELETED and DELETING.
    timeouts Property Map
    vpcId String
    The ID of the VPC in project/project_vpc_id format. The field conflicts with project. Exactly one of the fields must be specified: projectVpcId, cloudName or vpcId. Deprecated: This attribute is deprecated and will be removed in a future version. Use projectVpcId instead.

    Deprecated: This attribute is deprecated and will be removed in a future version. Use projectVpcId instead.

    Supporting Types

    GetProjectVpcTimeouts

    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
    Aiven pulumi/pulumi-aiven
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aiven Terraform Provider.
    aiven logo
    Viewing docs for Aiven v6.56.0
    published on Friday, Jun 12, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial