1. Registry
  2. Packages
  3. Fortimanager Provider
  4. API Docs
  5. PackagesFirewallPolicyFabricpolicy
Viewing docs for fortimanager 1.18.0
published on Friday, Jul 31, 2026 by fortinetdev
Viewing docs for fortimanager 1.18.0
published on Friday, Jul 31, 2026 by fortinetdev

    Fabric policy related attributes.

    This resource is a sub resource for variable fabric_policy of resource fortimanager.PackagesFirewallPolicy. Conflict and overwrite may occur if use both of them.

    Create PackagesFirewallPolicyFabricpolicy Resource

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

    Constructor syntax

    new PackagesFirewallPolicyFabricpolicy(name: string, args: PackagesFirewallPolicyFabricpolicyArgs, opts?: CustomResourceOptions);
    @overload
    def PackagesFirewallPolicyFabricpolicy(resource_name: str,
                                           args: PackagesFirewallPolicyFabricpolicyArgs,
                                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def PackagesFirewallPolicyFabricpolicy(resource_name: str,
                                           opts: Optional[ResourceOptions] = None,
                                           pkg: Optional[str] = None,
                                           policy: Optional[str] = None,
                                           adom: Optional[str] = None,
                                           froms: Optional[Sequence[str]] = None,
                                           packages_firewall_policy_fabricpolicy_id: Optional[str] = None,
                                           pkg_folder_path: Optional[str] = None,
                                           scopetype: Optional[str] = None,
                                           tos: Optional[Sequence[str]] = None)
    func NewPackagesFirewallPolicyFabricpolicy(ctx *Context, name string, args PackagesFirewallPolicyFabricpolicyArgs, opts ...ResourceOption) (*PackagesFirewallPolicyFabricpolicy, error)
    public PackagesFirewallPolicyFabricpolicy(string name, PackagesFirewallPolicyFabricpolicyArgs args, CustomResourceOptions? opts = null)
    public PackagesFirewallPolicyFabricpolicy(String name, PackagesFirewallPolicyFabricpolicyArgs args)
    public PackagesFirewallPolicyFabricpolicy(String name, PackagesFirewallPolicyFabricpolicyArgs args, CustomResourceOptions options)
    
    type: fortimanager:PackagesFirewallPolicyFabricpolicy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "fortimanager_packages_firewall_policy_fabricpolicy" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args PackagesFirewallPolicyFabricpolicyArgs
    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 PackagesFirewallPolicyFabricpolicyArgs
    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 PackagesFirewallPolicyFabricpolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PackagesFirewallPolicyFabricpolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PackagesFirewallPolicyFabricpolicyArgs
    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 packagesFirewallPolicyFabricpolicyResource = new Fortimanager.PackagesFirewallPolicyFabricpolicy("packagesFirewallPolicyFabricpolicyResource", new()
    {
        Pkg = "string",
        Policy = "string",
        Adom = "string",
        Froms = new[]
        {
            "string",
        },
        PackagesFirewallPolicyFabricpolicyId = "string",
        PkgFolderPath = "string",
        Scopetype = "string",
        Tos = new[]
        {
            "string",
        },
    });
    
    example, err := fortimanager.NewPackagesFirewallPolicyFabricpolicy(ctx, "packagesFirewallPolicyFabricpolicyResource", &fortimanager.PackagesFirewallPolicyFabricpolicyArgs{
    	Pkg:    pulumi.String("string"),
    	Policy: pulumi.String("string"),
    	Adom:   pulumi.String("string"),
    	Froms: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	PackagesFirewallPolicyFabricpolicyId: pulumi.String("string"),
    	PkgFolderPath:                        pulumi.String("string"),
    	Scopetype:                            pulumi.String("string"),
    	Tos: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    resource "fortimanager_packages_firewall_policy_fabricpolicy" "packagesFirewallPolicyFabricpolicyResource" {
      lifecycle {
        create_before_destroy = true
      }
      pkg                                      = "string"
      policy                                   = "string"
      adom                                     = "string"
      froms                                    = ["string"]
      packages_firewall_policy_fabricpolicy_id = "string"
      pkg_folder_path                          = "string"
      scopetype                                = "string"
      tos                                      = ["string"]
    }
    
    var packagesFirewallPolicyFabricpolicyResource = new PackagesFirewallPolicyFabricpolicy("packagesFirewallPolicyFabricpolicyResource", PackagesFirewallPolicyFabricpolicyArgs.builder()
        .pkg("string")
        .policy("string")
        .adom("string")
        .froms("string")
        .packagesFirewallPolicyFabricpolicyId("string")
        .pkgFolderPath("string")
        .scopetype("string")
        .tos("string")
        .build());
    
    packages_firewall_policy_fabricpolicy_resource = fortimanager.PackagesFirewallPolicyFabricpolicy("packagesFirewallPolicyFabricpolicyResource",
        pkg="string",
        policy="string",
        adom="string",
        froms=["string"],
        packages_firewall_policy_fabricpolicy_id="string",
        pkg_folder_path="string",
        scopetype="string",
        tos=["string"])
    
    const packagesFirewallPolicyFabricpolicyResource = new fortimanager.PackagesFirewallPolicyFabricpolicy("packagesFirewallPolicyFabricpolicyResource", {
        pkg: "string",
        policy: "string",
        adom: "string",
        froms: ["string"],
        packagesFirewallPolicyFabricpolicyId: "string",
        pkgFolderPath: "string",
        scopetype: "string",
        tos: ["string"],
    });
    
    type: fortimanager:PackagesFirewallPolicyFabricpolicy
    properties:
        adom: string
        froms:
            - string
        packagesFirewallPolicyFabricpolicyId: string
        pkg: string
        pkgFolderPath: string
        policy: string
        scopetype: string
        tos:
            - string
    

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

    Pkg string
    Package.
    Policy string
    Policy.
    Adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    Froms List<string>
    From device.
    PackagesFirewallPolicyFabricpolicyId string
    an identifier for the resource.
    PkgFolderPath string
    Pkg Folder Path.
    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.
    Tos List<string>
    To device.
    Pkg string
    Package.
    Policy string
    Policy.
    Adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    Froms []string
    From device.
    PackagesFirewallPolicyFabricpolicyId string
    an identifier for the resource.
    PkgFolderPath string
    Pkg Folder Path.
    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.
    Tos []string
    To device.
    pkg string
    Package.
    policy string
    Policy.
    adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    froms list(string)
    From device.
    packages_firewall_policy_fabricpolicy_id string
    an identifier for the resource.
    pkg_folder_path string
    Pkg Folder Path.
    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.
    tos list(string)
    To device.
    pkg String
    Package.
    policy String
    Policy.
    adom String
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    froms List<String>
    From device.
    packagesFirewallPolicyFabricpolicyId String
    an identifier for the resource.
    pkgFolderPath String
    Pkg Folder Path.
    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.
    tos List<String>
    To device.
    pkg string
    Package.
    policy string
    Policy.
    adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    froms string[]
    From device.
    packagesFirewallPolicyFabricpolicyId string
    an identifier for the resource.
    pkgFolderPath string
    Pkg Folder Path.
    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.
    tos string[]
    To device.
    pkg str
    Package.
    policy str
    Policy.
    adom str
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    froms Sequence[str]
    From device.
    packages_firewall_policy_fabricpolicy_id str
    an identifier for the resource.
    pkg_folder_path str
    Pkg Folder Path.
    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.
    tos Sequence[str]
    To device.
    pkg String
    Package.
    policy String
    Policy.
    adom String
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    froms List<String>
    From device.
    packagesFirewallPolicyFabricpolicyId String
    an identifier for the resource.
    pkgFolderPath String
    Pkg Folder Path.
    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.
    tos List<String>
    To device.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PackagesFirewallPolicyFabricpolicy 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 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 PackagesFirewallPolicyFabricpolicy Resource

    Get an existing PackagesFirewallPolicyFabricpolicy 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?: PackagesFirewallPolicyFabricpolicyState, opts?: CustomResourceOptions): PackagesFirewallPolicyFabricpolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            adom: Optional[str] = None,
            froms: Optional[Sequence[str]] = None,
            packages_firewall_policy_fabricpolicy_id: Optional[str] = None,
            pkg: Optional[str] = None,
            pkg_folder_path: Optional[str] = None,
            policy: Optional[str] = None,
            scopetype: Optional[str] = None,
            tos: Optional[Sequence[str]] = None) -> PackagesFirewallPolicyFabricpolicy
    func GetPackagesFirewallPolicyFabricpolicy(ctx *Context, name string, id IDInput, state *PackagesFirewallPolicyFabricpolicyState, opts ...ResourceOption) (*PackagesFirewallPolicyFabricpolicy, error)
    public static PackagesFirewallPolicyFabricpolicy Get(string name, Input<string> id, PackagesFirewallPolicyFabricpolicyState? state, CustomResourceOptions? opts = null)
    public static PackagesFirewallPolicyFabricpolicy get(String name, Output<String> id, PackagesFirewallPolicyFabricpolicyState state, CustomResourceOptions options)
    resources:  _:    type: fortimanager:PackagesFirewallPolicyFabricpolicy    get:      id: ${id}
    import {
      to = fortimanager_packages_firewall_policy_fabricpolicy.example
      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.
    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.
    Froms List<string>
    From device.
    PackagesFirewallPolicyFabricpolicyId string
    an identifier for the resource.
    Pkg string
    Package.
    PkgFolderPath string
    Pkg Folder Path.
    Policy string
    Policy.
    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.
    Tos List<string>
    To device.
    Adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    Froms []string
    From device.
    PackagesFirewallPolicyFabricpolicyId string
    an identifier for the resource.
    Pkg string
    Package.
    PkgFolderPath string
    Pkg Folder Path.
    Policy string
    Policy.
    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.
    Tos []string
    To device.
    adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    froms list(string)
    From device.
    packages_firewall_policy_fabricpolicy_id string
    an identifier for the resource.
    pkg string
    Package.
    pkg_folder_path string
    Pkg Folder Path.
    policy string
    Policy.
    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.
    tos list(string)
    To device.
    adom String
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    froms List<String>
    From device.
    packagesFirewallPolicyFabricpolicyId String
    an identifier for the resource.
    pkg String
    Package.
    pkgFolderPath String
    Pkg Folder Path.
    policy String
    Policy.
    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.
    tos List<String>
    To device.
    adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    froms string[]
    From device.
    packagesFirewallPolicyFabricpolicyId string
    an identifier for the resource.
    pkg string
    Package.
    pkgFolderPath string
    Pkg Folder Path.
    policy string
    Policy.
    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.
    tos string[]
    To device.
    adom str
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    froms Sequence[str]
    From device.
    packages_firewall_policy_fabricpolicy_id str
    an identifier for the resource.
    pkg str
    Package.
    pkg_folder_path str
    Pkg Folder Path.
    policy str
    Policy.
    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.
    tos Sequence[str]
    To device.
    adom String
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    froms List<String>
    From device.
    packagesFirewallPolicyFabricpolicyId String
    an identifier for the resource.
    pkg String
    Package.
    pkgFolderPath String
    Pkg Folder Path.
    policy String
    Policy.
    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.
    tos List<String>
    To device.

    Import

    Packages FirewallPolicyFabricPolicy can be imported using any of these accepted formats:

    Set import_options = [“pkg_folder_path=YOUR_VALUE”, “pkg=YOUR_VALUE”, “policy=YOUR_VALUE”] in the provider section.

    $ export “FORTIMANAGER_IMPORT_TABLE”=“true”

    $ pulumi import fortimanager:index/packagesFirewallPolicyFabricpolicy:PackagesFirewallPolicyFabricpolicy labelname PackagesFirewallPolicyFabricPolicy
    

    $ 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.
    Viewing docs for fortimanager 1.18.0
    published on Friday, Jul 31, 2026 by fortinetdev

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial