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

fortimanager.PackagesFirewallAcl

Explore with Pulumi AI

Configure IPv4 access control list.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as fortimanager from "@pulumi/fortimanager";

const trname = new fortimanager.PackagesFirewallAcl("trname", {
    dstaddrs: ["all"],
    "interface": "port4",
    pkg: "default",
    policyid: 1,
    services: ["ALL"],
    srcaddrs: ["all"],
});
Copy
import pulumi
import pulumi_fortimanager as fortimanager

trname = fortimanager.PackagesFirewallAcl("trname",
    dstaddrs=["all"],
    interface="port4",
    pkg="default",
    policyid=1,
    services=["ALL"],
    srcaddrs=["all"])
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.NewPackagesFirewallAcl(ctx, "trname", &fortimanager.PackagesFirewallAclArgs{
			Dstaddrs: pulumi.StringArray{
				pulumi.String("all"),
			},
			Interface: pulumi.String("port4"),
			Pkg:       pulumi.String("default"),
			Policyid:  pulumi.Float64(1),
			Services: pulumi.StringArray{
				pulumi.String("ALL"),
			},
			Srcaddrs: pulumi.StringArray{
				pulumi.String("all"),
			},
		})
		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 trname = new Fortimanager.PackagesFirewallAcl("trname", new()
    {
        Dstaddrs = new[]
        {
            "all",
        },
        Interface = "port4",
        Pkg = "default",
        Policyid = 1,
        Services = new[]
        {
            "ALL",
        },
        Srcaddrs = new[]
        {
            "all",
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.PackagesFirewallAcl;
import com.pulumi.fortimanager.PackagesFirewallAclArgs;
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 PackagesFirewallAcl("trname", PackagesFirewallAclArgs.builder()
            .dstaddrs("all")
            .interface_("port4")
            .pkg("default")
            .policyid(1)
            .services("ALL")
            .srcaddrs("all")
            .build());

    }
}
Copy
resources:
  trname:
    type: fortimanager:PackagesFirewallAcl
    properties:
      dstaddrs:
        - all
      interface: port4
      pkg: default
      policyid: 1
      services:
        - ALL
      srcaddrs:
        - all
Copy

Create PackagesFirewallAcl Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new PackagesFirewallAcl(name: string, args: PackagesFirewallAclArgs, opts?: CustomResourceOptions);
@overload
def PackagesFirewallAcl(resource_name: str,
                        args: PackagesFirewallAclArgs,
                        opts: Optional[ResourceOptions] = None)

@overload
def PackagesFirewallAcl(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        pkg: Optional[str] = None,
                        packages_firewall_acl_id: Optional[str] = None,
                        pkg_folder_path: Optional[str] = None,
                        fragment: Optional[str] = None,
                        interface: Optional[str] = None,
                        name: Optional[str] = None,
                        adom: Optional[str] = None,
                        comments: Optional[str] = None,
                        dstaddrs: Optional[Sequence[str]] = None,
                        policyid: Optional[float] = None,
                        scopetype: Optional[str] = None,
                        services: Optional[Sequence[str]] = None,
                        srcaddrs: Optional[Sequence[str]] = None,
                        status: Optional[str] = None,
                        uuid: Optional[str] = None)
func NewPackagesFirewallAcl(ctx *Context, name string, args PackagesFirewallAclArgs, opts ...ResourceOption) (*PackagesFirewallAcl, error)
public PackagesFirewallAcl(string name, PackagesFirewallAclArgs args, CustomResourceOptions? opts = null)
public PackagesFirewallAcl(String name, PackagesFirewallAclArgs args)
public PackagesFirewallAcl(String name, PackagesFirewallAclArgs args, CustomResourceOptions options)
type: fortimanager:PackagesFirewallAcl
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. PackagesFirewallAclArgs
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. PackagesFirewallAclArgs
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. PackagesFirewallAclArgs
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. PackagesFirewallAclArgs
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. PackagesFirewallAclArgs
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 packagesFirewallAclResource = new Fortimanager.PackagesFirewallAcl("packagesFirewallAclResource", new()
{
    Pkg = "string",
    PackagesFirewallAclId = "string",
    PkgFolderPath = "string",
    Fragment = "string",
    Interface = "string",
    Name = "string",
    Adom = "string",
    Comments = "string",
    Dstaddrs = new[]
    {
        "string",
    },
    Policyid = 0,
    Scopetype = "string",
    Services = new[]
    {
        "string",
    },
    Srcaddrs = new[]
    {
        "string",
    },
    Status = "string",
    Uuid = "string",
});
Copy
example, err := fortimanager.NewPackagesFirewallAcl(ctx, "packagesFirewallAclResource", &fortimanager.PackagesFirewallAclArgs{
Pkg: pulumi.String("string"),
PackagesFirewallAclId: pulumi.String("string"),
PkgFolderPath: pulumi.String("string"),
Fragment: pulumi.String("string"),
Interface: pulumi.String("string"),
Name: pulumi.String("string"),
Adom: pulumi.String("string"),
Comments: pulumi.String("string"),
Dstaddrs: pulumi.StringArray{
pulumi.String("string"),
},
Policyid: pulumi.Float64(0),
Scopetype: pulumi.String("string"),
Services: pulumi.StringArray{
pulumi.String("string"),
},
Srcaddrs: pulumi.StringArray{
pulumi.String("string"),
},
Status: pulumi.String("string"),
Uuid: pulumi.String("string"),
})
Copy
var packagesFirewallAclResource = new PackagesFirewallAcl("packagesFirewallAclResource", PackagesFirewallAclArgs.builder()
    .pkg("string")
    .packagesFirewallAclId("string")
    .pkgFolderPath("string")
    .fragment("string")
    .interface_("string")
    .name("string")
    .adom("string")
    .comments("string")
    .dstaddrs("string")
    .policyid(0)
    .scopetype("string")
    .services("string")
    .srcaddrs("string")
    .status("string")
    .uuid("string")
    .build());
Copy
packages_firewall_acl_resource = fortimanager.PackagesFirewallAcl("packagesFirewallAclResource",
    pkg="string",
    packages_firewall_acl_id="string",
    pkg_folder_path="string",
    fragment="string",
    interface="string",
    name="string",
    adom="string",
    comments="string",
    dstaddrs=["string"],
    policyid=0,
    scopetype="string",
    services=["string"],
    srcaddrs=["string"],
    status="string",
    uuid="string")
Copy
const packagesFirewallAclResource = new fortimanager.PackagesFirewallAcl("packagesFirewallAclResource", {
    pkg: "string",
    packagesFirewallAclId: "string",
    pkgFolderPath: "string",
    fragment: "string",
    "interface": "string",
    name: "string",
    adom: "string",
    comments: "string",
    dstaddrs: ["string"],
    policyid: 0,
    scopetype: "string",
    services: ["string"],
    srcaddrs: ["string"],
    status: "string",
    uuid: "string",
});
Copy
type: fortimanager:PackagesFirewallAcl
properties:
    adom: string
    comments: string
    dstaddrs:
        - string
    fragment: string
    interface: string
    name: string
    packagesFirewallAclId: string
    pkg: string
    pkgFolderPath: string
    policyid: 0
    scopetype: string
    services:
        - string
    srcaddrs:
        - string
    status: string
    uuid: string
Copy

PackagesFirewallAcl 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 PackagesFirewallAcl resource accepts the following input properties:

Pkg This property is required. string
Package.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Comments string
Comment.
Dstaddrs List<string>
Destination address name.
Fragment string
Pass/drop fragments that match L3 information. Valid values: pass, drop.
Interface string
Interface name.
Name string
Policy name.
PackagesFirewallAclId string
an identifier for the resource with format {{policyid}}.
PkgFolderPath string
Pkg Folder Path.
Policyid double
Policy ID.
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 name.
Status string
Enable/disable access control list status. Valid values: disable, enable.
Uuid string
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
Pkg This property is required. string
Package.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Comments string
Comment.
Dstaddrs []string
Destination address name.
Fragment string
Pass/drop fragments that match L3 information. Valid values: pass, drop.
Interface string
Interface name.
Name string
Policy name.
PackagesFirewallAclId string
an identifier for the resource with format {{policyid}}.
PkgFolderPath string
Pkg Folder Path.
Policyid float64
Policy ID.
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 name.
Status string
Enable/disable access control list status. Valid values: disable, enable.
Uuid string
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
pkg This property is required. String
Package.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
comments String
Comment.
dstaddrs List<String>
Destination address name.
fragment String
Pass/drop fragments that match L3 information. Valid values: pass, drop.
interface_ String
Interface name.
name String
Policy name.
packagesFirewallAclId String
an identifier for the resource with format {{policyid}}.
pkgFolderPath String
Pkg Folder Path.
policyid Double
Policy ID.
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 name.
status String
Enable/disable access control list status. Valid values: disable, enable.
uuid String
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
pkg This property is required. string
Package.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
comments string
Comment.
dstaddrs string[]
Destination address name.
fragment string
Pass/drop fragments that match L3 information. Valid values: pass, drop.
interface string
Interface name.
name string
Policy name.
packagesFirewallAclId string
an identifier for the resource with format {{policyid}}.
pkgFolderPath string
Pkg Folder Path.
policyid number
Policy ID.
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 name.
status string
Enable/disable access control list status. Valid values: disable, enable.
uuid string
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
pkg This property is required. str
Package.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
comments str
Comment.
dstaddrs Sequence[str]
Destination address name.
fragment str
Pass/drop fragments that match L3 information. Valid values: pass, drop.
interface str
Interface name.
name str
Policy name.
packages_firewall_acl_id str
an identifier for the resource with format {{policyid}}.
pkg_folder_path str
Pkg Folder Path.
policyid float
Policy ID.
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 name.
status str
Enable/disable access control list status. Valid values: disable, enable.
uuid str
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
pkg This property is required. String
Package.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
comments String
Comment.
dstaddrs List<String>
Destination address name.
fragment String
Pass/drop fragments that match L3 information. Valid values: pass, drop.
interface String
Interface name.
name String
Policy name.
packagesFirewallAclId String
an identifier for the resource with format {{policyid}}.
pkgFolderPath String
Pkg Folder Path.
policyid Number
Policy ID.
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 name.
status String
Enable/disable access control list status. Valid values: disable, enable.
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 PackagesFirewallAcl 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 PackagesFirewallAcl Resource

Get an existing PackagesFirewallAcl 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?: PackagesFirewallAclState, opts?: CustomResourceOptions): PackagesFirewallAcl
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        adom: Optional[str] = None,
        comments: Optional[str] = None,
        dstaddrs: Optional[Sequence[str]] = None,
        fragment: Optional[str] = None,
        interface: Optional[str] = None,
        name: Optional[str] = None,
        packages_firewall_acl_id: Optional[str] = None,
        pkg: Optional[str] = None,
        pkg_folder_path: Optional[str] = None,
        policyid: Optional[float] = None,
        scopetype: Optional[str] = None,
        services: Optional[Sequence[str]] = None,
        srcaddrs: Optional[Sequence[str]] = None,
        status: Optional[str] = None,
        uuid: Optional[str] = None) -> PackagesFirewallAcl
func GetPackagesFirewallAcl(ctx *Context, name string, id IDInput, state *PackagesFirewallAclState, opts ...ResourceOption) (*PackagesFirewallAcl, error)
public static PackagesFirewallAcl Get(string name, Input<string> id, PackagesFirewallAclState? state, CustomResourceOptions? opts = null)
public static PackagesFirewallAcl get(String name, Output<String> id, PackagesFirewallAclState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:PackagesFirewallAcl    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:
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Comments string
Comment.
Dstaddrs List<string>
Destination address name.
Fragment string
Pass/drop fragments that match L3 information. Valid values: pass, drop.
Interface string
Interface name.
Name string
Policy name.
PackagesFirewallAclId string
an identifier for the resource with format {{policyid}}.
Pkg string
Package.
PkgFolderPath string
Pkg Folder Path.
Policyid double
Policy ID.
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 name.
Status string
Enable/disable access control list status. Valid values: disable, enable.
Uuid string
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Comments string
Comment.
Dstaddrs []string
Destination address name.
Fragment string
Pass/drop fragments that match L3 information. Valid values: pass, drop.
Interface string
Interface name.
Name string
Policy name.
PackagesFirewallAclId string
an identifier for the resource with format {{policyid}}.
Pkg string
Package.
PkgFolderPath string
Pkg Folder Path.
Policyid float64
Policy ID.
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 name.
Status string
Enable/disable access control list status. Valid values: disable, enable.
Uuid string
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
comments String
Comment.
dstaddrs List<String>
Destination address name.
fragment String
Pass/drop fragments that match L3 information. Valid values: pass, drop.
interface_ String
Interface name.
name String
Policy name.
packagesFirewallAclId String
an identifier for the resource with format {{policyid}}.
pkg String
Package.
pkgFolderPath String
Pkg Folder Path.
policyid Double
Policy ID.
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 name.
status String
Enable/disable access control list status. Valid values: disable, enable.
uuid String
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
comments string
Comment.
dstaddrs string[]
Destination address name.
fragment string
Pass/drop fragments that match L3 information. Valid values: pass, drop.
interface string
Interface name.
name string
Policy name.
packagesFirewallAclId string
an identifier for the resource with format {{policyid}}.
pkg string
Package.
pkgFolderPath string
Pkg Folder Path.
policyid number
Policy ID.
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 name.
status string
Enable/disable access control list status. Valid values: disable, enable.
uuid string
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
comments str
Comment.
dstaddrs Sequence[str]
Destination address name.
fragment str
Pass/drop fragments that match L3 information. Valid values: pass, drop.
interface str
Interface name.
name str
Policy name.
packages_firewall_acl_id str
an identifier for the resource with format {{policyid}}.
pkg str
Package.
pkg_folder_path str
Pkg Folder Path.
policyid float
Policy ID.
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 name.
status str
Enable/disable access control list status. Valid values: disable, enable.
uuid str
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
comments String
Comment.
dstaddrs List<String>
Destination address name.
fragment String
Pass/drop fragments that match L3 information. Valid values: pass, drop.
interface String
Interface name.
name String
Policy name.
packagesFirewallAclId String
an identifier for the resource with format {{policyid}}.
pkg String
Package.
pkgFolderPath String
Pkg Folder Path.
policyid Number
Policy ID.
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 name.
status String
Enable/disable access control list status. Valid values: disable, enable.
uuid String
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).

Import

Packages FirewallAcl 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/packagesFirewallAcl:PackagesFirewallAcl 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.