1. Packages
  2. Fortimanager Provider
  3. API Docs
  4. PackagesWebproxyPacpolicy
Viewing docs for fortimanager 1.16.0
published on Saturday, Mar 7, 2026 by fortinetdev
Viewing docs for fortimanager 1.16.0
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 scopetype is adom, otherwise the value of adom in the provider will be inherited.
    Comments string
    Comments.
    Dstaddrs List<string>
    Dstaddr.
    PacFileData string
    Pac-File-Data.
    PacFileName string
    Pac-File-Name.
    PackagesWebproxyPacpolicyId string
    an identifier for the resource with format {{policyid}}.
    PkgFolderPath string
    Pkg Folder Path.
    Policyid double
    Policyid.
    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.
    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 scopetype is adom, otherwise the value of adom in the provider will be inherited.
    Comments string
    Comments.
    Dstaddrs []string
    Dstaddr.
    PacFileData string
    Pac-File-Data.
    PacFileName string
    Pac-File-Name.
    PackagesWebproxyPacpolicyId string
    an identifier for the resource with format {{policyid}}.
    PkgFolderPath string
    Pkg Folder Path.
    Policyid float64
    Policyid.
    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.
    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 scopetype is adom, otherwise the value of adom in the provider will be inherited.
    comments String
    Comments.
    dstaddrs List<String>
    Dstaddr.
    pacFileData String
    Pac-File-Data.
    pacFileName String
    Pac-File-Name.
    packagesWebproxyPacpolicyId String
    an identifier for the resource with format {{policyid}}.
    pkgFolderPath String
    Pkg Folder Path.
    policyid Double
    Policyid.
    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.
    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 scopetype is adom, otherwise the value of adom in the provider will be inherited.
    comments string
    Comments.
    dstaddrs string[]
    Dstaddr.
    pacFileData string
    Pac-File-Data.
    pacFileName string
    Pac-File-Name.
    packagesWebproxyPacpolicyId string
    an identifier for the resource with format {{policyid}}.
    pkgFolderPath string
    Pkg Folder Path.
    policyid number
    Policyid.
    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.
    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 scopetype is adom, otherwise the value of adom in the provider will be inherited.
    comments str
    Comments.
    dstaddrs Sequence[str]
    Dstaddr.
    pac_file_data str
    Pac-File-Data.
    pac_file_name str
    Pac-File-Name.
    packages_webproxy_pacpolicy_id str
    an identifier for the resource with format {{policyid}}.
    pkg_folder_path str
    Pkg Folder Path.
    policyid float
    Policyid.
    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.
    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 scopetype is adom, otherwise the value of adom in the provider will be inherited.
    comments String
    Comments.
    dstaddrs List<String>
    Dstaddr.
    pacFileData String
    Pac-File-Data.
    pacFileName String
    Pac-File-Name.
    packagesWebproxyPacpolicyId String
    an identifier for the resource with format {{policyid}}.
    pkgFolderPath String
    Pkg Folder Path.
    policyid Number
    Policyid.
    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.
    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) -> PackagesWebproxyPacpolicy
    func 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.
    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
    Comments.
    Dstaddrs List<string>
    Dstaddr.
    PacFileData string
    Pac-File-Data.
    PacFileName string
    Pac-File-Name.
    PackagesWebproxyPacpolicyId string
    an identifier for the resource with format {{policyid}}.
    Pkg string
    Package.
    PkgFolderPath string
    Pkg Folder Path.
    Policyid double
    Policyid.
    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.
    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 scopetype is adom, otherwise the value of adom in the provider will be inherited.
    Comments string
    Comments.
    Dstaddrs []string
    Dstaddr.
    PacFileData string
    Pac-File-Data.
    PacFileName string
    Pac-File-Name.
    PackagesWebproxyPacpolicyId string
    an identifier for the resource with format {{policyid}}.
    Pkg string
    Package.
    PkgFolderPath string
    Pkg Folder Path.
    Policyid float64
    Policyid.
    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.
    Srcaddr6s []string
    Srcaddr6.
    Srcaddrs []string
    Srcaddr.
    Status string
    Status. Valid values: disable, enable.
    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
    Comments.
    dstaddrs List<String>
    Dstaddr.
    pacFileData String
    Pac-File-Data.
    pacFileName String
    Pac-File-Name.
    packagesWebproxyPacpolicyId String
    an identifier for the resource with format {{policyid}}.
    pkg String
    Package.
    pkgFolderPath String
    Pkg Folder Path.
    policyid Double
    Policyid.
    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.
    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 scopetype is adom, otherwise the value of adom in the provider will be inherited.
    comments string
    Comments.
    dstaddrs string[]
    Dstaddr.
    pacFileData string
    Pac-File-Data.
    pacFileName string
    Pac-File-Name.
    packagesWebproxyPacpolicyId string
    an identifier for the resource with format {{policyid}}.
    pkg string
    Package.
    pkgFolderPath string
    Pkg Folder Path.
    policyid number
    Policyid.
    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.
    srcaddr6s string[]
    Srcaddr6.
    srcaddrs string[]
    Srcaddr.
    status string
    Status. Valid values: disable, enable.
    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
    Comments.
    dstaddrs Sequence[str]
    Dstaddr.
    pac_file_data str
    Pac-File-Data.
    pac_file_name str
    Pac-File-Name.
    packages_webproxy_pacpolicy_id str
    an identifier for the resource with format {{policyid}}.
    pkg str
    Package.
    pkg_folder_path str
    Pkg Folder Path.
    policyid float
    Policyid.
    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.
    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 scopetype is adom, otherwise the value of adom in the provider will be inherited.
    comments String
    Comments.
    dstaddrs List<String>
    Dstaddr.
    pacFileData String
    Pac-File-Data.
    pacFileName String
    Pac-File-Name.
    packagesWebproxyPacpolicyId String
    an identifier for the resource with format {{policyid}}.
    pkg String
    Package.
    pkgFolderPath String
    Pkg Folder Path.
    policyid Number
    Policyid.
    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.
    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 fortimanager Terraform Provider.
    Viewing docs for fortimanager 1.16.0
    published on Saturday, Mar 7, 2026 by fortinetdev
      Try Pulumi Cloud free. Your team will thank you.