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

aviatrix.getAviatrixDeviceInterfaces

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 device WAN interfaces for use in other resources.

    Example Usage

    using System.Collections.Generic;
    using Pulumi;
    using Aviatrix = Pulumi.Aviatrix;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Aviatrix.GetAviatrixDeviceInterfaces.Invoke(new()
        {
            DeviceName = "test-device",
        });
    
    });
    
    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.GetAviatrixDeviceInterfaces(ctx, &GetAviatrixDeviceInterfacesArgs{
    			DeviceName: "test-device",
    		}, 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.GetAviatrixDeviceInterfacesArgs;
    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.getAviatrixDeviceInterfaces(GetAviatrixDeviceInterfacesArgs.builder()
                .deviceName("test-device")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_aviatrix as aviatrix
    
    test = aviatrix.get_aviatrix_device_interfaces(device_name="test-device")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aviatrix from "@pulumi/aviatrix";
    
    // Aviatrix Device Interfaces Data Source
    const test = pulumi.output(aviatrix.getAviatrixDeviceInterfaces({
        deviceName: "test-device",
    }));
    
    variables:
      test:
        fn::invoke:
          Function: aviatrix:getAviatrixDeviceInterfaces
          Arguments:
            deviceName: test-device
    

    Using getAviatrixDeviceInterfaces

    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 getAviatrixDeviceInterfaces(args: GetAviatrixDeviceInterfacesArgs, opts?: InvokeOptions): Promise<GetAviatrixDeviceInterfacesResult>
    function getAviatrixDeviceInterfacesOutput(args: GetAviatrixDeviceInterfacesOutputArgs, opts?: InvokeOptions): Output<GetAviatrixDeviceInterfacesResult>
    def get_aviatrix_device_interfaces(device_name: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetAviatrixDeviceInterfacesResult
    def get_aviatrix_device_interfaces_output(device_name: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetAviatrixDeviceInterfacesResult]
    func GetAviatrixDeviceInterfaces(ctx *Context, args *GetAviatrixDeviceInterfacesArgs, opts ...InvokeOption) (*GetAviatrixDeviceInterfacesResult, error)
    func GetAviatrixDeviceInterfacesOutput(ctx *Context, args *GetAviatrixDeviceInterfacesOutputArgs, opts ...InvokeOption) GetAviatrixDeviceInterfacesResultOutput

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

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

    The following arguments are supported:

    DeviceName string
    Device name.
    DeviceName string
    Device name.
    deviceName String
    Device name.
    deviceName string
    Device name.
    device_name str
    Device name.
    deviceName String
    Device name.

    getAviatrixDeviceInterfaces Result

    The following output properties are available:

    DeviceName string
    Id string
    The provider-assigned unique ID for this managed resource.
    WanInterfaces List<GetAviatrixDeviceInterfacesWanInterface>
    List of WAN interfaces.
    DeviceName string
    Id string
    The provider-assigned unique ID for this managed resource.
    WanInterfaces []GetAviatrixDeviceInterfacesWanInterface
    List of WAN interfaces.
    deviceName String
    id String
    The provider-assigned unique ID for this managed resource.
    wanInterfaces List<GetAviatrixDeviceInterfacesWanInterface>
    List of WAN interfaces.
    deviceName string
    id string
    The provider-assigned unique ID for this managed resource.
    wanInterfaces GetAviatrixDeviceInterfacesWanInterface[]
    List of WAN interfaces.
    device_name str
    id str
    The provider-assigned unique ID for this managed resource.
    wan_interfaces Sequence[GetAviatrixDeviceInterfacesWanInterface]
    List of WAN interfaces.
    deviceName String
    id String
    The provider-assigned unique ID for this managed resource.
    wanInterfaces List<Property Map>
    List of WAN interfaces.

    Supporting Types

    GetAviatrixDeviceInterfacesWanInterface

    WanPrimaryInterface string
    Name of the WAN primary interface.
    WanPrimaryInterfacePublicIp string
    The WAN Primary interface public IP.
    WanPrimaryInterface string
    Name of the WAN primary interface.
    WanPrimaryInterfacePublicIp string
    The WAN Primary interface public IP.
    wanPrimaryInterface String
    Name of the WAN primary interface.
    wanPrimaryInterfacePublicIp String
    The WAN Primary interface public IP.
    wanPrimaryInterface string
    Name of the WAN primary interface.
    wanPrimaryInterfacePublicIp string
    The WAN Primary interface public IP.
    wan_primary_interface str
    Name of the WAN primary interface.
    wan_primary_interface_public_ip str
    The WAN Primary interface public IP.
    wanPrimaryInterface String
    Name of the WAN primary interface.
    wanPrimaryInterfacePublicIp String
    The WAN Primary interface public IP.

    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