fortios.router.Policy6
Explore with Pulumi AI
Configure IPv6 routing policies.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumiverse/fortios";
const trname = new fortios.router.Policy6("trname", {
dst: "::/0",
endPort: 65535,
gateway: "::",
inputDevice: "port1",
outputDevice: "port3",
protocol: 33,
seqNum: 1,
src: "2001:db8:85a3::8a2e:370:7334/128",
startPort: 1,
status: "enable",
tos: "0x00",
tosMask: "0x00",
});
import pulumi
import pulumiverse_fortios as fortios
trname = fortios.router.Policy6("trname",
dst="::/0",
end_port=65535,
gateway="::",
input_device="port1",
output_device="port3",
protocol=33,
seq_num=1,
src="2001:db8:85a3::8a2e:370:7334/128",
start_port=1,
status="enable",
tos="0x00",
tos_mask="0x00")
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.NewPolicy6(ctx, "trname", &router.Policy6Args{
Dst: pulumi.String("::/0"),
EndPort: pulumi.Int(65535),
Gateway: pulumi.String("::"),
InputDevice: pulumi.String("port1"),
OutputDevice: pulumi.String("port3"),
Protocol: pulumi.Int(33),
SeqNum: pulumi.Int(1),
Src: pulumi.String("2001:db8:85a3::8a2e:370:7334/128"),
StartPort: pulumi.Int(1),
Status: pulumi.String("enable"),
Tos: pulumi.String("0x00"),
TosMask: pulumi.String("0x00"),
})
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.Policy6("trname", new()
{
Dst = "::/0",
EndPort = 65535,
Gateway = "::",
InputDevice = "port1",
OutputDevice = "port3",
Protocol = 33,
SeqNum = 1,
Src = "2001:db8:85a3::8a2e:370:7334/128",
StartPort = 1,
Status = "enable",
Tos = "0x00",
TosMask = "0x00",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.router.Policy6;
import com.pulumi.fortios.router.Policy6Args;
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 Policy6("trname", Policy6Args.builder()
.dst("::/0")
.endPort(65535)
.gateway("::")
.inputDevice("port1")
.outputDevice("port3")
.protocol(33)
.seqNum(1)
.src("2001:db8:85a3::8a2e:370:7334/128")
.startPort(1)
.status("enable")
.tos("0x00")
.tosMask("0x00")
.build());
}
}
resources:
trname:
type: fortios:router:Policy6
properties:
dst: ::/0
endPort: 65535
gateway: '::'
inputDevice: port1
outputDevice: port3
protocol: 33
seqNum: 1
src: 2001:db8:85a3::8a2e:370:7334/128
startPort: 1
status: enable
tos: 0x00
tosMask: 0x00
Create Policy6 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Policy6(name: string, args: Policy6Args, opts?: CustomResourceOptions);
@overload
def Policy6(resource_name: str,
args: Policy6Args,
opts: Optional[ResourceOptions] = None)
@overload
def Policy6(resource_name: str,
opts: Optional[ResourceOptions] = None,
input_device: Optional[str] = None,
internet_service_customs: Optional[Sequence[Policy6InternetServiceCustomArgs]] = None,
dynamic_sort_subtable: Optional[str] = None,
internet_service_ids: Optional[Sequence[Policy6InternetServiceIdArgs]] = None,
dstaddrs: Optional[Sequence[Policy6DstaddrArgs]] = None,
output_device: Optional[str] = None,
end_port: Optional[int] = None,
end_source_port: Optional[int] = None,
protocol: Optional[int] = None,
get_all_tables: Optional[str] = None,
comments: Optional[str] = None,
input_device_negate: Optional[str] = None,
action: Optional[str] = None,
dst_negate: Optional[str] = None,
dst: Optional[str] = None,
gateway: Optional[str] = None,
seq_num: Optional[int] = None,
src: Optional[str] = None,
src_negate: Optional[str] = None,
srcaddrs: Optional[Sequence[Policy6SrcaddrArgs]] = None,
start_port: Optional[int] = None,
start_source_port: Optional[int] = None,
status: Optional[str] = None,
tos: Optional[str] = None,
tos_mask: Optional[str] = None,
vdomparam: Optional[str] = None)
func NewPolicy6(ctx *Context, name string, args Policy6Args, opts ...ResourceOption) (*Policy6, error)
public Policy6(string name, Policy6Args args, CustomResourceOptions? opts = null)
public Policy6(String name, Policy6Args args)
public Policy6(String name, Policy6Args args, CustomResourceOptions options)
type: fortios:router:Policy6
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 Policy6Args
- 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 Policy6Args
- 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 Policy6Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args Policy6Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args Policy6Args
- 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 fortiosPolicy6Resource = new Fortios.Router.Policy6("fortiosPolicy6Resource", new()
{
InputDevice = "string",
InternetServiceCustoms = new[]
{
new Fortios.Router.Inputs.Policy6InternetServiceCustomArgs
{
Name = "string",
},
},
DynamicSortSubtable = "string",
InternetServiceIds = new[]
{
new Fortios.Router.Inputs.Policy6InternetServiceIdArgs
{
Id = 0,
},
},
Dstaddrs = new[]
{
new Fortios.Router.Inputs.Policy6DstaddrArgs
{
Name = "string",
},
},
OutputDevice = "string",
EndPort = 0,
EndSourcePort = 0,
Protocol = 0,
GetAllTables = "string",
Comments = "string",
InputDeviceNegate = "string",
Action = "string",
DstNegate = "string",
Dst = "string",
Gateway = "string",
SeqNum = 0,
Src = "string",
SrcNegate = "string",
Srcaddrs = new[]
{
new Fortios.Router.Inputs.Policy6SrcaddrArgs
{
Name = "string",
},
},
StartPort = 0,
StartSourcePort = 0,
Status = "string",
Tos = "string",
TosMask = "string",
Vdomparam = "string",
});
example, err := router.NewPolicy6(ctx, "fortiosPolicy6Resource", &router.Policy6Args{
InputDevice: pulumi.String("string"),
InternetServiceCustoms: router.Policy6InternetServiceCustomArray{
&router.Policy6InternetServiceCustomArgs{
Name: pulumi.String("string"),
},
},
DynamicSortSubtable: pulumi.String("string"),
InternetServiceIds: router.Policy6InternetServiceIdArray{
&router.Policy6InternetServiceIdArgs{
Id: pulumi.Int(0),
},
},
Dstaddrs: router.Policy6DstaddrArray{
&router.Policy6DstaddrArgs{
Name: pulumi.String("string"),
},
},
OutputDevice: pulumi.String("string"),
EndPort: pulumi.Int(0),
EndSourcePort: pulumi.Int(0),
Protocol: pulumi.Int(0),
GetAllTables: pulumi.String("string"),
Comments: pulumi.String("string"),
InputDeviceNegate: pulumi.String("string"),
Action: pulumi.String("string"),
DstNegate: pulumi.String("string"),
Dst: pulumi.String("string"),
Gateway: pulumi.String("string"),
SeqNum: pulumi.Int(0),
Src: pulumi.String("string"),
SrcNegate: pulumi.String("string"),
Srcaddrs: router.Policy6SrcaddrArray{
&router.Policy6SrcaddrArgs{
Name: pulumi.String("string"),
},
},
StartPort: pulumi.Int(0),
StartSourcePort: pulumi.Int(0),
Status: pulumi.String("string"),
Tos: pulumi.String("string"),
TosMask: pulumi.String("string"),
Vdomparam: pulumi.String("string"),
})
var fortiosPolicy6Resource = new Policy6("fortiosPolicy6Resource", Policy6Args.builder()
.inputDevice("string")
.internetServiceCustoms(Policy6InternetServiceCustomArgs.builder()
.name("string")
.build())
.dynamicSortSubtable("string")
.internetServiceIds(Policy6InternetServiceIdArgs.builder()
.id(0)
.build())
.dstaddrs(Policy6DstaddrArgs.builder()
.name("string")
.build())
.outputDevice("string")
.endPort(0)
.endSourcePort(0)
.protocol(0)
.getAllTables("string")
.comments("string")
.inputDeviceNegate("string")
.action("string")
.dstNegate("string")
.dst("string")
.gateway("string")
.seqNum(0)
.src("string")
.srcNegate("string")
.srcaddrs(Policy6SrcaddrArgs.builder()
.name("string")
.build())
.startPort(0)
.startSourcePort(0)
.status("string")
.tos("string")
.tosMask("string")
.vdomparam("string")
.build());
fortios_policy6_resource = fortios.router.Policy6("fortiosPolicy6Resource",
input_device="string",
internet_service_customs=[fortios.router.Policy6InternetServiceCustomArgs(
name="string",
)],
dynamic_sort_subtable="string",
internet_service_ids=[fortios.router.Policy6InternetServiceIdArgs(
id=0,
)],
dstaddrs=[fortios.router.Policy6DstaddrArgs(
name="string",
)],
output_device="string",
end_port=0,
end_source_port=0,
protocol=0,
get_all_tables="string",
comments="string",
input_device_negate="string",
action="string",
dst_negate="string",
dst="string",
gateway="string",
seq_num=0,
src="string",
src_negate="string",
srcaddrs=[fortios.router.Policy6SrcaddrArgs(
name="string",
)],
start_port=0,
start_source_port=0,
status="string",
tos="string",
tos_mask="string",
vdomparam="string")
const fortiosPolicy6Resource = new fortios.router.Policy6("fortiosPolicy6Resource", {
inputDevice: "string",
internetServiceCustoms: [{
name: "string",
}],
dynamicSortSubtable: "string",
internetServiceIds: [{
id: 0,
}],
dstaddrs: [{
name: "string",
}],
outputDevice: "string",
endPort: 0,
endSourcePort: 0,
protocol: 0,
getAllTables: "string",
comments: "string",
inputDeviceNegate: "string",
action: "string",
dstNegate: "string",
dst: "string",
gateway: "string",
seqNum: 0,
src: "string",
srcNegate: "string",
srcaddrs: [{
name: "string",
}],
startPort: 0,
startSourcePort: 0,
status: "string",
tos: "string",
tosMask: "string",
vdomparam: "string",
});
type: fortios:router:Policy6
properties:
action: string
comments: string
dst: string
dstNegate: string
dstaddrs:
- name: string
dynamicSortSubtable: string
endPort: 0
endSourcePort: 0
gateway: string
getAllTables: string
inputDevice: string
inputDeviceNegate: string
internetServiceCustoms:
- name: string
internetServiceIds:
- id: 0
outputDevice: string
protocol: 0
seqNum: 0
src: string
srcNegate: string
srcaddrs:
- name: string
startPort: 0
startSourcePort: 0
status: string
tos: string
tosMask: string
vdomparam: string
Policy6 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 Policy6 resource accepts the following input properties:
- Input
Device string - Incoming interface name.
- Action string
- Action of the policy route. Valid values:
deny
,permit
. - Comments string
- Optional comments.
- Dst string
- Destination IPv6 prefix.
- Dst
Negate string - Enable/disable negating destination address match. Valid values:
enable
,disable
. - Dstaddrs
List<Pulumiverse.
Fortios. Router. Inputs. Policy6Dstaddr> - Destination address name. The structure of
dstaddr
block is documented below. - 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 ].
- End
Port int - End destination port number (1 - 65535).
- End
Source intPort - End source port number (1 - 65535).
- 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.
- Input
Device stringNegate - Enable/disable negation of input device match. Valid values:
enable
,disable
. - Internet
Service List<Pulumiverse.Customs Fortios. Router. Inputs. Policy6Internet Service Custom> - Custom Destination Internet Service name. The structure of
internet_service_custom
block is documented below. - Internet
Service List<Pulumiverse.Ids Fortios. Router. Inputs. Policy6Internet Service Id> - Destination Internet Service ID. The structure of
internet_service_id
block is documented below. - Output
Device string - Outgoing interface name.
- Protocol int
- Protocol number (0 - 255).
- Seq
Num int - Sequence number.
- Src string
- Source IPv6 prefix.
- Src
Negate string - Enable/disable negating source address match. Valid values:
enable
,disable
. - Srcaddrs
List<Pulumiverse.
Fortios. Router. Inputs. Policy6Srcaddr> - Source address name. The structure of
srcaddr
block is documented below. - Start
Port int - Start destination port number (1 - 65535).
- Start
Source intPort - Start source port number (1 - 65535).
- Status string
- Enable/disable this policy route. Valid values:
enable
,disable
. - Tos string
- Type of service bit pattern.
- Tos
Mask string - Type of service evaluated bits.
- 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.
- Input
Device string - Incoming interface name.
- Action string
- Action of the policy route. Valid values:
deny
,permit
. - Comments string
- Optional comments.
- Dst string
- Destination IPv6 prefix.
- Dst
Negate string - Enable/disable negating destination address match. Valid values:
enable
,disable
. - Dstaddrs
[]Policy6Dstaddr
Args - Destination address name. The structure of
dstaddr
block is documented below. - 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 ].
- End
Port int - End destination port number (1 - 65535).
- End
Source intPort - End source port number (1 - 65535).
- 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.
- Input
Device stringNegate - Enable/disable negation of input device match. Valid values:
enable
,disable
. - Internet
Service []Policy6InternetCustoms Service Custom Args - Custom Destination Internet Service name. The structure of
internet_service_custom
block is documented below. - Internet
Service []Policy6InternetIds Service Id Args - Destination Internet Service ID. The structure of
internet_service_id
block is documented below. - Output
Device string - Outgoing interface name.
- Protocol int
- Protocol number (0 - 255).
- Seq
Num int - Sequence number.
- Src string
- Source IPv6 prefix.
- Src
Negate string - Enable/disable negating source address match. Valid values:
enable
,disable
. - Srcaddrs
[]Policy6Srcaddr
Args - Source address name. The structure of
srcaddr
block is documented below. - Start
Port int - Start destination port number (1 - 65535).
- Start
Source intPort - Start source port number (1 - 65535).
- Status string
- Enable/disable this policy route. Valid values:
enable
,disable
. - Tos string
- Type of service bit pattern.
- Tos
Mask string - Type of service evaluated bits.
- 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.
- input
Device String - Incoming interface name.
- action String
- Action of the policy route. Valid values:
deny
,permit
. - comments String
- Optional comments.
- dst String
- Destination IPv6 prefix.
- dst
Negate String - Enable/disable negating destination address match. Valid values:
enable
,disable
. - dstaddrs List<Policy6Dstaddr>
- Destination address name. The structure of
dstaddr
block is documented below. - 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 ].
- end
Port Integer - End destination port number (1 - 65535).
- end
Source IntegerPort - End source port number (1 - 65535).
- 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.
- input
Device StringNegate - Enable/disable negation of input device match. Valid values:
enable
,disable
. - internet
Service List<Policy6InternetCustoms Service Custom> - Custom Destination Internet Service name. The structure of
internet_service_custom
block is documented below. - internet
Service List<Policy6InternetIds Service Id> - Destination Internet Service ID. The structure of
internet_service_id
block is documented below. - output
Device String - Outgoing interface name.
- protocol Integer
- Protocol number (0 - 255).
- seq
Num Integer - Sequence number.
- src String
- Source IPv6 prefix.
- src
Negate String - Enable/disable negating source address match. Valid values:
enable
,disable
. - srcaddrs List<Policy6Srcaddr>
- Source address name. The structure of
srcaddr
block is documented below. - start
Port Integer - Start destination port number (1 - 65535).
- start
Source IntegerPort - Start source port number (1 - 65535).
- status String
- Enable/disable this policy route. Valid values:
enable
,disable
. - tos String
- Type of service bit pattern.
- tos
Mask String - Type of service evaluated bits.
- 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.
- input
Device string - Incoming interface name.
- action string
- Action of the policy route. Valid values:
deny
,permit
. - comments string
- Optional comments.
- dst string
- Destination IPv6 prefix.
- dst
Negate string - Enable/disable negating destination address match. Valid values:
enable
,disable
. - dstaddrs Policy6Dstaddr[]
- Destination address name. The structure of
dstaddr
block is documented below. - 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 ].
- end
Port number - End destination port number (1 - 65535).
- end
Source numberPort - End source port number (1 - 65535).
- 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.
- input
Device stringNegate - Enable/disable negation of input device match. Valid values:
enable
,disable
. - internet
Service Policy6InternetCustoms Service Custom[] - Custom Destination Internet Service name. The structure of
internet_service_custom
block is documented below. - internet
Service Policy6InternetIds Service Id[] - Destination Internet Service ID. The structure of
internet_service_id
block is documented below. - output
Device string - Outgoing interface name.
- protocol number
- Protocol number (0 - 255).
- seq
Num number - Sequence number.
- src string
- Source IPv6 prefix.
- src
Negate string - Enable/disable negating source address match. Valid values:
enable
,disable
. - srcaddrs Policy6Srcaddr[]
- Source address name. The structure of
srcaddr
block is documented below. - start
Port number - Start destination port number (1 - 65535).
- start
Source numberPort - Start source port number (1 - 65535).
- status string
- Enable/disable this policy route. Valid values:
enable
,disable
. - tos string
- Type of service bit pattern.
- tos
Mask string - Type of service evaluated bits.
- 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.
- input_
device str - Incoming interface name.
- action str
- Action of the policy route. Valid values:
deny
,permit
. - comments str
- Optional comments.
- dst str
- Destination IPv6 prefix.
- dst_
negate str - Enable/disable negating destination address match. Valid values:
enable
,disable
. - dstaddrs
Sequence[Policy6Dstaddr
Args] - Destination address name. The structure of
dstaddr
block is documented below. - 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 ].
- end_
port int - End destination port number (1 - 65535).
- end_
source_ intport - End source port number (1 - 65535).
- 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.
- input_
device_ strnegate - Enable/disable negation of input device match. Valid values:
enable
,disable
. - internet_
service_ Sequence[Policy6Internetcustoms Service Custom Args] - Custom Destination Internet Service name. The structure of
internet_service_custom
block is documented below. - internet_
service_ Sequence[Policy6Internetids Service Id Args] - Destination Internet Service ID. The structure of
internet_service_id
block is documented below. - output_
device str - Outgoing interface name.
- protocol int
- Protocol number (0 - 255).
- seq_
num int - Sequence number.
- src str
- Source IPv6 prefix.
- src_
negate str - Enable/disable negating source address match. Valid values:
enable
,disable
. - srcaddrs
Sequence[Policy6Srcaddr
Args] - Source address name. The structure of
srcaddr
block is documented below. - start_
port int - Start destination port number (1 - 65535).
- start_
source_ intport - Start source port number (1 - 65535).
- status str
- Enable/disable this policy route. Valid values:
enable
,disable
. - tos str
- Type of service bit pattern.
- tos_
mask str - Type of service evaluated bits.
- 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.
- input
Device String - Incoming interface name.
- action String
- Action of the policy route. Valid values:
deny
,permit
. - comments String
- Optional comments.
- dst String
- Destination IPv6 prefix.
- dst
Negate String - Enable/disable negating destination address match. Valid values:
enable
,disable
. - dstaddrs List<Property Map>
- Destination address name. The structure of
dstaddr
block is documented below. - 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 ].
- end
Port Number - End destination port number (1 - 65535).
- end
Source NumberPort - End source port number (1 - 65535).
- 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.
- input
Device StringNegate - Enable/disable negation of input device match. Valid values:
enable
,disable
. - internet
Service List<Property Map>Customs - Custom Destination Internet Service name. The structure of
internet_service_custom
block is documented below. - internet
Service List<Property Map>Ids - Destination Internet Service ID. The structure of
internet_service_id
block is documented below. - output
Device String - Outgoing interface name.
- protocol Number
- Protocol number (0 - 255).
- seq
Num Number - Sequence number.
- src String
- Source IPv6 prefix.
- src
Negate String - Enable/disable negating source address match. Valid values:
enable
,disable
. - srcaddrs List<Property Map>
- Source address name. The structure of
srcaddr
block is documented below. - start
Port Number - Start destination port number (1 - 65535).
- start
Source NumberPort - Start source port number (1 - 65535).
- status String
- Enable/disable this policy route. Valid values:
enable
,disable
. - tos String
- Type of service bit pattern.
- tos
Mask String - Type of service evaluated bits.
- 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 Policy6 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 Policy6 Resource
Get an existing Policy6 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?: Policy6State, opts?: CustomResourceOptions): Policy6
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
comments: Optional[str] = None,
dst: Optional[str] = None,
dst_negate: Optional[str] = None,
dstaddrs: Optional[Sequence[Policy6DstaddrArgs]] = None,
dynamic_sort_subtable: Optional[str] = None,
end_port: Optional[int] = None,
end_source_port: Optional[int] = None,
gateway: Optional[str] = None,
get_all_tables: Optional[str] = None,
input_device: Optional[str] = None,
input_device_negate: Optional[str] = None,
internet_service_customs: Optional[Sequence[Policy6InternetServiceCustomArgs]] = None,
internet_service_ids: Optional[Sequence[Policy6InternetServiceIdArgs]] = None,
output_device: Optional[str] = None,
protocol: Optional[int] = None,
seq_num: Optional[int] = None,
src: Optional[str] = None,
src_negate: Optional[str] = None,
srcaddrs: Optional[Sequence[Policy6SrcaddrArgs]] = None,
start_port: Optional[int] = None,
start_source_port: Optional[int] = None,
status: Optional[str] = None,
tos: Optional[str] = None,
tos_mask: Optional[str] = None,
vdomparam: Optional[str] = None) -> Policy6
func GetPolicy6(ctx *Context, name string, id IDInput, state *Policy6State, opts ...ResourceOption) (*Policy6, error)
public static Policy6 Get(string name, Input<string> id, Policy6State? state, CustomResourceOptions? opts = null)
public static Policy6 get(String name, Output<String> id, Policy6State 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.
- Action string
- Action of the policy route. Valid values:
deny
,permit
. - Comments string
- Optional comments.
- Dst string
- Destination IPv6 prefix.
- Dst
Negate string - Enable/disable negating destination address match. Valid values:
enable
,disable
. - Dstaddrs
List<Pulumiverse.
Fortios. Router. Inputs. Policy6Dstaddr> - Destination address name. The structure of
dstaddr
block is documented below. - 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 ].
- End
Port int - End destination port number (1 - 65535).
- End
Source intPort - End source port number (1 - 65535).
- 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.
- Input
Device string - Incoming interface name.
- Input
Device stringNegate - Enable/disable negation of input device match. Valid values:
enable
,disable
. - Internet
Service List<Pulumiverse.Customs Fortios. Router. Inputs. Policy6Internet Service Custom> - Custom Destination Internet Service name. The structure of
internet_service_custom
block is documented below. - Internet
Service List<Pulumiverse.Ids Fortios. Router. Inputs. Policy6Internet Service Id> - Destination Internet Service ID. The structure of
internet_service_id
block is documented below. - Output
Device string - Outgoing interface name.
- Protocol int
- Protocol number (0 - 255).
- Seq
Num int - Sequence number.
- Src string
- Source IPv6 prefix.
- Src
Negate string - Enable/disable negating source address match. Valid values:
enable
,disable
. - Srcaddrs
List<Pulumiverse.
Fortios. Router. Inputs. Policy6Srcaddr> - Source address name. The structure of
srcaddr
block is documented below. - Start
Port int - Start destination port number (1 - 65535).
- Start
Source intPort - Start source port number (1 - 65535).
- Status string
- Enable/disable this policy route. Valid values:
enable
,disable
. - Tos string
- Type of service bit pattern.
- Tos
Mask string - Type of service evaluated bits.
- 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.
- Action string
- Action of the policy route. Valid values:
deny
,permit
. - Comments string
- Optional comments.
- Dst string
- Destination IPv6 prefix.
- Dst
Negate string - Enable/disable negating destination address match. Valid values:
enable
,disable
. - Dstaddrs
[]Policy6Dstaddr
Args - Destination address name. The structure of
dstaddr
block is documented below. - 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 ].
- End
Port int - End destination port number (1 - 65535).
- End
Source intPort - End source port number (1 - 65535).
- 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.
- Input
Device string - Incoming interface name.
- Input
Device stringNegate - Enable/disable negation of input device match. Valid values:
enable
,disable
. - Internet
Service []Policy6InternetCustoms Service Custom Args - Custom Destination Internet Service name. The structure of
internet_service_custom
block is documented below. - Internet
Service []Policy6InternetIds Service Id Args - Destination Internet Service ID. The structure of
internet_service_id
block is documented below. - Output
Device string - Outgoing interface name.
- Protocol int
- Protocol number (0 - 255).
- Seq
Num int - Sequence number.
- Src string
- Source IPv6 prefix.
- Src
Negate string - Enable/disable negating source address match. Valid values:
enable
,disable
. - Srcaddrs
[]Policy6Srcaddr
Args - Source address name. The structure of
srcaddr
block is documented below. - Start
Port int - Start destination port number (1 - 65535).
- Start
Source intPort - Start source port number (1 - 65535).
- Status string
- Enable/disable this policy route. Valid values:
enable
,disable
. - Tos string
- Type of service bit pattern.
- Tos
Mask string - Type of service evaluated bits.
- 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.
- action String
- Action of the policy route. Valid values:
deny
,permit
. - comments String
- Optional comments.
- dst String
- Destination IPv6 prefix.
- dst
Negate String - Enable/disable negating destination address match. Valid values:
enable
,disable
. - dstaddrs List<Policy6Dstaddr>
- Destination address name. The structure of
dstaddr
block is documented below. - 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 ].
- end
Port Integer - End destination port number (1 - 65535).
- end
Source IntegerPort - End source port number (1 - 65535).
- 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.
- input
Device String - Incoming interface name.
- input
Device StringNegate - Enable/disable negation of input device match. Valid values:
enable
,disable
. - internet
Service List<Policy6InternetCustoms Service Custom> - Custom Destination Internet Service name. The structure of
internet_service_custom
block is documented below. - internet
Service List<Policy6InternetIds Service Id> - Destination Internet Service ID. The structure of
internet_service_id
block is documented below. - output
Device String - Outgoing interface name.
- protocol Integer
- Protocol number (0 - 255).
- seq
Num Integer - Sequence number.
- src String
- Source IPv6 prefix.
- src
Negate String - Enable/disable negating source address match. Valid values:
enable
,disable
. - srcaddrs List<Policy6Srcaddr>
- Source address name. The structure of
srcaddr
block is documented below. - start
Port Integer - Start destination port number (1 - 65535).
- start
Source IntegerPort - Start source port number (1 - 65535).
- status String
- Enable/disable this policy route. Valid values:
enable
,disable
. - tos String
- Type of service bit pattern.
- tos
Mask String - Type of service evaluated bits.
- 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.
- action string
- Action of the policy route. Valid values:
deny
,permit
. - comments string
- Optional comments.
- dst string
- Destination IPv6 prefix.
- dst
Negate string - Enable/disable negating destination address match. Valid values:
enable
,disable
. - dstaddrs Policy6Dstaddr[]
- Destination address name. The structure of
dstaddr
block is documented below. - 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 ].
- end
Port number - End destination port number (1 - 65535).
- end
Source numberPort - End source port number (1 - 65535).
- 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.
- input
Device string - Incoming interface name.
- input
Device stringNegate - Enable/disable negation of input device match. Valid values:
enable
,disable
. - internet
Service Policy6InternetCustoms Service Custom[] - Custom Destination Internet Service name. The structure of
internet_service_custom
block is documented below. - internet
Service Policy6InternetIds Service Id[] - Destination Internet Service ID. The structure of
internet_service_id
block is documented below. - output
Device string - Outgoing interface name.
- protocol number
- Protocol number (0 - 255).
- seq
Num number - Sequence number.
- src string
- Source IPv6 prefix.
- src
Negate string - Enable/disable negating source address match. Valid values:
enable
,disable
. - srcaddrs Policy6Srcaddr[]
- Source address name. The structure of
srcaddr
block is documented below. - start
Port number - Start destination port number (1 - 65535).
- start
Source numberPort - Start source port number (1 - 65535).
- status string
- Enable/disable this policy route. Valid values:
enable
,disable
. - tos string
- Type of service bit pattern.
- tos
Mask string - Type of service evaluated bits.
- 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.
- action str
- Action of the policy route. Valid values:
deny
,permit
. - comments str
- Optional comments.
- dst str
- Destination IPv6 prefix.
- dst_
negate str - Enable/disable negating destination address match. Valid values:
enable
,disable
. - dstaddrs
Sequence[Policy6Dstaddr
Args] - Destination address name. The structure of
dstaddr
block is documented below. - 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 ].
- end_
port int - End destination port number (1 - 65535).
- end_
source_ intport - End source port number (1 - 65535).
- 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.
- input_
device str - Incoming interface name.
- input_
device_ strnegate - Enable/disable negation of input device match. Valid values:
enable
,disable
. - internet_
service_ Sequence[Policy6Internetcustoms Service Custom Args] - Custom Destination Internet Service name. The structure of
internet_service_custom
block is documented below. - internet_
service_ Sequence[Policy6Internetids Service Id Args] - Destination Internet Service ID. The structure of
internet_service_id
block is documented below. - output_
device str - Outgoing interface name.
- protocol int
- Protocol number (0 - 255).
- seq_
num int - Sequence number.
- src str
- Source IPv6 prefix.
- src_
negate str - Enable/disable negating source address match. Valid values:
enable
,disable
. - srcaddrs
Sequence[Policy6Srcaddr
Args] - Source address name. The structure of
srcaddr
block is documented below. - start_
port int - Start destination port number (1 - 65535).
- start_
source_ intport - Start source port number (1 - 65535).
- status str
- Enable/disable this policy route. Valid values:
enable
,disable
. - tos str
- Type of service bit pattern.
- tos_
mask str - Type of service evaluated bits.
- 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.
- action String
- Action of the policy route. Valid values:
deny
,permit
. - comments String
- Optional comments.
- dst String
- Destination IPv6 prefix.
- dst
Negate String - Enable/disable negating destination address match. Valid values:
enable
,disable
. - dstaddrs List<Property Map>
- Destination address name. The structure of
dstaddr
block is documented below. - 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 ].
- end
Port Number - End destination port number (1 - 65535).
- end
Source NumberPort - End source port number (1 - 65535).
- 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.
- input
Device String - Incoming interface name.
- input
Device StringNegate - Enable/disable negation of input device match. Valid values:
enable
,disable
. - internet
Service List<Property Map>Customs - Custom Destination Internet Service name. The structure of
internet_service_custom
block is documented below. - internet
Service List<Property Map>Ids - Destination Internet Service ID. The structure of
internet_service_id
block is documented below. - output
Device String - Outgoing interface name.
- protocol Number
- Protocol number (0 - 255).
- seq
Num Number - Sequence number.
- src String
- Source IPv6 prefix.
- src
Negate String - Enable/disable negating source address match. Valid values:
enable
,disable
. - srcaddrs List<Property Map>
- Source address name. The structure of
srcaddr
block is documented below. - start
Port Number - Start destination port number (1 - 65535).
- start
Source NumberPort - Start source port number (1 - 65535).
- status String
- Enable/disable this policy route. Valid values:
enable
,disable
. - tos String
- Type of service bit pattern.
- tos
Mask String - Type of service evaluated bits.
- 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
Policy6Dstaddr, Policy6DstaddrArgs
- Name string
- Address/group name.
- Name string
- Address/group name.
- name String
- Address/group name.
- name string
- Address/group name.
- name str
- Address/group name.
- name String
- Address/group name.
Policy6InternetServiceCustom, Policy6InternetServiceCustomArgs
- Name string
- Custom Destination Internet Service name.
- Name string
- Custom Destination Internet Service name.
- name String
- Custom Destination Internet Service name.
- name string
- Custom Destination Internet Service name.
- name str
- Custom Destination Internet Service name.
- name String
- Custom Destination Internet Service name.
Policy6InternetServiceId, Policy6InternetServiceIdArgs
- Id int
- Destination Internet Service ID.
- Id int
- Destination Internet Service ID.
- id Integer
- Destination Internet Service ID.
- id number
- Destination Internet Service ID.
- id int
- Destination Internet Service ID.
- id Number
- Destination Internet Service ID.
Policy6Srcaddr, Policy6SrcaddrArgs
- Name string
- Address/group name.
- Name string
- Address/group name.
- name String
- Address/group name.
- name string
- Address/group name.
- name str
- Address/group name.
- name String
- Address/group name.
Import
Router Policy6 can be imported using any of these accepted formats:
$ pulumi import fortios:router/policy6:Policy6 labelname {{seq_num}}
If you do not want to import arguments of block:
$ export “FORTIOS_IMPORT_TABLE”=“false”
$ pulumi import fortios:router/policy6:Policy6 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.