Aviatrix v0.0.11 published on Saturday, Jun 17, 2023 by Aviatrix
aviatrix.getAviatrixDeviceInterfaces
Start a Neo task
Explain and create an aviatrix.getAviatrixDeviceInterfaces resource
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 * 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",
}));
import pulumi
import pulumi_aviatrix as aviatrix
test = aviatrix.get_aviatrix_device_interfaces(device_name="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)
public static Output<GetAviatrixDeviceInterfacesResult> getAviatrixDeviceInterfaces(GetAviatrixDeviceInterfacesArgs args, InvokeOptions options)
fn::invoke:
function: aviatrix:index/getAviatrixDeviceInterfaces:getAviatrixDeviceInterfaces
arguments:
# arguments dictionaryThe following arguments are supported:
- Device
Name string - Device name.
- Device
Name string - Device name.
- device
Name String - Device name.
- device
Name string - Device name.
- device_
name str - Device name.
- device
Name String - Device name.
getAviatrixDeviceInterfaces Result
The following output properties are available:
- Device
Name string - Id string
- The provider-assigned unique ID for this managed resource.
- Wan
Interfaces List<GetAviatrix Device Interfaces Wan Interface> - List of WAN interfaces.
- Device
Name string - Id string
- The provider-assigned unique ID for this managed resource.
- Wan
Interfaces []GetAviatrix Device Interfaces Wan Interface - List of WAN interfaces.
- device
Name String - id String
- The provider-assigned unique ID for this managed resource.
- wan
Interfaces List<GetAviatrix Device Interfaces Wan Interface> - List of WAN interfaces.
- device
Name string - id string
- The provider-assigned unique ID for this managed resource.
- wan
Interfaces GetAviatrix Device Interfaces Wan Interface[] - List of WAN interfaces.
- device_
name str - id str
- The provider-assigned unique ID for this managed resource.
- wan_
interfaces Sequence[GetAviatrix Device Interfaces Wan Interface] - List of WAN interfaces.
- device
Name String - id String
- The provider-assigned unique ID for this managed resource.
- wan
Interfaces List<Property Map> - List of WAN interfaces.
Supporting Types
GetAviatrixDeviceInterfacesWanInterface
- Wan
Primary stringInterface - Name of the WAN primary interface.
- Wan
Primary stringInterface Public Ip - The WAN Primary interface public IP.
- Wan
Primary stringInterface - Name of the WAN primary interface.
- Wan
Primary stringInterface Public Ip - The WAN Primary interface public IP.
- wan
Primary StringInterface - Name of the WAN primary interface.
- wan
Primary StringInterface Public Ip - The WAN Primary interface public IP.
- wan
Primary stringInterface - Name of the WAN primary interface.
- wan
Primary stringInterface Public Ip - The WAN Primary interface public IP.
- wan_
primary_ strinterface - Name of the WAN primary interface.
- wan_
primary_ strinterface_ public_ ip - The WAN Primary interface public IP.
- wan
Primary StringInterface - Name of the WAN primary interface.
- wan
Primary StringInterface Public Ip - 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
aviatrixTerraform Provider.
