Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

getProjectVpc

# Project VPC Data Source

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
        {
            CloudName = "google-europe-west1",
            Project = aiven_project.Myproject.Project,
        }));
    }

}
package main

import (
    "github.com/pulumi/pulumi-aiven/sdk/v3/go/aiven"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := aiven.LookupProjectVpc(ctx, &aiven.LookupProjectVpcArgs{
            CloudName: "google-europe-west1",
            Project:   aiven_project.Myproject.Project,
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aiven as aiven

myvpc = aiven.get_project_vpc(cloud_name="google-europe-west1",
    project=aiven_project["myproject"]["project"])
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";

const myvpc = aiven_project_myproject.project.apply(project => aiven.getProjectVpc({
    cloudName: "google-europe-west1",
    project: project,
}, { async: true }));

Using getProjectVpc

function getProjectVpc(args: GetProjectVpcArgs, opts?: InvokeOptions): Promise<GetProjectVpcResult>
def get_project_vpc(cloud_name: Optional[str] = None, network_cidr: Optional[str] = None, project: Optional[str] = None, state: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetProjectVpcResult
func LookupProjectVpc(ctx *Context, args *LookupProjectVpcArgs, opts ...InvokeOption) (*LookupProjectVpcResult, error)

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

public static class GetProjectVpc {
    public static Task<GetProjectVpcResult> InvokeAsync(GetProjectVpcArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

CloudName string

defines where the cloud provider and region where the service is hosted in. See the Service resource for additional information.

Project string

defines the project the VPC belongs to.

NetworkCidr string

defines the network CIDR of the VPC.

State string

ia a computed property that tells the current state of the VPC. This property cannot be set, only read.

CloudName string

defines where the cloud provider and region where the service is hosted in. See the Service resource for additional information.

Project string

defines the project the VPC belongs to.

NetworkCidr string

defines the network CIDR of the VPC.

State string

ia a computed property that tells the current state of the VPC. This property cannot be set, only read.

cloudName string

defines where the cloud provider and region where the service is hosted in. See the Service resource for additional information.

project string

defines the project the VPC belongs to.

networkCidr string

defines the network CIDR of the VPC.

state string

ia a computed property that tells the current state of the VPC. This property cannot be set, only read.

cloud_name str

defines where the cloud provider and region where the service is hosted in. See the Service resource for additional information.

project str

defines the project the VPC belongs to.

network_cidr str

defines the network CIDR of the VPC.

state str

ia a computed property that tells the current state of the VPC. This property cannot be set, only read.

getProjectVpc Result

The following output properties are available:

CloudName string
Id string

The provider-assigned unique ID for this managed resource.

Project string
State string

ia a computed property that tells the current state of the VPC. This property cannot be set, only read.

NetworkCidr string

defines the network CIDR of the VPC.

CloudName string
Id string

The provider-assigned unique ID for this managed resource.

Project string
State string

ia a computed property that tells the current state of the VPC. This property cannot be set, only read.

NetworkCidr string

defines the network CIDR of the VPC.

cloudName string
id string

The provider-assigned unique ID for this managed resource.

project string
state string

ia a computed property that tells the current state of the VPC. This property cannot be set, only read.

networkCidr string

defines the network CIDR of the VPC.

cloud_name str
id str

The provider-assigned unique ID for this managed resource.

project str
state str

ia a computed property that tells the current state of the VPC. This property cannot be set, only read.

network_cidr str

defines the network CIDR of the VPC.

Package Details

Repository
https://github.com/pulumi/pulumi-aiven
License
Apache-2.0
Notes
This Pulumi package is based on the aiven Terraform Provider.