1. Packages
  2. Fortimanager Provider
  3. API Docs
  4. ObjectWebfilterProfileAntiphishInspectionentries
fortimanager 1.14.0 published on Tuesday, Apr 15, 2025 by fortinetdev

fortimanager.ObjectWebfilterProfileAntiphishInspectionentries

Explore with Pulumi AI

AntiPhishing entries.

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

Example Usage

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

const trname4 = new fortimanager.ObjectWebfilterProfile("trname4", {});
const trname = new fortimanager.ObjectWebfilterProfileAntiphishInspectionentries("trname", {
    action: "log",
    profile: trname4.name,
}, {
    dependsOn: [trname4],
});
Copy
import pulumi
import pulumi_fortimanager as fortimanager

trname4 = fortimanager.ObjectWebfilterProfile("trname4")
trname = fortimanager.ObjectWebfilterProfileAntiphishInspectionentries("trname",
    action="log",
    profile=trname4.name,
    opts = pulumi.ResourceOptions(depends_on=[trname4]))
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 {
		trname4, err := fortimanager.NewObjectWebfilterProfile(ctx, "trname4", nil)
		if err != nil {
			return err
		}
		_, err = fortimanager.NewObjectWebfilterProfileAntiphishInspectionentries(ctx, "trname", &fortimanager.ObjectWebfilterProfileAntiphishInspectionentriesArgs{
			Action:  pulumi.String("log"),
			Profile: trname4.Name,
		}, pulumi.DependsOn([]pulumi.Resource{
			trname4,
		}))
		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 trname4 = new Fortimanager.ObjectWebfilterProfile("trname4");

    var trname = new Fortimanager.ObjectWebfilterProfileAntiphishInspectionentries("trname", new()
    {
        Action = "log",
        Profile = trname4.Name,
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            trname4,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.ObjectWebfilterProfile;
import com.pulumi.fortimanager.ObjectWebfilterProfileAntiphishInspectionentries;
import com.pulumi.fortimanager.ObjectWebfilterProfileAntiphishInspectionentriesArgs;
import com.pulumi.resources.CustomResourceOptions;
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 trname4 = new ObjectWebfilterProfile("trname4");

        var trname = new ObjectWebfilterProfileAntiphishInspectionentries("trname", ObjectWebfilterProfileAntiphishInspectionentriesArgs.builder()
            .action("log")
            .profile(trname4.name())
            .build(), CustomResourceOptions.builder()
                .dependsOn(trname4)
                .build());

    }
}
Copy
resources:
  trname:
    type: fortimanager:ObjectWebfilterProfileAntiphishInspectionentries
    properties:
      action: log
      profile: ${trname4.name}
    options:
      dependsOn:
        - ${trname4}
  trname4:
    type: fortimanager:ObjectWebfilterProfile
Copy

Create ObjectWebfilterProfileAntiphishInspectionentries Resource

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

Constructor syntax

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

@overload
def ObjectWebfilterProfileAntiphishInspectionentries(resource_name: str,
                                                     opts: Optional[ResourceOptions] = None,
                                                     profile: Optional[str] = None,
                                                     action: Optional[str] = None,
                                                     adom: Optional[str] = None,
                                                     fortiguard_categories: Optional[Sequence[str]] = None,
                                                     name: Optional[str] = None,
                                                     object_webfilter_profile_antiphish_inspectionentries_id: Optional[str] = None,
                                                     scopetype: Optional[str] = None)
func NewObjectWebfilterProfileAntiphishInspectionentries(ctx *Context, name string, args ObjectWebfilterProfileAntiphishInspectionentriesArgs, opts ...ResourceOption) (*ObjectWebfilterProfileAntiphishInspectionentries, error)
public ObjectWebfilterProfileAntiphishInspectionentries(string name, ObjectWebfilterProfileAntiphishInspectionentriesArgs args, CustomResourceOptions? opts = null)
public ObjectWebfilterProfileAntiphishInspectionentries(String name, ObjectWebfilterProfileAntiphishInspectionentriesArgs args)
public ObjectWebfilterProfileAntiphishInspectionentries(String name, ObjectWebfilterProfileAntiphishInspectionentriesArgs args, CustomResourceOptions options)
type: fortimanager:ObjectWebfilterProfileAntiphishInspectionentries
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. ObjectWebfilterProfileAntiphishInspectionentriesArgs
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. ObjectWebfilterProfileAntiphishInspectionentriesArgs
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. ObjectWebfilterProfileAntiphishInspectionentriesArgs
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. ObjectWebfilterProfileAntiphishInspectionentriesArgs
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. ObjectWebfilterProfileAntiphishInspectionentriesArgs
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 objectWebfilterProfileAntiphishInspectionentriesResource = new Fortimanager.ObjectWebfilterProfileAntiphishInspectionentries("objectWebfilterProfileAntiphishInspectionentriesResource", new()
{
    Profile = "string",
    Action = "string",
    Adom = "string",
    FortiguardCategories = new[]
    {
        "string",
    },
    Name = "string",
    ObjectWebfilterProfileAntiphishInspectionentriesId = "string",
    Scopetype = "string",
});
Copy
example, err := fortimanager.NewObjectWebfilterProfileAntiphishInspectionentries(ctx, "objectWebfilterProfileAntiphishInspectionentriesResource", &fortimanager.ObjectWebfilterProfileAntiphishInspectionentriesArgs{
Profile: pulumi.String("string"),
Action: pulumi.String("string"),
Adom: pulumi.String("string"),
FortiguardCategories: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
ObjectWebfilterProfileAntiphishInspectionentriesId: pulumi.String("string"),
Scopetype: pulumi.String("string"),
})
Copy
var objectWebfilterProfileAntiphishInspectionentriesResource = new ObjectWebfilterProfileAntiphishInspectionentries("objectWebfilterProfileAntiphishInspectionentriesResource", ObjectWebfilterProfileAntiphishInspectionentriesArgs.builder()
    .profile("string")
    .action("string")
    .adom("string")
    .fortiguardCategories("string")
    .name("string")
    .objectWebfilterProfileAntiphishInspectionentriesId("string")
    .scopetype("string")
    .build());
Copy
object_webfilter_profile_antiphish_inspectionentries_resource = fortimanager.ObjectWebfilterProfileAntiphishInspectionentries("objectWebfilterProfileAntiphishInspectionentriesResource",
    profile="string",
    action="string",
    adom="string",
    fortiguard_categories=["string"],
    name="string",
    object_webfilter_profile_antiphish_inspectionentries_id="string",
    scopetype="string")
Copy
const objectWebfilterProfileAntiphishInspectionentriesResource = new fortimanager.ObjectWebfilterProfileAntiphishInspectionentries("objectWebfilterProfileAntiphishInspectionentriesResource", {
    profile: "string",
    action: "string",
    adom: "string",
    fortiguardCategories: ["string"],
    name: "string",
    objectWebfilterProfileAntiphishInspectionentriesId: "string",
    scopetype: "string",
});
Copy
type: fortimanager:ObjectWebfilterProfileAntiphishInspectionentries
properties:
    action: string
    adom: string
    fortiguardCategories:
        - string
    name: string
    objectWebfilterProfileAntiphishInspectionentriesId: string
    profile: string
    scopetype: string
Copy

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

Profile This property is required. string
Profile.
Action string
Action to be taken upon an AntiPhishing match. Valid values: log, block, exempt.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
FortiguardCategories List<string>
FortiGuard category to match.
Name string
Inspection target name.
ObjectWebfilterProfileAntiphishInspectionentriesId string
an identifier for the resource with format {{name}}.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Profile This property is required. string
Profile.
Action string
Action to be taken upon an AntiPhishing match. Valid values: log, block, exempt.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
FortiguardCategories []string
FortiGuard category to match.
Name string
Inspection target name.
ObjectWebfilterProfileAntiphishInspectionentriesId string
an identifier for the resource with format {{name}}.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
profile This property is required. String
Profile.
action String
Action to be taken upon an AntiPhishing match. Valid values: log, block, exempt.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
fortiguardCategories List<String>
FortiGuard category to match.
name String
Inspection target name.
objectWebfilterProfileAntiphishInspectionentriesId String
an identifier for the resource with format {{name}}.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
profile This property is required. string
Profile.
action string
Action to be taken upon an AntiPhishing match. Valid values: log, block, exempt.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
fortiguardCategories string[]
FortiGuard category to match.
name string
Inspection target name.
objectWebfilterProfileAntiphishInspectionentriesId string
an identifier for the resource with format {{name}}.
scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
profile This property is required. str
Profile.
action str
Action to be taken upon an AntiPhishing match. Valid values: log, block, exempt.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
fortiguard_categories Sequence[str]
FortiGuard category to match.
name str
Inspection target name.
object_webfilter_profile_antiphish_inspectionentries_id str
an identifier for the resource with format {{name}}.
scopetype str
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
profile This property is required. String
Profile.
action String
Action to be taken upon an AntiPhishing match. Valid values: log, block, exempt.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
fortiguardCategories List<String>
FortiGuard category to match.
name String
Inspection target name.
objectWebfilterProfileAntiphishInspectionentriesId String
an identifier for the resource with format {{name}}.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.

Outputs

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

Get an existing ObjectWebfilterProfileAntiphishInspectionentries 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?: ObjectWebfilterProfileAntiphishInspectionentriesState, opts?: CustomResourceOptions): ObjectWebfilterProfileAntiphishInspectionentries
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        action: Optional[str] = None,
        adom: Optional[str] = None,
        fortiguard_categories: Optional[Sequence[str]] = None,
        name: Optional[str] = None,
        object_webfilter_profile_antiphish_inspectionentries_id: Optional[str] = None,
        profile: Optional[str] = None,
        scopetype: Optional[str] = None) -> ObjectWebfilterProfileAntiphishInspectionentries
func GetObjectWebfilterProfileAntiphishInspectionentries(ctx *Context, name string, id IDInput, state *ObjectWebfilterProfileAntiphishInspectionentriesState, opts ...ResourceOption) (*ObjectWebfilterProfileAntiphishInspectionentries, error)
public static ObjectWebfilterProfileAntiphishInspectionentries Get(string name, Input<string> id, ObjectWebfilterProfileAntiphishInspectionentriesState? state, CustomResourceOptions? opts = null)
public static ObjectWebfilterProfileAntiphishInspectionentries get(String name, Output<String> id, ObjectWebfilterProfileAntiphishInspectionentriesState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectWebfilterProfileAntiphishInspectionentries    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:
Action string
Action to be taken upon an AntiPhishing match. Valid values: log, block, exempt.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
FortiguardCategories List<string>
FortiGuard category to match.
Name string
Inspection target name.
ObjectWebfilterProfileAntiphishInspectionentriesId string
an identifier for the resource with format {{name}}.
Profile string
Profile.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Action string
Action to be taken upon an AntiPhishing match. Valid values: log, block, exempt.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
FortiguardCategories []string
FortiGuard category to match.
Name string
Inspection target name.
ObjectWebfilterProfileAntiphishInspectionentriesId string
an identifier for the resource with format {{name}}.
Profile string
Profile.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
action String
Action to be taken upon an AntiPhishing match. Valid values: log, block, exempt.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
fortiguardCategories List<String>
FortiGuard category to match.
name String
Inspection target name.
objectWebfilterProfileAntiphishInspectionentriesId String
an identifier for the resource with format {{name}}.
profile String
Profile.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
action string
Action to be taken upon an AntiPhishing match. Valid values: log, block, exempt.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
fortiguardCategories string[]
FortiGuard category to match.
name string
Inspection target name.
objectWebfilterProfileAntiphishInspectionentriesId string
an identifier for the resource with format {{name}}.
profile string
Profile.
scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
action str
Action to be taken upon an AntiPhishing match. Valid values: log, block, exempt.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
fortiguard_categories Sequence[str]
FortiGuard category to match.
name str
Inspection target name.
object_webfilter_profile_antiphish_inspectionentries_id str
an identifier for the resource with format {{name}}.
profile str
Profile.
scopetype str
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
action String
Action to be taken upon an AntiPhishing match. Valid values: log, block, exempt.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
fortiguardCategories List<String>
FortiGuard category to match.
name String
Inspection target name.
objectWebfilterProfileAntiphishInspectionentriesId String
an identifier for the resource with format {{name}}.
profile String
Profile.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.

Import

ObjectWebfilter ProfileAntiphishInspectionEntries can be imported using any of these accepted formats:

Set import_options = [“profile=YOUR_VALUE”] in the provider section.

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/objectWebfilterProfileAntiphishInspectionentries:ObjectWebfilterProfileAntiphishInspectionentries labelname {{name}}
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.