Viewing docs for Aiven v6.56.0
published on Friday, Jun 12, 2026 by Pulumi
published on Friday, Jun 12, 2026 by Pulumi
Viewing docs for Aiven v6.56.0
published on Friday, Jun 12, 2026 by Pulumi
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 dictionarydata "aiven_getprojectvpc" "name" {
# arguments
}The following arguments are supported:
- Cloud
Name string - Target cloud. The field is required with
project. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. - Project string
- Project name.
- Project
Vpc stringId - Project VPC ID. The field is required with
project. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. - Timeouts
Get
Project Vpc Timeouts - Vpc
Id string - The ID of the VPC in
project/project_vpc_idformat. The field conflicts withproject. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. Deprecated: This attribute is deprecated and will be removed in a future version. UseprojectVpcIdinstead.
- Cloud
Name string - Target cloud. The field is required with
project. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. - Project string
- Project name.
- Project
Vpc stringId - Project VPC ID. The field is required with
project. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. - Timeouts
Get
Project Vpc Timeouts - Vpc
Id string - The ID of the VPC in
project/project_vpc_idformat. The field conflicts withproject. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. Deprecated: This attribute is deprecated and will be removed in a future version. UseprojectVpcIdinstead.
- cloud_
name string - Target cloud. The field is required with
project. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. - project string
- Project name.
- project_
vpc_ stringid - Project VPC ID. The field is required with
project. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. - timeouts object
- vpc_
id string - The ID of the VPC in
project/project_vpc_idformat. The field conflicts withproject. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. Deprecated: This attribute is deprecated and will be removed in a future version. UseprojectVpcIdinstead.
- cloud
Name String - Target cloud. The field is required with
project. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. - project String
- Project name.
- project
Vpc StringId - Project VPC ID. The field is required with
project. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. - timeouts
Get
Project Vpc Timeouts - vpc
Id String - The ID of the VPC in
project/project_vpc_idformat. The field conflicts withproject. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. Deprecated: This attribute is deprecated and will be removed in a future version. UseprojectVpcIdinstead.
- cloud
Name string - Target cloud. The field is required with
project. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. - project string
- Project name.
- project
Vpc stringId - Project VPC ID. The field is required with
project. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. - timeouts
Get
Project Vpc Timeouts - vpc
Id string - The ID of the VPC in
project/project_vpc_idformat. The field conflicts withproject. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. Deprecated: This attribute is deprecated and will be removed in a future version. UseprojectVpcIdinstead.
- cloud_
name str - Target cloud. The field is required with
project. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. - project str
- Project name.
- project_
vpc_ strid - Project VPC ID. The field is required with
project. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. - timeouts
Get
Project Vpc Timeouts - vpc_
id str - The ID of the VPC in
project/project_vpc_idformat. The field conflicts withproject. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. Deprecated: This attribute is deprecated and will be removed in a future version. UseprojectVpcIdinstead.
- cloud
Name String - Target cloud. The field is required with
project. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. - project String
- Project name.
- project
Vpc StringId - Project VPC ID. The field is required with
project. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. - timeouts Property Map
- vpc
Id String - The ID of the VPC in
project/project_vpc_idformat. The field conflicts withproject. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. Deprecated: This attribute is deprecated and will be removed in a future version. UseprojectVpcIdinstead.
getProjectVpc Result
The following output properties are available:
- Cloud
Name string - Target cloud. The field is required with
project. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. - Id string
- Resource ID composed as:
project/project_vpc_id. - Network
Cidr string - IPv4 network range CIDR.
- Project string
- Project name.
- Project
Vpc stringId - Project VPC ID. The field is required with
project. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. - State string
- Project VPC state. The possible values are
ACTIVE,APPROVED,DELETEDandDELETING. - Timeouts
Get
Project Vpc Timeouts - Vpc
Id string - The ID of the VPC in
project/project_vpc_idformat. The field conflicts withproject. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. Deprecated: This attribute is deprecated and will be removed in a future version. UseprojectVpcIdinstead.
- Cloud
Name string - Target cloud. The field is required with
project. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. - Id string
- Resource ID composed as:
project/project_vpc_id. - Network
Cidr string - IPv4 network range CIDR.
- Project string
- Project name.
- Project
Vpc stringId - Project VPC ID. The field is required with
project. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. - State string
- Project VPC state. The possible values are
ACTIVE,APPROVED,DELETEDandDELETING. - Timeouts
Get
Project Vpc Timeouts - Vpc
Id string - The ID of the VPC in
project/project_vpc_idformat. The field conflicts withproject. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. Deprecated: This attribute is deprecated and will be removed in a future version. UseprojectVpcIdinstead.
- cloud_
name string - Target cloud. The field is required with
project. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. - id string
- Resource ID composed as:
project/project_vpc_id. - network_
cidr string - IPv4 network range CIDR.
- project string
- Project name.
- project_
vpc_ stringid - Project VPC ID. The field is required with
project. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. - state string
- Project VPC state. The possible values are
ACTIVE,APPROVED,DELETEDandDELETING. - timeouts object
- vpc_
id string - The ID of the VPC in
project/project_vpc_idformat. The field conflicts withproject. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. Deprecated: This attribute is deprecated and will be removed in a future version. UseprojectVpcIdinstead.
- cloud
Name String - Target cloud. The field is required with
project. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. - id String
- Resource ID composed as:
project/project_vpc_id. - network
Cidr String - IPv4 network range CIDR.
- project String
- Project name.
- project
Vpc StringId - Project VPC ID. The field is required with
project. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. - state String
- Project VPC state. The possible values are
ACTIVE,APPROVED,DELETEDandDELETING. - timeouts
Get
Project Vpc Timeouts - vpc
Id String - The ID of the VPC in
project/project_vpc_idformat. The field conflicts withproject. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. Deprecated: This attribute is deprecated and will be removed in a future version. UseprojectVpcIdinstead.
- cloud
Name string - Target cloud. The field is required with
project. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. - id string
- Resource ID composed as:
project/project_vpc_id. - network
Cidr string - IPv4 network range CIDR.
- project string
- Project name.
- project
Vpc stringId - Project VPC ID. The field is required with
project. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. - state string
- Project VPC state. The possible values are
ACTIVE,APPROVED,DELETEDandDELETING. - timeouts
Get
Project Vpc Timeouts - vpc
Id string - The ID of the VPC in
project/project_vpc_idformat. The field conflicts withproject. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. Deprecated: This attribute is deprecated and will be removed in a future version. UseprojectVpcIdinstead.
- cloud_
name str - Target cloud. The field is required with
project. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. - id str
- Resource ID composed as:
project/project_vpc_id. - network_
cidr str - IPv4 network range CIDR.
- project str
- Project name.
- project_
vpc_ strid - Project VPC ID. The field is required with
project. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. - state str
- Project VPC state. The possible values are
ACTIVE,APPROVED,DELETEDandDELETING. - timeouts
Get
Project Vpc Timeouts - vpc_
id str - The ID of the VPC in
project/project_vpc_idformat. The field conflicts withproject. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. Deprecated: This attribute is deprecated and will be removed in a future version. UseprojectVpcIdinstead.
- cloud
Name String - Target cloud. The field is required with
project. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. - id String
- Resource ID composed as:
project/project_vpc_id. - network
Cidr String - IPv4 network range CIDR.
- project String
- Project name.
- project
Vpc StringId - Project VPC ID. The field is required with
project. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. - state String
- Project VPC state. The possible values are
ACTIVE,APPROVED,DELETEDandDELETING. - timeouts Property Map
- vpc
Id String - The ID of the VPC in
project/project_vpc_idformat. The field conflicts withproject. Exactly one of the fields must be specified:projectVpcId,cloudNameorvpcId. Deprecated: This attribute is deprecated and will be removed in a future version. UseprojectVpcIdinstead.
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
aivenTerraform Provider.
Viewing docs for Aiven v6.56.0
published on Friday, Jun 12, 2026 by Pulumi
published on Friday, Jun 12, 2026 by Pulumi