1. Packages
  2. Fortios
  3. API Docs
  4. router
  5. getStaticlist
Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse

fortios.router.getStaticlist

Explore with Pulumi AI

Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse

Provides a list of fortios.router.Static.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumi/fortios";

const sample1 = fortios.router.getStaticlist({
    filter: "seq_num>1",
});
export const output1 = sample1.then(sample1 => sample1.seqNumlists);
Copy
import pulumi
import pulumi_fortios as fortios

sample1 = fortios.router.get_staticlist(filter="seq_num>1")
pulumi.export("output1", sample1.seq_numlists)
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/router"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		sample1, err := router.GetStaticlist(ctx, &router.GetStaticlistArgs{
			Filter: pulumi.StringRef("seq_num>1"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("output1", sample1.SeqNumlists)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortios = Pulumi.Fortios;

return await Deployment.RunAsync(() => 
{
    var sample1 = Fortios.Router.GetStaticlist.Invoke(new()
    {
        Filter = "seq_num>1",
    });

    return new Dictionary<string, object?>
    {
        ["output1"] = sample1.Apply(getStaticlistResult => getStaticlistResult.SeqNumlists),
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.router.RouterFunctions;
import com.pulumi.fortios.router.inputs.GetStaticlistArgs;
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 = RouterFunctions.getStaticlist(GetStaticlistArgs.builder()
            .filter("seq_num>1")
            .build());

        ctx.export("output1", sample1.applyValue(getStaticlistResult -> getStaticlistResult.seqNumlists()));
    }
}
Copy
variables:
  sample1:
    fn::invoke:
      Function: fortios:router:getStaticlist
      Arguments:
        filter: seq_num>1
outputs:
  output1: ${sample1.seqNumlists}
Copy

Using getStaticlist

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 getStaticlist(args: GetStaticlistArgs, opts?: InvokeOptions): Promise<GetStaticlistResult>
function getStaticlistOutput(args: GetStaticlistOutputArgs, opts?: InvokeOptions): Output<GetStaticlistResult>
Copy
def get_staticlist(filter: Optional[str] = None,
                   vdomparam: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetStaticlistResult
def get_staticlist_output(filter: Optional[pulumi.Input[str]] = None,
                   vdomparam: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetStaticlistResult]
Copy
func GetStaticlist(ctx *Context, args *GetStaticlistArgs, opts ...InvokeOption) (*GetStaticlistResult, error)
func GetStaticlistOutput(ctx *Context, args *GetStaticlistOutputArgs, opts ...InvokeOption) GetStaticlistResultOutput
Copy

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

public static class GetStaticlist 
{
    public static Task<GetStaticlistResult> InvokeAsync(GetStaticlistArgs args, InvokeOptions? opts = null)
    public static Output<GetStaticlistResult> Invoke(GetStaticlistInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetStaticlistResult> getStaticlist(GetStaticlistArgs args, InvokeOptions options)
public static Output<GetStaticlistResult> getStaticlist(GetStaticlistArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: fortios:router/getStaticlist:getStaticlist
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Filter string
A filter used to scope the list. See Filter results of datasource.
Vdomparam Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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.

getStaticlist Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
SeqNumlists List<int>
A list of the fortios.router.Static.
Filter string
Vdomparam string
Id string
The provider-assigned unique ID for this managed resource.
SeqNumlists []int
A list of the fortios.router.Static.
Filter string
Vdomparam string
id String
The provider-assigned unique ID for this managed resource.
seqNumlists List<Integer>
A list of the fortios.router.Static.
filter String
vdomparam String
id string
The provider-assigned unique ID for this managed resource.
seqNumlists number[]
A list of the fortios.router.Static.
filter string
vdomparam string
id str
The provider-assigned unique ID for this managed resource.
seq_numlists Sequence[int]
A list of the fortios.router.Static.
filter str
vdomparam str
id String
The provider-assigned unique ID for this managed resource.
seqNumlists List<Number>
A list of the fortios.router.Static.
filter String
vdomparam String

Package Details

Repository
fortios pulumiverse/pulumi-fortios
License
Apache-2.0
Notes
This Pulumi package is based on the fortios Terraform Provider.
Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse