published on Saturday, Mar 7, 2026 by fortinetdev
published on Saturday, Mar 7, 2026 by fortinetdev
Packages WebProxyPacPolicy
Create PackagesWebproxyPacpolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PackagesWebproxyPacpolicy(name: string, args: PackagesWebproxyPacpolicyArgs, opts?: CustomResourceOptions);@overload
def PackagesWebproxyPacpolicy(resource_name: str,
args: PackagesWebproxyPacpolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PackagesWebproxyPacpolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
pkg: Optional[str] = None,
pac_file_data: Optional[str] = None,
dstaddrs: Optional[Sequence[str]] = None,
adom: Optional[str] = None,
pac_file_name: Optional[str] = None,
packages_webproxy_pacpolicy_id: Optional[str] = None,
comments: Optional[str] = None,
pkg_folder_path: Optional[str] = None,
policyid: Optional[float] = None,
scopetype: Optional[str] = None,
srcaddr6s: Optional[Sequence[str]] = None,
srcaddrs: Optional[Sequence[str]] = None,
status: Optional[str] = None)func NewPackagesWebproxyPacpolicy(ctx *Context, name string, args PackagesWebproxyPacpolicyArgs, opts ...ResourceOption) (*PackagesWebproxyPacpolicy, error)public PackagesWebproxyPacpolicy(string name, PackagesWebproxyPacpolicyArgs args, CustomResourceOptions? opts = null)
public PackagesWebproxyPacpolicy(String name, PackagesWebproxyPacpolicyArgs args)
public PackagesWebproxyPacpolicy(String name, PackagesWebproxyPacpolicyArgs args, CustomResourceOptions options)
type: fortimanager:PackagesWebproxyPacpolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args PackagesWebproxyPacpolicyArgs
- 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 PackagesWebproxyPacpolicyArgs
- 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 PackagesWebproxyPacpolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PackagesWebproxyPacpolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PackagesWebproxyPacpolicyArgs
- 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 packagesWebproxyPacpolicyResource = new Fortimanager.Index.PackagesWebproxyPacpolicy("packagesWebproxyPacpolicyResource", new()
{
Pkg = "string",
PacFileData = "string",
Dstaddrs = new[]
{
"string",
},
Adom = "string",
PacFileName = "string",
PackagesWebproxyPacpolicyId = "string",
Comments = "string",
PkgFolderPath = "string",
Policyid = 0,
Scopetype = "string",
Srcaddr6s = new[]
{
"string",
},
Srcaddrs = new[]
{
"string",
},
Status = "string",
});
example, err := fortimanager.NewPackagesWebproxyPacpolicy(ctx, "packagesWebproxyPacpolicyResource", &fortimanager.PackagesWebproxyPacpolicyArgs{
Pkg: pulumi.String("string"),
PacFileData: pulumi.String("string"),
Dstaddrs: pulumi.StringArray{
pulumi.String("string"),
},
Adom: pulumi.String("string"),
PacFileName: pulumi.String("string"),
PackagesWebproxyPacpolicyId: pulumi.String("string"),
Comments: pulumi.String("string"),
PkgFolderPath: pulumi.String("string"),
Policyid: pulumi.Float64(0),
Scopetype: pulumi.String("string"),
Srcaddr6s: pulumi.StringArray{
pulumi.String("string"),
},
Srcaddrs: pulumi.StringArray{
pulumi.String("string"),
},
Status: pulumi.String("string"),
})
var packagesWebproxyPacpolicyResource = new PackagesWebproxyPacpolicy("packagesWebproxyPacpolicyResource", PackagesWebproxyPacpolicyArgs.builder()
.pkg("string")
.pacFileData("string")
.dstaddrs("string")
.adom("string")
.pacFileName("string")
.packagesWebproxyPacpolicyId("string")
.comments("string")
.pkgFolderPath("string")
.policyid(0.0)
.scopetype("string")
.srcaddr6s("string")
.srcaddrs("string")
.status("string")
.build());
packages_webproxy_pacpolicy_resource = fortimanager.PackagesWebproxyPacpolicy("packagesWebproxyPacpolicyResource",
pkg="string",
pac_file_data="string",
dstaddrs=["string"],
adom="string",
pac_file_name="string",
packages_webproxy_pacpolicy_id="string",
comments="string",
pkg_folder_path="string",
policyid=0,
scopetype="string",
srcaddr6s=["string"],
srcaddrs=["string"],
status="string")
const packagesWebproxyPacpolicyResource = new fortimanager.PackagesWebproxyPacpolicy("packagesWebproxyPacpolicyResource", {
pkg: "string",
pacFileData: "string",
dstaddrs: ["string"],
adom: "string",
pacFileName: "string",
packagesWebproxyPacpolicyId: "string",
comments: "string",
pkgFolderPath: "string",
policyid: 0,
scopetype: "string",
srcaddr6s: ["string"],
srcaddrs: ["string"],
status: "string",
});
type: fortimanager:PackagesWebproxyPacpolicy
properties:
adom: string
comments: string
dstaddrs:
- string
pacFileData: string
pacFileName: string
packagesWebproxyPacpolicyId: string
pkg: string
pkgFolderPath: string
policyid: 0
scopetype: string
srcaddr6s:
- string
srcaddrs:
- string
status: string
PackagesWebproxyPacpolicy 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 PackagesWebproxyPacpolicy resource accepts the following input properties:
- Pkg string
- Package.
- Adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - Comments string
- Comments.
- Dstaddrs List<string>
- Dstaddr.
- Pac
File stringData - Pac-File-Data.
- Pac
File stringName - Pac-File-Name.
- Packages
Webproxy stringPacpolicy Id - an identifier for the resource with format {{policyid}}.
- Pkg
Folder stringPath - Pkg Folder Path.
- Policyid double
- Policyid.
- 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. - Srcaddr6s List<string>
- Srcaddr6.
- Srcaddrs List<string>
- Srcaddr.
- Status string
- Status. Valid values:
disable,enable.
- Pkg string
- Package.
- Adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - Comments string
- Comments.
- Dstaddrs []string
- Dstaddr.
- Pac
File stringData - Pac-File-Data.
- Pac
File stringName - Pac-File-Name.
- Packages
Webproxy stringPacpolicy Id - an identifier for the resource with format {{policyid}}.
- Pkg
Folder stringPath - Pkg Folder Path.
- Policyid float64
- Policyid.
- 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. - Srcaddr6s []string
- Srcaddr6.
- Srcaddrs []string
- Srcaddr.
- Status string
- Status. Valid values:
disable,enable.
- pkg String
- Package.
- adom String
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - comments String
- Comments.
- dstaddrs List<String>
- Dstaddr.
- pac
File StringData - Pac-File-Data.
- pac
File StringName - Pac-File-Name.
- packages
Webproxy StringPacpolicy Id - an identifier for the resource with format {{policyid}}.
- pkg
Folder StringPath - Pkg Folder Path.
- policyid Double
- Policyid.
- 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. - srcaddr6s List<String>
- Srcaddr6.
- srcaddrs List<String>
- Srcaddr.
- status String
- Status. Valid values:
disable,enable.
- pkg string
- Package.
- adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - comments string
- Comments.
- dstaddrs string[]
- Dstaddr.
- pac
File stringData - Pac-File-Data.
- pac
File stringName - Pac-File-Name.
- packages
Webproxy stringPacpolicy Id - an identifier for the resource with format {{policyid}}.
- pkg
Folder stringPath - Pkg Folder Path.
- policyid number
- Policyid.
- 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. - srcaddr6s string[]
- Srcaddr6.
- srcaddrs string[]
- Srcaddr.
- status string
- Status. Valid values:
disable,enable.
- pkg str
- Package.
- adom str
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - comments str
- Comments.
- dstaddrs Sequence[str]
- Dstaddr.
- pac_
file_ strdata - Pac-File-Data.
- pac_
file_ strname - Pac-File-Name.
- packages_
webproxy_ strpacpolicy_ id - an identifier for the resource with format {{policyid}}.
- pkg_
folder_ strpath - Pkg Folder Path.
- policyid float
- Policyid.
- 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. - srcaddr6s Sequence[str]
- Srcaddr6.
- srcaddrs Sequence[str]
- Srcaddr.
- status str
- Status. Valid values:
disable,enable.
- pkg String
- Package.
- adom String
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - comments String
- Comments.
- dstaddrs List<String>
- Dstaddr.
- pac
File StringData - Pac-File-Data.
- pac
File StringName - Pac-File-Name.
- packages
Webproxy StringPacpolicy Id - an identifier for the resource with format {{policyid}}.
- pkg
Folder StringPath - Pkg Folder Path.
- policyid Number
- Policyid.
- 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. - srcaddr6s List<String>
- Srcaddr6.
- srcaddrs List<String>
- Srcaddr.
- status String
- Status. Valid values:
disable,enable.
Outputs
All input properties are implicitly available as output properties. Additionally, the PackagesWebproxyPacpolicy 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 PackagesWebproxyPacpolicy Resource
Get an existing PackagesWebproxyPacpolicy 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?: PackagesWebproxyPacpolicyState, opts?: CustomResourceOptions): PackagesWebproxyPacpolicy@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,
pac_file_data: Optional[str] = None,
pac_file_name: Optional[str] = None,
packages_webproxy_pacpolicy_id: Optional[str] = None,
pkg: Optional[str] = None,
pkg_folder_path: Optional[str] = None,
policyid: Optional[float] = None,
scopetype: Optional[str] = None,
srcaddr6s: Optional[Sequence[str]] = None,
srcaddrs: Optional[Sequence[str]] = None,
status: Optional[str] = None) -> PackagesWebproxyPacpolicyfunc GetPackagesWebproxyPacpolicy(ctx *Context, name string, id IDInput, state *PackagesWebproxyPacpolicyState, opts ...ResourceOption) (*PackagesWebproxyPacpolicy, error)public static PackagesWebproxyPacpolicy Get(string name, Input<string> id, PackagesWebproxyPacpolicyState? state, CustomResourceOptions? opts = null)public static PackagesWebproxyPacpolicy get(String name, Output<String> id, PackagesWebproxyPacpolicyState state, CustomResourceOptions options)resources: _: type: fortimanager:PackagesWebproxyPacpolicy get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - Comments string
- Comments.
- Dstaddrs List<string>
- Dstaddr.
- Pac
File stringData - Pac-File-Data.
- Pac
File stringName - Pac-File-Name.
- Packages
Webproxy stringPacpolicy Id - an identifier for the resource with format {{policyid}}.
- Pkg string
- Package.
- Pkg
Folder stringPath - Pkg Folder Path.
- Policyid double
- Policyid.
- 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. - Srcaddr6s List<string>
- Srcaddr6.
- Srcaddrs List<string>
- Srcaddr.
- Status string
- Status. Valid values:
disable,enable.
- Adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - Comments string
- Comments.
- Dstaddrs []string
- Dstaddr.
- Pac
File stringData - Pac-File-Data.
- Pac
File stringName - Pac-File-Name.
- Packages
Webproxy stringPacpolicy Id - an identifier for the resource with format {{policyid}}.
- Pkg string
- Package.
- Pkg
Folder stringPath - Pkg Folder Path.
- Policyid float64
- Policyid.
- 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. - Srcaddr6s []string
- Srcaddr6.
- Srcaddrs []string
- Srcaddr.
- Status string
- Status. Valid values:
disable,enable.
- adom String
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - comments String
- Comments.
- dstaddrs List<String>
- Dstaddr.
- pac
File StringData - Pac-File-Data.
- pac
File StringName - Pac-File-Name.
- packages
Webproxy StringPacpolicy Id - an identifier for the resource with format {{policyid}}.
- pkg String
- Package.
- pkg
Folder StringPath - Pkg Folder Path.
- policyid Double
- Policyid.
- 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. - srcaddr6s List<String>
- Srcaddr6.
- srcaddrs List<String>
- Srcaddr.
- status String
- Status. Valid values:
disable,enable.
- adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - comments string
- Comments.
- dstaddrs string[]
- Dstaddr.
- pac
File stringData - Pac-File-Data.
- pac
File stringName - Pac-File-Name.
- packages
Webproxy stringPacpolicy Id - an identifier for the resource with format {{policyid}}.
- pkg string
- Package.
- pkg
Folder stringPath - Pkg Folder Path.
- policyid number
- Policyid.
- 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. - srcaddr6s string[]
- Srcaddr6.
- srcaddrs string[]
- Srcaddr.
- status string
- Status. Valid values:
disable,enable.
- adom str
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - comments str
- Comments.
- dstaddrs Sequence[str]
- Dstaddr.
- pac_
file_ strdata - Pac-File-Data.
- pac_
file_ strname - Pac-File-Name.
- packages_
webproxy_ strpacpolicy_ id - an identifier for the resource with format {{policyid}}.
- pkg str
- Package.
- pkg_
folder_ strpath - Pkg Folder Path.
- policyid float
- Policyid.
- 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. - srcaddr6s Sequence[str]
- Srcaddr6.
- srcaddrs Sequence[str]
- Srcaddr.
- status str
- Status. Valid values:
disable,enable.
- adom String
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - comments String
- Comments.
- dstaddrs List<String>
- Dstaddr.
- pac
File StringData - Pac-File-Data.
- pac
File StringName - Pac-File-Name.
- packages
Webproxy StringPacpolicy Id - an identifier for the resource with format {{policyid}}.
- pkg String
- Package.
- pkg
Folder StringPath - Pkg Folder Path.
- policyid Number
- Policyid.
- 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. - srcaddr6s List<String>
- Srcaddr6.
- srcaddrs List<String>
- Srcaddr.
- status String
- Status. Valid values:
disable,enable.
Import
Packages WebProxyPacPolicy 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/packagesWebproxyPacpolicy:PackagesWebproxyPacpolicy labelname {{policyid}}
$ unset “FORTIMANAGER_IMPORT_TABLE”
-> Hint: The scopetype and adom for import will directly inherit the scopetype and adom configuration of the provider.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- fortimanager fortinetdev/terraform-provider-fortimanager
- License
- Notes
- This Pulumi package is based on the
fortimanagerTerraform Provider.
published on Saturday, Mar 7, 2026 by fortinetdev
