1. Packages
  2. Fortios
  3. API Docs
  4. router
  5. getStatic
Fortios v0.0.5 published on Tuesday, Apr 9, 2024 by pulumiverse

fortios.router.getStatic

Explore with Pulumi AI

fortios logo
Fortios v0.0.5 published on Tuesday, Apr 9, 2024 by pulumiverse

    Use this data source to get information on an fortios router static

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fortios from "@pulumi/fortios";
    
    const sample1 = fortios.router.getStatic({
        seqNum: 1,
    });
    export const output1 = sample1;
    
    import pulumi
    import pulumi_fortios as fortios
    
    sample1 = fortios.router.get_static(seq_num=1)
    pulumi.export("output1", sample1)
    
    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.LookupStatic(ctx, &router.LookupStaticArgs{
    			SeqNum: 1,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("output1", sample1)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Fortios = Pulumi.Fortios;
    
    return await Deployment.RunAsync(() => 
    {
        var sample1 = Fortios.Router.GetStatic.Invoke(new()
        {
            SeqNum = 1,
        });
    
        return new Dictionary<string, object?>
        {
            ["output1"] = sample1,
        };
    });
    
    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.GetStaticArgs;
    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.getStatic(GetStaticArgs.builder()
                .seqNum(1)
                .build());
    
            ctx.export("output1", sample1.applyValue(getStaticResult -> getStaticResult));
        }
    }
    
    variables:
      sample1:
        fn::invoke:
          Function: fortios:router:getStatic
          Arguments:
            seqNum: 1
    outputs:
      output1: ${sample1}
    

    Using getStatic

    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 getStatic(args: GetStaticArgs, opts?: InvokeOptions): Promise<GetStaticResult>
    function getStaticOutput(args: GetStaticOutputArgs, opts?: InvokeOptions): Output<GetStaticResult>
    def get_static(seq_num: Optional[int] = None,
                   vdomparam: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetStaticResult
    def get_static_output(seq_num: Optional[pulumi.Input[int]] = None,
                   vdomparam: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetStaticResult]
    func LookupStatic(ctx *Context, args *LookupStaticArgs, opts ...InvokeOption) (*LookupStaticResult, error)
    func LookupStaticOutput(ctx *Context, args *LookupStaticOutputArgs, opts ...InvokeOption) LookupStaticResultOutput

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

    public static class GetStatic 
    {
        public static Task<GetStaticResult> InvokeAsync(GetStaticArgs args, InvokeOptions? opts = null)
        public static Output<GetStaticResult> Invoke(GetStaticInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetStaticResult> getStatic(GetStaticArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: fortios:router/getStatic:getStatic
      arguments:
        # arguments dictionary

    The following arguments are supported:

    SeqNum int
    Specify the seq_num of the desired router static.
    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.
    SeqNum int
    Specify the seq_num of the desired router static.
    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.
    seqNum Integer
    Specify the seq_num of the desired router static.
    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.
    seqNum number
    Specify the seq_num of the desired router static.
    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.
    seq_num int
    Specify the seq_num of the desired router static.
    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.
    seqNum Number
    Specify the seq_num of the desired router static.
    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.

    getStatic Result

    The following output properties are available:

    Bfd string
    Enable/disable Bidirectional Forwarding Detection (BFD).
    Blackhole string
    Enable/disable black hole.
    Comment string
    Optional comments.
    Device string
    Gateway out interface or tunnel.
    Distance int
    Administrative distance (1 - 255).
    Dst string
    Destination IP and mask for this route.
    Dstaddr string
    Name of firewall address or address group.
    DynamicGateway string
    Enable use of dynamic gateway retrieved from a DHCP or PPP server.
    Gateway string
    Gateway IP for this route.
    Id string
    The provider-assigned unique ID for this managed resource.
    InternetService int
    Application ID in the Internet service database.
    InternetServiceCustom string
    Application name in the Internet service custom database.
    LinkMonitorExempt string
    Enable/disable withdrawing this route when link monitor or health check is down.
    PreferredSource string
    Preferred source IP for this route.
    Priority int
    Administrative priority (0 - 4294967295).
    Sdwan string
    Enable/disable egress through SD-WAN.
    SdwanZones List<Pulumiverse.Fortios.Router.Outputs.GetStaticSdwanZone>
    Choose SD-WAN Zone. The structure of sdwan_zone block is documented below.
    SeqNum int
    Sequence number.
    Src string
    Source prefix for this route.
    Status string
    Enable/disable this static route.
    Tag int
    Route tag.
    VirtualWanLink string
    Enable/disable egress through the virtual-wan-link.
    Vrf int
    Virtual Routing Forwarding ID.
    Weight int
    Administrative weight (0 - 255).
    Vdomparam string
    Bfd string
    Enable/disable Bidirectional Forwarding Detection (BFD).
    Blackhole string
    Enable/disable black hole.
    Comment string
    Optional comments.
    Device string
    Gateway out interface or tunnel.
    Distance int
    Administrative distance (1 - 255).
    Dst string
    Destination IP and mask for this route.
    Dstaddr string
    Name of firewall address or address group.
    DynamicGateway string
    Enable use of dynamic gateway retrieved from a DHCP or PPP server.
    Gateway string
    Gateway IP for this route.
    Id string
    The provider-assigned unique ID for this managed resource.
    InternetService int
    Application ID in the Internet service database.
    InternetServiceCustom string
    Application name in the Internet service custom database.
    LinkMonitorExempt string
    Enable/disable withdrawing this route when link monitor or health check is down.
    PreferredSource string
    Preferred source IP for this route.
    Priority int
    Administrative priority (0 - 4294967295).
    Sdwan string
    Enable/disable egress through SD-WAN.
    SdwanZones []GetStaticSdwanZone
    Choose SD-WAN Zone. The structure of sdwan_zone block is documented below.
    SeqNum int
    Sequence number.
    Src string
    Source prefix for this route.
    Status string
    Enable/disable this static route.
    Tag int
    Route tag.
    VirtualWanLink string
    Enable/disable egress through the virtual-wan-link.
    Vrf int
    Virtual Routing Forwarding ID.
    Weight int
    Administrative weight (0 - 255).
    Vdomparam string
    bfd String
    Enable/disable Bidirectional Forwarding Detection (BFD).
    blackhole String
    Enable/disable black hole.
    comment String
    Optional comments.
    device String
    Gateway out interface or tunnel.
    distance Integer
    Administrative distance (1 - 255).
    dst String
    Destination IP and mask for this route.
    dstaddr String
    Name of firewall address or address group.
    dynamicGateway String
    Enable use of dynamic gateway retrieved from a DHCP or PPP server.
    gateway String
    Gateway IP for this route.
    id String
    The provider-assigned unique ID for this managed resource.
    internetService Integer
    Application ID in the Internet service database.
    internetServiceCustom String
    Application name in the Internet service custom database.
    linkMonitorExempt String
    Enable/disable withdrawing this route when link monitor or health check is down.
    preferredSource String
    Preferred source IP for this route.
    priority Integer
    Administrative priority (0 - 4294967295).
    sdwan String
    Enable/disable egress through SD-WAN.
    sdwanZones List<GetStaticSdwanZone>
    Choose SD-WAN Zone. The structure of sdwan_zone block is documented below.
    seqNum Integer
    Sequence number.
    src String
    Source prefix for this route.
    status String
    Enable/disable this static route.
    tag Integer
    Route tag.
    virtualWanLink String
    Enable/disable egress through the virtual-wan-link.
    vrf Integer
    Virtual Routing Forwarding ID.
    weight Integer
    Administrative weight (0 - 255).
    vdomparam String
    bfd string
    Enable/disable Bidirectional Forwarding Detection (BFD).
    blackhole string
    Enable/disable black hole.
    comment string
    Optional comments.
    device string
    Gateway out interface or tunnel.
    distance number
    Administrative distance (1 - 255).
    dst string
    Destination IP and mask for this route.
    dstaddr string
    Name of firewall address or address group.
    dynamicGateway string
    Enable use of dynamic gateway retrieved from a DHCP or PPP server.
    gateway string
    Gateway IP for this route.
    id string
    The provider-assigned unique ID for this managed resource.
    internetService number
    Application ID in the Internet service database.
    internetServiceCustom string
    Application name in the Internet service custom database.
    linkMonitorExempt string
    Enable/disable withdrawing this route when link monitor or health check is down.
    preferredSource string
    Preferred source IP for this route.
    priority number
    Administrative priority (0 - 4294967295).
    sdwan string
    Enable/disable egress through SD-WAN.
    sdwanZones GetStaticSdwanZone[]
    Choose SD-WAN Zone. The structure of sdwan_zone block is documented below.
    seqNum number
    Sequence number.
    src string
    Source prefix for this route.
    status string
    Enable/disable this static route.
    tag number
    Route tag.
    virtualWanLink string
    Enable/disable egress through the virtual-wan-link.
    vrf number
    Virtual Routing Forwarding ID.
    weight number
    Administrative weight (0 - 255).
    vdomparam string
    bfd str
    Enable/disable Bidirectional Forwarding Detection (BFD).
    blackhole str
    Enable/disable black hole.
    comment str
    Optional comments.
    device str
    Gateway out interface or tunnel.
    distance int
    Administrative distance (1 - 255).
    dst str
    Destination IP and mask for this route.
    dstaddr str
    Name of firewall address or address group.
    dynamic_gateway str
    Enable use of dynamic gateway retrieved from a DHCP or PPP server.
    gateway str
    Gateway IP for this route.
    id str
    The provider-assigned unique ID for this managed resource.
    internet_service int
    Application ID in the Internet service database.
    internet_service_custom str
    Application name in the Internet service custom database.
    link_monitor_exempt str
    Enable/disable withdrawing this route when link monitor or health check is down.
    preferred_source str
    Preferred source IP for this route.
    priority int
    Administrative priority (0 - 4294967295).
    sdwan str
    Enable/disable egress through SD-WAN.
    sdwan_zones Sequence[GetStaticSdwanZone]
    Choose SD-WAN Zone. The structure of sdwan_zone block is documented below.
    seq_num int
    Sequence number.
    src str
    Source prefix for this route.
    status str
    Enable/disable this static route.
    tag int
    Route tag.
    virtual_wan_link str
    Enable/disable egress through the virtual-wan-link.
    vrf int
    Virtual Routing Forwarding ID.
    weight int
    Administrative weight (0 - 255).
    vdomparam str
    bfd String
    Enable/disable Bidirectional Forwarding Detection (BFD).
    blackhole String
    Enable/disable black hole.
    comment String
    Optional comments.
    device String
    Gateway out interface or tunnel.
    distance Number
    Administrative distance (1 - 255).
    dst String
    Destination IP and mask for this route.
    dstaddr String
    Name of firewall address or address group.
    dynamicGateway String
    Enable use of dynamic gateway retrieved from a DHCP or PPP server.
    gateway String
    Gateway IP for this route.
    id String
    The provider-assigned unique ID for this managed resource.
    internetService Number
    Application ID in the Internet service database.
    internetServiceCustom String
    Application name in the Internet service custom database.
    linkMonitorExempt String
    Enable/disable withdrawing this route when link monitor or health check is down.
    preferredSource String
    Preferred source IP for this route.
    priority Number
    Administrative priority (0 - 4294967295).
    sdwan String
    Enable/disable egress through SD-WAN.
    sdwanZones List<Property Map>
    Choose SD-WAN Zone. The structure of sdwan_zone block is documented below.
    seqNum Number
    Sequence number.
    src String
    Source prefix for this route.
    status String
    Enable/disable this static route.
    tag Number
    Route tag.
    virtualWanLink String
    Enable/disable egress through the virtual-wan-link.
    vrf Number
    Virtual Routing Forwarding ID.
    weight Number
    Administrative weight (0 - 255).
    vdomparam String

    Supporting Types

    GetStaticSdwanZone

    Name string
    SD-WAN zone name.
    Name string
    SD-WAN zone name.
    name String
    SD-WAN zone name.
    name string
    SD-WAN zone name.
    name str
    SD-WAN zone name.
    name String
    SD-WAN zone name.

    Package Details

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