1. Registry
  2. Packages
  3. Aiven Provider
  4. API Docs
  5. getOrganizationVpc
Viewing docs for Aiven v6.62.2
published on Saturday, Oct 31, 2026 by Pulumi
aiven logo aiven logo
Viewing docs for Aiven v6.62.2
published on Saturday, Oct 31, 2026 by Pulumi

    Gets information about an existing VPC in an Aiven organization.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aiven from "@pulumi/aiven";
    
    const example = aiven.getOrganizationVpc({
        organizationId: "org1a23f456789",
        organizationVpcId: "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
    });
    
    import pulumi
    import pulumi_aiven as aiven
    
    example = aiven.get_organization_vpc(organization_id="org1a23f456789",
        organization_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.GetOrganizationVpc(ctx, &aiven.LookupOrganizationVpcArgs{
    			OrganizationId:    "org1a23f456789",
    			OrganizationVpcId: "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.GetOrganizationVpc.Invoke(new()
        {
            OrganizationId = "org1a23f456789",
            OrganizationVpcId = "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.GetOrganizationVpcArgs;
    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.getOrganizationVpc(GetOrganizationVpcArgs.builder()
                .organizationId("org1a23f456789")
                .organizationVpcId("1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: aiven:getOrganizationVpc
          arguments:
            organizationId: org1a23f456789
            organizationVpcId: 1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d
    
    terraform {
      required_providers {
        aiven = {
          source = "pulumi/aiven"
        }
      }
    }
    
    data "aiven_organization_vpc" "example" {
      organization_id     = "org1a23f456789"
      organization_vpc_id = "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d"
    }
    

    Using getOrganizationVpc

    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 getOrganizationVpc(args: GetOrganizationVpcArgs, opts?: InvokeOptions): Promise<GetOrganizationVpcResult>
    function getOrganizationVpcOutput(args: GetOrganizationVpcOutputArgs, opts?: InvokeOutputOptions): Output<GetOrganizationVpcResult>
    def get_organization_vpc(organization_id: Optional[str] = None,
                             organization_vpc_id: Optional[str] = None,
                             timeouts: Optional[GetOrganizationVpcTimeouts] = None,
                             opts: Optional[InvokeOptions] = None) -> GetOrganizationVpcResult
    def get_organization_vpc_output(organization_id: pulumi.Input[Optional[str]] = None,
                             organization_vpc_id: pulumi.Input[Optional[str]] = None,
                             timeouts: pulumi.Input[Optional[GetOrganizationVpcTimeoutsArgs]] = None,
                             opts: Optional[InvokeOutputOptions] = None) -> Output[GetOrganizationVpcResult]
    func LookupOrganizationVpc(ctx *Context, args *LookupOrganizationVpcArgs, opts ...InvokeOption) (*LookupOrganizationVpcResult, error)
    func LookupOrganizationVpcOutput(ctx *Context, args *LookupOrganizationVpcOutputArgs, opts ...InvokeOption) LookupOrganizationVpcResultOutput

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

    public static class GetOrganizationVpc 
    {
        public static Task<GetOrganizationVpcResult> InvokeAsync(GetOrganizationVpcArgs args, InvokeOptions? opts = null)
        public static Output<GetOrganizationVpcResult> Invoke(GetOrganizationVpcInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetOrganizationVpcResult> Invoke(GetOrganizationVpcInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetOrganizationVpcResult> getOrganizationVpc(GetOrganizationVpcArgs args, InvokeOptions options)
    public static Output<GetOrganizationVpcResult> getOrganizationVpc(GetOrganizationVpcArgs args, InvokeOptions options)
    public static Output<GetOrganizationVpcResult> getOrganizationVpc(GetOrganizationVpcArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aiven:index/getOrganizationVpc:getOrganizationVpc
      arguments:
        # arguments dictionary
    data "aiven_get_organization_vpc" "name" {
        # arguments
    }

    The following arguments are supported:

    OrganizationId string
    ID of an organization.
    OrganizationVpcId string
    The ID of the Aiven Organization VPC.
    Timeouts GetOrganizationVpcTimeouts
    OrganizationId string
    ID of an organization.
    OrganizationVpcId string
    The ID of the Aiven Organization VPC.
    Timeouts GetOrganizationVpcTimeouts
    organization_id string
    ID of an organization.
    organization_vpc_id string
    The ID of the Aiven Organization VPC.
    timeouts object
    organizationId String
    ID of an organization.
    organizationVpcId String
    The ID of the Aiven Organization VPC.
    timeouts GetOrganizationVpcTimeouts
    organizationId string
    ID of an organization.
    organizationVpcId string
    The ID of the Aiven Organization VPC.
    timeouts GetOrganizationVpcTimeouts
    organization_id str
    ID of an organization.
    organization_vpc_id str
    The ID of the Aiven Organization VPC.
    timeouts GetOrganizationVpcTimeouts
    organizationId String
    ID of an organization.
    organizationVpcId String
    The ID of the Aiven Organization VPC.
    timeouts Property Map

    getOrganizationVpc Result

    The following output properties are available:

    CloudName string
    The cloud provider and region where the service is hosted in the format CLOUD_PROVIDER-REGION_NAME. For example, google-europe-west1 or aws-us-east-2.
    CreateTime string
    VPC creation timestamp.
    DisplayName string
    User defined display name for this VPC.
    Id string
    Resource ID composed as: organization_id/organization_vpc_id.
    NetworkCidr string
    Network address range used by the VPC. For example, 192.168.0.0/24.
    OrganizationId string
    ID of an organization.
    OrganizationVpcId string
    The ID of the Aiven Organization VPC.
    State string
    State of the VPC. The possible values are ACTIVE, APPROVED, DELETED and DELETING.
    UpdateTime string
    Timestamp of last change to VPC.
    Timeouts GetOrganizationVpcTimeouts
    CloudName string
    The cloud provider and region where the service is hosted in the format CLOUD_PROVIDER-REGION_NAME. For example, google-europe-west1 or aws-us-east-2.
    CreateTime string
    VPC creation timestamp.
    DisplayName string
    User defined display name for this VPC.
    Id string
    Resource ID composed as: organization_id/organization_vpc_id.
    NetworkCidr string
    Network address range used by the VPC. For example, 192.168.0.0/24.
    OrganizationId string
    ID of an organization.
    OrganizationVpcId string
    The ID of the Aiven Organization VPC.
    State string
    State of the VPC. The possible values are ACTIVE, APPROVED, DELETED and DELETING.
    UpdateTime string
    Timestamp of last change to VPC.
    Timeouts GetOrganizationVpcTimeouts
    cloud_name string
    The cloud provider and region where the service is hosted in the format CLOUD_PROVIDER-REGION_NAME. For example, google-europe-west1 or aws-us-east-2.
    create_time string
    VPC creation timestamp.
    display_name string
    User defined display name for this VPC.
    id string
    Resource ID composed as: organization_id/organization_vpc_id.
    network_cidr string
    Network address range used by the VPC. For example, 192.168.0.0/24.
    organization_id string
    ID of an organization.
    organization_vpc_id string
    The ID of the Aiven Organization VPC.
    state string
    State of the VPC. The possible values are ACTIVE, APPROVED, DELETED and DELETING.
    update_time string
    Timestamp of last change to VPC.
    timeouts object
    cloudName String
    The cloud provider and region where the service is hosted in the format CLOUD_PROVIDER-REGION_NAME. For example, google-europe-west1 or aws-us-east-2.
    createTime String
    VPC creation timestamp.
    displayName String
    User defined display name for this VPC.
    id String
    Resource ID composed as: organization_id/organization_vpc_id.
    networkCidr String
    Network address range used by the VPC. For example, 192.168.0.0/24.
    organizationId String
    ID of an organization.
    organizationVpcId String
    The ID of the Aiven Organization VPC.
    state String
    State of the VPC. The possible values are ACTIVE, APPROVED, DELETED and DELETING.
    updateTime String
    Timestamp of last change to VPC.
    timeouts GetOrganizationVpcTimeouts
    cloudName string
    The cloud provider and region where the service is hosted in the format CLOUD_PROVIDER-REGION_NAME. For example, google-europe-west1 or aws-us-east-2.
    createTime string
    VPC creation timestamp.
    displayName string
    User defined display name for this VPC.
    id string
    Resource ID composed as: organization_id/organization_vpc_id.
    networkCidr string
    Network address range used by the VPC. For example, 192.168.0.0/24.
    organizationId string
    ID of an organization.
    organizationVpcId string
    The ID of the Aiven Organization VPC.
    state string
    State of the VPC. The possible values are ACTIVE, APPROVED, DELETED and DELETING.
    updateTime string
    Timestamp of last change to VPC.
    timeouts GetOrganizationVpcTimeouts
    cloud_name str
    The cloud provider and region where the service is hosted in the format CLOUD_PROVIDER-REGION_NAME. For example, google-europe-west1 or aws-us-east-2.
    create_time str
    VPC creation timestamp.
    display_name str
    User defined display name for this VPC.
    id str
    Resource ID composed as: organization_id/organization_vpc_id.
    network_cidr str
    Network address range used by the VPC. For example, 192.168.0.0/24.
    organization_id str
    ID of an organization.
    organization_vpc_id str
    The ID of the Aiven Organization VPC.
    state str
    State of the VPC. The possible values are ACTIVE, APPROVED, DELETED and DELETING.
    update_time str
    Timestamp of last change to VPC.
    timeouts GetOrganizationVpcTimeouts
    cloudName String
    The cloud provider and region where the service is hosted in the format CLOUD_PROVIDER-REGION_NAME. For example, google-europe-west1 or aws-us-east-2.
    createTime String
    VPC creation timestamp.
    displayName String
    User defined display name for this VPC.
    id String
    Resource ID composed as: organization_id/organization_vpc_id.
    networkCidr String
    Network address range used by the VPC. For example, 192.168.0.0/24.
    organizationId String
    ID of an organization.
    organizationVpcId String
    The ID of the Aiven Organization VPC.
    state String
    State of the VPC. The possible values are ACTIVE, APPROVED, DELETED and DELETING.
    updateTime String
    Timestamp of last change to VPC.
    timeouts Property Map

    Supporting Types

    GetOrganizationVpcTimeouts

    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 aiven logo
    Viewing docs for Aiven v6.62.2
    published on Saturday, Oct 31, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial