published on Friday, Jul 31, 2026 by fortinetdev
published on Friday, Jul 31, 2026 by fortinetdev
Fabric policy related attributes.
This resource is a sub resource for variable
fabric_policyof resourcefortimanager.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
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - Froms List<string>
- From device.
- Packages
Firewall stringPolicy Fabricpolicy Id - an identifier for the resource.
- Pkg
Folder stringPath - Pkg Folder Path.
- Scopetype string
- The scope of application of the resource. Valid values:
inherit,adom. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - Tos List<string>
- To device.
- Pkg string
- Package.
- Policy string
- Policy.
- Adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - Froms []string
- From device.
- Packages
Firewall stringPolicy Fabricpolicy Id - an identifier for the resource.
- Pkg
Folder stringPath - Pkg Folder Path.
- Scopetype string
- The scope of application of the resource. Valid values:
inherit,adom. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - Tos []string
- To device.
- pkg string
- Package.
- policy string
- Policy.
- adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - froms list(string)
- From device.
- packages_
firewall_ stringpolicy_ fabricpolicy_ id - an identifier for the resource.
- pkg_
folder_ stringpath - Pkg Folder Path.
- scopetype string
- The scope of application of the resource. Valid values:
inherit,adom. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - tos list(string)
- To device.
- pkg String
- Package.
- policy String
- Policy.
- adom String
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - froms List<String>
- From device.
- packages
Firewall StringPolicy Fabricpolicy Id - an identifier for the resource.
- pkg
Folder StringPath - Pkg Folder Path.
- scopetype String
- The scope of application of the resource. Valid values:
inherit,adom. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - tos List<String>
- To device.
- pkg string
- Package.
- policy string
- Policy.
- adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - froms string[]
- From device.
- packages
Firewall stringPolicy Fabricpolicy Id - an identifier for the resource.
- pkg
Folder stringPath - Pkg Folder Path.
- scopetype string
- The scope of application of the resource. Valid values:
inherit,adom. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - tos string[]
- To device.
- pkg str
- Package.
- policy str
- Policy.
- adom str
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - froms Sequence[str]
- From device.
- packages_
firewall_ strpolicy_ fabricpolicy_ id - an identifier for the resource.
- pkg_
folder_ strpath - Pkg Folder Path.
- scopetype str
- The scope of application of the resource. Valid values:
inherit,adom. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - tos Sequence[str]
- To device.
- pkg String
- Package.
- policy String
- Policy.
- adom String
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - froms List<String>
- From device.
- packages
Firewall StringPolicy Fabricpolicy Id - an identifier for the resource.
- pkg
Folder StringPath - Pkg Folder Path.
- scopetype String
- The scope of application of the resource. Valid values:
inherit,adom. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - 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) -> PackagesFirewallPolicyFabricpolicyfunc 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.
- Adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - Froms List<string>
- From device.
- Packages
Firewall stringPolicy Fabricpolicy Id - an identifier for the resource.
- Pkg string
- Package.
- Pkg
Folder stringPath - Pkg Folder Path.
- Policy string
- Policy.
- Scopetype string
- The scope of application of the resource. Valid values:
inherit,adom. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - Tos List<string>
- To device.
- Adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - Froms []string
- From device.
- Packages
Firewall stringPolicy Fabricpolicy Id - an identifier for the resource.
- Pkg string
- Package.
- Pkg
Folder stringPath - Pkg Folder Path.
- Policy string
- Policy.
- Scopetype string
- The scope of application of the resource. Valid values:
inherit,adom. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - Tos []string
- To device.
- adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - froms list(string)
- From device.
- packages_
firewall_ stringpolicy_ fabricpolicy_ id - an identifier for the resource.
- pkg string
- Package.
- pkg_
folder_ stringpath - Pkg Folder Path.
- policy string
- Policy.
- scopetype string
- The scope of application of the resource. Valid values:
inherit,adom. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - tos list(string)
- To device.
- adom String
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - froms List<String>
- From device.
- packages
Firewall StringPolicy Fabricpolicy Id - an identifier for the resource.
- pkg String
- Package.
- pkg
Folder StringPath - Pkg Folder Path.
- policy String
- Policy.
- scopetype String
- The scope of application of the resource. Valid values:
inherit,adom. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - tos List<String>
- To device.
- adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - froms string[]
- From device.
- packages
Firewall stringPolicy Fabricpolicy Id - an identifier for the resource.
- pkg string
- Package.
- pkg
Folder stringPath - Pkg Folder Path.
- policy string
- Policy.
- scopetype string
- The scope of application of the resource. Valid values:
inherit,adom. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - tos string[]
- To device.
- adom str
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - froms Sequence[str]
- From device.
- packages_
firewall_ strpolicy_ fabricpolicy_ id - an identifier for the resource.
- pkg str
- Package.
- pkg_
folder_ strpath - Pkg Folder Path.
- policy str
- Policy.
- scopetype str
- The scope of application of the resource. Valid values:
inherit,adom. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - tos Sequence[str]
- To device.
- adom String
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - froms List<String>
- From device.
- packages
Firewall StringPolicy Fabricpolicy Id - an identifier for the resource.
- pkg String
- Package.
- pkg
Folder StringPath - Pkg Folder Path.
- policy String
- Policy.
- scopetype String
- The scope of application of the resource. Valid values:
inherit,adom. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - 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
fortimanagerTerraform Provider.
published on Friday, Jul 31, 2026 by fortinetdev