1. Packages
  2. Fortimanager Provider
  3. API Docs
  4. PackagesFirewallPolicy46
fortimanager 1.13.0 published on Thursday, Mar 13, 2025 by fortinetdev

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,
});
Copy
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)
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
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
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. PackagesFirewallPolicy46Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. PackagesFirewallPolicy46Args
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. PackagesFirewallPolicy46Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
});
Copy
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"),
})
Copy
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());
Copy
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")
Copy
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",
});
Copy
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
Copy

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 This property is required. 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 is adom, otherwise the value of adom in the provider will be inherited.
CgnLogServerGrp string
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.
LogtrafficStart string
Record logs when a session starts and ends. Valid values: disable, enable.
Name string
Policy name.
PackagesFirewallPolicy46Id string
an identifier for the resource with format {{policyid}}.
PerIpShaper string
Per IP traffic shaper.
PermitAnyHost string
Enable/disable allowing any host. Valid values: disable, enable.
PkgFolderPath string
Pkg Folder Path.
PolicyOffload 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. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
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.
TcpMssReceiver double
TCP Maximum Segment Size value of receiver (0 - 65535, default = 0)
TcpMssSender double
TCP Maximum Segment Size value of sender (0 - 65535, default = 0).
TrafficShaper string
Traffic shaper.
TrafficShaperReverse string
Reverse traffic shaper.
Uuid string
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
Pkg This property is required. 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 is adom, otherwise the value of adom in the provider will be inherited.
CgnLogServerGrp string
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.
LogtrafficStart string
Record logs when a session starts and ends. Valid values: disable, enable.
Name string
Policy name.
PackagesFirewallPolicy46Id string
an identifier for the resource with format {{policyid}}.
PerIpShaper string
Per IP traffic shaper.
PermitAnyHost string
Enable/disable allowing any host. Valid values: disable, enable.
PkgFolderPath string
Pkg Folder Path.
PolicyOffload 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. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Services []string
Service name.
Srcaddrs []string
Source address objects.
Srcintfs []string
Source interface name.
Status string
Enable/disable this policy. Valid values: disable, enable.
TcpMssReceiver float64
TCP Maximum Segment Size value of receiver (0 - 65535, default = 0)
TcpMssSender float64
TCP Maximum Segment Size value of sender (0 - 65535, default = 0).
TrafficShaper string
Traffic shaper.
TrafficShaperReverse string
Reverse traffic shaper.
Uuid string
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
pkg This property is required. 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 is adom, otherwise the value of adom in the provider will be inherited.
cgnLogServerGrp String
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.
logtrafficStart String
Record logs when a session starts and ends. Valid values: disable, enable.
name String
Policy name.
packagesFirewallPolicy46Id String
an identifier for the resource with format {{policyid}}.
perIpShaper String
Per IP traffic shaper.
permitAnyHost String
Enable/disable allowing any host. Valid values: disable, enable.
pkgFolderPath String
Pkg Folder Path.
policyOffload 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. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
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.
tcpMssReceiver Double
TCP Maximum Segment Size value of receiver (0 - 65535, default = 0)
tcpMssSender Double
TCP Maximum Segment Size value of sender (0 - 65535, default = 0).
trafficShaper String
Traffic shaper.
trafficShaperReverse String
Reverse traffic shaper.
uuid String
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
pkg This property is required. 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 is adom, otherwise the value of adom in the provider will be inherited.
cgnLogServerGrp string
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.
logtrafficStart string
Record logs when a session starts and ends. Valid values: disable, enable.
name string
Policy name.
packagesFirewallPolicy46Id string
an identifier for the resource with format {{policyid}}.
perIpShaper string
Per IP traffic shaper.
permitAnyHost string
Enable/disable allowing any host. Valid values: disable, enable.
pkgFolderPath string
Pkg Folder Path.
policyOffload 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. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
services string[]
Service name.
srcaddrs string[]
Source address objects.
srcintfs string[]
Source interface name.
status string
Enable/disable this policy. Valid values: disable, enable.
tcpMssReceiver number
TCP Maximum Segment Size value of receiver (0 - 65535, default = 0)
tcpMssSender number
TCP Maximum Segment Size value of sender (0 - 65535, default = 0).
trafficShaper string
Traffic shaper.
trafficShaperReverse string
Reverse traffic shaper.
uuid string
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
pkg This property is required. 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 is adom, otherwise the value of adom in the provider will be inherited.
cgn_log_server_grp str
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_policy46_id str
an identifier for the resource with format {{policyid}}.
per_ip_shaper str
Per IP traffic shaper.
permit_any_host str
Enable/disable allowing any host. Valid values: disable, enable.
pkg_folder_path str
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. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
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_receiver float
TCP Maximum Segment Size value of receiver (0 - 65535, default = 0)
tcp_mss_sender float
TCP Maximum Segment Size value of sender (0 - 65535, default = 0).
traffic_shaper str
Traffic shaper.
traffic_shaper_reverse str
Reverse traffic shaper.
uuid str
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
pkg This property is required. 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 is adom, otherwise the value of adom in the provider will be inherited.
cgnLogServerGrp String
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.
logtrafficStart String
Record logs when a session starts and ends. Valid values: disable, enable.
name String
Policy name.
packagesFirewallPolicy46Id String
an identifier for the resource with format {{policyid}}.
perIpShaper String
Per IP traffic shaper.
permitAnyHost String
Enable/disable allowing any host. Valid values: disable, enable.
pkgFolderPath String
Pkg Folder Path.
policyOffload 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. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
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.
tcpMssReceiver Number
TCP Maximum Segment Size value of receiver (0 - 65535, default = 0)
tcpMssSender Number
TCP Maximum Segment Size value of sender (0 - 65535, default = 0).
trafficShaper String
Traffic shaper.
trafficShaperReverse String
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Action string
Accept or deny traffic matching the policy. Valid values: deny, accept.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
CgnLogServerGrp string
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.
LogtrafficStart string
Record logs when a session starts and ends. Valid values: disable, enable.
Name string
Policy name.
PackagesFirewallPolicy46Id string
an identifier for the resource with format {{policyid}}.
PerIpShaper string
Per IP traffic shaper.
PermitAnyHost string
Enable/disable allowing any host. Valid values: disable, enable.
Pkg string
Package.
PkgFolderPath string
Pkg Folder Path.
PolicyOffload 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. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
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.
TcpMssReceiver double
TCP Maximum Segment Size value of receiver (0 - 65535, default = 0)
TcpMssSender double
TCP Maximum Segment Size value of sender (0 - 65535, default = 0).
TrafficShaper string
Traffic shaper.
TrafficShaperReverse string
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 is adom, otherwise the value of adom in the provider will be inherited.
CgnLogServerGrp string
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.
LogtrafficStart string
Record logs when a session starts and ends. Valid values: disable, enable.
Name string
Policy name.
PackagesFirewallPolicy46Id string
an identifier for the resource with format {{policyid}}.
PerIpShaper string
Per IP traffic shaper.
PermitAnyHost string
Enable/disable allowing any host. Valid values: disable, enable.
Pkg string
Package.
PkgFolderPath string
Pkg Folder Path.
PolicyOffload 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. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Services []string
Service name.
Srcaddrs []string
Source address objects.
Srcintfs []string
Source interface name.
Status string
Enable/disable this policy. Valid values: disable, enable.
TcpMssReceiver float64
TCP Maximum Segment Size value of receiver (0 - 65535, default = 0)
TcpMssSender float64
TCP Maximum Segment Size value of sender (0 - 65535, default = 0).
TrafficShaper string
Traffic shaper.
TrafficShaperReverse string
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 is adom, otherwise the value of adom in the provider will be inherited.
cgnLogServerGrp String
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.
logtrafficStart String
Record logs when a session starts and ends. Valid values: disable, enable.
name String
Policy name.
packagesFirewallPolicy46Id String
an identifier for the resource with format {{policyid}}.
perIpShaper String
Per IP traffic shaper.
permitAnyHost String
Enable/disable allowing any host. Valid values: disable, enable.
pkg String
Package.
pkgFolderPath String
Pkg Folder Path.
policyOffload 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. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
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.
tcpMssReceiver Double
TCP Maximum Segment Size value of receiver (0 - 65535, default = 0)
tcpMssSender Double
TCP Maximum Segment Size value of sender (0 - 65535, default = 0).
trafficShaper String
Traffic shaper.
trafficShaperReverse String
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 is adom, otherwise the value of adom in the provider will be inherited.
cgnLogServerGrp string
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.
logtrafficStart string
Record logs when a session starts and ends. Valid values: disable, enable.
name string
Policy name.
packagesFirewallPolicy46Id string
an identifier for the resource with format {{policyid}}.
perIpShaper string
Per IP traffic shaper.
permitAnyHost string
Enable/disable allowing any host. Valid values: disable, enable.
pkg string
Package.
pkgFolderPath string
Pkg Folder Path.
policyOffload 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. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
services string[]
Service name.
srcaddrs string[]
Source address objects.
srcintfs string[]
Source interface name.
status string
Enable/disable this policy. Valid values: disable, enable.
tcpMssReceiver number
TCP Maximum Segment Size value of receiver (0 - 65535, default = 0)
tcpMssSender number
TCP Maximum Segment Size value of sender (0 - 65535, default = 0).
trafficShaper string
Traffic shaper.
trafficShaperReverse string
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 is adom, otherwise the value of adom in the provider will be inherited.
cgn_log_server_grp str
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_policy46_id str
an identifier for the resource with format {{policyid}}.
per_ip_shaper str
Per IP traffic shaper.
permit_any_host str
Enable/disable allowing any host. Valid values: disable, enable.
pkg str
Package.
pkg_folder_path str
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. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
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_receiver float
TCP Maximum Segment Size value of receiver (0 - 65535, default = 0)
tcp_mss_sender float
TCP Maximum Segment Size value of sender (0 - 65535, default = 0).
traffic_shaper str
Traffic shaper.
traffic_shaper_reverse str
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 is adom, otherwise the value of adom in the provider will be inherited.
cgnLogServerGrp String
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.
logtrafficStart String
Record logs when a session starts and ends. Valid values: disable, enable.
name String
Policy name.
packagesFirewallPolicy46Id String
an identifier for the resource with format {{policyid}}.
perIpShaper String
Per IP traffic shaper.
permitAnyHost String
Enable/disable allowing any host. Valid values: disable, enable.
pkg String
Package.
pkgFolderPath String
Pkg Folder Path.
policyOffload 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. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
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.
tcpMssReceiver Number
TCP Maximum Segment Size value of receiver (0 - 65535, default = 0)
tcpMssSender Number
TCP Maximum Segment Size value of sender (0 - 65535, default = 0).
trafficShaper String
Traffic shaper.
trafficShaperReverse String
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}}
Copy

$ 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.