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

fortios.router.Static

Explore with Pulumi AI

Configure IPv4 static routing tables.

Example Usage

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

const trname = new fortios.router.Static("trname", {
    bfd: "disable",
    blackhole: "disable",
    device: "port4",
    distance: 10,
    dst: "1.0.0.0 255.240.0.0",
    dynamicGateway: "disable",
    gateway: "0.0.0.0",
    internetService: 0,
    linkMonitorExempt: "disable",
    priority: 22,
    seqNum: 1,
    src: "0.0.0.0 0.0.0.0",
    status: "enable",
    virtualWanLink: "disable",
    vrf: 0,
    weight: 2,
});
Copy
import pulumi
import pulumiverse_fortios as fortios

trname = fortios.router.Static("trname",
    bfd="disable",
    blackhole="disable",
    device="port4",
    distance=10,
    dst="1.0.0.0 255.240.0.0",
    dynamic_gateway="disable",
    gateway="0.0.0.0",
    internet_service=0,
    link_monitor_exempt="disable",
    priority=22,
    seq_num=1,
    src="0.0.0.0 0.0.0.0",
    status="enable",
    virtual_wan_link="disable",
    vrf=0,
    weight=2)
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 {
		_, err := router.NewStatic(ctx, "trname", &router.StaticArgs{
			Bfd:               pulumi.String("disable"),
			Blackhole:         pulumi.String("disable"),
			Device:            pulumi.String("port4"),
			Distance:          pulumi.Int(10),
			Dst:               pulumi.String("1.0.0.0 255.240.0.0"),
			DynamicGateway:    pulumi.String("disable"),
			Gateway:           pulumi.String("0.0.0.0"),
			InternetService:   pulumi.Int(0),
			LinkMonitorExempt: pulumi.String("disable"),
			Priority:          pulumi.Int(22),
			SeqNum:            pulumi.Int(1),
			Src:               pulumi.String("0.0.0.0 0.0.0.0"),
			Status:            pulumi.String("enable"),
			VirtualWanLink:    pulumi.String("disable"),
			Vrf:               pulumi.Int(0),
			Weight:            pulumi.Int(2),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortios = Pulumiverse.Fortios;

return await Deployment.RunAsync(() => 
{
    var trname = new Fortios.Router.Static("trname", new()
    {
        Bfd = "disable",
        Blackhole = "disable",
        Device = "port4",
        Distance = 10,
        Dst = "1.0.0.0 255.240.0.0",
        DynamicGateway = "disable",
        Gateway = "0.0.0.0",
        InternetService = 0,
        LinkMonitorExempt = "disable",
        Priority = 22,
        SeqNum = 1,
        Src = "0.0.0.0 0.0.0.0",
        Status = "enable",
        VirtualWanLink = "disable",
        Vrf = 0,
        Weight = 2,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.router.Static;
import com.pulumi.fortios.router.StaticArgs;
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) {
        var trname = new Static("trname", StaticArgs.builder()
            .bfd("disable")
            .blackhole("disable")
            .device("port4")
            .distance(10)
            .dst("1.0.0.0 255.240.0.0")
            .dynamicGateway("disable")
            .gateway("0.0.0.0")
            .internetService(0)
            .linkMonitorExempt("disable")
            .priority(22)
            .seqNum(1)
            .src("0.0.0.0 0.0.0.0")
            .status("enable")
            .virtualWanLink("disable")
            .vrf(0)
            .weight(2)
            .build());

    }
}
Copy
resources:
  trname:
    type: fortios:router:Static
    properties:
      bfd: disable
      blackhole: disable
      device: port4
      distance: 10
      dst: 1.0.0.0 255.240.0.0
      dynamicGateway: disable
      gateway: 0.0.0.0
      internetService: 0
      linkMonitorExempt: disable
      priority: 22
      seqNum: 1
      src: 0.0.0.0 0.0.0.0
      status: enable
      virtualWanLink: disable
      vrf: 0
      weight: 2
Copy

Create Static Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Static(name: string, args?: StaticArgs, opts?: CustomResourceOptions);
@overload
def Static(resource_name: str,
           args: Optional[StaticArgs] = None,
           opts: Optional[ResourceOptions] = None)

@overload
def Static(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           bfd: Optional[str] = None,
           blackhole: Optional[str] = None,
           comment: Optional[str] = None,
           device: Optional[str] = None,
           distance: Optional[int] = None,
           dst: Optional[str] = None,
           dstaddr: Optional[str] = None,
           dynamic_gateway: Optional[str] = None,
           dynamic_sort_subtable: Optional[str] = None,
           gateway: Optional[str] = None,
           get_all_tables: Optional[str] = None,
           internet_service: Optional[int] = None,
           internet_service_custom: Optional[str] = None,
           link_monitor_exempt: Optional[str] = None,
           preferred_source: Optional[str] = None,
           priority: Optional[int] = None,
           sdwan: Optional[str] = None,
           sdwan_zones: Optional[Sequence[StaticSdwanZoneArgs]] = None,
           seq_num: Optional[int] = None,
           src: Optional[str] = None,
           status: Optional[str] = None,
           tag: Optional[int] = None,
           vdomparam: Optional[str] = None,
           virtual_wan_link: Optional[str] = None,
           vrf: Optional[int] = None,
           weight: Optional[int] = None)
func NewStatic(ctx *Context, name string, args *StaticArgs, opts ...ResourceOption) (*Static, error)
public Static(string name, StaticArgs? args = null, CustomResourceOptions? opts = null)
public Static(String name, StaticArgs args)
public Static(String name, StaticArgs args, CustomResourceOptions options)
type: fortios:router:Static
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args StaticArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args StaticArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args StaticArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args StaticArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. StaticArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var staticResource = new Fortios.Router.Static("staticResource", new()
{
    Bfd = "string",
    Blackhole = "string",
    Comment = "string",
    Device = "string",
    Distance = 0,
    Dst = "string",
    Dstaddr = "string",
    DynamicGateway = "string",
    DynamicSortSubtable = "string",
    Gateway = "string",
    GetAllTables = "string",
    InternetService = 0,
    InternetServiceCustom = "string",
    LinkMonitorExempt = "string",
    PreferredSource = "string",
    Priority = 0,
    Sdwan = "string",
    SdwanZones = new[]
    {
        new Fortios.Router.Inputs.StaticSdwanZoneArgs
        {
            Name = "string",
        },
    },
    SeqNum = 0,
    Src = "string",
    Status = "string",
    Tag = 0,
    Vdomparam = "string",
    VirtualWanLink = "string",
    Vrf = 0,
    Weight = 0,
});
Copy
example, err := router.NewStatic(ctx, "staticResource", &router.StaticArgs{
	Bfd:                   pulumi.String("string"),
	Blackhole:             pulumi.String("string"),
	Comment:               pulumi.String("string"),
	Device:                pulumi.String("string"),
	Distance:              pulumi.Int(0),
	Dst:                   pulumi.String("string"),
	Dstaddr:               pulumi.String("string"),
	DynamicGateway:        pulumi.String("string"),
	DynamicSortSubtable:   pulumi.String("string"),
	Gateway:               pulumi.String("string"),
	GetAllTables:          pulumi.String("string"),
	InternetService:       pulumi.Int(0),
	InternetServiceCustom: pulumi.String("string"),
	LinkMonitorExempt:     pulumi.String("string"),
	PreferredSource:       pulumi.String("string"),
	Priority:              pulumi.Int(0),
	Sdwan:                 pulumi.String("string"),
	SdwanZones: router.StaticSdwanZoneArray{
		&router.StaticSdwanZoneArgs{
			Name: pulumi.String("string"),
		},
	},
	SeqNum:         pulumi.Int(0),
	Src:            pulumi.String("string"),
	Status:         pulumi.String("string"),
	Tag:            pulumi.Int(0),
	Vdomparam:      pulumi.String("string"),
	VirtualWanLink: pulumi.String("string"),
	Vrf:            pulumi.Int(0),
	Weight:         pulumi.Int(0),
})
Copy
var staticResource = new Static("staticResource", StaticArgs.builder()
    .bfd("string")
    .blackhole("string")
    .comment("string")
    .device("string")
    .distance(0)
    .dst("string")
    .dstaddr("string")
    .dynamicGateway("string")
    .dynamicSortSubtable("string")
    .gateway("string")
    .getAllTables("string")
    .internetService(0)
    .internetServiceCustom("string")
    .linkMonitorExempt("string")
    .preferredSource("string")
    .priority(0)
    .sdwan("string")
    .sdwanZones(StaticSdwanZoneArgs.builder()
        .name("string")
        .build())
    .seqNum(0)
    .src("string")
    .status("string")
    .tag(0)
    .vdomparam("string")
    .virtualWanLink("string")
    .vrf(0)
    .weight(0)
    .build());
Copy
static_resource = fortios.router.Static("staticResource",
    bfd="string",
    blackhole="string",
    comment="string",
    device="string",
    distance=0,
    dst="string",
    dstaddr="string",
    dynamic_gateway="string",
    dynamic_sort_subtable="string",
    gateway="string",
    get_all_tables="string",
    internet_service=0,
    internet_service_custom="string",
    link_monitor_exempt="string",
    preferred_source="string",
    priority=0,
    sdwan="string",
    sdwan_zones=[{
        "name": "string",
    }],
    seq_num=0,
    src="string",
    status="string",
    tag=0,
    vdomparam="string",
    virtual_wan_link="string",
    vrf=0,
    weight=0)
Copy
const staticResource = new fortios.router.Static("staticResource", {
    bfd: "string",
    blackhole: "string",
    comment: "string",
    device: "string",
    distance: 0,
    dst: "string",
    dstaddr: "string",
    dynamicGateway: "string",
    dynamicSortSubtable: "string",
    gateway: "string",
    getAllTables: "string",
    internetService: 0,
    internetServiceCustom: "string",
    linkMonitorExempt: "string",
    preferredSource: "string",
    priority: 0,
    sdwan: "string",
    sdwanZones: [{
        name: "string",
    }],
    seqNum: 0,
    src: "string",
    status: "string",
    tag: 0,
    vdomparam: "string",
    virtualWanLink: "string",
    vrf: 0,
    weight: 0,
});
Copy
type: fortios:router:Static
properties:
    bfd: string
    blackhole: string
    comment: string
    device: string
    distance: 0
    dst: string
    dstaddr: string
    dynamicGateway: string
    dynamicSortSubtable: string
    gateway: string
    getAllTables: string
    internetService: 0
    internetServiceCustom: string
    linkMonitorExempt: string
    preferredSource: string
    priority: 0
    sdwan: string
    sdwanZones:
        - name: string
    seqNum: 0
    src: string
    status: string
    tag: 0
    vdomparam: string
    virtualWanLink: string
    vrf: 0
    weight: 0
Copy

Static Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Static resource accepts the following input properties:

Bfd string
Enable/disable Bidirectional Forwarding Detection (BFD). Valid values: enable, disable.
Blackhole string
Enable/disable black hole. Valid values: enable, disable.
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. Valid values: enable, disable.
DynamicSortSubtable string
Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
Gateway string
Gateway IP for this route.
GetAllTables string
Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
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. Valid values: enable, disable.
PreferredSource string
Preferred source IP for this route.
Priority int
Administrative priority. On FortiOS versions 6.2.0-6.4.1: 0 - 4294967295. On FortiOS versions 6.4.2-7.0.3: 0 - 65535. On FortiOS versions >= 7.0.4: 1 - 65535.
Sdwan string
Enable/disable egress through SD-WAN. Valid values: enable, disable.
SdwanZones List<Pulumiverse.Fortios.Router.Inputs.StaticSdwanZone>
Choose SD-WAN Zone. The structure of sdwan_zone block is documented below.
SeqNum Changes to this property will trigger replacement. int
Sequence number.
Src string
Source prefix for this route.
Status string
Enable/disable this static route. Valid values: enable, disable.
Tag int
Route tag.
Vdomparam Changes to this property will trigger replacement. string
Specifies the vdom to which the resource 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.
VirtualWanLink string
Enable/disable egress through the virtual-wan-link. Valid values: enable, disable.
Vrf int
Virtual Routing Forwarding ID.
Weight int
Administrative weight (0 - 255).
Bfd string
Enable/disable Bidirectional Forwarding Detection (BFD). Valid values: enable, disable.
Blackhole string
Enable/disable black hole. Valid values: enable, disable.
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. Valid values: enable, disable.
DynamicSortSubtable string
Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
Gateway string
Gateway IP for this route.
GetAllTables string
Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
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. Valid values: enable, disable.
PreferredSource string
Preferred source IP for this route.
Priority int
Administrative priority. On FortiOS versions 6.2.0-6.4.1: 0 - 4294967295. On FortiOS versions 6.4.2-7.0.3: 0 - 65535. On FortiOS versions >= 7.0.4: 1 - 65535.
Sdwan string
Enable/disable egress through SD-WAN. Valid values: enable, disable.
SdwanZones []StaticSdwanZoneArgs
Choose SD-WAN Zone. The structure of sdwan_zone block is documented below.
SeqNum Changes to this property will trigger replacement. int
Sequence number.
Src string
Source prefix for this route.
Status string
Enable/disable this static route. Valid values: enable, disable.
Tag int
Route tag.
Vdomparam Changes to this property will trigger replacement. string
Specifies the vdom to which the resource 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.
VirtualWanLink string
Enable/disable egress through the virtual-wan-link. Valid values: enable, disable.
Vrf int
Virtual Routing Forwarding ID.
Weight int
Administrative weight (0 - 255).
bfd String
Enable/disable Bidirectional Forwarding Detection (BFD). Valid values: enable, disable.
blackhole String
Enable/disable black hole. Valid values: enable, disable.
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. Valid values: enable, disable.
dynamicSortSubtable String
Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
gateway String
Gateway IP for this route.
getAllTables String
Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
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. Valid values: enable, disable.
preferredSource String
Preferred source IP for this route.
priority Integer
Administrative priority. On FortiOS versions 6.2.0-6.4.1: 0 - 4294967295. On FortiOS versions 6.4.2-7.0.3: 0 - 65535. On FortiOS versions >= 7.0.4: 1 - 65535.
sdwan String
Enable/disable egress through SD-WAN. Valid values: enable, disable.
sdwanZones List<StaticSdwanZone>
Choose SD-WAN Zone. The structure of sdwan_zone block is documented below.
seqNum Changes to this property will trigger replacement. Integer
Sequence number.
src String
Source prefix for this route.
status String
Enable/disable this static route. Valid values: enable, disable.
tag Integer
Route tag.
vdomparam Changes to this property will trigger replacement. String
Specifies the vdom to which the resource 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.
virtualWanLink String
Enable/disable egress through the virtual-wan-link. Valid values: enable, disable.
vrf Integer
Virtual Routing Forwarding ID.
weight Integer
Administrative weight (0 - 255).
bfd string
Enable/disable Bidirectional Forwarding Detection (BFD). Valid values: enable, disable.
blackhole string
Enable/disable black hole. Valid values: enable, disable.
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. Valid values: enable, disable.
dynamicSortSubtable string
Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
gateway string
Gateway IP for this route.
getAllTables string
Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
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. Valid values: enable, disable.
preferredSource string
Preferred source IP for this route.
priority number
Administrative priority. On FortiOS versions 6.2.0-6.4.1: 0 - 4294967295. On FortiOS versions 6.4.2-7.0.3: 0 - 65535. On FortiOS versions >= 7.0.4: 1 - 65535.
sdwan string
Enable/disable egress through SD-WAN. Valid values: enable, disable.
sdwanZones StaticSdwanZone[]
Choose SD-WAN Zone. The structure of sdwan_zone block is documented below.
seqNum Changes to this property will trigger replacement. number
Sequence number.
src string
Source prefix for this route.
status string
Enable/disable this static route. Valid values: enable, disable.
tag number
Route tag.
vdomparam Changes to this property will trigger replacement. string
Specifies the vdom to which the resource 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.
virtualWanLink string
Enable/disable egress through the virtual-wan-link. Valid values: enable, disable.
vrf number
Virtual Routing Forwarding ID.
weight number
Administrative weight (0 - 255).
bfd str
Enable/disable Bidirectional Forwarding Detection (BFD). Valid values: enable, disable.
blackhole str
Enable/disable black hole. Valid values: enable, disable.
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. Valid values: enable, disable.
dynamic_sort_subtable str
Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
gateway str
Gateway IP for this route.
get_all_tables str
Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
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. Valid values: enable, disable.
preferred_source str
Preferred source IP for this route.
priority int
Administrative priority. On FortiOS versions 6.2.0-6.4.1: 0 - 4294967295. On FortiOS versions 6.4.2-7.0.3: 0 - 65535. On FortiOS versions >= 7.0.4: 1 - 65535.
sdwan str
Enable/disable egress through SD-WAN. Valid values: enable, disable.
sdwan_zones Sequence[StaticSdwanZoneArgs]
Choose SD-WAN Zone. The structure of sdwan_zone block is documented below.
seq_num Changes to this property will trigger replacement. int
Sequence number.
src str
Source prefix for this route.
status str
Enable/disable this static route. Valid values: enable, disable.
tag int
Route tag.
vdomparam Changes to this property will trigger replacement. str
Specifies the vdom to which the resource 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.
virtual_wan_link str
Enable/disable egress through the virtual-wan-link. Valid values: enable, disable.
vrf int
Virtual Routing Forwarding ID.
weight int
Administrative weight (0 - 255).
bfd String
Enable/disable Bidirectional Forwarding Detection (BFD). Valid values: enable, disable.
blackhole String
Enable/disable black hole. Valid values: enable, disable.
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. Valid values: enable, disable.
dynamicSortSubtable String
Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
gateway String
Gateway IP for this route.
getAllTables String
Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
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. Valid values: enable, disable.
preferredSource String
Preferred source IP for this route.
priority Number
Administrative priority. On FortiOS versions 6.2.0-6.4.1: 0 - 4294967295. On FortiOS versions 6.4.2-7.0.3: 0 - 65535. On FortiOS versions >= 7.0.4: 1 - 65535.
sdwan String
Enable/disable egress through SD-WAN. Valid values: enable, disable.
sdwanZones List<Property Map>
Choose SD-WAN Zone. The structure of sdwan_zone block is documented below.
seqNum Changes to this property will trigger replacement. Number
Sequence number.
src String
Source prefix for this route.
status String
Enable/disable this static route. Valid values: enable, disable.
tag Number
Route tag.
vdomparam Changes to this property will trigger replacement. String
Specifies the vdom to which the resource 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.
virtualWanLink String
Enable/disable egress through the virtual-wan-link. Valid values: enable, disable.
vrf Number
Virtual Routing Forwarding ID.
weight Number
Administrative weight (0 - 255).

Outputs

All input properties are implicitly available as output properties. Additionally, the Static resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing Static Resource

Get an existing Static resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: StaticState, opts?: CustomResourceOptions): Static
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        bfd: Optional[str] = None,
        blackhole: Optional[str] = None,
        comment: Optional[str] = None,
        device: Optional[str] = None,
        distance: Optional[int] = None,
        dst: Optional[str] = None,
        dstaddr: Optional[str] = None,
        dynamic_gateway: Optional[str] = None,
        dynamic_sort_subtable: Optional[str] = None,
        gateway: Optional[str] = None,
        get_all_tables: Optional[str] = None,
        internet_service: Optional[int] = None,
        internet_service_custom: Optional[str] = None,
        link_monitor_exempt: Optional[str] = None,
        preferred_source: Optional[str] = None,
        priority: Optional[int] = None,
        sdwan: Optional[str] = None,
        sdwan_zones: Optional[Sequence[StaticSdwanZoneArgs]] = None,
        seq_num: Optional[int] = None,
        src: Optional[str] = None,
        status: Optional[str] = None,
        tag: Optional[int] = None,
        vdomparam: Optional[str] = None,
        virtual_wan_link: Optional[str] = None,
        vrf: Optional[int] = None,
        weight: Optional[int] = None) -> Static
func GetStatic(ctx *Context, name string, id IDInput, state *StaticState, opts ...ResourceOption) (*Static, error)
public static Static Get(string name, Input<string> id, StaticState? state, CustomResourceOptions? opts = null)
public static Static get(String name, Output<String> id, StaticState state, CustomResourceOptions options)
resources:  _:    type: fortios:router:Static    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Bfd string
Enable/disable Bidirectional Forwarding Detection (BFD). Valid values: enable, disable.
Blackhole string
Enable/disable black hole. Valid values: enable, disable.
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. Valid values: enable, disable.
DynamicSortSubtable string
Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
Gateway string
Gateway IP for this route.
GetAllTables string
Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
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. Valid values: enable, disable.
PreferredSource string
Preferred source IP for this route.
Priority int
Administrative priority. On FortiOS versions 6.2.0-6.4.1: 0 - 4294967295. On FortiOS versions 6.4.2-7.0.3: 0 - 65535. On FortiOS versions >= 7.0.4: 1 - 65535.
Sdwan string
Enable/disable egress through SD-WAN. Valid values: enable, disable.
SdwanZones List<Pulumiverse.Fortios.Router.Inputs.StaticSdwanZone>
Choose SD-WAN Zone. The structure of sdwan_zone block is documented below.
SeqNum Changes to this property will trigger replacement. int
Sequence number.
Src string
Source prefix for this route.
Status string
Enable/disable this static route. Valid values: enable, disable.
Tag int
Route tag.
Vdomparam Changes to this property will trigger replacement. string
Specifies the vdom to which the resource 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.
VirtualWanLink string
Enable/disable egress through the virtual-wan-link. Valid values: enable, disable.
Vrf int
Virtual Routing Forwarding ID.
Weight int
Administrative weight (0 - 255).
Bfd string
Enable/disable Bidirectional Forwarding Detection (BFD). Valid values: enable, disable.
Blackhole string
Enable/disable black hole. Valid values: enable, disable.
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. Valid values: enable, disable.
DynamicSortSubtable string
Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
Gateway string
Gateway IP for this route.
GetAllTables string
Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
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. Valid values: enable, disable.
PreferredSource string
Preferred source IP for this route.
Priority int
Administrative priority. On FortiOS versions 6.2.0-6.4.1: 0 - 4294967295. On FortiOS versions 6.4.2-7.0.3: 0 - 65535. On FortiOS versions >= 7.0.4: 1 - 65535.
Sdwan string
Enable/disable egress through SD-WAN. Valid values: enable, disable.
SdwanZones []StaticSdwanZoneArgs
Choose SD-WAN Zone. The structure of sdwan_zone block is documented below.
SeqNum Changes to this property will trigger replacement. int
Sequence number.
Src string
Source prefix for this route.
Status string
Enable/disable this static route. Valid values: enable, disable.
Tag int
Route tag.
Vdomparam Changes to this property will trigger replacement. string
Specifies the vdom to which the resource 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.
VirtualWanLink string
Enable/disable egress through the virtual-wan-link. Valid values: enable, disable.
Vrf int
Virtual Routing Forwarding ID.
Weight int
Administrative weight (0 - 255).
bfd String
Enable/disable Bidirectional Forwarding Detection (BFD). Valid values: enable, disable.
blackhole String
Enable/disable black hole. Valid values: enable, disable.
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. Valid values: enable, disable.
dynamicSortSubtable String
Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
gateway String
Gateway IP for this route.
getAllTables String
Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
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. Valid values: enable, disable.
preferredSource String
Preferred source IP for this route.
priority Integer
Administrative priority. On FortiOS versions 6.2.0-6.4.1: 0 - 4294967295. On FortiOS versions 6.4.2-7.0.3: 0 - 65535. On FortiOS versions >= 7.0.4: 1 - 65535.
sdwan String
Enable/disable egress through SD-WAN. Valid values: enable, disable.
sdwanZones List<StaticSdwanZone>
Choose SD-WAN Zone. The structure of sdwan_zone block is documented below.
seqNum Changes to this property will trigger replacement. Integer
Sequence number.
src String
Source prefix for this route.
status String
Enable/disable this static route. Valid values: enable, disable.
tag Integer
Route tag.
vdomparam Changes to this property will trigger replacement. String
Specifies the vdom to which the resource 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.
virtualWanLink String
Enable/disable egress through the virtual-wan-link. Valid values: enable, disable.
vrf Integer
Virtual Routing Forwarding ID.
weight Integer
Administrative weight (0 - 255).
bfd string
Enable/disable Bidirectional Forwarding Detection (BFD). Valid values: enable, disable.
blackhole string
Enable/disable black hole. Valid values: enable, disable.
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. Valid values: enable, disable.
dynamicSortSubtable string
Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
gateway string
Gateway IP for this route.
getAllTables string
Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
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. Valid values: enable, disable.
preferredSource string
Preferred source IP for this route.
priority number
Administrative priority. On FortiOS versions 6.2.0-6.4.1: 0 - 4294967295. On FortiOS versions 6.4.2-7.0.3: 0 - 65535. On FortiOS versions >= 7.0.4: 1 - 65535.
sdwan string
Enable/disable egress through SD-WAN. Valid values: enable, disable.
sdwanZones StaticSdwanZone[]
Choose SD-WAN Zone. The structure of sdwan_zone block is documented below.
seqNum Changes to this property will trigger replacement. number
Sequence number.
src string
Source prefix for this route.
status string
Enable/disable this static route. Valid values: enable, disable.
tag number
Route tag.
vdomparam Changes to this property will trigger replacement. string
Specifies the vdom to which the resource 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.
virtualWanLink string
Enable/disable egress through the virtual-wan-link. Valid values: enable, disable.
vrf number
Virtual Routing Forwarding ID.
weight number
Administrative weight (0 - 255).
bfd str
Enable/disable Bidirectional Forwarding Detection (BFD). Valid values: enable, disable.
blackhole str
Enable/disable black hole. Valid values: enable, disable.
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. Valid values: enable, disable.
dynamic_sort_subtable str
Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
gateway str
Gateway IP for this route.
get_all_tables str
Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
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. Valid values: enable, disable.
preferred_source str
Preferred source IP for this route.
priority int
Administrative priority. On FortiOS versions 6.2.0-6.4.1: 0 - 4294967295. On FortiOS versions 6.4.2-7.0.3: 0 - 65535. On FortiOS versions >= 7.0.4: 1 - 65535.
sdwan str
Enable/disable egress through SD-WAN. Valid values: enable, disable.
sdwan_zones Sequence[StaticSdwanZoneArgs]
Choose SD-WAN Zone. The structure of sdwan_zone block is documented below.
seq_num Changes to this property will trigger replacement. int
Sequence number.
src str
Source prefix for this route.
status str
Enable/disable this static route. Valid values: enable, disable.
tag int
Route tag.
vdomparam Changes to this property will trigger replacement. str
Specifies the vdom to which the resource 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.
virtual_wan_link str
Enable/disable egress through the virtual-wan-link. Valid values: enable, disable.
vrf int
Virtual Routing Forwarding ID.
weight int
Administrative weight (0 - 255).
bfd String
Enable/disable Bidirectional Forwarding Detection (BFD). Valid values: enable, disable.
blackhole String
Enable/disable black hole. Valid values: enable, disable.
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. Valid values: enable, disable.
dynamicSortSubtable String
Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
gateway String
Gateway IP for this route.
getAllTables String
Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
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. Valid values: enable, disable.
preferredSource String
Preferred source IP for this route.
priority Number
Administrative priority. On FortiOS versions 6.2.0-6.4.1: 0 - 4294967295. On FortiOS versions 6.4.2-7.0.3: 0 - 65535. On FortiOS versions >= 7.0.4: 1 - 65535.
sdwan String
Enable/disable egress through SD-WAN. Valid values: enable, disable.
sdwanZones List<Property Map>
Choose SD-WAN Zone. The structure of sdwan_zone block is documented below.
seqNum Changes to this property will trigger replacement. Number
Sequence number.
src String
Source prefix for this route.
status String
Enable/disable this static route. Valid values: enable, disable.
tag Number
Route tag.
vdomparam Changes to this property will trigger replacement. String
Specifies the vdom to which the resource 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.
virtualWanLink String
Enable/disable egress through the virtual-wan-link. Valid values: enable, disable.
vrf Number
Virtual Routing Forwarding ID.
weight Number
Administrative weight (0 - 255).

Supporting Types

StaticSdwanZone
, StaticSdwanZoneArgs

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.

Import

Router Static can be imported using any of these accepted formats:

$ pulumi import fortios:router/static:Static labelname {{seq_num}}
Copy

If you do not want to import arguments of block:

$ export “FORTIOS_IMPORT_TABLE”=“false”

$ pulumi import fortios:router/static:Static labelname {{seq_num}}
Copy

$ unset “FORTIOS_IMPORT_TABLE”

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
fortios pulumiverse/pulumi-fortios
License
Apache-2.0
Notes
This Pulumi package is based on the fortios Terraform Provider.