fortios.router.Routemap
Explore with Pulumi AI
Configure route maps.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumiverse/fortios";
const trname = new fortios.router.Routemap("trname", {rules: [{
action: "deny",
matchCommunityExact: "disable",
matchFlags: 0,
matchMetric: 0,
matchOrigin: "none",
matchRouteType: "No type specified",
matchTag: 0,
setAggregatorAs: 0,
setAggregatorIp: "0.0.0.0",
setAspathAction: "prepend",
setAtomicAggregate: "disable",
setCommunityAdditive: "disable",
setDampeningMaxSuppress: 0,
setDampeningReachabilityHalfLife: 0,
setDampeningReuse: 0,
setDampeningSuppress: 0,
setDampeningUnreachabilityHalfLife: 0,
setFlags: 128,
setIp6Nexthop: "::",
setIp6NexthopLocal: "::",
setIpNexthop: "0.0.0.0",
setLocalPreference: 0,
setMetric: 0,
setMetricType: "No type specified",
setOrigin: "none",
setOriginatorId: "0.0.0.0",
setRouteTag: 0,
setTag: 0,
setWeight: 21,
}]});
import pulumi
import pulumiverse_fortios as fortios
trname = fortios.router.Routemap("trname", rules=[fortios.router.RoutemapRuleArgs(
action="deny",
match_community_exact="disable",
match_flags=0,
match_metric=0,
match_origin="none",
match_route_type="No type specified",
match_tag=0,
set_aggregator_as=0,
set_aggregator_ip="0.0.0.0",
set_aspath_action="prepend",
set_atomic_aggregate="disable",
set_community_additive="disable",
set_dampening_max_suppress=0,
set_dampening_reachability_half_life=0,
set_dampening_reuse=0,
set_dampening_suppress=0,
set_dampening_unreachability_half_life=0,
set_flags=128,
set_ip6_nexthop="::",
set_ip6_nexthop_local="::",
set_ip_nexthop="0.0.0.0",
set_local_preference=0,
set_metric=0,
set_metric_type="No type specified",
set_origin="none",
set_originator_id="0.0.0.0",
set_route_tag=0,
set_tag=0,
set_weight=21,
)])
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.NewRoutemap(ctx, "trname", &router.RoutemapArgs{
Rules: router.RoutemapRuleArray{
&router.RoutemapRuleArgs{
Action: pulumi.String("deny"),
MatchCommunityExact: pulumi.String("disable"),
MatchFlags: pulumi.Int(0),
MatchMetric: pulumi.Int(0),
MatchOrigin: pulumi.String("none"),
MatchRouteType: pulumi.String("No type specified"),
MatchTag: pulumi.Int(0),
SetAggregatorAs: pulumi.Int(0),
SetAggregatorIp: pulumi.String("0.0.0.0"),
SetAspathAction: pulumi.String("prepend"),
SetAtomicAggregate: pulumi.String("disable"),
SetCommunityAdditive: pulumi.String("disable"),
SetDampeningMaxSuppress: pulumi.Int(0),
SetDampeningReachabilityHalfLife: pulumi.Int(0),
SetDampeningReuse: pulumi.Int(0),
SetDampeningSuppress: pulumi.Int(0),
SetDampeningUnreachabilityHalfLife: pulumi.Int(0),
SetFlags: pulumi.Int(128),
SetIp6Nexthop: pulumi.String("::"),
SetIp6NexthopLocal: pulumi.String("::"),
SetIpNexthop: pulumi.String("0.0.0.0"),
SetLocalPreference: pulumi.Int(0),
SetMetric: pulumi.Int(0),
SetMetricType: pulumi.String("No type specified"),
SetOrigin: pulumi.String("none"),
SetOriginatorId: pulumi.String("0.0.0.0"),
SetRouteTag: pulumi.Int(0),
SetTag: pulumi.Int(0),
SetWeight: pulumi.Int(21),
},
},
})
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.Routemap("trname", new()
{
Rules = new[]
{
new Fortios.Router.Inputs.RoutemapRuleArgs
{
Action = "deny",
MatchCommunityExact = "disable",
MatchFlags = 0,
MatchMetric = 0,
MatchOrigin = "none",
MatchRouteType = "No type specified",
MatchTag = 0,
SetAggregatorAs = 0,
SetAggregatorIp = "0.0.0.0",
SetAspathAction = "prepend",
SetAtomicAggregate = "disable",
SetCommunityAdditive = "disable",
SetDampeningMaxSuppress = 0,
SetDampeningReachabilityHalfLife = 0,
SetDampeningReuse = 0,
SetDampeningSuppress = 0,
SetDampeningUnreachabilityHalfLife = 0,
SetFlags = 128,
SetIp6Nexthop = "::",
SetIp6NexthopLocal = "::",
SetIpNexthop = "0.0.0.0",
SetLocalPreference = 0,
SetMetric = 0,
SetMetricType = "No type specified",
SetOrigin = "none",
SetOriginatorId = "0.0.0.0",
SetRouteTag = 0,
SetTag = 0,
SetWeight = 21,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.router.Routemap;
import com.pulumi.fortios.router.RoutemapArgs;
import com.pulumi.fortios.router.inputs.RoutemapRuleArgs;
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 Routemap("trname", RoutemapArgs.builder()
.rules(RoutemapRuleArgs.builder()
.action("deny")
.matchCommunityExact("disable")
.matchFlags(0)
.matchMetric(0)
.matchOrigin("none")
.matchRouteType("No type specified")
.matchTag(0)
.setAggregatorAs(0)
.setAggregatorIp("0.0.0.0")
.setAspathAction("prepend")
.setAtomicAggregate("disable")
.setCommunityAdditive("disable")
.setDampeningMaxSuppress(0)
.setDampeningReachabilityHalfLife(0)
.setDampeningReuse(0)
.setDampeningSuppress(0)
.setDampeningUnreachabilityHalfLife(0)
.setFlags(128)
.setIp6Nexthop("::")
.setIp6NexthopLocal("::")
.setIpNexthop("0.0.0.0")
.setLocalPreference(0)
.setMetric(0)
.setMetricType("No type specified")
.setOrigin("none")
.setOriginatorId("0.0.0.0")
.setRouteTag(0)
.setTag(0)
.setWeight(21)
.build())
.build());
}
}
resources:
trname:
type: fortios:router:Routemap
properties:
rules:
- action: deny
matchCommunityExact: disable
matchFlags: 0
matchMetric: 0
matchOrigin: none
matchRouteType: No type specified
matchTag: 0
setAggregatorAs: 0
setAggregatorIp: 0.0.0.0
setAspathAction: prepend
setAtomicAggregate: disable
setCommunityAdditive: disable
setDampeningMaxSuppress: 0
setDampeningReachabilityHalfLife: 0
setDampeningReuse: 0
setDampeningSuppress: 0
setDampeningUnreachabilityHalfLife: 0
setFlags: 128
setIp6Nexthop: '::'
setIp6NexthopLocal: '::'
setIpNexthop: 0.0.0.0
setLocalPreference: 0
setMetric: 0
setMetricType: No type specified
setOrigin: none
setOriginatorId: 0.0.0.0
setRouteTag: 0
setTag: 0
setWeight: 21
Create Routemap Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Routemap(name: string, args?: RoutemapArgs, opts?: CustomResourceOptions);
@overload
def Routemap(resource_name: str,
args: Optional[RoutemapArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Routemap(resource_name: str,
opts: Optional[ResourceOptions] = None,
comments: Optional[str] = None,
dynamic_sort_subtable: Optional[str] = None,
get_all_tables: Optional[str] = None,
name: Optional[str] = None,
rules: Optional[Sequence[RoutemapRuleArgs]] = None,
vdomparam: Optional[str] = None)
func NewRoutemap(ctx *Context, name string, args *RoutemapArgs, opts ...ResourceOption) (*Routemap, error)
public Routemap(string name, RoutemapArgs? args = null, CustomResourceOptions? opts = null)
public Routemap(String name, RoutemapArgs args)
public Routemap(String name, RoutemapArgs args, CustomResourceOptions options)
type: fortios:router:Routemap
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 RoutemapArgs
- 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 RoutemapArgs
- 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 RoutemapArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RoutemapArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RoutemapArgs
- 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 routemapResource = new Fortios.Router.Routemap("routemapResource", new()
{
Comments = "string",
DynamicSortSubtable = "string",
GetAllTables = "string",
Name = "string",
Rules = new[]
{
new Fortios.Router.Inputs.RoutemapRuleArgs
{
Action = "string",
Id = 0,
MatchAsPath = "string",
MatchCommunity = "string",
MatchCommunityExact = "string",
MatchExtcommunity = "string",
MatchExtcommunityExact = "string",
MatchFlags = 0,
MatchInterface = "string",
MatchIp6Address = "string",
MatchIp6Nexthop = "string",
MatchIpAddress = "string",
MatchIpNexthop = "string",
MatchMetric = 0,
MatchOrigin = "string",
MatchRouteType = "string",
MatchTag = 0,
MatchVrf = 0,
SetAggregatorAs = 0,
SetAggregatorIp = "string",
SetAspathAction = "string",
SetAspaths = new[]
{
new Fortios.Router.Inputs.RoutemapRuleSetAspathArgs
{
As = "string",
},
},
SetAtomicAggregate = "string",
SetCommunities = new[]
{
new Fortios.Router.Inputs.RoutemapRuleSetCommunityArgs
{
Community = "string",
},
},
SetCommunityAdditive = "string",
SetCommunityDelete = "string",
SetDampeningMaxSuppress = 0,
SetDampeningReachabilityHalfLife = 0,
SetDampeningReuse = 0,
SetDampeningSuppress = 0,
SetDampeningUnreachabilityHalfLife = 0,
SetExtcommunityRts = new[]
{
new Fortios.Router.Inputs.RoutemapRuleSetExtcommunityRtArgs
{
Community = "string",
},
},
SetExtcommunitySoos = new[]
{
new Fortios.Router.Inputs.RoutemapRuleSetExtcommunitySooArgs
{
Community = "string",
},
},
SetFlags = 0,
SetIp6Nexthop = "string",
SetIp6NexthopLocal = "string",
SetIpNexthop = "string",
SetIpPrefsrc = "string",
SetLocalPreference = 0,
SetMetric = 0,
SetMetricType = "string",
SetOrigin = "string",
SetOriginatorId = "string",
SetPriority = 0,
SetRouteTag = 0,
SetTag = 0,
SetVpnv4Nexthop = "string",
SetVpnv6Nexthop = "string",
SetVpnv6NexthopLocal = "string",
SetWeight = 0,
},
},
Vdomparam = "string",
});
example, err := router.NewRoutemap(ctx, "routemapResource", &router.RoutemapArgs{
Comments: pulumi.String("string"),
DynamicSortSubtable: pulumi.String("string"),
GetAllTables: pulumi.String("string"),
Name: pulumi.String("string"),
Rules: router.RoutemapRuleArray{
&router.RoutemapRuleArgs{
Action: pulumi.String("string"),
Id: pulumi.Int(0),
MatchAsPath: pulumi.String("string"),
MatchCommunity: pulumi.String("string"),
MatchCommunityExact: pulumi.String("string"),
MatchExtcommunity: pulumi.String("string"),
MatchExtcommunityExact: pulumi.String("string"),
MatchFlags: pulumi.Int(0),
MatchInterface: pulumi.String("string"),
MatchIp6Address: pulumi.String("string"),
MatchIp6Nexthop: pulumi.String("string"),
MatchIpAddress: pulumi.String("string"),
MatchIpNexthop: pulumi.String("string"),
MatchMetric: pulumi.Int(0),
MatchOrigin: pulumi.String("string"),
MatchRouteType: pulumi.String("string"),
MatchTag: pulumi.Int(0),
MatchVrf: pulumi.Int(0),
SetAggregatorAs: pulumi.Int(0),
SetAggregatorIp: pulumi.String("string"),
SetAspathAction: pulumi.String("string"),
SetAspaths: router.RoutemapRuleSetAspathArray{
&router.RoutemapRuleSetAspathArgs{
As: pulumi.String("string"),
},
},
SetAtomicAggregate: pulumi.String("string"),
SetCommunities: router.RoutemapRuleSetCommunityArray{
&router.RoutemapRuleSetCommunityArgs{
Community: pulumi.String("string"),
},
},
SetCommunityAdditive: pulumi.String("string"),
SetCommunityDelete: pulumi.String("string"),
SetDampeningMaxSuppress: pulumi.Int(0),
SetDampeningReachabilityHalfLife: pulumi.Int(0),
SetDampeningReuse: pulumi.Int(0),
SetDampeningSuppress: pulumi.Int(0),
SetDampeningUnreachabilityHalfLife: pulumi.Int(0),
SetExtcommunityRts: router.RoutemapRuleSetExtcommunityRtArray{
&router.RoutemapRuleSetExtcommunityRtArgs{
Community: pulumi.String("string"),
},
},
SetExtcommunitySoos: router.RoutemapRuleSetExtcommunitySooArray{
&router.RoutemapRuleSetExtcommunitySooArgs{
Community: pulumi.String("string"),
},
},
SetFlags: pulumi.Int(0),
SetIp6Nexthop: pulumi.String("string"),
SetIp6NexthopLocal: pulumi.String("string"),
SetIpNexthop: pulumi.String("string"),
SetIpPrefsrc: pulumi.String("string"),
SetLocalPreference: pulumi.Int(0),
SetMetric: pulumi.Int(0),
SetMetricType: pulumi.String("string"),
SetOrigin: pulumi.String("string"),
SetOriginatorId: pulumi.String("string"),
SetPriority: pulumi.Int(0),
SetRouteTag: pulumi.Int(0),
SetTag: pulumi.Int(0),
SetVpnv4Nexthop: pulumi.String("string"),
SetVpnv6Nexthop: pulumi.String("string"),
SetVpnv6NexthopLocal: pulumi.String("string"),
SetWeight: pulumi.Int(0),
},
},
Vdomparam: pulumi.String("string"),
})
var routemapResource = new Routemap("routemapResource", RoutemapArgs.builder()
.comments("string")
.dynamicSortSubtable("string")
.getAllTables("string")
.name("string")
.rules(RoutemapRuleArgs.builder()
.action("string")
.id(0)
.matchAsPath("string")
.matchCommunity("string")
.matchCommunityExact("string")
.matchExtcommunity("string")
.matchExtcommunityExact("string")
.matchFlags(0)
.matchInterface("string")
.matchIp6Address("string")
.matchIp6Nexthop("string")
.matchIpAddress("string")
.matchIpNexthop("string")
.matchMetric(0)
.matchOrigin("string")
.matchRouteType("string")
.matchTag(0)
.matchVrf(0)
.setAggregatorAs(0)
.setAggregatorIp("string")
.setAspathAction("string")
.setAspaths(RoutemapRuleSetAspathArgs.builder()
.as("string")
.build())
.setAtomicAggregate("string")
.setCommunities(RoutemapRuleSetCommunityArgs.builder()
.community("string")
.build())
.setCommunityAdditive("string")
.setCommunityDelete("string")
.setDampeningMaxSuppress(0)
.setDampeningReachabilityHalfLife(0)
.setDampeningReuse(0)
.setDampeningSuppress(0)
.setDampeningUnreachabilityHalfLife(0)
.setExtcommunityRts(RoutemapRuleSetExtcommunityRtArgs.builder()
.community("string")
.build())
.setExtcommunitySoos(RoutemapRuleSetExtcommunitySooArgs.builder()
.community("string")
.build())
.setFlags(0)
.setIp6Nexthop("string")
.setIp6NexthopLocal("string")
.setIpNexthop("string")
.setIpPrefsrc("string")
.setLocalPreference(0)
.setMetric(0)
.setMetricType("string")
.setOrigin("string")
.setOriginatorId("string")
.setPriority(0)
.setRouteTag(0)
.setTag(0)
.setVpnv4Nexthop("string")
.setVpnv6Nexthop("string")
.setVpnv6NexthopLocal("string")
.setWeight(0)
.build())
.vdomparam("string")
.build());
routemap_resource = fortios.router.Routemap("routemapResource",
comments="string",
dynamic_sort_subtable="string",
get_all_tables="string",
name="string",
rules=[fortios.router.RoutemapRuleArgs(
action="string",
id=0,
match_as_path="string",
match_community="string",
match_community_exact="string",
match_extcommunity="string",
match_extcommunity_exact="string",
match_flags=0,
match_interface="string",
match_ip6_address="string",
match_ip6_nexthop="string",
match_ip_address="string",
match_ip_nexthop="string",
match_metric=0,
match_origin="string",
match_route_type="string",
match_tag=0,
match_vrf=0,
set_aggregator_as=0,
set_aggregator_ip="string",
set_aspath_action="string",
set_aspaths=[fortios.router.RoutemapRuleSetAspathArgs(
as_="string",
)],
set_atomic_aggregate="string",
set_communities=[fortios.router.RoutemapRuleSetCommunityArgs(
community="string",
)],
set_community_additive="string",
set_community_delete="string",
set_dampening_max_suppress=0,
set_dampening_reachability_half_life=0,
set_dampening_reuse=0,
set_dampening_suppress=0,
set_dampening_unreachability_half_life=0,
set_extcommunity_rts=[fortios.router.RoutemapRuleSetExtcommunityRtArgs(
community="string",
)],
set_extcommunity_soos=[fortios.router.RoutemapRuleSetExtcommunitySooArgs(
community="string",
)],
set_flags=0,
set_ip6_nexthop="string",
set_ip6_nexthop_local="string",
set_ip_nexthop="string",
set_ip_prefsrc="string",
set_local_preference=0,
set_metric=0,
set_metric_type="string",
set_origin="string",
set_originator_id="string",
set_priority=0,
set_route_tag=0,
set_tag=0,
set_vpnv4_nexthop="string",
set_vpnv6_nexthop="string",
set_vpnv6_nexthop_local="string",
set_weight=0,
)],
vdomparam="string")
const routemapResource = new fortios.router.Routemap("routemapResource", {
comments: "string",
dynamicSortSubtable: "string",
getAllTables: "string",
name: "string",
rules: [{
action: "string",
id: 0,
matchAsPath: "string",
matchCommunity: "string",
matchCommunityExact: "string",
matchExtcommunity: "string",
matchExtcommunityExact: "string",
matchFlags: 0,
matchInterface: "string",
matchIp6Address: "string",
matchIp6Nexthop: "string",
matchIpAddress: "string",
matchIpNexthop: "string",
matchMetric: 0,
matchOrigin: "string",
matchRouteType: "string",
matchTag: 0,
matchVrf: 0,
setAggregatorAs: 0,
setAggregatorIp: "string",
setAspathAction: "string",
setAspaths: [{
as: "string",
}],
setAtomicAggregate: "string",
setCommunities: [{
community: "string",
}],
setCommunityAdditive: "string",
setCommunityDelete: "string",
setDampeningMaxSuppress: 0,
setDampeningReachabilityHalfLife: 0,
setDampeningReuse: 0,
setDampeningSuppress: 0,
setDampeningUnreachabilityHalfLife: 0,
setExtcommunityRts: [{
community: "string",
}],
setExtcommunitySoos: [{
community: "string",
}],
setFlags: 0,
setIp6Nexthop: "string",
setIp6NexthopLocal: "string",
setIpNexthop: "string",
setIpPrefsrc: "string",
setLocalPreference: 0,
setMetric: 0,
setMetricType: "string",
setOrigin: "string",
setOriginatorId: "string",
setPriority: 0,
setRouteTag: 0,
setTag: 0,
setVpnv4Nexthop: "string",
setVpnv6Nexthop: "string",
setVpnv6NexthopLocal: "string",
setWeight: 0,
}],
vdomparam: "string",
});
type: fortios:router:Routemap
properties:
comments: string
dynamicSortSubtable: string
getAllTables: string
name: string
rules:
- action: string
id: 0
matchAsPath: string
matchCommunity: string
matchCommunityExact: string
matchExtcommunity: string
matchExtcommunityExact: string
matchFlags: 0
matchInterface: string
matchIp6Address: string
matchIp6Nexthop: string
matchIpAddress: string
matchIpNexthop: string
matchMetric: 0
matchOrigin: string
matchRouteType: string
matchTag: 0
matchVrf: 0
setAggregatorAs: 0
setAggregatorIp: string
setAspathAction: string
setAspaths:
- as: string
setAtomicAggregate: string
setCommunities:
- community: string
setCommunityAdditive: string
setCommunityDelete: string
setDampeningMaxSuppress: 0
setDampeningReachabilityHalfLife: 0
setDampeningReuse: 0
setDampeningSuppress: 0
setDampeningUnreachabilityHalfLife: 0
setExtcommunityRts:
- community: string
setExtcommunitySoos:
- community: string
setFlags: 0
setIp6Nexthop: string
setIp6NexthopLocal: string
setIpNexthop: string
setIpPrefsrc: string
setLocalPreference: 0
setMetric: 0
setMetricType: string
setOrigin: string
setOriginatorId: string
setPriority: 0
setRouteTag: 0
setTag: 0
setVpnv4Nexthop: string
setVpnv6Nexthop: string
setVpnv6NexthopLocal: string
setWeight: 0
vdomparam: string
Routemap 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 Routemap resource accepts the following input properties:
- Comments string
- Optional comments.
- 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 ].
- 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.
- Name string
- Name.
- Rules
List<Pulumiverse.
Fortios. Router. Inputs. Routemap Rule> - Rule. The structure of
rule
block is documented below. - 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.
- Comments string
- Optional comments.
- 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 ].
- 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.
- Name string
- Name.
- Rules
[]Routemap
Rule Args - Rule. The structure of
rule
block is documented below. - 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.
- comments String
- Optional comments.
- 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 ].
- 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.
- name String
- Name.
- rules
List<Routemap
Rule> - Rule. The structure of
rule
block is documented below. - 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.
- comments string
- Optional comments.
- 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 ].
- 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.
- name string
- Name.
- rules
Routemap
Rule[] - Rule. The structure of
rule
block is documented below. - 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.
- comments str
- Optional comments.
- 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 ].
- 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.
- name str
- Name.
- rules
Sequence[Routemap
Rule Args] - Rule. The structure of
rule
block is documented below. - 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.
- comments String
- Optional comments.
- 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 ].
- 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.
- name String
- Name.
- rules List<Property Map>
- Rule. The structure of
rule
block is documented below. - 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the Routemap 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 Routemap Resource
Get an existing Routemap 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?: RoutemapState, opts?: CustomResourceOptions): Routemap
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
comments: Optional[str] = None,
dynamic_sort_subtable: Optional[str] = None,
get_all_tables: Optional[str] = None,
name: Optional[str] = None,
rules: Optional[Sequence[RoutemapRuleArgs]] = None,
vdomparam: Optional[str] = None) -> Routemap
func GetRoutemap(ctx *Context, name string, id IDInput, state *RoutemapState, opts ...ResourceOption) (*Routemap, error)
public static Routemap Get(string name, Input<string> id, RoutemapState? state, CustomResourceOptions? opts = null)
public static Routemap get(String name, Output<String> id, RoutemapState 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.
- Comments string
- Optional comments.
- 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 ].
- 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.
- Name string
- Name.
- Rules
List<Pulumiverse.
Fortios. Router. Inputs. Routemap Rule> - Rule. The structure of
rule
block is documented below. - 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.
- Comments string
- Optional comments.
- 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 ].
- 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.
- Name string
- Name.
- Rules
[]Routemap
Rule Args - Rule. The structure of
rule
block is documented below. - 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.
- comments String
- Optional comments.
- 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 ].
- 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.
- name String
- Name.
- rules
List<Routemap
Rule> - Rule. The structure of
rule
block is documented below. - 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.
- comments string
- Optional comments.
- 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 ].
- 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.
- name string
- Name.
- rules
Routemap
Rule[] - Rule. The structure of
rule
block is documented below. - 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.
- comments str
- Optional comments.
- 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 ].
- 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.
- name str
- Name.
- rules
Sequence[Routemap
Rule Args] - Rule. The structure of
rule
block is documented below. - 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.
- comments String
- Optional comments.
- 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 ].
- 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.
- name String
- Name.
- rules List<Property Map>
- Rule. The structure of
rule
block is documented below. - 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.
Supporting Types
RoutemapRule, RoutemapRuleArgs
- Action string
- Action. Valid values:
permit
,deny
. - Id int
- Rule ID.
- Match
As stringPath - Match BGP AS path list.
- Match
Community string - Match BGP community list.
- Match
Community stringExact - Enable/disable exact matching of communities. Valid values:
enable
,disable
. - Match
Extcommunity string - Match BGP extended community list.
- Match
Extcommunity stringExact - Enable/disable exact matching of extended communities. Valid values:
enable
,disable
. - Match
Flags int - BGP flag value to match (0 - 65535)
- Match
Interface string - Match interface configuration.
- Match
Ip6Address string - Match IPv6 address permitted by access-list6 or prefix-list6.
- Match
Ip6Nexthop string - Match next hop IPv6 address passed by access-list6 or prefix-list6.
- Match
Ip stringAddress - Match IP address permitted by access-list or prefix-list.
- Match
Ip stringNexthop - Match next hop IP address passed by access-list or prefix-list.
- Match
Metric int - Match metric for redistribute routes.
- Match
Origin string - Match BGP origin code. Valid values:
none
,egp
,igp
,incomplete
. - Match
Route stringType - Match route type.
- Match
Tag int - Match tag.
- Match
Vrf int - Match VRF ID.
- Set
Aggregator intAs - BGP aggregator AS.
- Set
Aggregator stringIp - BGP aggregator IP.
- Set
Aspath stringAction - Specify preferred action of set-aspath. Valid values:
prepend
,replace
. - Set
Aspaths List<Pulumiverse.Fortios. Router. Inputs. Routemap Rule Set Aspath> - Prepend BGP AS path attribute. The structure of
set_aspath
block is documented below. - Set
Atomic stringAggregate - Enable/disable BGP atomic aggregate attribute. Valid values:
enable
,disable
. - Set
Communities List<Pulumiverse.Fortios. Router. Inputs. Routemap Rule Set Community> - BGP community attribute. The structure of
set_community
block is documented below. - Set
Community stringAdditive - Enable/disable adding set-community to existing community. Valid values:
enable
,disable
. - Set
Community stringDelete - Delete communities matching community list.
- Set
Dampening intMax Suppress - Maximum duration to suppress a route (1 - 255 min, 0 = unset).
- Set
Dampening intReachability Half Life - Reachability half-life time for the penalty (1 - 45 min, 0 = unset).
- Set
Dampening intReuse - Value to start reusing a route (1 - 20000, 0 = unset).
- Set
Dampening intSuppress - Value to start suppressing a route (1 - 20000, 0 = unset).
- Set
Dampening intUnreachability Half Life - Unreachability Half-life time for the penalty (1 - 45 min, 0 = unset)
- Set
Extcommunity List<Pulumiverse.Rts Fortios. Router. Inputs. Routemap Rule Set Extcommunity Rt> - Route Target extended community. The structure of
set_extcommunity_rt
block is documented below. - Set
Extcommunity List<Pulumiverse.Soos Fortios. Router. Inputs. Routemap Rule Set Extcommunity Soo> - Site-of-Origin extended community. The structure of
set_extcommunity_soo
block is documented below. - Set
Flags int - BGP flags value (0 - 65535)
- Set
Ip6Nexthop string - IPv6 global address of next hop.
- Set
Ip6Nexthop stringLocal - IPv6 local address of next hop.
- Set
Ip stringNexthop - IP address of next hop.
- Set
Ip stringPrefsrc - IP address of preferred source.
- Set
Local intPreference - BGP local preference path attribute.
- Set
Metric int - Metric value.
- Set
Metric stringType - Metric type.
- Set
Origin string - BGP origin code. Valid values:
none
,egp
,igp
,incomplete
. - Set
Originator stringId - BGP originator ID attribute.
- Set
Priority int - Priority for routing table.
- Set
Route intTag - Route tag for routing table.
- Set
Tag int - Tag value.
- Set
Vpnv4Nexthop string - IP address of VPNv4 next-hop.
- Set
Vpnv6Nexthop string - IPv6 global address of VPNv6 next-hop.
- Set
Vpnv6Nexthop stringLocal - IPv6 link-local address of VPNv6 next-hop.
- Set
Weight int - BGP weight for routing table.
- Action string
- Action. Valid values:
permit
,deny
. - Id int
- Rule ID.
- Match
As stringPath - Match BGP AS path list.
- Match
Community string - Match BGP community list.
- Match
Community stringExact - Enable/disable exact matching of communities. Valid values:
enable
,disable
. - Match
Extcommunity string - Match BGP extended community list.
- Match
Extcommunity stringExact - Enable/disable exact matching of extended communities. Valid values:
enable
,disable
. - Match
Flags int - BGP flag value to match (0 - 65535)
- Match
Interface string - Match interface configuration.
- Match
Ip6Address string - Match IPv6 address permitted by access-list6 or prefix-list6.
- Match
Ip6Nexthop string - Match next hop IPv6 address passed by access-list6 or prefix-list6.
- Match
Ip stringAddress - Match IP address permitted by access-list or prefix-list.
- Match
Ip stringNexthop - Match next hop IP address passed by access-list or prefix-list.
- Match
Metric int - Match metric for redistribute routes.
- Match
Origin string - Match BGP origin code. Valid values:
none
,egp
,igp
,incomplete
. - Match
Route stringType - Match route type.
- Match
Tag int - Match tag.
- Match
Vrf int - Match VRF ID.
- Set
Aggregator intAs - BGP aggregator AS.
- Set
Aggregator stringIp - BGP aggregator IP.
- Set
Aspath stringAction - Specify preferred action of set-aspath. Valid values:
prepend
,replace
. - Set
Aspaths []RoutemapRule Set Aspath - Prepend BGP AS path attribute. The structure of
set_aspath
block is documented below. - Set
Atomic stringAggregate - Enable/disable BGP atomic aggregate attribute. Valid values:
enable
,disable
. - Set
Communities []RoutemapRule Set Community - BGP community attribute. The structure of
set_community
block is documented below. - Set
Community stringAdditive - Enable/disable adding set-community to existing community. Valid values:
enable
,disable
. - Set
Community stringDelete - Delete communities matching community list.
- Set
Dampening intMax Suppress - Maximum duration to suppress a route (1 - 255 min, 0 = unset).
- Set
Dampening intReachability Half Life - Reachability half-life time for the penalty (1 - 45 min, 0 = unset).
- Set
Dampening intReuse - Value to start reusing a route (1 - 20000, 0 = unset).
- Set
Dampening intSuppress - Value to start suppressing a route (1 - 20000, 0 = unset).
- Set
Dampening intUnreachability Half Life - Unreachability Half-life time for the penalty (1 - 45 min, 0 = unset)
- Set
Extcommunity []RoutemapRts Rule Set Extcommunity Rt - Route Target extended community. The structure of
set_extcommunity_rt
block is documented below. - Set
Extcommunity []RoutemapSoos Rule Set Extcommunity Soo - Site-of-Origin extended community. The structure of
set_extcommunity_soo
block is documented below. - Set
Flags int - BGP flags value (0 - 65535)
- Set
Ip6Nexthop string - IPv6 global address of next hop.
- Set
Ip6Nexthop stringLocal - IPv6 local address of next hop.
- Set
Ip stringNexthop - IP address of next hop.
- Set
Ip stringPrefsrc - IP address of preferred source.
- Set
Local intPreference - BGP local preference path attribute.
- Set
Metric int - Metric value.
- Set
Metric stringType - Metric type.
- Set
Origin string - BGP origin code. Valid values:
none
,egp
,igp
,incomplete
. - Set
Originator stringId - BGP originator ID attribute.
- Set
Priority int - Priority for routing table.
- Set
Route intTag - Route tag for routing table.
- Set
Tag int - Tag value.
- Set
Vpnv4Nexthop string - IP address of VPNv4 next-hop.
- Set
Vpnv6Nexthop string - IPv6 global address of VPNv6 next-hop.
- Set
Vpnv6Nexthop stringLocal - IPv6 link-local address of VPNv6 next-hop.
- Set
Weight int - BGP weight for routing table.
- action String
- Action. Valid values:
permit
,deny
. - id Integer
- Rule ID.
- match
As StringPath - Match BGP AS path list.
- match
Community String - Match BGP community list.
- match
Community StringExact - Enable/disable exact matching of communities. Valid values:
enable
,disable
. - match
Extcommunity String - Match BGP extended community list.
- match
Extcommunity StringExact - Enable/disable exact matching of extended communities. Valid values:
enable
,disable
. - match
Flags Integer - BGP flag value to match (0 - 65535)
- match
Interface String - Match interface configuration.
- match
Ip6Address String - Match IPv6 address permitted by access-list6 or prefix-list6.
- match
Ip6Nexthop String - Match next hop IPv6 address passed by access-list6 or prefix-list6.
- match
Ip StringAddress - Match IP address permitted by access-list or prefix-list.
- match
Ip StringNexthop - Match next hop IP address passed by access-list or prefix-list.
- match
Metric Integer - Match metric for redistribute routes.
- match
Origin String - Match BGP origin code. Valid values:
none
,egp
,igp
,incomplete
. - match
Route StringType - Match route type.
- match
Tag Integer - Match tag.
- match
Vrf Integer - Match VRF ID.
- set
Aggregator IntegerAs - BGP aggregator AS.
- set
Aggregator StringIp - BGP aggregator IP.
- set
Aspath StringAction - Specify preferred action of set-aspath. Valid values:
prepend
,replace
. - set
Aspaths List<RoutemapRule Set Aspath> - Prepend BGP AS path attribute. The structure of
set_aspath
block is documented below. - set
Atomic StringAggregate - Enable/disable BGP atomic aggregate attribute. Valid values:
enable
,disable
. - set
Communities List<RoutemapRule Set Community> - BGP community attribute. The structure of
set_community
block is documented below. - set
Community StringAdditive - Enable/disable adding set-community to existing community. Valid values:
enable
,disable
. - set
Community StringDelete - Delete communities matching community list.
- set
Dampening IntegerMax Suppress - Maximum duration to suppress a route (1 - 255 min, 0 = unset).
- set
Dampening IntegerReachability Half Life - Reachability half-life time for the penalty (1 - 45 min, 0 = unset).
- set
Dampening IntegerReuse - Value to start reusing a route (1 - 20000, 0 = unset).
- set
Dampening IntegerSuppress - Value to start suppressing a route (1 - 20000, 0 = unset).
- set
Dampening IntegerUnreachability Half Life - Unreachability Half-life time for the penalty (1 - 45 min, 0 = unset)
- set
Extcommunity List<RoutemapRts Rule Set Extcommunity Rt> - Route Target extended community. The structure of
set_extcommunity_rt
block is documented below. - set
Extcommunity List<RoutemapSoos Rule Set Extcommunity Soo> - Site-of-Origin extended community. The structure of
set_extcommunity_soo
block is documented below. - set
Flags Integer - BGP flags value (0 - 65535)
- set
Ip6Nexthop String - IPv6 global address of next hop.
- set
Ip6Nexthop StringLocal - IPv6 local address of next hop.
- set
Ip StringNexthop - IP address of next hop.
- set
Ip StringPrefsrc - IP address of preferred source.
- set
Local IntegerPreference - BGP local preference path attribute.
- set
Metric Integer - Metric value.
- set
Metric StringType - Metric type.
- set
Origin String - BGP origin code. Valid values:
none
,egp
,igp
,incomplete
. - set
Originator StringId - BGP originator ID attribute.
- set
Priority Integer - Priority for routing table.
- set
Route IntegerTag - Route tag for routing table.
- set
Tag Integer - Tag value.
- set
Vpnv4Nexthop String - IP address of VPNv4 next-hop.
- set
Vpnv6Nexthop String - IPv6 global address of VPNv6 next-hop.
- set
Vpnv6Nexthop StringLocal - IPv6 link-local address of VPNv6 next-hop.
- set
Weight Integer - BGP weight for routing table.
- action string
- Action. Valid values:
permit
,deny
. - id number
- Rule ID.
- match
As stringPath - Match BGP AS path list.
- match
Community string - Match BGP community list.
- match
Community stringExact - Enable/disable exact matching of communities. Valid values:
enable
,disable
. - match
Extcommunity string - Match BGP extended community list.
- match
Extcommunity stringExact - Enable/disable exact matching of extended communities. Valid values:
enable
,disable
. - match
Flags number - BGP flag value to match (0 - 65535)
- match
Interface string - Match interface configuration.
- match
Ip6Address string - Match IPv6 address permitted by access-list6 or prefix-list6.
- match
Ip6Nexthop string - Match next hop IPv6 address passed by access-list6 or prefix-list6.
- match
Ip stringAddress - Match IP address permitted by access-list or prefix-list.
- match
Ip stringNexthop - Match next hop IP address passed by access-list or prefix-list.
- match
Metric number - Match metric for redistribute routes.
- match
Origin string - Match BGP origin code. Valid values:
none
,egp
,igp
,incomplete
. - match
Route stringType - Match route type.
- match
Tag number - Match tag.
- match
Vrf number - Match VRF ID.
- set
Aggregator numberAs - BGP aggregator AS.
- set
Aggregator stringIp - BGP aggregator IP.
- set
Aspath stringAction - Specify preferred action of set-aspath. Valid values:
prepend
,replace
. - set
Aspaths RoutemapRule Set Aspath[] - Prepend BGP AS path attribute. The structure of
set_aspath
block is documented below. - set
Atomic stringAggregate - Enable/disable BGP atomic aggregate attribute. Valid values:
enable
,disable
. - set
Communities RoutemapRule Set Community[] - BGP community attribute. The structure of
set_community
block is documented below. - set
Community stringAdditive - Enable/disable adding set-community to existing community. Valid values:
enable
,disable
. - set
Community stringDelete - Delete communities matching community list.
- set
Dampening numberMax Suppress - Maximum duration to suppress a route (1 - 255 min, 0 = unset).
- set
Dampening numberReachability Half Life - Reachability half-life time for the penalty (1 - 45 min, 0 = unset).
- set
Dampening numberReuse - Value to start reusing a route (1 - 20000, 0 = unset).
- set
Dampening numberSuppress - Value to start suppressing a route (1 - 20000, 0 = unset).
- set
Dampening numberUnreachability Half Life - Unreachability Half-life time for the penalty (1 - 45 min, 0 = unset)
- set
Extcommunity RoutemapRts Rule Set Extcommunity Rt[] - Route Target extended community. The structure of
set_extcommunity_rt
block is documented below. - set
Extcommunity RoutemapSoos Rule Set Extcommunity Soo[] - Site-of-Origin extended community. The structure of
set_extcommunity_soo
block is documented below. - set
Flags number - BGP flags value (0 - 65535)
- set
Ip6Nexthop string - IPv6 global address of next hop.
- set
Ip6Nexthop stringLocal - IPv6 local address of next hop.
- set
Ip stringNexthop - IP address of next hop.
- set
Ip stringPrefsrc - IP address of preferred source.
- set
Local numberPreference - BGP local preference path attribute.
- set
Metric number - Metric value.
- set
Metric stringType - Metric type.
- set
Origin string - BGP origin code. Valid values:
none
,egp
,igp
,incomplete
. - set
Originator stringId - BGP originator ID attribute.
- set
Priority number - Priority for routing table.
- set
Route numberTag - Route tag for routing table.
- set
Tag number - Tag value.
- set
Vpnv4Nexthop string - IP address of VPNv4 next-hop.
- set
Vpnv6Nexthop string - IPv6 global address of VPNv6 next-hop.
- set
Vpnv6Nexthop stringLocal - IPv6 link-local address of VPNv6 next-hop.
- set
Weight number - BGP weight for routing table.
- action str
- Action. Valid values:
permit
,deny
. - id int
- Rule ID.
- match_
as_ strpath - Match BGP AS path list.
- match_
community str - Match BGP community list.
- match_
community_ strexact - Enable/disable exact matching of communities. Valid values:
enable
,disable
. - match_
extcommunity str - Match BGP extended community list.
- match_
extcommunity_ strexact - Enable/disable exact matching of extended communities. Valid values:
enable
,disable
. - match_
flags int - BGP flag value to match (0 - 65535)
- match_
interface str - Match interface configuration.
- match_
ip6_ straddress - Match IPv6 address permitted by access-list6 or prefix-list6.
- match_
ip6_ strnexthop - Match next hop IPv6 address passed by access-list6 or prefix-list6.
- match_
ip_ straddress - Match IP address permitted by access-list or prefix-list.
- match_
ip_ strnexthop - Match next hop IP address passed by access-list or prefix-list.
- match_
metric int - Match metric for redistribute routes.
- match_
origin str - Match BGP origin code. Valid values:
none
,egp
,igp
,incomplete
. - match_
route_ strtype - Match route type.
- match_
tag int - Match tag.
- match_
vrf int - Match VRF ID.
- set_
aggregator_ intas - BGP aggregator AS.
- set_
aggregator_ strip - BGP aggregator IP.
- set_
aspath_ straction - Specify preferred action of set-aspath. Valid values:
prepend
,replace
. - set_
aspaths Sequence[RoutemapRule Set Aspath] - Prepend BGP AS path attribute. The structure of
set_aspath
block is documented below. - set_
atomic_ straggregate - Enable/disable BGP atomic aggregate attribute. Valid values:
enable
,disable
. - set_
communities Sequence[RoutemapRule Set Community] - BGP community attribute. The structure of
set_community
block is documented below. - set_
community_ stradditive - Enable/disable adding set-community to existing community. Valid values:
enable
,disable
. - set_
community_ strdelete - Delete communities matching community list.
- set_
dampening_ intmax_ suppress - Maximum duration to suppress a route (1 - 255 min, 0 = unset).
- set_
dampening_ intreachability_ half_ life - Reachability half-life time for the penalty (1 - 45 min, 0 = unset).
- set_
dampening_ intreuse - Value to start reusing a route (1 - 20000, 0 = unset).
- set_
dampening_ intsuppress - Value to start suppressing a route (1 - 20000, 0 = unset).
- set_
dampening_ intunreachability_ half_ life - Unreachability Half-life time for the penalty (1 - 45 min, 0 = unset)
- set_
extcommunity_ Sequence[Routemaprts Rule Set Extcommunity Rt] - Route Target extended community. The structure of
set_extcommunity_rt
block is documented below. - set_
extcommunity_ Sequence[Routemapsoos Rule Set Extcommunity Soo] - Site-of-Origin extended community. The structure of
set_extcommunity_soo
block is documented below. - set_
flags int - BGP flags value (0 - 65535)
- set_
ip6_ strnexthop - IPv6 global address of next hop.
- set_
ip6_ strnexthop_ local - IPv6 local address of next hop.
- set_
ip_ strnexthop - IP address of next hop.
- set_
ip_ strprefsrc - IP address of preferred source.
- set_
local_ intpreference - BGP local preference path attribute.
- set_
metric int - Metric value.
- set_
metric_ strtype - Metric type.
- set_
origin str - BGP origin code. Valid values:
none
,egp
,igp
,incomplete
. - set_
originator_ strid - BGP originator ID attribute.
- set_
priority int - Priority for routing table.
- set_
route_ inttag - Route tag for routing table.
- set_
tag int - Tag value.
- set_
vpnv4_ strnexthop - IP address of VPNv4 next-hop.
- set_
vpnv6_ strnexthop - IPv6 global address of VPNv6 next-hop.
- set_
vpnv6_ strnexthop_ local - IPv6 link-local address of VPNv6 next-hop.
- set_
weight int - BGP weight for routing table.
- action String
- Action. Valid values:
permit
,deny
. - id Number
- Rule ID.
- match
As StringPath - Match BGP AS path list.
- match
Community String - Match BGP community list.
- match
Community StringExact - Enable/disable exact matching of communities. Valid values:
enable
,disable
. - match
Extcommunity String - Match BGP extended community list.
- match
Extcommunity StringExact - Enable/disable exact matching of extended communities. Valid values:
enable
,disable
. - match
Flags Number - BGP flag value to match (0 - 65535)
- match
Interface String - Match interface configuration.
- match
Ip6Address String - Match IPv6 address permitted by access-list6 or prefix-list6.
- match
Ip6Nexthop String - Match next hop IPv6 address passed by access-list6 or prefix-list6.
- match
Ip StringAddress - Match IP address permitted by access-list or prefix-list.
- match
Ip StringNexthop - Match next hop IP address passed by access-list or prefix-list.
- match
Metric Number - Match metric for redistribute routes.
- match
Origin String - Match BGP origin code. Valid values:
none
,egp
,igp
,incomplete
. - match
Route StringType - Match route type.
- match
Tag Number - Match tag.
- match
Vrf Number - Match VRF ID.
- set
Aggregator NumberAs - BGP aggregator AS.
- set
Aggregator StringIp - BGP aggregator IP.
- set
Aspath StringAction - Specify preferred action of set-aspath. Valid values:
prepend
,replace
. - set
Aspaths List<Property Map> - Prepend BGP AS path attribute. The structure of
set_aspath
block is documented below. - set
Atomic StringAggregate - Enable/disable BGP atomic aggregate attribute. Valid values:
enable
,disable
. - set
Communities List<Property Map> - BGP community attribute. The structure of
set_community
block is documented below. - set
Community StringAdditive - Enable/disable adding set-community to existing community. Valid values:
enable
,disable
. - set
Community StringDelete - Delete communities matching community list.
- set
Dampening NumberMax Suppress - Maximum duration to suppress a route (1 - 255 min, 0 = unset).
- set
Dampening NumberReachability Half Life - Reachability half-life time for the penalty (1 - 45 min, 0 = unset).
- set
Dampening NumberReuse - Value to start reusing a route (1 - 20000, 0 = unset).
- set
Dampening NumberSuppress - Value to start suppressing a route (1 - 20000, 0 = unset).
- set
Dampening NumberUnreachability Half Life - Unreachability Half-life time for the penalty (1 - 45 min, 0 = unset)
- set
Extcommunity List<Property Map>Rts - Route Target extended community. The structure of
set_extcommunity_rt
block is documented below. - set
Extcommunity List<Property Map>Soos - Site-of-Origin extended community. The structure of
set_extcommunity_soo
block is documented below. - set
Flags Number - BGP flags value (0 - 65535)
- set
Ip6Nexthop String - IPv6 global address of next hop.
- set
Ip6Nexthop StringLocal - IPv6 local address of next hop.
- set
Ip StringNexthop - IP address of next hop.
- set
Ip StringPrefsrc - IP address of preferred source.
- set
Local NumberPreference - BGP local preference path attribute.
- set
Metric Number - Metric value.
- set
Metric StringType - Metric type.
- set
Origin String - BGP origin code. Valid values:
none
,egp
,igp
,incomplete
. - set
Originator StringId - BGP originator ID attribute.
- set
Priority Number - Priority for routing table.
- set
Route NumberTag - Route tag for routing table.
- set
Tag Number - Tag value.
- set
Vpnv4Nexthop String - IP address of VPNv4 next-hop.
- set
Vpnv6Nexthop String - IPv6 global address of VPNv6 next-hop.
- set
Vpnv6Nexthop StringLocal - IPv6 link-local address of VPNv6 next-hop.
- set
Weight Number - BGP weight for routing table.
RoutemapRuleSetAspath, RoutemapRuleSetAspathArgs
- As string
- AS number. Use quotes for repeating numbers, For example, "1 1 2". On FortiOS versions 6.2.0-7.0.0: 0 - 42949672. On FortiOS versions 7.0.1-7.0.3: 0 - 4294967295.
- As string
- AS number. Use quotes for repeating numbers, For example, "1 1 2". On FortiOS versions 6.2.0-7.0.0: 0 - 42949672. On FortiOS versions 7.0.1-7.0.3: 0 - 4294967295.
- as String
- AS number. Use quotes for repeating numbers, For example, "1 1 2". On FortiOS versions 6.2.0-7.0.0: 0 - 42949672. On FortiOS versions 7.0.1-7.0.3: 0 - 4294967295.
- as string
- AS number. Use quotes for repeating numbers, For example, "1 1 2". On FortiOS versions 6.2.0-7.0.0: 0 - 42949672. On FortiOS versions 7.0.1-7.0.3: 0 - 4294967295.
- as_ str
- AS number. Use quotes for repeating numbers, For example, "1 1 2". On FortiOS versions 6.2.0-7.0.0: 0 - 42949672. On FortiOS versions 7.0.1-7.0.3: 0 - 4294967295.
- as String
- AS number. Use quotes for repeating numbers, For example, "1 1 2". On FortiOS versions 6.2.0-7.0.0: 0 - 42949672. On FortiOS versions 7.0.1-7.0.3: 0 - 4294967295.
RoutemapRuleSetCommunity, RoutemapRuleSetCommunityArgs
- Community string
- Attribute: AA|AA:NN|internet|local-AS|no-advertise|no-export.
- Community string
- Attribute: AA|AA:NN|internet|local-AS|no-advertise|no-export.
- community String
- Attribute: AA|AA:NN|internet|local-AS|no-advertise|no-export.
- community string
- Attribute: AA|AA:NN|internet|local-AS|no-advertise|no-export.
- community str
- Attribute: AA|AA:NN|internet|local-AS|no-advertise|no-export.
- community String
- Attribute: AA|AA:NN|internet|local-AS|no-advertise|no-export.
RoutemapRuleSetExtcommunityRt, RoutemapRuleSetExtcommunityRtArgs
- Community string
- AA:NN.
- Community string
- AA:NN.
- community String
- AA:NN.
- community string
- AA:NN.
- community str
- AA:NN.
- community String
- AA:NN.
RoutemapRuleSetExtcommunitySoo, RoutemapRuleSetExtcommunitySooArgs
- Community string
- Community (format = AA:NN).
- Community string
- Community (format = AA:NN).
- community String
- Community (format = AA:NN).
- community string
- Community (format = AA:NN).
- community str
- Community (format = AA:NN).
- community String
- Community (format = AA:NN).
Import
Router RouteMap can be imported using any of these accepted formats:
$ pulumi import fortios:router/routemap:Routemap labelname {{name}}
If you do not want to import arguments of block:
$ export “FORTIOS_IMPORT_TABLE”=“false”
$ pulumi import fortios:router/routemap:Routemap labelname {{name}}
$ 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.