aviatrix.getAviatrixVpcTracker
Explore with Pulumi AI
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:
- Account
Name string Filters VPC list by access account name.
- Cidr string
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 string
Filters VPC list by region (AWS/Azure only).
- Account
Name string Filters VPC list by access account name.
- Cidr string
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 string
Filters VPC list by region (AWS/Azure only).
- account
Name String Filters VPC list by access account name.
- cidr String
Filters VPC list by CIDR (AWS/Azure only).
- cloud
Type 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).
- account
Name string Filters VPC list by access account name.
- cidr string
Filters VPC list by CIDR (AWS/Azure only).
- cloud
Type 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).
- account
Name String Filters VPC list by access account name.
- cidr String
Filters VPC list by CIDR (AWS/Azure only).
- cloud
Type 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.
- Vpc
Lists List<GetAviatrix Vpc Tracker Vpc List> List of VPCs from the VPC tracker.
- Account
Name string Aviatrix access account associated with the VPC.
- Cidr string
Subnet CIDR.
- Cloud
Type int Cloud provider id hosting this VPC.
- Region string
Subnet region.
- Id string
The provider-assigned unique ID for this managed resource.
- Vpc
Lists []GetAviatrix Vpc Tracker Vpc List List of VPCs from the VPC tracker.
- Account
Name string Aviatrix access account associated with the VPC.
- Cidr string
Subnet CIDR.
- Cloud
Type int Cloud provider id hosting this VPC.
- Region string
Subnet region.
- id String
The provider-assigned unique ID for this managed resource.
- vpc
Lists List<GetAviatrix Vpc Tracker Vpc List> List of VPCs from the VPC tracker.
- account
Name String Aviatrix access account associated with the VPC.
- cidr String
Subnet CIDR.
- cloud
Type Integer Cloud provider id hosting this VPC.
- region String
Subnet region.
- id string
The provider-assigned unique ID for this managed resource.
- vpc
Lists GetAviatrix Vpc Tracker Vpc List[] List of VPCs from the VPC tracker.
- account
Name string Aviatrix access account associated with the VPC.
- cidr string
Subnet CIDR.
- cloud
Type 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[GetAviatrix Vpc Tracker Vpc List] 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.
- vpc
Lists List<Property Map> List of VPCs from the VPC tracker.
- account
Name String Aviatrix access account associated with the VPC.
- cidr String
Subnet CIDR.
- cloud
Type Number Cloud provider id hosting this VPC.
- region String
Subnet region.
Supporting Types
GetAviatrixVpcTrackerVpcList
- Account
Name string Filters VPC list by access account name.
- Cidr string
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 string
Subnet name.
- Region string
Filters VPC list by region (AWS/Azure only).
- Subnets
List<Get
Aviatrix Vpc Tracker Vpc List Subnet> List of subnets within this VPC (GCP only).
- Vpc
Id string VPC id.
- Account
Name string Filters VPC list by access account name.
- Cidr string
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 string
Subnet name.
- Region string
Filters VPC list by region (AWS/Azure only).
- Subnets
[]Get
Aviatrix Vpc Tracker Vpc List Subnet List of subnets within this VPC (GCP only).
- Vpc
Id string VPC id.
- account
Name String Filters VPC list by access account name.
- cidr String
Filters VPC list by CIDR (AWS/Azure only).
- cloud
Type Integer Filters VPC list by cloud provider id. For example, cloud_type = 1 will give all AWS VPCs.
- instance
Count Integer Number of running instances in the VPC.
- name String
Subnet name.
- region String
Filters VPC list by region (AWS/Azure only).
- subnets
List<Get
Aviatrix Vpc Tracker Vpc List Subnet> List of subnets within this VPC (GCP only).
- vpc
Id String VPC id.
- account
Name string Filters VPC list by access account name.
- cidr string
Filters VPC list by CIDR (AWS/Azure only).
- cloud
Type number Filters VPC list by cloud provider id. For example, cloud_type = 1 will give all AWS VPCs.
- instance
Count number Number of running instances in the VPC.
- name string
Subnet name.
- region string
Filters VPC list by region (AWS/Azure only).
- subnets
Get
Aviatrix Vpc Tracker Vpc List Subnet[] List of subnets within this VPC (GCP only).
- vpc
Id 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[Get
Aviatrix Vpc Tracker Vpc List Subnet] List of subnets within this VPC (GCP only).
- vpc_
id str VPC id.
- account
Name String Filters VPC list by access account name.
- cidr String
Filters VPC list by CIDR (AWS/Azure only).
- cloud
Type Number Filters VPC list by cloud provider id. For example, cloud_type = 1 will give all AWS VPCs.
- instance
Count 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).
- vpc
Id String VPC id.
GetAviatrixVpcTrackerVpcListSubnet
Package Details
- Repository
- aviatrix astipkovits/pulumi-aviatrix
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aviatrix
Terraform Provider.