Viewing docs for Aiven v4.5.2 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
Viewing docs for Aiven v4.5.2 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
The Project VPC data source provides information about the existing Aiven Project VPC.
Example Usage
using Pulumi;
using Aiven = Pulumi.Aiven;
class MyStack : Stack
{
public MyStack()
{
var myvpc = Output.Create(Aiven.GetProjectVpc.InvokeAsync(new Aiven.GetProjectVpcArgs
{
Project = aiven_project.Myproject.Project,
CloudName = "google-europe-west1",
}));
}
}
package main
import (
"github.com/pulumi/pulumi-aiven/sdk/v4/go/aiven"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := aiven.LookupProjectVpc(ctx, &GetProjectVpcArgs{
Project: aiven_project.Myproject.Project,
CloudName: "google-europe-west1",
}, nil)
if err != nil {
return err
}
return nil
})
}
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const myvpc = aiven.getProjectVpc({
project: aiven_project.myproject.project,
cloudName: "google-europe-west1",
});
import pulumi
import pulumi_aiven as aiven
myvpc = aiven.get_project_vpc(project=aiven_project["myproject"]["project"],
cloud_name="google-europe-west1")
Example coming soon!
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,
opts: Optional[InvokeOptions] = None) -> GetProjectVpcResult
def get_project_vpc_output(cloud_name: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[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 dictionaryThe following arguments are supported:
- Cloud
Name string - Defines where the cloud provider and region where the service is hosted in. See the Service resource for additional information. This property cannot be changed, doing so forces recreation of the resource.
- Project string
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Cloud
Name string - Defines where the cloud provider and region where the service is hosted in. See the Service resource for additional information. This property cannot be changed, doing so forces recreation of the resource.
- Project string
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- cloud
Name String - Defines where the cloud provider and region where the service is hosted in. See the Service resource for additional information. This property cannot be changed, doing so forces recreation of the resource.
- project String
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- cloud
Name string - Defines where the cloud provider and region where the service is hosted in. See the Service resource for additional information. This property cannot be changed, doing so forces recreation of the resource.
- project string
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- cloud_
name str - Defines where the cloud provider and region where the service is hosted in. See the Service resource for additional information. This property cannot be changed, doing so forces recreation of the resource.
- project str
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- cloud
Name String - Defines where the cloud provider and region where the service is hosted in. See the Service resource for additional information. This property cannot be changed, doing so forces recreation of the resource.
- project String
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
getProjectVpc Result
The following output properties are available:
- Cloud
Name string - Defines where the cloud provider and region where the service is hosted in. See the Service resource for additional information. This property cannot be changed, doing so forces recreation of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Network
Cidr string - Network address range used by the VPC like 192.168.0.0/24
- Project string
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- State string
- State of the VPC. The possible values are
APPROVED,ACTIVE,DELETINGandDELETED.
- Cloud
Name string - Defines where the cloud provider and region where the service is hosted in. See the Service resource for additional information. This property cannot be changed, doing so forces recreation of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Network
Cidr string - Network address range used by the VPC like 192.168.0.0/24
- Project string
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- State string
- State of the VPC. The possible values are
APPROVED,ACTIVE,DELETINGandDELETED.
- cloud
Name String - Defines where the cloud provider and region where the service is hosted in. See the Service resource for additional information. This property cannot be changed, doing so forces recreation of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- network
Cidr String - Network address range used by the VPC like 192.168.0.0/24
- project String
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- state String
- State of the VPC. The possible values are
APPROVED,ACTIVE,DELETINGandDELETED.
- cloud
Name string - Defines where the cloud provider and region where the service is hosted in. See the Service resource for additional information. This property cannot be changed, doing so forces recreation of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- network
Cidr string - Network address range used by the VPC like 192.168.0.0/24
- project string
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- state string
- State of the VPC. The possible values are
APPROVED,ACTIVE,DELETINGandDELETED.
- cloud_
name str - Defines where the cloud provider and region where the service is hosted in. See the Service resource for additional information. This property cannot be changed, doing so forces recreation of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- network_
cidr str - Network address range used by the VPC like 192.168.0.0/24
- project str
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- state str
- State of the VPC. The possible values are
APPROVED,ACTIVE,DELETINGandDELETED.
- cloud
Name String - Defines where the cloud provider and region where the service is hosted in. See the Service resource for additional information. This property cannot be changed, doing so forces recreation of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- network
Cidr String - Network address range used by the VPC like 192.168.0.0/24
- project String
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- state String
- State of the VPC. The possible values are
APPROVED,ACTIVE,DELETINGandDELETED.
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 v4.5.2 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
