fortimanager.PackagesFirewallPolicy46
Explore with Pulumi AI
Configure IPv4 to IPv6 policies.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fortimanager from "@pulumi/fortimanager";
const labelname = new fortimanager.PackagesFirewallPolicy46("labelname", {
action: "deny",
dstaddrs: ["111"],
dstintfs: ["any"],
fixedport: "disable",
ippool: "disable",
logtraffic: "disable",
logtrafficStart: "disable",
permitAnyHost: "disable",
pkg: "default",
policyid: 1,
schedule: "always",
services: ["ALL"],
srcaddrs: ["all"],
srcintfs: ["any"],
status: "enable",
tcpMssReceiver: 0,
tcpMssSender: 0,
});
import pulumi
import pulumi_fortimanager as fortimanager
labelname = fortimanager.PackagesFirewallPolicy46("labelname",
action="deny",
dstaddrs=["111"],
dstintfs=["any"],
fixedport="disable",
ippool="disable",
logtraffic="disable",
logtraffic_start="disable",
permit_any_host="disable",
pkg="default",
policyid=1,
schedule="always",
services=["ALL"],
srcaddrs=["all"],
srcintfs=["any"],
status="enable",
tcp_mss_receiver=0,
tcp_mss_sender=0)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/fortimanager/fortimanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := fortimanager.NewPackagesFirewallPolicy46(ctx, "labelname", &fortimanager.PackagesFirewallPolicy46Args{
Action: pulumi.String("deny"),
Dstaddrs: pulumi.StringArray{
pulumi.String("111"),
},
Dstintfs: pulumi.StringArray{
pulumi.String("any"),
},
Fixedport: pulumi.String("disable"),
Ippool: pulumi.String("disable"),
Logtraffic: pulumi.String("disable"),
LogtrafficStart: pulumi.String("disable"),
PermitAnyHost: pulumi.String("disable"),
Pkg: pulumi.String("default"),
Policyid: pulumi.Float64(1),
Schedule: pulumi.String("always"),
Services: pulumi.StringArray{
pulumi.String("ALL"),
},
Srcaddrs: pulumi.StringArray{
pulumi.String("all"),
},
Srcintfs: pulumi.StringArray{
pulumi.String("any"),
},
Status: pulumi.String("enable"),
TcpMssReceiver: pulumi.Float64(0),
TcpMssSender: pulumi.Float64(0),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortimanager = Pulumi.Fortimanager;
return await Deployment.RunAsync(() =>
{
var labelname = new Fortimanager.PackagesFirewallPolicy46("labelname", new()
{
Action = "deny",
Dstaddrs = new[]
{
"111",
},
Dstintfs = new[]
{
"any",
},
Fixedport = "disable",
Ippool = "disable",
Logtraffic = "disable",
LogtrafficStart = "disable",
PermitAnyHost = "disable",
Pkg = "default",
Policyid = 1,
Schedule = "always",
Services = new[]
{
"ALL",
},
Srcaddrs = new[]
{
"all",
},
Srcintfs = new[]
{
"any",
},
Status = "enable",
TcpMssReceiver = 0,
TcpMssSender = 0,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.PackagesFirewallPolicy46;
import com.pulumi.fortimanager.PackagesFirewallPolicy46Args;
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 labelname = new PackagesFirewallPolicy46("labelname", PackagesFirewallPolicy46Args.builder()
.action("deny")
.dstaddrs("111")
.dstintfs("any")
.fixedport("disable")
.ippool("disable")
.logtraffic("disable")
.logtrafficStart("disable")
.permitAnyHost("disable")
.pkg("default")
.policyid(1)
.schedule("always")
.services("ALL")
.srcaddrs("all")
.srcintfs("any")
.status("enable")
.tcpMssReceiver(0)
.tcpMssSender(0)
.build());
}
}
resources:
labelname:
type: fortimanager:PackagesFirewallPolicy46
properties:
action: deny
dstaddrs:
- '111'
dstintfs:
- any
fixedport: disable
ippool: disable
logtraffic: disable
logtrafficStart: disable
permitAnyHost: disable
pkg: default
policyid: 1
schedule: always
services:
- ALL
srcaddrs:
- all
srcintfs:
- any
status: enable
tcpMssReceiver: 0
tcpMssSender: 0
Create PackagesFirewallPolicy46 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PackagesFirewallPolicy46(name: string, args: PackagesFirewallPolicy46Args, opts?: CustomResourceOptions);
@overload
def PackagesFirewallPolicy46(resource_name: str,
args: PackagesFirewallPolicy46Args,
opts: Optional[ResourceOptions] = None)
@overload
def PackagesFirewallPolicy46(resource_name: str,
opts: Optional[ResourceOptions] = None,
pkg: Optional[str] = None,
ippool: Optional[str] = None,
dstintfs: Optional[Sequence[str]] = None,
pkg_folder_path: Optional[str] = None,
dstaddrs: Optional[Sequence[str]] = None,
policy_offload: Optional[str] = None,
fixedport: Optional[str] = None,
action: Optional[str] = None,
logtraffic: Optional[str] = None,
logtraffic_start: Optional[str] = None,
name: Optional[str] = None,
packages_firewall_policy46_id: Optional[str] = None,
policyid: Optional[float] = None,
permit_any_host: Optional[str] = None,
adom: Optional[str] = None,
comments: Optional[str] = None,
cgn_log_server_grp: Optional[str] = None,
per_ip_shaper: Optional[str] = None,
poolnames: Optional[Sequence[str]] = None,
schedule: Optional[str] = None,
scopetype: Optional[str] = None,
services: Optional[Sequence[str]] = None,
srcaddrs: Optional[Sequence[str]] = None,
srcintfs: Optional[Sequence[str]] = None,
status: Optional[str] = None,
tcp_mss_receiver: Optional[float] = None,
tcp_mss_sender: Optional[float] = None,
traffic_shaper: Optional[str] = None,
traffic_shaper_reverse: Optional[str] = None,
uuid: Optional[str] = None)
func NewPackagesFirewallPolicy46(ctx *Context, name string, args PackagesFirewallPolicy46Args, opts ...ResourceOption) (*PackagesFirewallPolicy46, error)
public PackagesFirewallPolicy46(string name, PackagesFirewallPolicy46Args args, CustomResourceOptions? opts = null)
public PackagesFirewallPolicy46(String name, PackagesFirewallPolicy46Args args)
public PackagesFirewallPolicy46(String name, PackagesFirewallPolicy46Args args, CustomResourceOptions options)
type: fortimanager:PackagesFirewallPolicy46
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 PackagesFirewallPolicy46Args
- 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 PackagesFirewallPolicy46Args
- 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 PackagesFirewallPolicy46Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PackagesFirewallPolicy46Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PackagesFirewallPolicy46Args
- 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 packagesFirewallPolicy46Resource = new Fortimanager.PackagesFirewallPolicy46("packagesFirewallPolicy46Resource", new()
{
Pkg = "string",
Ippool = "string",
Dstintfs = new[]
{
"string",
},
PkgFolderPath = "string",
Dstaddrs = new[]
{
"string",
},
PolicyOffload = "string",
Fixedport = "string",
Action = "string",
Logtraffic = "string",
LogtrafficStart = "string",
Name = "string",
PackagesFirewallPolicy46Id = "string",
Policyid = 0,
PermitAnyHost = "string",
Adom = "string",
Comments = "string",
CgnLogServerGrp = "string",
PerIpShaper = "string",
Poolnames = new[]
{
"string",
},
Schedule = "string",
Scopetype = "string",
Services = new[]
{
"string",
},
Srcaddrs = new[]
{
"string",
},
Srcintfs = new[]
{
"string",
},
Status = "string",
TcpMssReceiver = 0,
TcpMssSender = 0,
TrafficShaper = "string",
TrafficShaperReverse = "string",
Uuid = "string",
});
example, err := fortimanager.NewPackagesFirewallPolicy46(ctx, "packagesFirewallPolicy46Resource", &fortimanager.PackagesFirewallPolicy46Args{
Pkg: pulumi.String("string"),
Ippool: pulumi.String("string"),
Dstintfs: pulumi.StringArray{
pulumi.String("string"),
},
PkgFolderPath: pulumi.String("string"),
Dstaddrs: pulumi.StringArray{
pulumi.String("string"),
},
PolicyOffload: pulumi.String("string"),
Fixedport: pulumi.String("string"),
Action: pulumi.String("string"),
Logtraffic: pulumi.String("string"),
LogtrafficStart: pulumi.String("string"),
Name: pulumi.String("string"),
PackagesFirewallPolicy46Id: pulumi.String("string"),
Policyid: pulumi.Float64(0),
PermitAnyHost: pulumi.String("string"),
Adom: pulumi.String("string"),
Comments: pulumi.String("string"),
CgnLogServerGrp: pulumi.String("string"),
PerIpShaper: pulumi.String("string"),
Poolnames: pulumi.StringArray{
pulumi.String("string"),
},
Schedule: pulumi.String("string"),
Scopetype: pulumi.String("string"),
Services: pulumi.StringArray{
pulumi.String("string"),
},
Srcaddrs: pulumi.StringArray{
pulumi.String("string"),
},
Srcintfs: pulumi.StringArray{
pulumi.String("string"),
},
Status: pulumi.String("string"),
TcpMssReceiver: pulumi.Float64(0),
TcpMssSender: pulumi.Float64(0),
TrafficShaper: pulumi.String("string"),
TrafficShaperReverse: pulumi.String("string"),
Uuid: pulumi.String("string"),
})
var packagesFirewallPolicy46Resource = new PackagesFirewallPolicy46("packagesFirewallPolicy46Resource", PackagesFirewallPolicy46Args.builder()
.pkg("string")
.ippool("string")
.dstintfs("string")
.pkgFolderPath("string")
.dstaddrs("string")
.policyOffload("string")
.fixedport("string")
.action("string")
.logtraffic("string")
.logtrafficStart("string")
.name("string")
.packagesFirewallPolicy46Id("string")
.policyid(0)
.permitAnyHost("string")
.adom("string")
.comments("string")
.cgnLogServerGrp("string")
.perIpShaper("string")
.poolnames("string")
.schedule("string")
.scopetype("string")
.services("string")
.srcaddrs("string")
.srcintfs("string")
.status("string")
.tcpMssReceiver(0)
.tcpMssSender(0)
.trafficShaper("string")
.trafficShaperReverse("string")
.uuid("string")
.build());
packages_firewall_policy46_resource = fortimanager.PackagesFirewallPolicy46("packagesFirewallPolicy46Resource",
pkg="string",
ippool="string",
dstintfs=["string"],
pkg_folder_path="string",
dstaddrs=["string"],
policy_offload="string",
fixedport="string",
action="string",
logtraffic="string",
logtraffic_start="string",
name="string",
packages_firewall_policy46_id="string",
policyid=0,
permit_any_host="string",
adom="string",
comments="string",
cgn_log_server_grp="string",
per_ip_shaper="string",
poolnames=["string"],
schedule="string",
scopetype="string",
services=["string"],
srcaddrs=["string"],
srcintfs=["string"],
status="string",
tcp_mss_receiver=0,
tcp_mss_sender=0,
traffic_shaper="string",
traffic_shaper_reverse="string",
uuid="string")
const packagesFirewallPolicy46Resource = new fortimanager.PackagesFirewallPolicy46("packagesFirewallPolicy46Resource", {
pkg: "string",
ippool: "string",
dstintfs: ["string"],
pkgFolderPath: "string",
dstaddrs: ["string"],
policyOffload: "string",
fixedport: "string",
action: "string",
logtraffic: "string",
logtrafficStart: "string",
name: "string",
packagesFirewallPolicy46Id: "string",
policyid: 0,
permitAnyHost: "string",
adom: "string",
comments: "string",
cgnLogServerGrp: "string",
perIpShaper: "string",
poolnames: ["string"],
schedule: "string",
scopetype: "string",
services: ["string"],
srcaddrs: ["string"],
srcintfs: ["string"],
status: "string",
tcpMssReceiver: 0,
tcpMssSender: 0,
trafficShaper: "string",
trafficShaperReverse: "string",
uuid: "string",
});
type: fortimanager:PackagesFirewallPolicy46
properties:
action: string
adom: string
cgnLogServerGrp: string
comments: string
dstaddrs:
- string
dstintfs:
- string
fixedport: string
ippool: string
logtraffic: string
logtrafficStart: string
name: string
packagesFirewallPolicy46Id: string
perIpShaper: string
permitAnyHost: string
pkg: string
pkgFolderPath: string
policyOffload: string
policyid: 0
poolnames:
- string
schedule: string
scopetype: string
services:
- string
srcaddrs:
- string
srcintfs:
- string
status: string
tcpMssReceiver: 0
tcpMssSender: 0
trafficShaper: string
trafficShaperReverse: string
uuid: string
PackagesFirewallPolicy46 Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The PackagesFirewallPolicy46 resource accepts the following input properties:
- Pkg string
- Package.
- Action string
- Accept or deny traffic matching the policy. Valid values:
deny
,accept
. - Adom string
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - Cgn
Log stringServer Grp - NP log server group name
- Comments string
- Comment.
- Dstaddrs List<string>
- Destination address objects.
- Dstintfs List<string>
- Destination interface name.
- Fixedport string
- Enable/disable fixed port for this policy. Valid values:
disable
,enable
. - Ippool string
- Enable/disable use of IP Pools for source NAT. Valid values:
disable
,enable
. - Logtraffic string
- Enable/disable traffic logging for this policy. Valid values:
disable
,enable
. - Logtraffic
Start string - Record logs when a session starts and ends. Valid values:
disable
,enable
. - Name string
- Policy name.
- Packages
Firewall stringPolicy46Id - an identifier for the resource with format {{policyid}}.
- Per
Ip stringShaper - Per IP traffic shaper.
- Permit
Any stringHost - Enable/disable allowing any host. Valid values:
disable
,enable
. - Pkg
Folder stringPath - Pkg Folder Path.
- Policy
Offload string - Enable/disable hardware session setup for CGNAT. Valid values:
disable
,enable
. - Policyid double
- Policy ID (0 - 4294967294).
- Poolnames List<string>
- IP Pool names.
- Schedule string
- Schedule name.
- Scopetype string
- The scope of application of the resource. Valid values:
inherit
,adom
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
. - Services List<string>
- Service name.
- Srcaddrs List<string>
- Source address objects.
- Srcintfs List<string>
- Source interface name.
- Status string
- Enable/disable this policy. Valid values:
disable
,enable
. - Tcp
Mss doubleReceiver - TCP Maximum Segment Size value of receiver (0 - 65535, default = 0)
- Tcp
Mss doubleSender - TCP Maximum Segment Size value of sender (0 - 65535, default = 0).
- Traffic
Shaper string - Traffic shaper.
- Traffic
Shaper stringReverse - Reverse traffic shaper.
- Uuid string
- Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
- Pkg string
- Package.
- Action string
- Accept or deny traffic matching the policy. Valid values:
deny
,accept
. - Adom string
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - Cgn
Log stringServer Grp - NP log server group name
- Comments string
- Comment.
- Dstaddrs []string
- Destination address objects.
- Dstintfs []string
- Destination interface name.
- Fixedport string
- Enable/disable fixed port for this policy. Valid values:
disable
,enable
. - Ippool string
- Enable/disable use of IP Pools for source NAT. Valid values:
disable
,enable
. - Logtraffic string
- Enable/disable traffic logging for this policy. Valid values:
disable
,enable
. - Logtraffic
Start string - Record logs when a session starts and ends. Valid values:
disable
,enable
. - Name string
- Policy name.
- Packages
Firewall stringPolicy46Id - an identifier for the resource with format {{policyid}}.
- Per
Ip stringShaper - Per IP traffic shaper.
- Permit
Any stringHost - Enable/disable allowing any host. Valid values:
disable
,enable
. - Pkg
Folder stringPath - Pkg Folder Path.
- Policy
Offload string - Enable/disable hardware session setup for CGNAT. Valid values:
disable
,enable
. - Policyid float64
- Policy ID (0 - 4294967294).
- Poolnames []string
- IP Pool names.
- Schedule string
- Schedule name.
- Scopetype string
- The scope of application of the resource. Valid values:
inherit
,adom
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
. - Services []string
- Service name.
- Srcaddrs []string
- Source address objects.
- Srcintfs []string
- Source interface name.
- Status string
- Enable/disable this policy. Valid values:
disable
,enable
. - Tcp
Mss float64Receiver - TCP Maximum Segment Size value of receiver (0 - 65535, default = 0)
- Tcp
Mss float64Sender - TCP Maximum Segment Size value of sender (0 - 65535, default = 0).
- Traffic
Shaper string - Traffic shaper.
- Traffic
Shaper stringReverse - Reverse traffic shaper.
- Uuid string
- Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
- pkg String
- Package.
- action String
- Accept or deny traffic matching the policy. Valid values:
deny
,accept
. - adom String
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - cgn
Log StringServer Grp - NP log server group name
- comments String
- Comment.
- dstaddrs List<String>
- Destination address objects.
- dstintfs List<String>
- Destination interface name.
- fixedport String
- Enable/disable fixed port for this policy. Valid values:
disable
,enable
. - ippool String
- Enable/disable use of IP Pools for source NAT. Valid values:
disable
,enable
. - logtraffic String
- Enable/disable traffic logging for this policy. Valid values:
disable
,enable
. - logtraffic
Start String - Record logs when a session starts and ends. Valid values:
disable
,enable
. - name String
- Policy name.
- packages
Firewall StringPolicy46Id - an identifier for the resource with format {{policyid}}.
- per
Ip StringShaper - Per IP traffic shaper.
- permit
Any StringHost - Enable/disable allowing any host. Valid values:
disable
,enable
. - pkg
Folder StringPath - Pkg Folder Path.
- policy
Offload String - Enable/disable hardware session setup for CGNAT. Valid values:
disable
,enable
. - policyid Double
- Policy ID (0 - 4294967294).
- poolnames List<String>
- IP Pool names.
- schedule String
- Schedule name.
- scopetype String
- The scope of application of the resource. Valid values:
inherit
,adom
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
. - services List<String>
- Service name.
- srcaddrs List<String>
- Source address objects.
- srcintfs List<String>
- Source interface name.
- status String
- Enable/disable this policy. Valid values:
disable
,enable
. - tcp
Mss DoubleReceiver - TCP Maximum Segment Size value of receiver (0 - 65535, default = 0)
- tcp
Mss DoubleSender - TCP Maximum Segment Size value of sender (0 - 65535, default = 0).
- traffic
Shaper String - Traffic shaper.
- traffic
Shaper StringReverse - Reverse traffic shaper.
- uuid String
- Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
- pkg string
- Package.
- action string
- Accept or deny traffic matching the policy. Valid values:
deny
,accept
. - adom string
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - cgn
Log stringServer Grp - NP log server group name
- comments string
- Comment.
- dstaddrs string[]
- Destination address objects.
- dstintfs string[]
- Destination interface name.
- fixedport string
- Enable/disable fixed port for this policy. Valid values:
disable
,enable
. - ippool string
- Enable/disable use of IP Pools for source NAT. Valid values:
disable
,enable
. - logtraffic string
- Enable/disable traffic logging for this policy. Valid values:
disable
,enable
. - logtraffic
Start string - Record logs when a session starts and ends. Valid values:
disable
,enable
. - name string
- Policy name.
- packages
Firewall stringPolicy46Id - an identifier for the resource with format {{policyid}}.
- per
Ip stringShaper - Per IP traffic shaper.
- permit
Any stringHost - Enable/disable allowing any host. Valid values:
disable
,enable
. - pkg
Folder stringPath - Pkg Folder Path.
- policy
Offload string - Enable/disable hardware session setup for CGNAT. Valid values:
disable
,enable
. - policyid number
- Policy ID (0 - 4294967294).
- poolnames string[]
- IP Pool names.
- schedule string
- Schedule name.
- scopetype string
- The scope of application of the resource. Valid values:
inherit
,adom
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
. - services string[]
- Service name.
- srcaddrs string[]
- Source address objects.
- srcintfs string[]
- Source interface name.
- status string
- Enable/disable this policy. Valid values:
disable
,enable
. - tcp
Mss numberReceiver - TCP Maximum Segment Size value of receiver (0 - 65535, default = 0)
- tcp
Mss numberSender - TCP Maximum Segment Size value of sender (0 - 65535, default = 0).
- traffic
Shaper string - Traffic shaper.
- traffic
Shaper stringReverse - Reverse traffic shaper.
- uuid string
- Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
- pkg str
- Package.
- action str
- Accept or deny traffic matching the policy. Valid values:
deny
,accept
. - adom str
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - cgn_
log_ strserver_ grp - NP log server group name
- comments str
- Comment.
- dstaddrs Sequence[str]
- Destination address objects.
- dstintfs Sequence[str]
- Destination interface name.
- fixedport str
- Enable/disable fixed port for this policy. Valid values:
disable
,enable
. - ippool str
- Enable/disable use of IP Pools for source NAT. Valid values:
disable
,enable
. - logtraffic str
- Enable/disable traffic logging for this policy. Valid values:
disable
,enable
. - logtraffic_
start str - Record logs when a session starts and ends. Valid values:
disable
,enable
. - name str
- Policy name.
- packages_
firewall_ strpolicy46_ id - an identifier for the resource with format {{policyid}}.
- per_
ip_ strshaper - Per IP traffic shaper.
- permit_
any_ strhost - Enable/disable allowing any host. Valid values:
disable
,enable
. - pkg_
folder_ strpath - Pkg Folder Path.
- policy_
offload str - Enable/disable hardware session setup for CGNAT. Valid values:
disable
,enable
. - policyid float
- Policy ID (0 - 4294967294).
- poolnames Sequence[str]
- IP Pool names.
- schedule str
- Schedule name.
- scopetype str
- The scope of application of the resource. Valid values:
inherit
,adom
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
. - services Sequence[str]
- Service name.
- srcaddrs Sequence[str]
- Source address objects.
- srcintfs Sequence[str]
- Source interface name.
- status str
- Enable/disable this policy. Valid values:
disable
,enable
. - tcp_
mss_ floatreceiver - TCP Maximum Segment Size value of receiver (0 - 65535, default = 0)
- tcp_
mss_ floatsender - TCP Maximum Segment Size value of sender (0 - 65535, default = 0).
- traffic_
shaper str - Traffic shaper.
- traffic_
shaper_ strreverse - Reverse traffic shaper.
- uuid str
- Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
- pkg String
- Package.
- action String
- Accept or deny traffic matching the policy. Valid values:
deny
,accept
. - adom String
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - cgn
Log StringServer Grp - NP log server group name
- comments String
- Comment.
- dstaddrs List<String>
- Destination address objects.
- dstintfs List<String>
- Destination interface name.
- fixedport String
- Enable/disable fixed port for this policy. Valid values:
disable
,enable
. - ippool String
- Enable/disable use of IP Pools for source NAT. Valid values:
disable
,enable
. - logtraffic String
- Enable/disable traffic logging for this policy. Valid values:
disable
,enable
. - logtraffic
Start String - Record logs when a session starts and ends. Valid values:
disable
,enable
. - name String
- Policy name.
- packages
Firewall StringPolicy46Id - an identifier for the resource with format {{policyid}}.
- per
Ip StringShaper - Per IP traffic shaper.
- permit
Any StringHost - Enable/disable allowing any host. Valid values:
disable
,enable
. - pkg
Folder StringPath - Pkg Folder Path.
- policy
Offload String - Enable/disable hardware session setup for CGNAT. Valid values:
disable
,enable
. - policyid Number
- Policy ID (0 - 4294967294).
- poolnames List<String>
- IP Pool names.
- schedule String
- Schedule name.
- scopetype String
- The scope of application of the resource. Valid values:
inherit
,adom
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
. - services List<String>
- Service name.
- srcaddrs List<String>
- Source address objects.
- srcintfs List<String>
- Source interface name.
- status String
- Enable/disable this policy. Valid values:
disable
,enable
. - tcp
Mss NumberReceiver - TCP Maximum Segment Size value of receiver (0 - 65535, default = 0)
- tcp
Mss NumberSender - TCP Maximum Segment Size value of sender (0 - 65535, default = 0).
- traffic
Shaper String - Traffic shaper.
- traffic
Shaper StringReverse - Reverse traffic shaper.
- uuid String
- Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
Outputs
All input properties are implicitly available as output properties. Additionally, the PackagesFirewallPolicy46 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 PackagesFirewallPolicy46 Resource
Get an existing PackagesFirewallPolicy46 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?: PackagesFirewallPolicy46State, opts?: CustomResourceOptions): PackagesFirewallPolicy46
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
adom: Optional[str] = None,
cgn_log_server_grp: Optional[str] = None,
comments: Optional[str] = None,
dstaddrs: Optional[Sequence[str]] = None,
dstintfs: Optional[Sequence[str]] = None,
fixedport: Optional[str] = None,
ippool: Optional[str] = None,
logtraffic: Optional[str] = None,
logtraffic_start: Optional[str] = None,
name: Optional[str] = None,
packages_firewall_policy46_id: Optional[str] = None,
per_ip_shaper: Optional[str] = None,
permit_any_host: Optional[str] = None,
pkg: Optional[str] = None,
pkg_folder_path: Optional[str] = None,
policy_offload: Optional[str] = None,
policyid: Optional[float] = None,
poolnames: Optional[Sequence[str]] = None,
schedule: Optional[str] = None,
scopetype: Optional[str] = None,
services: Optional[Sequence[str]] = None,
srcaddrs: Optional[Sequence[str]] = None,
srcintfs: Optional[Sequence[str]] = None,
status: Optional[str] = None,
tcp_mss_receiver: Optional[float] = None,
tcp_mss_sender: Optional[float] = None,
traffic_shaper: Optional[str] = None,
traffic_shaper_reverse: Optional[str] = None,
uuid: Optional[str] = None) -> PackagesFirewallPolicy46
func GetPackagesFirewallPolicy46(ctx *Context, name string, id IDInput, state *PackagesFirewallPolicy46State, opts ...ResourceOption) (*PackagesFirewallPolicy46, error)
public static PackagesFirewallPolicy46 Get(string name, Input<string> id, PackagesFirewallPolicy46State? state, CustomResourceOptions? opts = null)
public static PackagesFirewallPolicy46 get(String name, Output<String> id, PackagesFirewallPolicy46State state, CustomResourceOptions options)
resources: _: type: fortimanager:PackagesFirewallPolicy46 get: id: ${id}
- 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
- Accept or deny traffic matching the policy. Valid values:
deny
,accept
. - Adom string
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - Cgn
Log stringServer Grp - NP log server group name
- Comments string
- Comment.
- Dstaddrs List<string>
- Destination address objects.
- Dstintfs List<string>
- Destination interface name.
- Fixedport string
- Enable/disable fixed port for this policy. Valid values:
disable
,enable
. - Ippool string
- Enable/disable use of IP Pools for source NAT. Valid values:
disable
,enable
. - Logtraffic string
- Enable/disable traffic logging for this policy. Valid values:
disable
,enable
. - Logtraffic
Start string - Record logs when a session starts and ends. Valid values:
disable
,enable
. - Name string
- Policy name.
- Packages
Firewall stringPolicy46Id - an identifier for the resource with format {{policyid}}.
- Per
Ip stringShaper - Per IP traffic shaper.
- Permit
Any stringHost - Enable/disable allowing any host. Valid values:
disable
,enable
. - Pkg string
- Package.
- Pkg
Folder stringPath - Pkg Folder Path.
- Policy
Offload string - Enable/disable hardware session setup for CGNAT. Valid values:
disable
,enable
. - Policyid double
- Policy ID (0 - 4294967294).
- Poolnames List<string>
- IP Pool names.
- Schedule string
- Schedule name.
- Scopetype string
- The scope of application of the resource. Valid values:
inherit
,adom
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
. - Services List<string>
- Service name.
- Srcaddrs List<string>
- Source address objects.
- Srcintfs List<string>
- Source interface name.
- Status string
- Enable/disable this policy. Valid values:
disable
,enable
. - Tcp
Mss doubleReceiver - TCP Maximum Segment Size value of receiver (0 - 65535, default = 0)
- Tcp
Mss doubleSender - TCP Maximum Segment Size value of sender (0 - 65535, default = 0).
- Traffic
Shaper string - Traffic shaper.
- Traffic
Shaper stringReverse - Reverse traffic shaper.
- Uuid string
- Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
- Action string
- Accept or deny traffic matching the policy. Valid values:
deny
,accept
. - Adom string
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - Cgn
Log stringServer Grp - NP log server group name
- Comments string
- Comment.
- Dstaddrs []string
- Destination address objects.
- Dstintfs []string
- Destination interface name.
- Fixedport string
- Enable/disable fixed port for this policy. Valid values:
disable
,enable
. - Ippool string
- Enable/disable use of IP Pools for source NAT. Valid values:
disable
,enable
. - Logtraffic string
- Enable/disable traffic logging for this policy. Valid values:
disable
,enable
. - Logtraffic
Start string - Record logs when a session starts and ends. Valid values:
disable
,enable
. - Name string
- Policy name.
- Packages
Firewall stringPolicy46Id - an identifier for the resource with format {{policyid}}.
- Per
Ip stringShaper - Per IP traffic shaper.
- Permit
Any stringHost - Enable/disable allowing any host. Valid values:
disable
,enable
. - Pkg string
- Package.
- Pkg
Folder stringPath - Pkg Folder Path.
- Policy
Offload string - Enable/disable hardware session setup for CGNAT. Valid values:
disable
,enable
. - Policyid float64
- Policy ID (0 - 4294967294).
- Poolnames []string
- IP Pool names.
- Schedule string
- Schedule name.
- Scopetype string
- The scope of application of the resource. Valid values:
inherit
,adom
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
. - Services []string
- Service name.
- Srcaddrs []string
- Source address objects.
- Srcintfs []string
- Source interface name.
- Status string
- Enable/disable this policy. Valid values:
disable
,enable
. - Tcp
Mss float64Receiver - TCP Maximum Segment Size value of receiver (0 - 65535, default = 0)
- Tcp
Mss float64Sender - TCP Maximum Segment Size value of sender (0 - 65535, default = 0).
- Traffic
Shaper string - Traffic shaper.
- Traffic
Shaper stringReverse - Reverse traffic shaper.
- Uuid string
- Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
- action String
- Accept or deny traffic matching the policy. Valid values:
deny
,accept
. - adom String
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - cgn
Log StringServer Grp - NP log server group name
- comments String
- Comment.
- dstaddrs List<String>
- Destination address objects.
- dstintfs List<String>
- Destination interface name.
- fixedport String
- Enable/disable fixed port for this policy. Valid values:
disable
,enable
. - ippool String
- Enable/disable use of IP Pools for source NAT. Valid values:
disable
,enable
. - logtraffic String
- Enable/disable traffic logging for this policy. Valid values:
disable
,enable
. - logtraffic
Start String - Record logs when a session starts and ends. Valid values:
disable
,enable
. - name String
- Policy name.
- packages
Firewall StringPolicy46Id - an identifier for the resource with format {{policyid}}.
- per
Ip StringShaper - Per IP traffic shaper.
- permit
Any StringHost - Enable/disable allowing any host. Valid values:
disable
,enable
. - pkg String
- Package.
- pkg
Folder StringPath - Pkg Folder Path.
- policy
Offload String - Enable/disable hardware session setup for CGNAT. Valid values:
disable
,enable
. - policyid Double
- Policy ID (0 - 4294967294).
- poolnames List<String>
- IP Pool names.
- schedule String
- Schedule name.
- scopetype String
- The scope of application of the resource. Valid values:
inherit
,adom
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
. - services List<String>
- Service name.
- srcaddrs List<String>
- Source address objects.
- srcintfs List<String>
- Source interface name.
- status String
- Enable/disable this policy. Valid values:
disable
,enable
. - tcp
Mss DoubleReceiver - TCP Maximum Segment Size value of receiver (0 - 65535, default = 0)
- tcp
Mss DoubleSender - TCP Maximum Segment Size value of sender (0 - 65535, default = 0).
- traffic
Shaper String - Traffic shaper.
- traffic
Shaper StringReverse - Reverse traffic shaper.
- uuid String
- Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
- action string
- Accept or deny traffic matching the policy. Valid values:
deny
,accept
. - adom string
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - cgn
Log stringServer Grp - NP log server group name
- comments string
- Comment.
- dstaddrs string[]
- Destination address objects.
- dstintfs string[]
- Destination interface name.
- fixedport string
- Enable/disable fixed port for this policy. Valid values:
disable
,enable
. - ippool string
- Enable/disable use of IP Pools for source NAT. Valid values:
disable
,enable
. - logtraffic string
- Enable/disable traffic logging for this policy. Valid values:
disable
,enable
. - logtraffic
Start string - Record logs when a session starts and ends. Valid values:
disable
,enable
. - name string
- Policy name.
- packages
Firewall stringPolicy46Id - an identifier for the resource with format {{policyid}}.
- per
Ip stringShaper - Per IP traffic shaper.
- permit
Any stringHost - Enable/disable allowing any host. Valid values:
disable
,enable
. - pkg string
- Package.
- pkg
Folder stringPath - Pkg Folder Path.
- policy
Offload string - Enable/disable hardware session setup for CGNAT. Valid values:
disable
,enable
. - policyid number
- Policy ID (0 - 4294967294).
- poolnames string[]
- IP Pool names.
- schedule string
- Schedule name.
- scopetype string
- The scope of application of the resource. Valid values:
inherit
,adom
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
. - services string[]
- Service name.
- srcaddrs string[]
- Source address objects.
- srcintfs string[]
- Source interface name.
- status string
- Enable/disable this policy. Valid values:
disable
,enable
. - tcp
Mss numberReceiver - TCP Maximum Segment Size value of receiver (0 - 65535, default = 0)
- tcp
Mss numberSender - TCP Maximum Segment Size value of sender (0 - 65535, default = 0).
- traffic
Shaper string - Traffic shaper.
- traffic
Shaper stringReverse - Reverse traffic shaper.
- uuid string
- Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
- action str
- Accept or deny traffic matching the policy. Valid values:
deny
,accept
. - adom str
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - cgn_
log_ strserver_ grp - NP log server group name
- comments str
- Comment.
- dstaddrs Sequence[str]
- Destination address objects.
- dstintfs Sequence[str]
- Destination interface name.
- fixedport str
- Enable/disable fixed port for this policy. Valid values:
disable
,enable
. - ippool str
- Enable/disable use of IP Pools for source NAT. Valid values:
disable
,enable
. - logtraffic str
- Enable/disable traffic logging for this policy. Valid values:
disable
,enable
. - logtraffic_
start str - Record logs when a session starts and ends. Valid values:
disable
,enable
. - name str
- Policy name.
- packages_
firewall_ strpolicy46_ id - an identifier for the resource with format {{policyid}}.
- per_
ip_ strshaper - Per IP traffic shaper.
- permit_
any_ strhost - Enable/disable allowing any host. Valid values:
disable
,enable
. - pkg str
- Package.
- pkg_
folder_ strpath - Pkg Folder Path.
- policy_
offload str - Enable/disable hardware session setup for CGNAT. Valid values:
disable
,enable
. - policyid float
- Policy ID (0 - 4294967294).
- poolnames Sequence[str]
- IP Pool names.
- schedule str
- Schedule name.
- scopetype str
- The scope of application of the resource. Valid values:
inherit
,adom
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
. - services Sequence[str]
- Service name.
- srcaddrs Sequence[str]
- Source address objects.
- srcintfs Sequence[str]
- Source interface name.
- status str
- Enable/disable this policy. Valid values:
disable
,enable
. - tcp_
mss_ floatreceiver - TCP Maximum Segment Size value of receiver (0 - 65535, default = 0)
- tcp_
mss_ floatsender - TCP Maximum Segment Size value of sender (0 - 65535, default = 0).
- traffic_
shaper str - Traffic shaper.
- traffic_
shaper_ strreverse - Reverse traffic shaper.
- uuid str
- Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
- action String
- Accept or deny traffic matching the policy. Valid values:
deny
,accept
. - adom String
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - cgn
Log StringServer Grp - NP log server group name
- comments String
- Comment.
- dstaddrs List<String>
- Destination address objects.
- dstintfs List<String>
- Destination interface name.
- fixedport String
- Enable/disable fixed port for this policy. Valid values:
disable
,enable
. - ippool String
- Enable/disable use of IP Pools for source NAT. Valid values:
disable
,enable
. - logtraffic String
- Enable/disable traffic logging for this policy. Valid values:
disable
,enable
. - logtraffic
Start String - Record logs when a session starts and ends. Valid values:
disable
,enable
. - name String
- Policy name.
- packages
Firewall StringPolicy46Id - an identifier for the resource with format {{policyid}}.
- per
Ip StringShaper - Per IP traffic shaper.
- permit
Any StringHost - Enable/disable allowing any host. Valid values:
disable
,enable
. - pkg String
- Package.
- pkg
Folder StringPath - Pkg Folder Path.
- policy
Offload String - Enable/disable hardware session setup for CGNAT. Valid values:
disable
,enable
. - policyid Number
- Policy ID (0 - 4294967294).
- poolnames List<String>
- IP Pool names.
- schedule String
- Schedule name.
- scopetype String
- The scope of application of the resource. Valid values:
inherit
,adom
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
. - services List<String>
- Service name.
- srcaddrs List<String>
- Source address objects.
- srcintfs List<String>
- Source interface name.
- status String
- Enable/disable this policy. Valid values:
disable
,enable
. - tcp
Mss NumberReceiver - TCP Maximum Segment Size value of receiver (0 - 65535, default = 0)
- tcp
Mss NumberSender - TCP Maximum Segment Size value of sender (0 - 65535, default = 0).
- traffic
Shaper String - Traffic shaper.
- traffic
Shaper StringReverse - Reverse traffic shaper.
- uuid String
- Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
Import
Packages FirewallPolicy46 can be imported using any of these accepted formats:
Set import_options = [“pkg_folder_path=YOUR_VALUE”, “pkg=YOUR_VALUE”] in the provider section.
$ export “FORTIMANAGER_IMPORT_TABLE”=“true”
$ pulumi import fortimanager:index/packagesFirewallPolicy46:PackagesFirewallPolicy46 labelname {{policyid}}
$ unset “FORTIMANAGER_IMPORT_TABLE”
-> Hint: The scopetype and adom for import will directly inherit the scopetype and adom configuration of the provider.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- fortimanager fortinetdev/terraform-provider-fortimanager
- License
- Notes
- This Pulumi package is based on the
fortimanager
Terraform Provider.