1. Packages
  2. Aviatrix
  3. API Docs
  4. getAviatrixVpcTracker
Aviatrix v0.0.11 published on Saturday, Jun 17, 2023 by Aviatrix

aviatrix.getAviatrixVpcTracker

Explore with Pulumi AI

aviatrix logo
Aviatrix v0.0.11 published on Saturday, Jun 17, 2023 by Aviatrix

    Use this data source to get the list of VPC’s for use in other resources.

    Notes

    • Please be aware this data source could take up to 20 minutes to refresh depending on the number of VPCs and cloud accounts.

    Example Usage

    using System.Collections.Generic;
    using Pulumi;
    using Aviatrix = Pulumi.Aviatrix;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = Aviatrix.GetAviatrixVpcTracker.Invoke(new()
        {
            AccountName = "bar",
            Cidr = "10.0.0.1/24",
            CloudType = 1,
            Region = "us-west-1",
        });
    
    });
    
    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.GetAviatrixVpcTracker(ctx, &GetAviatrixVpcTrackerArgs{
    			AccountName: pulumi.StringRef("bar"),
    			Cidr:        pulumi.StringRef("10.0.0.1/24"),
    			CloudType:   pulumi.IntRef(1),
    			Region:      pulumi.StringRef("us-west-1"),
    		}, 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.GetAviatrixVpcTrackerArgs;
    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 foo = AviatrixFunctions.getAviatrixVpcTracker(GetAviatrixVpcTrackerArgs.builder()
                .accountName("bar")
                .cidr("10.0.0.1/24")
                .cloudType(1)
                .region("us-west-1")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_aviatrix as aviatrix
    
    foo = aviatrix.get_aviatrix_vpc_tracker(account_name="bar",
        cidr="10.0.0.1/24",
        cloud_type=1,
        region="us-west-1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aviatrix from "@pulumi/aviatrix";
    
    // Aviatrix VPC Tracker Data Source
    const foo = pulumi.output(aviatrix.getAviatrixVpcTracker({
        accountName: "bar",
        cidr: "10.0.0.1/24",
        cloudType: 1,
        region: "us-west-1",
    }));
    
    variables:
      foo:
        fn::invoke:
          Function: aviatrix:getAviatrixVpcTracker
          Arguments:
            accountName: bar
            cidr: 10.0.0.1/24
            cloudType: 1
            region: us-west-1
    

    Using getAviatrixVpcTracker

    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 getAviatrixVpcTracker(args: GetAviatrixVpcTrackerArgs, opts?: InvokeOptions): Promise<GetAviatrixVpcTrackerResult>
    function getAviatrixVpcTrackerOutput(args: GetAviatrixVpcTrackerOutputArgs, opts?: InvokeOptions): Output<GetAviatrixVpcTrackerResult>
    def get_aviatrix_vpc_tracker(account_name: Optional[str] = None,
                                 cidr: Optional[str] = None,
                                 cloud_type: Optional[int] = None,
                                 region: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetAviatrixVpcTrackerResult
    def get_aviatrix_vpc_tracker_output(account_name: Optional[pulumi.Input[str]] = None,
                                 cidr: Optional[pulumi.Input[str]] = None,
                                 cloud_type: Optional[pulumi.Input[int]] = None,
                                 region: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetAviatrixVpcTrackerResult]
    func GetAviatrixVpcTracker(ctx *Context, args *GetAviatrixVpcTrackerArgs, opts ...InvokeOption) (*GetAviatrixVpcTrackerResult, error)
    func GetAviatrixVpcTrackerOutput(ctx *Context, args *GetAviatrixVpcTrackerOutputArgs, opts ...InvokeOption) GetAviatrixVpcTrackerResultOutput

    > Note: This function is named GetAviatrixVpcTracker in the Go SDK.

    public static class GetAviatrixVpcTracker 
    {
        public static Task<GetAviatrixVpcTrackerResult> InvokeAsync(GetAviatrixVpcTrackerArgs args, InvokeOptions? opts = null)
        public static Output<GetAviatrixVpcTrackerResult> Invoke(GetAviatrixVpcTrackerInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAviatrixVpcTrackerResult> getAviatrixVpcTracker(GetAviatrixVpcTrackerArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aviatrix:index/getAviatrixVpcTracker:getAviatrixVpcTracker
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountName string
    Filters VPC list by access account name.
    Cidr string
    Filters VPC list by CIDR (AWS/Azure only).
    CloudType int
    Filters VPC list by cloud provider id. For example, cloud_type = 1 will give all AWS VPCs.
    Region string
    Filters VPC list by region (AWS/Azure only).
    AccountName string
    Filters VPC list by access account name.
    Cidr string
    Filters VPC list by CIDR (AWS/Azure only).
    CloudType int
    Filters VPC list by cloud provider id. For example, cloud_type = 1 will give all AWS VPCs.
    Region string
    Filters VPC list by region (AWS/Azure only).
    accountName String
    Filters VPC list by access account name.
    cidr String
    Filters VPC list by CIDR (AWS/Azure only).
    cloudType Integer
    Filters VPC list by cloud provider id. For example, cloud_type = 1 will give all AWS VPCs.
    region String
    Filters VPC list by region (AWS/Azure only).
    accountName string
    Filters VPC list by access account name.
    cidr string
    Filters VPC list by CIDR (AWS/Azure only).
    cloudType number
    Filters VPC list by cloud provider id. For example, cloud_type = 1 will give all AWS VPCs.
    region string
    Filters VPC list by region (AWS/Azure only).
    account_name str
    Filters VPC list by access account name.
    cidr str
    Filters VPC list by CIDR (AWS/Azure only).
    cloud_type int
    Filters VPC list by cloud provider id. For example, cloud_type = 1 will give all AWS VPCs.
    region str
    Filters VPC list by region (AWS/Azure only).
    accountName String
    Filters VPC list by access account name.
    cidr String
    Filters VPC list by CIDR (AWS/Azure only).
    cloudType Number
    Filters VPC list by cloud provider id. For example, cloud_type = 1 will give all AWS VPCs.
    region String
    Filters VPC list by region (AWS/Azure only).

    getAviatrixVpcTracker Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    VpcLists List<GetAviatrixVpcTrackerVpcList>
    List of VPCs from the VPC tracker.
    AccountName string
    Aviatrix access account associated with the VPC.
    Cidr string
    Subnet CIDR.
    CloudType int
    Cloud provider id hosting this VPC.
    Region string
    Subnet region.
    Id string
    The provider-assigned unique ID for this managed resource.
    VpcLists []GetAviatrixVpcTrackerVpcList
    List of VPCs from the VPC tracker.
    AccountName string
    Aviatrix access account associated with the VPC.
    Cidr string
    Subnet CIDR.
    CloudType int
    Cloud provider id hosting this VPC.
    Region string
    Subnet region.
    id String
    The provider-assigned unique ID for this managed resource.
    vpcLists List<GetAviatrixVpcTrackerVpcList>
    List of VPCs from the VPC tracker.
    accountName String
    Aviatrix access account associated with the VPC.
    cidr String
    Subnet CIDR.
    cloudType Integer
    Cloud provider id hosting this VPC.
    region String
    Subnet region.
    id string
    The provider-assigned unique ID for this managed resource.
    vpcLists GetAviatrixVpcTrackerVpcList[]
    List of VPCs from the VPC tracker.
    accountName string
    Aviatrix access account associated with the VPC.
    cidr string
    Subnet CIDR.
    cloudType number
    Cloud provider id hosting this VPC.
    region string
    Subnet region.
    id str
    The provider-assigned unique ID for this managed resource.
    vpc_lists Sequence[GetAviatrixVpcTrackerVpcList]
    List of VPCs from the VPC tracker.
    account_name str
    Aviatrix access account associated with the VPC.
    cidr str
    Subnet CIDR.
    cloud_type int
    Cloud provider id hosting this VPC.
    region str
    Subnet region.
    id String
    The provider-assigned unique ID for this managed resource.
    vpcLists List<Property Map>
    List of VPCs from the VPC tracker.
    accountName String
    Aviatrix access account associated with the VPC.
    cidr String
    Subnet CIDR.
    cloudType Number
    Cloud provider id hosting this VPC.
    region String
    Subnet region.

    Supporting Types

    GetAviatrixVpcTrackerVpcList

    AccountName string
    Filters VPC list by access account name.
    Cidr string
    Filters VPC list by CIDR (AWS/Azure only).
    CloudType int
    Filters VPC list by cloud provider id. For example, cloud_type = 1 will give all AWS VPCs.
    InstanceCount int
    Number of running instances in the VPC.
    Name string
    Subnet name.
    Region string
    Filters VPC list by region (AWS/Azure only).
    Subnets List<GetAviatrixVpcTrackerVpcListSubnet>
    List of subnets within this VPC (GCP only).
    VpcId string
    VPC id.
    AccountName string
    Filters VPC list by access account name.
    Cidr string
    Filters VPC list by CIDR (AWS/Azure only).
    CloudType int
    Filters VPC list by cloud provider id. For example, cloud_type = 1 will give all AWS VPCs.
    InstanceCount int
    Number of running instances in the VPC.
    Name string
    Subnet name.
    Region string
    Filters VPC list by region (AWS/Azure only).
    Subnets []GetAviatrixVpcTrackerVpcListSubnet
    List of subnets within this VPC (GCP only).
    VpcId string
    VPC id.
    accountName String
    Filters VPC list by access account name.
    cidr String
    Filters VPC list by CIDR (AWS/Azure only).
    cloudType Integer
    Filters VPC list by cloud provider id. For example, cloud_type = 1 will give all AWS VPCs.
    instanceCount Integer
    Number of running instances in the VPC.
    name String
    Subnet name.
    region String
    Filters VPC list by region (AWS/Azure only).
    subnets List<GetAviatrixVpcTrackerVpcListSubnet>
    List of subnets within this VPC (GCP only).
    vpcId String
    VPC id.
    accountName string
    Filters VPC list by access account name.
    cidr string
    Filters VPC list by CIDR (AWS/Azure only).
    cloudType number
    Filters VPC list by cloud provider id. For example, cloud_type = 1 will give all AWS VPCs.
    instanceCount number
    Number of running instances in the VPC.
    name string
    Subnet name.
    region string
    Filters VPC list by region (AWS/Azure only).
    subnets GetAviatrixVpcTrackerVpcListSubnet[]
    List of subnets within this VPC (GCP only).
    vpcId string
    VPC id.
    account_name str
    Filters VPC list by access account name.
    cidr str
    Filters VPC list by CIDR (AWS/Azure only).
    cloud_type int
    Filters VPC list by cloud provider id. For example, cloud_type = 1 will give all AWS VPCs.
    instance_count int
    Number of running instances in the VPC.
    name str
    Subnet name.
    region str
    Filters VPC list by region (AWS/Azure only).
    subnets Sequence[GetAviatrixVpcTrackerVpcListSubnet]
    List of subnets within this VPC (GCP only).
    vpc_id str
    VPC id.
    accountName String
    Filters VPC list by access account name.
    cidr String
    Filters VPC list by CIDR (AWS/Azure only).
    cloudType Number
    Filters VPC list by cloud provider id. For example, cloud_type = 1 will give all AWS VPCs.
    instanceCount Number
    Number of running instances in the VPC.
    name String
    Subnet name.
    region String
    Filters VPC list by region (AWS/Azure only).
    subnets List<Property Map>
    List of subnets within this VPC (GCP only).
    vpcId String
    VPC id.

    GetAviatrixVpcTrackerVpcListSubnet

    Cidr string
    Filters VPC list by CIDR (AWS/Azure only).
    GwIp string
    Subnet gateway ip.
    Name string
    Subnet name.
    Region string
    Filters VPC list by region (AWS/Azure only).
    Cidr string
    Filters VPC list by CIDR (AWS/Azure only).
    GwIp string
    Subnet gateway ip.
    Name string
    Subnet name.
    Region string
    Filters VPC list by region (AWS/Azure only).
    cidr String
    Filters VPC list by CIDR (AWS/Azure only).
    gwIp String
    Subnet gateway ip.
    name String
    Subnet name.
    region String
    Filters VPC list by region (AWS/Azure only).
    cidr string
    Filters VPC list by CIDR (AWS/Azure only).
    gwIp string
    Subnet gateway ip.
    name string
    Subnet name.
    region string
    Filters VPC list by region (AWS/Azure only).
    cidr str
    Filters VPC list by CIDR (AWS/Azure only).
    gw_ip str
    Subnet gateway ip.
    name str
    Subnet name.
    region str
    Filters VPC list by region (AWS/Azure only).
    cidr String
    Filters VPC list by CIDR (AWS/Azure only).
    gwIp String
    Subnet gateway ip.
    name String
    Subnet name.
    region String
    Filters VPC list by region (AWS/Azure only).

    Package Details

    Repository
    aviatrix astipkovits/pulumi-aviatrix
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aviatrix Terraform Provider.
    aviatrix logo
    Aviatrix v0.0.11 published on Saturday, Jun 17, 2023 by Aviatrix