Aiven v6.25.0 published on Friday, Sep 27, 2024 by Pulumi
aiven.getProjectVpc
Explore with Pulumi AI
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: exampleProject.project,
cloudName: "google-europe-west1",
});
import pulumi
import pulumi_aiven as aiven
example_vpc = aiven.get_project_vpc(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(exampleProject.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 = exampleProject.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(exampleProject.project())
.cloudName("google-europe-west1")
.build());
}
}
variables:
exampleVpc:
fn::invoke:
Function: aiven:getProjectVpc
Arguments:
project: ${exampleProject.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:
- 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
oraws-us-east-2
. - Project string
- Identifies the project this resource belongs to.
- Vpc
Id 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 string - The cloud provider and region where the service is hosted in the format
CLOUD_PROVIDER-REGION_NAME
. For example,google-europe-west1
oraws-us-east-2
. - Project string
- Identifies the project this resource belongs to.
- Vpc
Id 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 String - The cloud provider and region where the service is hosted in the format
CLOUD_PROVIDER-REGION_NAME
. For example,google-europe-west1
oraws-us-east-2
. - project String
- Identifies the project this resource belongs to.
- vpc
Id 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 string - The cloud provider and region where the service is hosted in the format
CLOUD_PROVIDER-REGION_NAME
. For example,google-europe-west1
oraws-us-east-2
. - project string
- Identifies the project this resource belongs to.
- vpc
Id 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
oraws-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.
- 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
oraws-us-east-2
. - project String
- Identifies the project this resource belongs to.
- vpc
Id 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.
- Network
Cidr 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
ACTIVE
,APPROVED
,DELETED
andDELETING
. - 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
oraws-us-east-2
. - Project string
- Identifies the project this resource belongs to.
- Vpc
Id 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.
- Network
Cidr 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
ACTIVE
,APPROVED
,DELETED
andDELETING
. - 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
oraws-us-east-2
. - Project string
- Identifies the project this resource belongs to.
- Vpc
Id 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.
- network
Cidr 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
ACTIVE
,APPROVED
,DELETED
andDELETING
. - 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
oraws-us-east-2
. - project String
- Identifies the project this resource belongs to.
- vpc
Id 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.
- network
Cidr 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
ACTIVE
,APPROVED
,DELETED
andDELETING
. - 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
oraws-us-east-2
. - project string
- Identifies the project this resource belongs to.
- vpc
Id 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
ACTIVE
,APPROVED
,DELETED
andDELETING
. - 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
oraws-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.
- network
Cidr 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
ACTIVE
,APPROVED
,DELETED
andDELETING
. - 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
oraws-us-east-2
. - project String
- Identifies the project this resource belongs to.
- vpc
Id 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.