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

fortimanager.ObjectWebfilterProfileYoutubechannelfilter

Explore with Pulumi AI

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

    YouTube channel filter.

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

    Create ObjectWebfilterProfileYoutubechannelfilter Resource

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

    Constructor syntax

    new ObjectWebfilterProfileYoutubechannelfilter(name: string, args: ObjectWebfilterProfileYoutubechannelfilterArgs, opts?: CustomResourceOptions);
    @overload
    def ObjectWebfilterProfileYoutubechannelfilter(resource_name: str,
                                                   args: ObjectWebfilterProfileYoutubechannelfilterArgs,
                                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def ObjectWebfilterProfileYoutubechannelfilter(resource_name: str,
                                                   opts: Optional[ResourceOptions] = None,
                                                   profile: Optional[str] = None,
                                                   adom: Optional[str] = None,
                                                   channel_id: Optional[str] = None,
                                                   comment: Optional[str] = None,
                                                   fosid: Optional[float] = None,
                                                   object_webfilter_profile_youtubechannelfilter_id: Optional[str] = None,
                                                   scopetype: Optional[str] = None)
    func NewObjectWebfilterProfileYoutubechannelfilter(ctx *Context, name string, args ObjectWebfilterProfileYoutubechannelfilterArgs, opts ...ResourceOption) (*ObjectWebfilterProfileYoutubechannelfilter, error)
    public ObjectWebfilterProfileYoutubechannelfilter(string name, ObjectWebfilterProfileYoutubechannelfilterArgs args, CustomResourceOptions? opts = null)
    public ObjectWebfilterProfileYoutubechannelfilter(String name, ObjectWebfilterProfileYoutubechannelfilterArgs args)
    public ObjectWebfilterProfileYoutubechannelfilter(String name, ObjectWebfilterProfileYoutubechannelfilterArgs args, CustomResourceOptions options)
    
    type: fortimanager:ObjectWebfilterProfileYoutubechannelfilter
    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 ObjectWebfilterProfileYoutubechannelfilterArgs
    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 ObjectWebfilterProfileYoutubechannelfilterArgs
    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 ObjectWebfilterProfileYoutubechannelfilterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ObjectWebfilterProfileYoutubechannelfilterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ObjectWebfilterProfileYoutubechannelfilterArgs
    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 objectWebfilterProfileYoutubechannelfilterResource = new Fortimanager.ObjectWebfilterProfileYoutubechannelfilter("objectWebfilterProfileYoutubechannelfilterResource", new()
    {
        Profile = "string",
        Adom = "string",
        ChannelId = "string",
        Comment = "string",
        Fosid = 0,
        ObjectWebfilterProfileYoutubechannelfilterId = "string",
        Scopetype = "string",
    });
    
    example, err := fortimanager.NewObjectWebfilterProfileYoutubechannelfilter(ctx, "objectWebfilterProfileYoutubechannelfilterResource", &fortimanager.ObjectWebfilterProfileYoutubechannelfilterArgs{
    Profile: pulumi.String("string"),
    Adom: pulumi.String("string"),
    ChannelId: pulumi.String("string"),
    Comment: pulumi.String("string"),
    Fosid: pulumi.Float64(0),
    ObjectWebfilterProfileYoutubechannelfilterId: pulumi.String("string"),
    Scopetype: pulumi.String("string"),
    })
    
    var objectWebfilterProfileYoutubechannelfilterResource = new ObjectWebfilterProfileYoutubechannelfilter("objectWebfilterProfileYoutubechannelfilterResource", ObjectWebfilterProfileYoutubechannelfilterArgs.builder()
        .profile("string")
        .adom("string")
        .channelId("string")
        .comment("string")
        .fosid(0)
        .objectWebfilterProfileYoutubechannelfilterId("string")
        .scopetype("string")
        .build());
    
    object_webfilter_profile_youtubechannelfilter_resource = fortimanager.ObjectWebfilterProfileYoutubechannelfilter("objectWebfilterProfileYoutubechannelfilterResource",
        profile="string",
        adom="string",
        channel_id="string",
        comment="string",
        fosid=0,
        object_webfilter_profile_youtubechannelfilter_id="string",
        scopetype="string")
    
    const objectWebfilterProfileYoutubechannelfilterResource = new fortimanager.ObjectWebfilterProfileYoutubechannelfilter("objectWebfilterProfileYoutubechannelfilterResource", {
        profile: "string",
        adom: "string",
        channelId: "string",
        comment: "string",
        fosid: 0,
        objectWebfilterProfileYoutubechannelfilterId: "string",
        scopetype: "string",
    });
    
    type: fortimanager:ObjectWebfilterProfileYoutubechannelfilter
    properties:
        adom: string
        channelId: string
        comment: string
        fosid: 0
        objectWebfilterProfileYoutubechannelfilterId: string
        profile: string
        scopetype: string
    

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

    Profile string
    Profile.
    Adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    ChannelId string
    YouTube channel ID to be filtered.
    Comment string
    Comment.
    Fosid double
    ID.
    ObjectWebfilterProfileYoutubechannelfilterId 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.
    Adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    ChannelId string
    YouTube channel ID to be filtered.
    Comment string
    Comment.
    Fosid float64
    ID.
    ObjectWebfilterProfileYoutubechannelfilterId 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.
    adom String
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    channelId String
    YouTube channel ID to be filtered.
    comment String
    Comment.
    fosid Double
    ID.
    objectWebfilterProfileYoutubechannelfilterId 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.
    adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    channelId string
    YouTube channel ID to be filtered.
    comment string
    Comment.
    fosid number
    ID.
    objectWebfilterProfileYoutubechannelfilterId 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.
    adom str
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    channel_id str
    YouTube channel ID to be filtered.
    comment str
    Comment.
    fosid float
    ID.
    object_webfilter_profile_youtubechannelfilter_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.
    adom String
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    channelId String
    YouTube channel ID to be filtered.
    comment String
    Comment.
    fosid Number
    ID.
    objectWebfilterProfileYoutubechannelfilterId 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 ObjectWebfilterProfileYoutubechannelfilter 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 ObjectWebfilterProfileYoutubechannelfilter Resource

    Get an existing ObjectWebfilterProfileYoutubechannelfilter 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?: ObjectWebfilterProfileYoutubechannelfilterState, opts?: CustomResourceOptions): ObjectWebfilterProfileYoutubechannelfilter
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            adom: Optional[str] = None,
            channel_id: Optional[str] = None,
            comment: Optional[str] = None,
            fosid: Optional[float] = None,
            object_webfilter_profile_youtubechannelfilter_id: Optional[str] = None,
            profile: Optional[str] = None,
            scopetype: Optional[str] = None) -> ObjectWebfilterProfileYoutubechannelfilter
    func GetObjectWebfilterProfileYoutubechannelfilter(ctx *Context, name string, id IDInput, state *ObjectWebfilterProfileYoutubechannelfilterState, opts ...ResourceOption) (*ObjectWebfilterProfileYoutubechannelfilter, error)
    public static ObjectWebfilterProfileYoutubechannelfilter Get(string name, Input<string> id, ObjectWebfilterProfileYoutubechannelfilterState? state, CustomResourceOptions? opts = null)
    public static ObjectWebfilterProfileYoutubechannelfilter get(String name, Output<String> id, ObjectWebfilterProfileYoutubechannelfilterState state, CustomResourceOptions options)
    resources:  _:    type: fortimanager:ObjectWebfilterProfileYoutubechannelfilter    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.
    ChannelId string
    YouTube channel ID to be filtered.
    Comment string
    Comment.
    Fosid double
    ID.
    ObjectWebfilterProfileYoutubechannelfilterId 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.
    Adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    ChannelId string
    YouTube channel ID to be filtered.
    Comment string
    Comment.
    Fosid float64
    ID.
    ObjectWebfilterProfileYoutubechannelfilterId 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.
    adom String
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    channelId String
    YouTube channel ID to be filtered.
    comment String
    Comment.
    fosid Double
    ID.
    objectWebfilterProfileYoutubechannelfilterId 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.
    adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    channelId string
    YouTube channel ID to be filtered.
    comment string
    Comment.
    fosid number
    ID.
    objectWebfilterProfileYoutubechannelfilterId 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.
    adom str
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    channel_id str
    YouTube channel ID to be filtered.
    comment str
    Comment.
    fosid float
    ID.
    object_webfilter_profile_youtubechannelfilter_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.
    adom String
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    channelId String
    YouTube channel ID to be filtered.
    comment String
    Comment.
    fosid Number
    ID.
    objectWebfilterProfileYoutubechannelfilterId 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

    ObjectWebfilter ProfileYoutubeChannelFilter 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/objectWebfilterProfileYoutubechannelfilter:ObjectWebfilterProfileYoutubechannelfilter 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