Aviatrix v0.0.11 published on Saturday, Jun 17, 2023 by Aviatrix
aviatrix.getAviatrixVpc
Explore with Pulumi AI
The aviatrix_vpc data source provides details about a specific VPC created by the Aviatrix Controller.
This data source can prove useful when a module accepts any form of VPC detail as an input variable. For example, requiring a subnet CIDR specification when creating a gateway.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Aviatrix = Pulumi.Aviatrix;
return await Deployment.RunAsync(() => 
{
    var test = Aviatrix.GetAviatrixVpc.Invoke(new()
    {
        Name = "vpc-test",
    });
});
package main
import (
	"github.com/astipkovits/pulumi-aviatrix/sdk/go/aviatrix"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err = aviatrix.LookupAviatrixVpc(ctx, &GetAviatrixVpcArgs{
			Name: "vpc-test",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aviatrix.AviatrixFunctions;
import com.pulumi.aviatrix.inputs.GetAviatrixVpcArgs;
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 test = AviatrixFunctions.getAviatrixVpc(GetAviatrixVpcArgs.builder()
            .name("vpc-test")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as aviatrix from "@pulumi/aviatrix";
// Aviatrix VPC Data Source
const test = pulumi.output(aviatrix.getAviatrixVpc({
    name: "vpc-test",
}));
import pulumi
import pulumi_aviatrix as aviatrix
test = aviatrix.get_aviatrix_vpc(name="vpc-test")
variables:
  test:
    fn::invoke:
      Function: aviatrix:getAviatrixVpc
      Arguments:
        name: vpc-test
Using getAviatrixVpc
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 getAviatrixVpc(args: GetAviatrixVpcArgs, opts?: InvokeOptions): Promise<GetAviatrixVpcResult>
function getAviatrixVpcOutput(args: GetAviatrixVpcOutputArgs, opts?: InvokeOptions): Output<GetAviatrixVpcResult>def get_aviatrix_vpc(name: Optional[str] = None,
                     route_tables_filter: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetAviatrixVpcResult
def get_aviatrix_vpc_output(name: Optional[pulumi.Input[str]] = None,
                     route_tables_filter: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetAviatrixVpcResult]func LookupAviatrixVpc(ctx *Context, args *LookupAviatrixVpcArgs, opts ...InvokeOption) (*LookupAviatrixVpcResult, error)
func LookupAviatrixVpcOutput(ctx *Context, args *LookupAviatrixVpcOutputArgs, opts ...InvokeOption) LookupAviatrixVpcResultOutput> Note: This function is named LookupAviatrixVpc in the Go SDK.
public static class GetAviatrixVpc 
{
    public static Task<GetAviatrixVpcResult> InvokeAsync(GetAviatrixVpcArgs args, InvokeOptions? opts = null)
    public static Output<GetAviatrixVpcResult> Invoke(GetAviatrixVpcInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAviatrixVpcResult> getAviatrixVpc(GetAviatrixVpcArgs args, InvokeOptions options)
public static Output<GetAviatrixVpcResult> getAviatrixVpc(GetAviatrixVpcArgs args, InvokeOptions options)
fn::invoke:
  function: aviatrix:index/getAviatrixVpc:getAviatrixVpc
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Name string
 - Name of the Aviatrix VPC.
 - Route
Tables stringFilter  - Filters the 
route_tableslist to contain only public or private route tables. Valid values are 'private' or 'public'. If not setroute_tablesis not filtered. 
- Name string
 - Name of the Aviatrix VPC.
 - Route
Tables stringFilter  - Filters the 
route_tableslist to contain only public or private route tables. Valid values are 'private' or 'public'. If not setroute_tablesis not filtered. 
- name String
 - Name of the Aviatrix VPC.
 - route
Tables StringFilter  - Filters the 
route_tableslist to contain only public or private route tables. Valid values are 'private' or 'public'. If not setroute_tablesis not filtered. 
- name string
 - Name of the Aviatrix VPC.
 - route
Tables stringFilter  - Filters the 
route_tableslist to contain only public or private route tables. Valid values are 'private' or 'public'. If not setroute_tablesis not filtered. 
- name str
 - Name of the Aviatrix VPC.
 - route_
tables_ strfilter  - Filters the 
route_tableslist to contain only public or private route tables. Valid values are 'private' or 'public'. If not setroute_tablesis not filtered. 
- name String
 - Name of the Aviatrix VPC.
 - route
Tables StringFilter  - Filters the 
route_tableslist to contain only public or private route tables. Valid values are 'private' or 'public'. If not setroute_tablesis not filtered. 
getAviatrixVpc Result
The following output properties are available:
- Account
Name string - Account name of the VPC created.
 - Availability
Domains List<string> - List of OCI availability domains.
 - Aviatrix
Firenet boolVpc  - Switch if the VPC created is an Aviatrix FireNet VPC or not.
 - Aviatrix
Transit boolVpc  - Switch if the VPC created is an Aviatrix Transit VPC or not.
 - Azure
Vnet stringResource Id  - Azure vnet resource ID.
 - Cidr string
 - Private subnet CIDR.
 - Cloud
Type int - Type of cloud service provider.
 - Fault
Domains List<string> - List of OCI fault domains.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Name string
 - Private subnet name.
 - Num
Of intSubnet Pairs  - Number of public subnet and private subnet pair created. Only supported for AWS, Azure provider.
 - Private
Subnets List<GetAviatrix Vpc Private Subnet>  - List of private subnet of the VPC(AWS, Azure) created.
 - Public
Subnets List<GetAviatrix Vpc Public Subnet>  - List of public subnet of the VPC(AWS, Azure) created.
 - Region string
 - Region of the VPC created.
 - Resource
Group string - Resource group of the Azure VPC created.
 - Route
Tables List<string> - List of route table ids associated with this VPC. Only populated for AWS, AWSGov and Azure vpc.
 - Subnet
Size int - Subnet size. Only supported for AWS, Azure provider.
 - Subnets
List<Get
Aviatrix Vpc Subnet>  - List of subnet of the VPC created.
 - Vpc
Id string - ID of the VPC created.
 - Route
Tables stringFilter  
- Account
Name string - Account name of the VPC created.
 - Availability
Domains []string - List of OCI availability domains.
 - Aviatrix
Firenet boolVpc  - Switch if the VPC created is an Aviatrix FireNet VPC or not.
 - Aviatrix
Transit boolVpc  - Switch if the VPC created is an Aviatrix Transit VPC or not.
 - Azure
Vnet stringResource Id  - Azure vnet resource ID.
 - Cidr string
 - Private subnet CIDR.
 - Cloud
Type int - Type of cloud service provider.
 - Fault
Domains []string - List of OCI fault domains.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Name string
 - Private subnet name.
 - Num
Of intSubnet Pairs  - Number of public subnet and private subnet pair created. Only supported for AWS, Azure provider.
 - Private
Subnets []GetAviatrix Vpc Private Subnet  - List of private subnet of the VPC(AWS, Azure) created.
 - Public
Subnets []GetAviatrix Vpc Public Subnet  - List of public subnet of the VPC(AWS, Azure) created.
 - Region string
 - Region of the VPC created.
 - Resource
Group string - Resource group of the Azure VPC created.
 - Route
Tables []string - List of route table ids associated with this VPC. Only populated for AWS, AWSGov and Azure vpc.
 - Subnet
Size int - Subnet size. Only supported for AWS, Azure provider.
 - Subnets
[]Get
Aviatrix Vpc Subnet  - List of subnet of the VPC created.
 - Vpc
Id string - ID of the VPC created.
 - Route
Tables stringFilter  
- account
Name String - Account name of the VPC created.
 - availability
Domains List<String> - List of OCI availability domains.
 - aviatrix
Firenet BooleanVpc  - Switch if the VPC created is an Aviatrix FireNet VPC or not.
 - aviatrix
Transit BooleanVpc  - Switch if the VPC created is an Aviatrix Transit VPC or not.
 - azure
Vnet StringResource Id  - Azure vnet resource ID.
 - cidr String
 - Private subnet CIDR.
 - cloud
Type Integer - Type of cloud service provider.
 - fault
Domains List<String> - List of OCI fault domains.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - name String
 - Private subnet name.
 - num
Of IntegerSubnet Pairs  - Number of public subnet and private subnet pair created. Only supported for AWS, Azure provider.
 - private
Subnets List<GetAviatrix Vpc Private Subnet>  - List of private subnet of the VPC(AWS, Azure) created.
 - public
Subnets List<GetAviatrix Vpc Public Subnet>  - List of public subnet of the VPC(AWS, Azure) created.
 - region String
 - Region of the VPC created.
 - resource
Group String - Resource group of the Azure VPC created.
 - route
Tables List<String> - List of route table ids associated with this VPC. Only populated for AWS, AWSGov and Azure vpc.
 - subnet
Size Integer - Subnet size. Only supported for AWS, Azure provider.
 - subnets
List<Get
Aviatrix Vpc Subnet>  - List of subnet of the VPC created.
 - vpc
Id String - ID of the VPC created.
 - route
Tables StringFilter  
- account
Name string - Account name of the VPC created.
 - availability
Domains string[] - List of OCI availability domains.
 - aviatrix
Firenet booleanVpc  - Switch if the VPC created is an Aviatrix FireNet VPC or not.
 - aviatrix
Transit booleanVpc  - Switch if the VPC created is an Aviatrix Transit VPC or not.
 - azure
Vnet stringResource Id  - Azure vnet resource ID.
 - cidr string
 - Private subnet CIDR.
 - cloud
Type number - Type of cloud service provider.
 - fault
Domains string[] - List of OCI fault domains.
 - id string
 - The provider-assigned unique ID for this managed resource.
 - name string
 - Private subnet name.
 - num
Of numberSubnet Pairs  - Number of public subnet and private subnet pair created. Only supported for AWS, Azure provider.
 - private
Subnets GetAviatrix Vpc Private Subnet[]  - List of private subnet of the VPC(AWS, Azure) created.
 - public
Subnets GetAviatrix Vpc Public Subnet[]  - List of public subnet of the VPC(AWS, Azure) created.
 - region string
 - Region of the VPC created.
 - resource
Group string - Resource group of the Azure VPC created.
 - route
Tables string[] - List of route table ids associated with this VPC. Only populated for AWS, AWSGov and Azure vpc.
 - subnet
Size number - Subnet size. Only supported for AWS, Azure provider.
 - subnets
Get
Aviatrix Vpc Subnet[]  - List of subnet of the VPC created.
 - vpc
Id string - ID of the VPC created.
 - route
Tables stringFilter  
- account_
name str - Account name of the VPC created.
 - availability_
domains Sequence[str] - List of OCI availability domains.
 - aviatrix_
firenet_ boolvpc  - Switch if the VPC created is an Aviatrix FireNet VPC or not.
 - aviatrix_
transit_ boolvpc  - Switch if the VPC created is an Aviatrix Transit VPC or not.
 - azure_
vnet_ strresource_ id  - Azure vnet resource ID.
 - cidr str
 - Private subnet CIDR.
 - cloud_
type int - Type of cloud service provider.
 - fault_
domains Sequence[str] - List of OCI fault domains.
 - id str
 - The provider-assigned unique ID for this managed resource.
 - name str
 - Private subnet name.
 - num_
of_ intsubnet_ pairs  - Number of public subnet and private subnet pair created. Only supported for AWS, Azure provider.
 - private_
subnets Sequence[GetAviatrix Vpc Private Subnet]  - List of private subnet of the VPC(AWS, Azure) created.
 - public_
subnets Sequence[GetAviatrix Vpc Public Subnet]  - List of public subnet of the VPC(AWS, Azure) created.
 - region str
 - Region of the VPC created.
 - resource_
group str - Resource group of the Azure VPC created.
 - route_
tables Sequence[str] - List of route table ids associated with this VPC. Only populated for AWS, AWSGov and Azure vpc.
 - subnet_
size int - Subnet size. Only supported for AWS, Azure provider.
 - subnets
Sequence[Get
Aviatrix Vpc Subnet]  - List of subnet of the VPC created.
 - vpc_
id str - ID of the VPC created.
 - route_
tables_ strfilter  
- account
Name String - Account name of the VPC created.
 - availability
Domains List<String> - List of OCI availability domains.
 - aviatrix
Firenet BooleanVpc  - Switch if the VPC created is an Aviatrix FireNet VPC or not.
 - aviatrix
Transit BooleanVpc  - Switch if the VPC created is an Aviatrix Transit VPC or not.
 - azure
Vnet StringResource Id  - Azure vnet resource ID.
 - cidr String
 - Private subnet CIDR.
 - cloud
Type Number - Type of cloud service provider.
 - fault
Domains List<String> - List of OCI fault domains.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - name String
 - Private subnet name.
 - num
Of NumberSubnet Pairs  - Number of public subnet and private subnet pair created. Only supported for AWS, Azure provider.
 - private
Subnets List<Property Map> - List of private subnet of the VPC(AWS, Azure) created.
 - public
Subnets List<Property Map> - List of public subnet of the VPC(AWS, Azure) created.
 - region String
 - Region of the VPC created.
 - resource
Group String - Resource group of the Azure VPC created.
 - route
Tables List<String> - List of route table ids associated with this VPC. Only populated for AWS, AWSGov and Azure vpc.
 - subnet
Size Number - Subnet size. Only supported for AWS, Azure provider.
 - subnets List<Property Map>
 - List of subnet of the VPC created.
 - vpc
Id String - ID of the VPC created.
 - route
Tables StringFilter  
Supporting Types
GetAviatrixVpcPrivateSubnet    
GetAviatrixVpcPublicSubnet    
GetAviatrixVpcSubnet   
Package Details
- Repository
 - aviatrix astipkovits/pulumi-aviatrix
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
aviatrixTerraform Provider.