Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse
fortios.router.getStaticlist
Explore with Pulumi AI
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);
import pulumi
import pulumi_fortios as fortios
sample1 = fortios.router.get_staticlist(filter="seq_num>1")
pulumi.export("output1", sample1.seq_numlists)
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
})
}
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),
};
});
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()));
}
}
variables:
sample1:
fn::invoke:
Function: fortios:router:getStaticlist
Arguments:
filter: seq_num>1
outputs:
output1: ${sample1.seqNumlists}
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>
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]
func GetStaticlist(ctx *Context, args *GetStaticlistArgs, opts ...InvokeOption) (*GetStaticlistResult, error)
func GetStaticlistOutput(ctx *Context, args *GetStaticlistOutputArgs, opts ...InvokeOption) GetStaticlistResultOutput
> 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)
}
public static CompletableFuture<GetStaticlistResult> getStaticlist(GetStaticlistArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: fortios:router/getStaticlist:getStaticlist
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.
getStaticlist Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Seq
Numlists List<int> - A list of the
fortios.router.Static
. - Filter string
- Vdomparam string
- Id string
- The provider-assigned unique ID for this managed resource.
- Seq
Numlists []int - A list of the
fortios.router.Static
. - Filter string
- Vdomparam string
- id String
- The provider-assigned unique ID for this managed resource.
- seq
Numlists List<Integer> - A list of the
fortios.router.Static
. - filter String
- vdomparam String
- id string
- The provider-assigned unique ID for this managed resource.
- seq
Numlists 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.
- seq
Numlists 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.