Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse
fortios.system.getInterfacelist
Explore with Pulumi AI
Provides a list of fortios.system.Interface
.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumi/fortios";
const sample1 = fortios.system.getInterfacelist({
filter: "name!=port1",
});
export const output1 = data.fortios_system_interfacelist.sample2.namelist;
import pulumi
import pulumi_fortios as fortios
sample1 = fortios.system.get_interfacelist(filter="name!=port1")
pulumi.export("output1", data["fortios_system_interfacelist"]["sample2"]["namelist"])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/system"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := system.GetInterfacelist(ctx, &system.GetInterfacelistArgs{
Filter: pulumi.StringRef("name!=port1"),
}, nil)
if err != nil {
return err
}
ctx.Export("output1", data.Fortios_system_interfacelist.Sample2.Namelist)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortios = Pulumi.Fortios;
return await Deployment.RunAsync(() =>
{
var sample1 = Fortios.System.GetInterfacelist.Invoke(new()
{
Filter = "name!=port1",
});
return new Dictionary<string, object?>
{
["output1"] = data.Fortios_system_interfacelist.Sample2.Namelist,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.system.SystemFunctions;
import com.pulumi.fortios.system.inputs.GetInterfacelistArgs;
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 sample1 = SystemFunctions.getInterfacelist(GetInterfacelistArgs.builder()
.filter("name!=port1")
.build());
ctx.export("output1", data.fortios_system_interfacelist().sample2().namelist());
}
}
variables:
sample1:
fn::invoke:
Function: fortios:system:getInterfacelist
Arguments:
filter: name!=port1
outputs:
output1: ${data.fortios_system_interfacelist.sample2.namelist}
Using getInterfacelist
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 getInterfacelist(args: GetInterfacelistArgs, opts?: InvokeOptions): Promise<GetInterfacelistResult>
function getInterfacelistOutput(args: GetInterfacelistOutputArgs, opts?: InvokeOptions): Output<GetInterfacelistResult>
def get_interfacelist(filter: Optional[str] = None,
vdomparam: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetInterfacelistResult
def get_interfacelist_output(filter: Optional[pulumi.Input[str]] = None,
vdomparam: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetInterfacelistResult]
func GetInterfacelist(ctx *Context, args *GetInterfacelistArgs, opts ...InvokeOption) (*GetInterfacelistResult, error)
func GetInterfacelistOutput(ctx *Context, args *GetInterfacelistOutputArgs, opts ...InvokeOption) GetInterfacelistResultOutput
> Note: This function is named GetInterfacelist
in the Go SDK.
public static class GetInterfacelist
{
public static Task<GetInterfacelistResult> InvokeAsync(GetInterfacelistArgs args, InvokeOptions? opts = null)
public static Output<GetInterfacelistResult> Invoke(GetInterfacelistInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetInterfacelistResult> getInterfacelist(GetInterfacelistArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: fortios:system/getInterfacelist:getInterfacelist
arguments:
# arguments dictionary
The following arguments are supported:
- Filter string
- A filter used to scope the list. See Filter results of datasource.
- Vdomparam string
- Specifies the vdom to which the data source will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- Filter string
- A filter used to scope the list. See Filter results of datasource.
- Vdomparam string
- Specifies the vdom to which the data source will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- filter String
- A filter used to scope the list. See Filter results of datasource.
- vdomparam String
- Specifies the vdom to which the data source will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- filter string
- A filter used to scope the list. See Filter results of datasource.
- vdomparam string
- Specifies the vdom to which the data source will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- filter str
- A filter used to scope the list. See Filter results of datasource.
- vdomparam str
- Specifies the vdom to which the data source will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- filter String
- A filter used to scope the list. See Filter results of datasource.
- vdomparam String
- Specifies the vdom to which the data source will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
getInterfacelist Result
The following output properties are available:
Package Details
- Repository
- fortios pulumiverse/pulumi-fortios
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
fortios
Terraform Provider.