1. Packages
  2. Fortimanager Provider
  3. API Docs
  4. ObjectVideofilterProfileFortiguardcategoryFilters
fortimanager 1.13.0 published on Thursday, Mar 13, 2025 by fortinetdev

fortimanager.ObjectVideofilterProfileFortiguardcategoryFilters

Explore with Pulumi AI

fortimanager logo
fortimanager 1.13.0 published on Thursday, Mar 13, 2025 by fortinetdev

    Configure VideoFilter FortiGuard category.

    This resource is a sub resource for variable filters of resource fortimanager.ObjectVideofilterProfileFortiguardcategory. 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 trnameObjectVideofilterProfile = new fortimanager.ObjectVideofilterProfile("trnameObjectVideofilterProfile", {});
    const trnameObjectVideofilterProfileFortiguardcategoryFilters = new fortimanager.ObjectVideofilterProfileFortiguardcategoryFilters("trnameObjectVideofilterProfileFortiguardcategoryFilters", {
        profile: trnameObjectVideofilterProfile.name,
        action: "monitor",
        fosid: 1,
        log: "enable",
    }, {
        dependsOn: [trnameObjectVideofilterProfile],
    });
    
    import pulumi
    import pulumi_fortimanager as fortimanager
    
    trname_object_videofilter_profile = fortimanager.ObjectVideofilterProfile("trnameObjectVideofilterProfile")
    trname_object_videofilter_profile_fortiguardcategory_filters = fortimanager.ObjectVideofilterProfileFortiguardcategoryFilters("trnameObjectVideofilterProfileFortiguardcategoryFilters",
        profile=trname_object_videofilter_profile.name,
        action="monitor",
        fosid=1,
        log="enable",
        opts = pulumi.ResourceOptions(depends_on=[trname_object_videofilter_profile]))
    
    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 {
    		trnameObjectVideofilterProfile, err := fortimanager.NewObjectVideofilterProfile(ctx, "trnameObjectVideofilterProfile", nil)
    		if err != nil {
    			return err
    		}
    		_, err = fortimanager.NewObjectVideofilterProfileFortiguardcategoryFilters(ctx, "trnameObjectVideofilterProfileFortiguardcategoryFilters", &fortimanager.ObjectVideofilterProfileFortiguardcategoryFiltersArgs{
    			Profile: trnameObjectVideofilterProfile.Name,
    			Action:  pulumi.String("monitor"),
    			Fosid:   pulumi.Float64(1),
    			Log:     pulumi.String("enable"),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			trnameObjectVideofilterProfile,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Fortimanager = Pulumi.Fortimanager;
    
    return await Deployment.RunAsync(() => 
    {
        var trnameObjectVideofilterProfile = new Fortimanager.ObjectVideofilterProfile("trnameObjectVideofilterProfile");
    
        var trnameObjectVideofilterProfileFortiguardcategoryFilters = new Fortimanager.ObjectVideofilterProfileFortiguardcategoryFilters("trnameObjectVideofilterProfileFortiguardcategoryFilters", new()
        {
            Profile = trnameObjectVideofilterProfile.Name,
            Action = "monitor",
            Fosid = 1,
            Log = "enable",
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                trnameObjectVideofilterProfile,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortimanager.ObjectVideofilterProfile;
    import com.pulumi.fortimanager.ObjectVideofilterProfileFortiguardcategoryFilters;
    import com.pulumi.fortimanager.ObjectVideofilterProfileFortiguardcategoryFiltersArgs;
    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 trnameObjectVideofilterProfile = new ObjectVideofilterProfile("trnameObjectVideofilterProfile");
    
            var trnameObjectVideofilterProfileFortiguardcategoryFilters = new ObjectVideofilterProfileFortiguardcategoryFilters("trnameObjectVideofilterProfileFortiguardcategoryFilters", ObjectVideofilterProfileFortiguardcategoryFiltersArgs.builder()
                .profile(trnameObjectVideofilterProfile.name())
                .action("monitor")
                .fosid(1)
                .log("enable")
                .build(), CustomResourceOptions.builder()
                    .dependsOn(trnameObjectVideofilterProfile)
                    .build());
    
        }
    }
    
    resources:
      trnameObjectVideofilterProfileFortiguardcategoryFilters:
        type: fortimanager:ObjectVideofilterProfileFortiguardcategoryFilters
        properties:
          profile: ${trnameObjectVideofilterProfile.name}
          action: monitor
          fosid: 1
          log: enable
        options:
          dependsOn:
            - ${trnameObjectVideofilterProfile}
      trnameObjectVideofilterProfile:
        type: fortimanager:ObjectVideofilterProfile
    

    Create ObjectVideofilterProfileFortiguardcategoryFilters Resource

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

    Constructor syntax

    new ObjectVideofilterProfileFortiguardcategoryFilters(name: string, args: ObjectVideofilterProfileFortiguardcategoryFiltersArgs, opts?: CustomResourceOptions);
    @overload
    def ObjectVideofilterProfileFortiguardcategoryFilters(resource_name: str,
                                                          args: ObjectVideofilterProfileFortiguardcategoryFiltersArgs,
                                                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def ObjectVideofilterProfileFortiguardcategoryFilters(resource_name: str,
                                                          opts: Optional[ResourceOptions] = None,
                                                          profile: Optional[str] = None,
                                                          action: Optional[str] = None,
                                                          adom: Optional[str] = None,
                                                          category_id: Optional[float] = None,
                                                          fosid: Optional[float] = None,
                                                          log: Optional[str] = None,
                                                          object_videofilter_profile_fortiguardcategory_filters_id: Optional[str] = None,
                                                          scopetype: Optional[str] = None)
    func NewObjectVideofilterProfileFortiguardcategoryFilters(ctx *Context, name string, args ObjectVideofilterProfileFortiguardcategoryFiltersArgs, opts ...ResourceOption) (*ObjectVideofilterProfileFortiguardcategoryFilters, error)
    public ObjectVideofilterProfileFortiguardcategoryFilters(string name, ObjectVideofilterProfileFortiguardcategoryFiltersArgs args, CustomResourceOptions? opts = null)
    public ObjectVideofilterProfileFortiguardcategoryFilters(String name, ObjectVideofilterProfileFortiguardcategoryFiltersArgs args)
    public ObjectVideofilterProfileFortiguardcategoryFilters(String name, ObjectVideofilterProfileFortiguardcategoryFiltersArgs args, CustomResourceOptions options)
    
    type: fortimanager:ObjectVideofilterProfileFortiguardcategoryFilters
    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 ObjectVideofilterProfileFortiguardcategoryFiltersArgs
    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 ObjectVideofilterProfileFortiguardcategoryFiltersArgs
    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 ObjectVideofilterProfileFortiguardcategoryFiltersArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ObjectVideofilterProfileFortiguardcategoryFiltersArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ObjectVideofilterProfileFortiguardcategoryFiltersArgs
    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 objectVideofilterProfileFortiguardcategoryFiltersResource = new Fortimanager.ObjectVideofilterProfileFortiguardcategoryFilters("objectVideofilterProfileFortiguardcategoryFiltersResource", new()
    {
        Profile = "string",
        Action = "string",
        Adom = "string",
        CategoryId = 0,
        Fosid = 0,
        Log = "string",
        ObjectVideofilterProfileFortiguardcategoryFiltersId = "string",
        Scopetype = "string",
    });
    
    example, err := fortimanager.NewObjectVideofilterProfileFortiguardcategoryFilters(ctx, "objectVideofilterProfileFortiguardcategoryFiltersResource", &fortimanager.ObjectVideofilterProfileFortiguardcategoryFiltersArgs{
    Profile: pulumi.String("string"),
    Action: pulumi.String("string"),
    Adom: pulumi.String("string"),
    CategoryId: pulumi.Float64(0),
    Fosid: pulumi.Float64(0),
    Log: pulumi.String("string"),
    ObjectVideofilterProfileFortiguardcategoryFiltersId: pulumi.String("string"),
    Scopetype: pulumi.String("string"),
    })
    
    var objectVideofilterProfileFortiguardcategoryFiltersResource = new ObjectVideofilterProfileFortiguardcategoryFilters("objectVideofilterProfileFortiguardcategoryFiltersResource", ObjectVideofilterProfileFortiguardcategoryFiltersArgs.builder()
        .profile("string")
        .action("string")
        .adom("string")
        .categoryId(0)
        .fosid(0)
        .log("string")
        .objectVideofilterProfileFortiguardcategoryFiltersId("string")
        .scopetype("string")
        .build());
    
    object_videofilter_profile_fortiguardcategory_filters_resource = fortimanager.ObjectVideofilterProfileFortiguardcategoryFilters("objectVideofilterProfileFortiguardcategoryFiltersResource",
        profile="string",
        action="string",
        adom="string",
        category_id=0,
        fosid=0,
        log="string",
        object_videofilter_profile_fortiguardcategory_filters_id="string",
        scopetype="string")
    
    const objectVideofilterProfileFortiguardcategoryFiltersResource = new fortimanager.ObjectVideofilterProfileFortiguardcategoryFilters("objectVideofilterProfileFortiguardcategoryFiltersResource", {
        profile: "string",
        action: "string",
        adom: "string",
        categoryId: 0,
        fosid: 0,
        log: "string",
        objectVideofilterProfileFortiguardcategoryFiltersId: "string",
        scopetype: "string",
    });
    
    type: fortimanager:ObjectVideofilterProfileFortiguardcategoryFilters
    properties:
        action: string
        adom: string
        categoryId: 0
        fosid: 0
        log: string
        objectVideofilterProfileFortiguardcategoryFiltersId: string
        profile: string
        scopetype: string
    

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

    Profile string
    Profile.
    Action string
    VideoFilter action. Valid values: block, bypass, monitor.
    Adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    CategoryId double
    Category ID.
    Fosid double
    ID.
    Log string
    Enable/disable logging. Valid values: disable, enable.
    ObjectVideofilterProfileFortiguardcategoryFiltersId string
    an identifier for the resource with format {{fosid}}.
    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 string
    Profile.
    Action string
    VideoFilter action. Valid values: block, bypass, monitor.
    Adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    CategoryId float64
    Category ID.
    Fosid float64
    ID.
    Log string
    Enable/disable logging. Valid values: disable, enable.
    ObjectVideofilterProfileFortiguardcategoryFiltersId string
    an identifier for the resource with format {{fosid}}.
    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 String
    Profile.
    action String
    VideoFilter action. Valid values: block, bypass, monitor.
    adom String
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    categoryId Double
    Category ID.
    fosid Double
    ID.
    log String
    Enable/disable logging. Valid values: disable, enable.
    objectVideofilterProfileFortiguardcategoryFiltersId String
    an identifier for the resource with format {{fosid}}.
    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 string
    Profile.
    action string
    VideoFilter action. Valid values: block, bypass, monitor.
    adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    categoryId number
    Category ID.
    fosid number
    ID.
    log string
    Enable/disable logging. Valid values: disable, enable.
    objectVideofilterProfileFortiguardcategoryFiltersId string
    an identifier for the resource with format {{fosid}}.
    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 str
    Profile.
    action str
    VideoFilter action. Valid values: block, bypass, monitor.
    adom str
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    category_id float
    Category ID.
    fosid float
    ID.
    log str
    Enable/disable logging. Valid values: disable, enable.
    object_videofilter_profile_fortiguardcategory_filters_id str
    an identifier for the resource with format {{fosid}}.
    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 String
    Profile.
    action String
    VideoFilter action. Valid values: block, bypass, monitor.
    adom String
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    categoryId Number
    Category ID.
    fosid Number
    ID.
    log String
    Enable/disable logging. Valid values: disable, enable.
    objectVideofilterProfileFortiguardcategoryFiltersId String
    an identifier for the resource with format {{fosid}}.
    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 ObjectVideofilterProfileFortiguardcategoryFilters 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 ObjectVideofilterProfileFortiguardcategoryFilters Resource

    Get an existing ObjectVideofilterProfileFortiguardcategoryFilters 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?: ObjectVideofilterProfileFortiguardcategoryFiltersState, opts?: CustomResourceOptions): ObjectVideofilterProfileFortiguardcategoryFilters
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[str] = None,
            adom: Optional[str] = None,
            category_id: Optional[float] = None,
            fosid: Optional[float] = None,
            log: Optional[str] = None,
            object_videofilter_profile_fortiguardcategory_filters_id: Optional[str] = None,
            profile: Optional[str] = None,
            scopetype: Optional[str] = None) -> ObjectVideofilterProfileFortiguardcategoryFilters
    func GetObjectVideofilterProfileFortiguardcategoryFilters(ctx *Context, name string, id IDInput, state *ObjectVideofilterProfileFortiguardcategoryFiltersState, opts ...ResourceOption) (*ObjectVideofilterProfileFortiguardcategoryFilters, error)
    public static ObjectVideofilterProfileFortiguardcategoryFilters Get(string name, Input<string> id, ObjectVideofilterProfileFortiguardcategoryFiltersState? state, CustomResourceOptions? opts = null)
    public static ObjectVideofilterProfileFortiguardcategoryFilters get(String name, Output<String> id, ObjectVideofilterProfileFortiguardcategoryFiltersState state, CustomResourceOptions options)
    resources:  _:    type: fortimanager:ObjectVideofilterProfileFortiguardcategoryFilters    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:
    Action string
    VideoFilter action. Valid values: block, bypass, monitor.
    Adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    CategoryId double
    Category ID.
    Fosid double
    ID.
    Log string
    Enable/disable logging. Valid values: disable, enable.
    ObjectVideofilterProfileFortiguardcategoryFiltersId string
    an identifier for the resource with format {{fosid}}.
    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
    VideoFilter action. Valid values: block, bypass, monitor.
    Adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    CategoryId float64
    Category ID.
    Fosid float64
    ID.
    Log string
    Enable/disable logging. Valid values: disable, enable.
    ObjectVideofilterProfileFortiguardcategoryFiltersId string
    an identifier for the resource with format {{fosid}}.
    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
    VideoFilter action. Valid values: block, bypass, monitor.
    adom String
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    categoryId Double
    Category ID.
    fosid Double
    ID.
    log String
    Enable/disable logging. Valid values: disable, enable.
    objectVideofilterProfileFortiguardcategoryFiltersId String
    an identifier for the resource with format {{fosid}}.
    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
    VideoFilter action. Valid values: block, bypass, monitor.
    adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    categoryId number
    Category ID.
    fosid number
    ID.
    log string
    Enable/disable logging. Valid values: disable, enable.
    objectVideofilterProfileFortiguardcategoryFiltersId string
    an identifier for the resource with format {{fosid}}.
    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
    VideoFilter action. Valid values: block, bypass, monitor.
    adom str
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    category_id float
    Category ID.
    fosid float
    ID.
    log str
    Enable/disable logging. Valid values: disable, enable.
    object_videofilter_profile_fortiguardcategory_filters_id str
    an identifier for the resource with format {{fosid}}.
    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
    VideoFilter action. Valid values: block, bypass, monitor.
    adom String
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    categoryId Number
    Category ID.
    fosid Number
    ID.
    log String
    Enable/disable logging. Valid values: disable, enable.
    objectVideofilterProfileFortiguardcategoryFiltersId String
    an identifier for the resource with format {{fosid}}.
    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

    ObjectVideofilter ProfileFortiguardCategoryFilters 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/objectVideofilterProfileFortiguardcategoryFilters:ObjectVideofilterProfileFortiguardcategoryFilters labelname {{fosid}}
    

    $ 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.
    fortimanager logo
    fortimanager 1.13.0 published on Thursday, Mar 13, 2025 by fortinetdev