fortios.router.Static6
Explore with Pulumi AI
Configure IPv6 static routing tables.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumiverse/fortios";
const trname = new fortios.router.Static6("trname", {
bfd: "disable",
blackhole: "disable",
device: "port3",
devindex: 5,
distance: 10,
dst: "2001:db8::/32",
gateway: "::",
priority: 32,
seqNum: 1,
status: "enable",
virtualWanLink: "disable",
});
import pulumi
import pulumiverse_fortios as fortios
trname = fortios.router.Static6("trname",
bfd="disable",
blackhole="disable",
device="port3",
devindex=5,
distance=10,
dst="2001:db8::/32",
gateway="::",
priority=32,
seq_num=1,
status="enable",
virtual_wan_link="disable")
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.NewStatic6(ctx, "trname", &router.Static6Args{
Bfd: pulumi.String("disable"),
Blackhole: pulumi.String("disable"),
Device: pulumi.String("port3"),
Devindex: pulumi.Int(5),
Distance: pulumi.Int(10),
Dst: pulumi.String("2001:db8::/32"),
Gateway: pulumi.String("::"),
Priority: pulumi.Int(32),
SeqNum: pulumi.Int(1),
Status: pulumi.String("enable"),
VirtualWanLink: pulumi.String("disable"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortios = Pulumiverse.Fortios;
return await Deployment.RunAsync(() =>
{
var trname = new Fortios.Router.Static6("trname", new()
{
Bfd = "disable",
Blackhole = "disable",
Device = "port3",
Devindex = 5,
Distance = 10,
Dst = "2001:db8::/32",
Gateway = "::",
Priority = 32,
SeqNum = 1,
Status = "enable",
VirtualWanLink = "disable",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.router.Static6;
import com.pulumi.fortios.router.Static6Args;
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 Static6("trname", Static6Args.builder()
.bfd("disable")
.blackhole("disable")
.device("port3")
.devindex(5)
.distance(10)
.dst("2001:db8::/32")
.gateway("::")
.priority(32)
.seqNum(1)
.status("enable")
.virtualWanLink("disable")
.build());
}
}
resources:
trname:
type: fortios:router:Static6
properties:
bfd: disable
blackhole: disable
device: port3
devindex: 5
distance: 10
dst: 2001:db8::/32
gateway: '::'
priority: 32
seqNum: 1
status: enable
virtualWanLink: disable
Create Static6 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Static6(name: string, args: Static6Args, opts?: CustomResourceOptions);
@overload
def Static6(resource_name: str,
args: Static6Args,
opts: Optional[ResourceOptions] = None)
@overload
def Static6(resource_name: str,
opts: Optional[ResourceOptions] = None,
device: Optional[str] = None,
gateway: Optional[str] = None,
distance: Optional[int] = None,
get_all_tables: Optional[str] = None,
priority: Optional[int] = None,
link_monitor_exempt: Optional[str] = None,
dst: Optional[str] = None,
dstaddr: Optional[str] = None,
dynamic_gateway: Optional[str] = None,
dynamic_sort_subtable: Optional[str] = None,
bfd: Optional[str] = None,
blackhole: Optional[str] = None,
comment: Optional[str] = None,
devindex: Optional[int] = None,
sdwan: Optional[str] = None,
sdwan_zones: Optional[Sequence[Static6SdwanZoneArgs]] = None,
seq_num: Optional[int] = None,
status: Optional[str] = None,
vdomparam: Optional[str] = None,
virtual_wan_link: Optional[str] = None,
vrf: Optional[int] = None,
weight: Optional[int] = None)
func NewStatic6(ctx *Context, name string, args Static6Args, opts ...ResourceOption) (*Static6, error)
public Static6(string name, Static6Args args, CustomResourceOptions? opts = null)
public Static6(String name, Static6Args args)
public Static6(String name, Static6Args args, CustomResourceOptions options)
type: fortios:router:Static6
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args Static6Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args Static6Args
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args Static6Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args Static6Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args Static6Args
- 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 static6Resource = new Fortios.Router.Static6("static6Resource", new()
{
Device = "string",
Gateway = "string",
Distance = 0,
GetAllTables = "string",
Priority = 0,
LinkMonitorExempt = "string",
Dst = "string",
Dstaddr = "string",
DynamicGateway = "string",
DynamicSortSubtable = "string",
Bfd = "string",
Blackhole = "string",
Comment = "string",
Devindex = 0,
Sdwan = "string",
SdwanZones = new[]
{
new Fortios.Router.Inputs.Static6SdwanZoneArgs
{
Name = "string",
},
},
SeqNum = 0,
Status = "string",
Vdomparam = "string",
VirtualWanLink = "string",
Vrf = 0,
Weight = 0,
});
example, err := router.NewStatic6(ctx, "static6Resource", &router.Static6Args{
Device: pulumi.String("string"),
Gateway: pulumi.String("string"),
Distance: pulumi.Int(0),
GetAllTables: pulumi.String("string"),
Priority: pulumi.Int(0),
LinkMonitorExempt: pulumi.String("string"),
Dst: pulumi.String("string"),
Dstaddr: pulumi.String("string"),
DynamicGateway: pulumi.String("string"),
DynamicSortSubtable: pulumi.String("string"),
Bfd: pulumi.String("string"),
Blackhole: pulumi.String("string"),
Comment: pulumi.String("string"),
Devindex: pulumi.Int(0),
Sdwan: pulumi.String("string"),
SdwanZones: router.Static6SdwanZoneArray{
&router.Static6SdwanZoneArgs{
Name: pulumi.String("string"),
},
},
SeqNum: pulumi.Int(0),
Status: pulumi.String("string"),
Vdomparam: pulumi.String("string"),
VirtualWanLink: pulumi.String("string"),
Vrf: pulumi.Int(0),
Weight: pulumi.Int(0),
})
var static6Resource = new Static6("static6Resource", Static6Args.builder()
.device("string")
.gateway("string")
.distance(0)
.getAllTables("string")
.priority(0)
.linkMonitorExempt("string")
.dst("string")
.dstaddr("string")
.dynamicGateway("string")
.dynamicSortSubtable("string")
.bfd("string")
.blackhole("string")
.comment("string")
.devindex(0)
.sdwan("string")
.sdwanZones(Static6SdwanZoneArgs.builder()
.name("string")
.build())
.seqNum(0)
.status("string")
.vdomparam("string")
.virtualWanLink("string")
.vrf(0)
.weight(0)
.build());
static6_resource = fortios.router.Static6("static6Resource",
device="string",
gateway="string",
distance=0,
get_all_tables="string",
priority=0,
link_monitor_exempt="string",
dst="string",
dstaddr="string",
dynamic_gateway="string",
dynamic_sort_subtable="string",
bfd="string",
blackhole="string",
comment="string",
devindex=0,
sdwan="string",
sdwan_zones=[fortios.router.Static6SdwanZoneArgs(
name="string",
)],
seq_num=0,
status="string",
vdomparam="string",
virtual_wan_link="string",
vrf=0,
weight=0)
const static6Resource = new fortios.router.Static6("static6Resource", {
device: "string",
gateway: "string",
distance: 0,
getAllTables: "string",
priority: 0,
linkMonitorExempt: "string",
dst: "string",
dstaddr: "string",
dynamicGateway: "string",
dynamicSortSubtable: "string",
bfd: "string",
blackhole: "string",
comment: "string",
devindex: 0,
sdwan: "string",
sdwanZones: [{
name: "string",
}],
seqNum: 0,
status: "string",
vdomparam: "string",
virtualWanLink: "string",
vrf: 0,
weight: 0,
});
type: fortios:router:Static6
properties:
bfd: string
blackhole: string
comment: string
device: string
devindex: 0
distance: 0
dst: string
dstaddr: string
dynamicGateway: string
dynamicSortSubtable: string
gateway: string
getAllTables: string
linkMonitorExempt: string
priority: 0
sdwan: string
sdwanZones:
- name: string
seqNum: 0
status: string
vdomparam: string
virtualWanLink: string
vrf: 0
weight: 0
Static6 Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Static6 resource accepts the following input properties:
- Device string
- Gateway out interface or tunnel.
- 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.
- Devindex int
- Device index (0 - 4294967295).
- Distance int
- Administrative distance (1 - 255).
- Dst string
- Destination IPv6 prefix.
- Dstaddr string
- Name of firewall address or address group.
- Dynamic
Gateway string - Enable use of dynamic gateway retrieved from Router Advertisement (RA). Valid values:
enable
,disable
. - Dynamic
Sort stringSubtable - 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
- IPv6 address of the gateway.
- Get
All stringTables - 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.
- Link
Monitor stringExempt - Enable/disable withdrawal of this static route when link monitor or health check is down. Valid values:
enable
,disable
. - Priority int
- Administrative priority. On FortiOS versions 6.2.0-6.4.1: 0 - 4294967295. On FortiOS versions >= 6.4.2: 1 - 65535.
- Sdwan string
- Enable/disable egress through the SD-WAN. Valid values:
enable
,disable
. - Sdwan
Zones List<Pulumiverse.Fortios. Router. Inputs. Static6Sdwan Zone> - Choose SD-WAN Zone. The structure of
sdwan_zone
block is documented below. - Seq
Num int - Sequence number.
- Status string
- Enable/disable this static route. Valid values:
enable
,disable
. - Vdomparam 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.
- Virtual
Wan stringLink - Enable/disable egress through the virtual-wan-link. Valid values:
enable
,disable
. - Vrf int
- Virtual Routing Forwarding ID.
- Weight int
- Administrative weight (0 - 255).
- Device string
- Gateway out interface or tunnel.
- 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.
- Devindex int
- Device index (0 - 4294967295).
- Distance int
- Administrative distance (1 - 255).
- Dst string
- Destination IPv6 prefix.
- Dstaddr string
- Name of firewall address or address group.
- Dynamic
Gateway string - Enable use of dynamic gateway retrieved from Router Advertisement (RA). Valid values:
enable
,disable
. - Dynamic
Sort stringSubtable - 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
- IPv6 address of the gateway.
- Get
All stringTables - 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.
- Link
Monitor stringExempt - Enable/disable withdrawal of this static route when link monitor or health check is down. Valid values:
enable
,disable
. - Priority int
- Administrative priority. On FortiOS versions 6.2.0-6.4.1: 0 - 4294967295. On FortiOS versions >= 6.4.2: 1 - 65535.
- Sdwan string
- Enable/disable egress through the SD-WAN. Valid values:
enable
,disable
. - Sdwan
Zones []Static6SdwanZone Args - Choose SD-WAN Zone. The structure of
sdwan_zone
block is documented below. - Seq
Num int - Sequence number.
- Status string
- Enable/disable this static route. Valid values:
enable
,disable
. - Vdomparam 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.
- Virtual
Wan stringLink - Enable/disable egress through the virtual-wan-link. Valid values:
enable
,disable
. - Vrf int
- Virtual Routing Forwarding ID.
- Weight int
- Administrative weight (0 - 255).
- device String
- Gateway out interface or tunnel.
- 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.
- devindex Integer
- Device index (0 - 4294967295).
- distance Integer
- Administrative distance (1 - 255).
- dst String
- Destination IPv6 prefix.
- dstaddr String
- Name of firewall address or address group.
- dynamic
Gateway String - Enable use of dynamic gateway retrieved from Router Advertisement (RA). Valid values:
enable
,disable
. - dynamic
Sort StringSubtable - 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
- IPv6 address of the gateway.
- get
All StringTables - 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.
- link
Monitor StringExempt - Enable/disable withdrawal of this static route when link monitor or health check is down. Valid values:
enable
,disable
. - priority Integer
- Administrative priority. On FortiOS versions 6.2.0-6.4.1: 0 - 4294967295. On FortiOS versions >= 6.4.2: 1 - 65535.
- sdwan String
- Enable/disable egress through the SD-WAN. Valid values:
enable
,disable
. - sdwan
Zones List<Static6SdwanZone> - Choose SD-WAN Zone. The structure of
sdwan_zone
block is documented below. - seq
Num Integer - Sequence number.
- status String
- Enable/disable this static route. Valid values:
enable
,disable
. - vdomparam 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.
- virtual
Wan StringLink - Enable/disable egress through the virtual-wan-link. Valid values:
enable
,disable
. - vrf Integer
- Virtual Routing Forwarding ID.
- weight Integer
- Administrative weight (0 - 255).
- device string
- Gateway out interface or tunnel.
- 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.
- devindex number
- Device index (0 - 4294967295).
- distance number
- Administrative distance (1 - 255).
- dst string
- Destination IPv6 prefix.
- dstaddr string
- Name of firewall address or address group.
- dynamic
Gateway string - Enable use of dynamic gateway retrieved from Router Advertisement (RA). Valid values:
enable
,disable
. - dynamic
Sort stringSubtable - 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
- IPv6 address of the gateway.
- get
All stringTables - 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.
- link
Monitor stringExempt - Enable/disable withdrawal of this static route when link monitor or health check is down. Valid values:
enable
,disable
. - priority number
- Administrative priority. On FortiOS versions 6.2.0-6.4.1: 0 - 4294967295. On FortiOS versions >= 6.4.2: 1 - 65535.
- sdwan string
- Enable/disable egress through the SD-WAN. Valid values:
enable
,disable
. - sdwan
Zones Static6SdwanZone[] - Choose SD-WAN Zone. The structure of
sdwan_zone
block is documented below. - seq
Num number - Sequence number.
- status string
- Enable/disable this static route. Valid values:
enable
,disable
. - vdomparam 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.
- virtual
Wan stringLink - Enable/disable egress through the virtual-wan-link. Valid values:
enable
,disable
. - vrf number
- Virtual Routing Forwarding ID.
- weight number
- Administrative weight (0 - 255).
- device str
- Gateway out interface or tunnel.
- 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.
- devindex int
- Device index (0 - 4294967295).
- distance int
- Administrative distance (1 - 255).
- dst str
- Destination IPv6 prefix.
- dstaddr str
- Name of firewall address or address group.
- dynamic_
gateway str - Enable use of dynamic gateway retrieved from Router Advertisement (RA). Valid values:
enable
,disable
. - dynamic_
sort_ strsubtable - 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
- IPv6 address of the gateway.
- get_
all_ strtables - 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.
- link_
monitor_ strexempt - Enable/disable withdrawal of this static route when link monitor or health check is down. Valid values:
enable
,disable
. - priority int
- Administrative priority. On FortiOS versions 6.2.0-6.4.1: 0 - 4294967295. On FortiOS versions >= 6.4.2: 1 - 65535.
- sdwan str
- Enable/disable egress through the SD-WAN. Valid values:
enable
,disable
. - sdwan_
zones Sequence[Static6SdwanZone Args] - Choose SD-WAN Zone. The structure of
sdwan_zone
block is documented below. - seq_
num int - Sequence number.
- status str
- Enable/disable this static route. Valid values:
enable
,disable
. - vdomparam 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_ strlink - Enable/disable egress through the virtual-wan-link. Valid values:
enable
,disable
. - vrf int
- Virtual Routing Forwarding ID.
- weight int
- Administrative weight (0 - 255).
- device String
- Gateway out interface or tunnel.
- 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.
- devindex Number
- Device index (0 - 4294967295).
- distance Number
- Administrative distance (1 - 255).
- dst String
- Destination IPv6 prefix.
- dstaddr String
- Name of firewall address or address group.
- dynamic
Gateway String - Enable use of dynamic gateway retrieved from Router Advertisement (RA). Valid values:
enable
,disable
. - dynamic
Sort StringSubtable - 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
- IPv6 address of the gateway.
- get
All StringTables - 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.
- link
Monitor StringExempt - Enable/disable withdrawal of this static route when link monitor or health check is down. Valid values:
enable
,disable
. - priority Number
- Administrative priority. On FortiOS versions 6.2.0-6.4.1: 0 - 4294967295. On FortiOS versions >= 6.4.2: 1 - 65535.
- sdwan String
- Enable/disable egress through the SD-WAN. Valid values:
enable
,disable
. - sdwan
Zones List<Property Map> - Choose SD-WAN Zone. The structure of
sdwan_zone
block is documented below. - seq
Num Number - Sequence number.
- status String
- Enable/disable this static route. Valid values:
enable
,disable
. - vdomparam 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.
- virtual
Wan StringLink - 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 Static6 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 Static6 Resource
Get an existing Static6 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?: Static6State, opts?: CustomResourceOptions): Static6
@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,
devindex: Optional[int] = 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,
link_monitor_exempt: Optional[str] = None,
priority: Optional[int] = None,
sdwan: Optional[str] = None,
sdwan_zones: Optional[Sequence[Static6SdwanZoneArgs]] = None,
seq_num: Optional[int] = None,
status: Optional[str] = None,
vdomparam: Optional[str] = None,
virtual_wan_link: Optional[str] = None,
vrf: Optional[int] = None,
weight: Optional[int] = None) -> Static6
func GetStatic6(ctx *Context, name string, id IDInput, state *Static6State, opts ...ResourceOption) (*Static6, error)
public static Static6 Get(string name, Input<string> id, Static6State? state, CustomResourceOptions? opts = null)
public static Static6 get(String name, Output<String> id, Static6State state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- 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.
- Devindex int
- Device index (0 - 4294967295).
- Distance int
- Administrative distance (1 - 255).
- Dst string
- Destination IPv6 prefix.
- Dstaddr string
- Name of firewall address or address group.
- Dynamic
Gateway string - Enable use of dynamic gateway retrieved from Router Advertisement (RA). Valid values:
enable
,disable
. - Dynamic
Sort stringSubtable - 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
- IPv6 address of the gateway.
- Get
All stringTables - 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.
- Link
Monitor stringExempt - Enable/disable withdrawal of this static route when link monitor or health check is down. Valid values:
enable
,disable
. - Priority int
- Administrative priority. On FortiOS versions 6.2.0-6.4.1: 0 - 4294967295. On FortiOS versions >= 6.4.2: 1 - 65535.
- Sdwan string
- Enable/disable egress through the SD-WAN. Valid values:
enable
,disable
. - Sdwan
Zones List<Pulumiverse.Fortios. Router. Inputs. Static6Sdwan Zone> - Choose SD-WAN Zone. The structure of
sdwan_zone
block is documented below. - Seq
Num int - Sequence number.
- Status string
- Enable/disable this static route. Valid values:
enable
,disable
. - Vdomparam 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.
- Virtual
Wan stringLink - 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.
- Devindex int
- Device index (0 - 4294967295).
- Distance int
- Administrative distance (1 - 255).
- Dst string
- Destination IPv6 prefix.
- Dstaddr string
- Name of firewall address or address group.
- Dynamic
Gateway string - Enable use of dynamic gateway retrieved from Router Advertisement (RA). Valid values:
enable
,disable
. - Dynamic
Sort stringSubtable - 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
- IPv6 address of the gateway.
- Get
All stringTables - 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.
- Link
Monitor stringExempt - Enable/disable withdrawal of this static route when link monitor or health check is down. Valid values:
enable
,disable
. - Priority int
- Administrative priority. On FortiOS versions 6.2.0-6.4.1: 0 - 4294967295. On FortiOS versions >= 6.4.2: 1 - 65535.
- Sdwan string
- Enable/disable egress through the SD-WAN. Valid values:
enable
,disable
. - Sdwan
Zones []Static6SdwanZone Args - Choose SD-WAN Zone. The structure of
sdwan_zone
block is documented below. - Seq
Num int - Sequence number.
- Status string
- Enable/disable this static route. Valid values:
enable
,disable
. - Vdomparam 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.
- Virtual
Wan stringLink - 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.
- devindex Integer
- Device index (0 - 4294967295).
- distance Integer
- Administrative distance (1 - 255).
- dst String
- Destination IPv6 prefix.
- dstaddr String
- Name of firewall address or address group.
- dynamic
Gateway String - Enable use of dynamic gateway retrieved from Router Advertisement (RA). Valid values:
enable
,disable
. - dynamic
Sort StringSubtable - 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
- IPv6 address of the gateway.
- get
All StringTables - 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.
- link
Monitor StringExempt - Enable/disable withdrawal of this static route when link monitor or health check is down. Valid values:
enable
,disable
. - priority Integer
- Administrative priority. On FortiOS versions 6.2.0-6.4.1: 0 - 4294967295. On FortiOS versions >= 6.4.2: 1 - 65535.
- sdwan String
- Enable/disable egress through the SD-WAN. Valid values:
enable
,disable
. - sdwan
Zones List<Static6SdwanZone> - Choose SD-WAN Zone. The structure of
sdwan_zone
block is documented below. - seq
Num Integer - Sequence number.
- status String
- Enable/disable this static route. Valid values:
enable
,disable
. - vdomparam 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.
- virtual
Wan StringLink - 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.
- devindex number
- Device index (0 - 4294967295).
- distance number
- Administrative distance (1 - 255).
- dst string
- Destination IPv6 prefix.
- dstaddr string
- Name of firewall address or address group.
- dynamic
Gateway string - Enable use of dynamic gateway retrieved from Router Advertisement (RA). Valid values:
enable
,disable
. - dynamic
Sort stringSubtable - 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
- IPv6 address of the gateway.
- get
All stringTables - 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.
- link
Monitor stringExempt - Enable/disable withdrawal of this static route when link monitor or health check is down. Valid values:
enable
,disable
. - priority number
- Administrative priority. On FortiOS versions 6.2.0-6.4.1: 0 - 4294967295. On FortiOS versions >= 6.4.2: 1 - 65535.
- sdwan string
- Enable/disable egress through the SD-WAN. Valid values:
enable
,disable
. - sdwan
Zones Static6SdwanZone[] - Choose SD-WAN Zone. The structure of
sdwan_zone
block is documented below. - seq
Num number - Sequence number.
- status string
- Enable/disable this static route. Valid values:
enable
,disable
. - vdomparam 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.
- virtual
Wan stringLink - 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.
- devindex int
- Device index (0 - 4294967295).
- distance int
- Administrative distance (1 - 255).
- dst str
- Destination IPv6 prefix.
- dstaddr str
- Name of firewall address or address group.
- dynamic_
gateway str - Enable use of dynamic gateway retrieved from Router Advertisement (RA). Valid values:
enable
,disable
. - dynamic_
sort_ strsubtable - 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
- IPv6 address of the gateway.
- get_
all_ strtables - 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.
- link_
monitor_ strexempt - Enable/disable withdrawal of this static route when link monitor or health check is down. Valid values:
enable
,disable
. - priority int
- Administrative priority. On FortiOS versions 6.2.0-6.4.1: 0 - 4294967295. On FortiOS versions >= 6.4.2: 1 - 65535.
- sdwan str
- Enable/disable egress through the SD-WAN. Valid values:
enable
,disable
. - sdwan_
zones Sequence[Static6SdwanZone Args] - Choose SD-WAN Zone. The structure of
sdwan_zone
block is documented below. - seq_
num int - Sequence number.
- status str
- Enable/disable this static route. Valid values:
enable
,disable
. - vdomparam 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_ strlink - 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.
- devindex Number
- Device index (0 - 4294967295).
- distance Number
- Administrative distance (1 - 255).
- dst String
- Destination IPv6 prefix.
- dstaddr String
- Name of firewall address or address group.
- dynamic
Gateway String - Enable use of dynamic gateway retrieved from Router Advertisement (RA). Valid values:
enable
,disable
. - dynamic
Sort StringSubtable - 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
- IPv6 address of the gateway.
- get
All StringTables - 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.
- link
Monitor StringExempt - Enable/disable withdrawal of this static route when link monitor or health check is down. Valid values:
enable
,disable
. - priority Number
- Administrative priority. On FortiOS versions 6.2.0-6.4.1: 0 - 4294967295. On FortiOS versions >= 6.4.2: 1 - 65535.
- sdwan String
- Enable/disable egress through the SD-WAN. Valid values:
enable
,disable
. - sdwan
Zones List<Property Map> - Choose SD-WAN Zone. The structure of
sdwan_zone
block is documented below. - seq
Num Number - Sequence number.
- status String
- Enable/disable this static route. Valid values:
enable
,disable
. - vdomparam 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.
- virtual
Wan StringLink - 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
Static6SdwanZone, Static6SdwanZoneArgs
- 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 Static6 can be imported using any of these accepted formats:
$ pulumi import fortios:router/static6:Static6 labelname {{seq_num}}
If you do not want to import arguments of block:
$ export “FORTIOS_IMPORT_TABLE”=“false”
$ pulumi import fortios:router/static6:Static6 labelname {{seq_num}}
$ 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.