1. Packages
  2. Aiven
  3. API Docs
  4. getProjectVpc
Aiven v6.13.0 published on Monday, Mar 25, 2024 by Pulumi

aiven.getProjectVpc

Explore with Pulumi AI

aiven logo
Aiven v6.13.0 published on Monday, Mar 25, 2024 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 exampleVpc = aiven.getProjectVpc({
        project: data.aiven_project.example_project.project,
        cloudName: "google-europe-west1",
    });
    
    import pulumi
    import pulumi_aiven as aiven
    
    example_vpc = aiven.get_project_vpc(project=data["aiven_project"]["example_project"]["project"],
        cloud_name="google-europe-west1")
    
    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.LookupProjectVpc(ctx, &aiven.LookupProjectVpcArgs{
    			Project:   pulumi.StringRef(data.Aiven_project.Example_project.Project),
    			CloudName: pulumi.StringRef("google-europe-west1"),
    		}, 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 exampleVpc = Aiven.GetProjectVpc.Invoke(new()
        {
            Project = data.Aiven_project.Example_project.Project,
            CloudName = "google-europe-west1",
        });
    
    });
    
    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.List;
    import java.util.ArrayList;
    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 exampleVpc = AivenFunctions.getProjectVpc(GetProjectVpcArgs.builder()
                .project(data.aiven_project().example_project().project())
                .cloudName("google-europe-west1")
                .build());
    
        }
    }
    
    variables:
      exampleVpc:
        fn::invoke:
          Function: aiven:getProjectVpc
          Arguments:
            project: ${data.aiven_project.example_project.project}
            cloudName: google-europe-west1
    

    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,
                        vpc_id: 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,
                        vpc_id: 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aiven:index/getProjectVpc:getProjectVpc
      arguments:
        # arguments dictionary

    The following arguments are supported:

    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.
    Project string
    Identifies the project this resource belongs to.
    VpcId string
    The ID of the VPC. This can be used to filter out the other VPCs if there are more than one for the project and cloud.
    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.
    Project string
    Identifies the project this resource belongs to.
    VpcId string
    The ID of the VPC. This can be used to filter out the other VPCs if there are more than one for the project and cloud.
    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.
    project String
    Identifies the project this resource belongs to.
    vpcId String
    The ID of the VPC. This can be used to filter out the other VPCs if there are more than one for the project and cloud.
    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.
    project string
    Identifies the project this resource belongs to.
    vpcId string
    The ID of the VPC. This can be used to filter out the other VPCs if there are more than one for the project and cloud.
    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.
    project str
    Identifies the project this resource belongs to.
    vpc_id str
    The ID of the VPC. This can be used to filter out the other VPCs if there are more than one for the project and cloud.
    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.
    project String
    Identifies the project this resource belongs to.
    vpcId String
    The ID of the VPC. This can be used to filter out the other VPCs if there are more than one for the project and cloud.

    getProjectVpc Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    NetworkCidr string
    Network address range used by the VPC. For example, 192.168.0.0/24.
    State string
    State of the VPC. The possible values are APPROVED, ACTIVE, DELETING and DELETED.
    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.
    Project string
    Identifies the project this resource belongs to.
    VpcId string
    The ID of the VPC. This can be used to filter out the other VPCs if there are more than one for the project and cloud.
    Id string
    The provider-assigned unique ID for this managed resource.
    NetworkCidr string
    Network address range used by the VPC. For example, 192.168.0.0/24.
    State string
    State of the VPC. The possible values are APPROVED, ACTIVE, DELETING and DELETED.
    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.
    Project string
    Identifies the project this resource belongs to.
    VpcId string
    The ID of the VPC. This can be used to filter out the other VPCs if there are more than one for the project and cloud.
    id String
    The provider-assigned unique ID for this managed resource.
    networkCidr String
    Network address range used by the VPC. For example, 192.168.0.0/24.
    state String
    State of the VPC. The possible values are APPROVED, ACTIVE, DELETING and DELETED.
    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.
    project String
    Identifies the project this resource belongs to.
    vpcId String
    The ID of the VPC. This can be used to filter out the other VPCs if there are more than one for the project and cloud.
    id string
    The provider-assigned unique ID for this managed resource.
    networkCidr string
    Network address range used by the VPC. For example, 192.168.0.0/24.
    state string
    State of the VPC. The possible values are APPROVED, ACTIVE, DELETING and DELETED.
    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.
    project string
    Identifies the project this resource belongs to.
    vpcId string
    The ID of the VPC. This can be used to filter out the other VPCs if there are more than one for the project and cloud.
    id str
    The provider-assigned unique ID for this managed resource.
    network_cidr str
    Network address range used by the VPC. For example, 192.168.0.0/24.
    state str
    State of the VPC. The possible values are APPROVED, ACTIVE, DELETING and DELETED.
    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.
    project str
    Identifies the project this resource belongs to.
    vpc_id str
    The ID of the VPC. This can be used to filter out the other VPCs if there are more than one for the project and cloud.
    id String
    The provider-assigned unique ID for this managed resource.
    networkCidr String
    Network address range used by the VPC. For example, 192.168.0.0/24.
    state String
    State of the VPC. The possible values are APPROVED, ACTIVE, DELETING and DELETED.
    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.
    project String
    Identifies the project this resource belongs to.
    vpcId String
    The ID of the VPC. This can be used to filter out the other VPCs if there are more than one for the project and cloud.

    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 v6.13.0 published on Monday, Mar 25, 2024 by Pulumi