1. Packages
  2. Fortios
  3. API Docs
  4. filter
  5. filter/web
  6. Override
Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse

fortios.filter/web.Override

Explore with Pulumi AI

fortios logo
Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse

    Configure FortiGuard Web Filter administrative overrides.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fortios from "@pulumiverse/fortios";
    
    const trname = new fortios.filter.web.Override("trname", {
        expires: "2021/03/16 19:18:25",
        fosid: 1,
        ip: "69.101.119.0",
        ip6: "4565:7700::",
        newProfile: "monitor-all",
        oldProfile: "default",
        scope: "user",
        status: "disable",
        user: "Eew",
    });
    
    import pulumi
    import pulumiverse_fortios as fortios
    
    trname = fortios.filter.web.Override("trname",
        expires="2021/03/16 19:18:25",
        fosid=1,
        ip="69.101.119.0",
        ip6="4565:7700::",
        new_profile="monitor-all",
        old_profile="default",
        scope="user",
        status="disable",
        user="Eew")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/filter"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := filter.NewOverride(ctx, "trname", &filter.OverrideArgs{
    			Expires:    pulumi.String("2021/03/16 19:18:25"),
    			Fosid:      pulumi.Int(1),
    			Ip:         pulumi.String("69.101.119.0"),
    			Ip6:        pulumi.String("4565:7700::"),
    			NewProfile: pulumi.String("monitor-all"),
    			OldProfile: pulumi.String("default"),
    			Scope:      pulumi.String("user"),
    			Status:     pulumi.String("disable"),
    			User:       pulumi.String("Eew"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Fortios = Pulumiverse.Fortios;
    
    return await Deployment.RunAsync(() => 
    {
        var trname = new Fortios.Filter.Web.Override("trname", new()
        {
            Expires = "2021/03/16 19:18:25",
            Fosid = 1,
            Ip = "69.101.119.0",
            Ip6 = "4565:7700::",
            NewProfile = "monitor-all",
            OldProfile = "default",
            Scope = "user",
            Status = "disable",
            User = "Eew",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortios.filter.Override;
    import com.pulumi.fortios.filter.OverrideArgs;
    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 trname = new Override("trname", OverrideArgs.builder()
                .expires("2021/03/16 19:18:25")
                .fosid(1)
                .ip("69.101.119.0")
                .ip6("4565:7700::")
                .newProfile("monitor-all")
                .oldProfile("default")
                .scope("user")
                .status("disable")
                .user("Eew")
                .build());
    
        }
    }
    
    resources:
      trname:
        type: fortios:filter/web:Override
        properties:
          expires: 2021/03/16 19:18:25
          fosid: 1
          ip: 69.101.119.0
          ip6: '4565:7700::'
          newProfile: monitor-all
          oldProfile: default
          scope: user
          status: disable
          user: Eew
    

    Create Override Resource

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

    Constructor syntax

    new Override(name: string, args: OverrideArgs, opts?: CustomResourceOptions);
    @overload
    def Override(resource_name: str,
                 args: OverrideArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Override(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 expires: Optional[str] = None,
                 new_profile: Optional[str] = None,
                 old_profile: Optional[str] = None,
                 user: Optional[str] = None,
                 fosid: Optional[int] = None,
                 initiator: Optional[str] = None,
                 ip: Optional[str] = None,
                 ip6: Optional[str] = None,
                 scope: Optional[str] = None,
                 status: Optional[str] = None,
                 user_group: Optional[str] = None,
                 vdomparam: Optional[str] = None)
    func NewOverride(ctx *Context, name string, args OverrideArgs, opts ...ResourceOption) (*Override, error)
    public Override(string name, OverrideArgs args, CustomResourceOptions? opts = null)
    public Override(String name, OverrideArgs args)
    public Override(String name, OverrideArgs args, CustomResourceOptions options)
    
    type: fortios:filter/web/override:Override
    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 OverrideArgs
    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 OverrideArgs
    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 OverrideArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OverrideArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OverrideArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Override Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Override resource accepts the following input properties:

    Expires string
    Override expiration date and time, from 5 minutes to 365 from now (format: yyyy/mm/dd hh:mm:ss).
    NewProfile string
    Name of the new web filter profile used by the override.
    OldProfile string
    Name of the web filter profile which the override applies.
    User string
    Name of the user which the override applies.
    Fosid int
    Override rule ID.
    Initiator string
    Initiating user of override (read-only setting).
    Ip string
    IPv4 address which the override applies.
    Ip6 string
    IPv6 address which the override applies.
    Scope string
    Override either the specific user, user group, IPv4 address, or IPv6 address. Valid values: user, user-group, ip, ip6.
    Status string
    Enable/disable override rule. Valid values: enable, disable.
    UserGroup string
    Specify the user group for which the override applies.
    Vdomparam string
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
    Expires string
    Override expiration date and time, from 5 minutes to 365 from now (format: yyyy/mm/dd hh:mm:ss).
    NewProfile string
    Name of the new web filter profile used by the override.
    OldProfile string
    Name of the web filter profile which the override applies.
    User string
    Name of the user which the override applies.
    Fosid int
    Override rule ID.
    Initiator string
    Initiating user of override (read-only setting).
    Ip string
    IPv4 address which the override applies.
    Ip6 string
    IPv6 address which the override applies.
    Scope string
    Override either the specific user, user group, IPv4 address, or IPv6 address. Valid values: user, user-group, ip, ip6.
    Status string
    Enable/disable override rule. Valid values: enable, disable.
    UserGroup string
    Specify the user group for which the override applies.
    Vdomparam string
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
    expires String
    Override expiration date and time, from 5 minutes to 365 from now (format: yyyy/mm/dd hh:mm:ss).
    newProfile String
    Name of the new web filter profile used by the override.
    oldProfile String
    Name of the web filter profile which the override applies.
    user String
    Name of the user which the override applies.
    fosid Integer
    Override rule ID.
    initiator String
    Initiating user of override (read-only setting).
    ip String
    IPv4 address which the override applies.
    ip6 String
    IPv6 address which the override applies.
    scope String
    Override either the specific user, user group, IPv4 address, or IPv6 address. Valid values: user, user-group, ip, ip6.
    status String
    Enable/disable override rule. Valid values: enable, disable.
    userGroup String
    Specify the user group for which the override applies.
    vdomparam String
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
    expires string
    Override expiration date and time, from 5 minutes to 365 from now (format: yyyy/mm/dd hh:mm:ss).
    newProfile string
    Name of the new web filter profile used by the override.
    oldProfile string
    Name of the web filter profile which the override applies.
    user string
    Name of the user which the override applies.
    fosid number
    Override rule ID.
    initiator string
    Initiating user of override (read-only setting).
    ip string
    IPv4 address which the override applies.
    ip6 string
    IPv6 address which the override applies.
    scope string
    Override either the specific user, user group, IPv4 address, or IPv6 address. Valid values: user, user-group, ip, ip6.
    status string
    Enable/disable override rule. Valid values: enable, disable.
    userGroup string
    Specify the user group for which the override applies.
    vdomparam string
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
    expires str
    Override expiration date and time, from 5 minutes to 365 from now (format: yyyy/mm/dd hh:mm:ss).
    new_profile str
    Name of the new web filter profile used by the override.
    old_profile str
    Name of the web filter profile which the override applies.
    user str
    Name of the user which the override applies.
    fosid int
    Override rule ID.
    initiator str
    Initiating user of override (read-only setting).
    ip str
    IPv4 address which the override applies.
    ip6 str
    IPv6 address which the override applies.
    scope str
    Override either the specific user, user group, IPv4 address, or IPv6 address. Valid values: user, user-group, ip, ip6.
    status str
    Enable/disable override rule. Valid values: enable, disable.
    user_group str
    Specify the user group for which the override applies.
    vdomparam str
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
    expires String
    Override expiration date and time, from 5 minutes to 365 from now (format: yyyy/mm/dd hh:mm:ss).
    newProfile String
    Name of the new web filter profile used by the override.
    oldProfile String
    Name of the web filter profile which the override applies.
    user String
    Name of the user which the override applies.
    fosid Number
    Override rule ID.
    initiator String
    Initiating user of override (read-only setting).
    ip String
    IPv4 address which the override applies.
    ip6 String
    IPv6 address which the override applies.
    scope String
    Override either the specific user, user group, IPv4 address, or IPv6 address. Valid values: user, user-group, ip, ip6.
    status String
    Enable/disable override rule. Valid values: enable, disable.
    userGroup String
    Specify the user group for which the override applies.
    vdomparam String
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.

    Outputs

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

    Get an existing Override 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?: OverrideState, opts?: CustomResourceOptions): Override
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            expires: Optional[str] = None,
            fosid: Optional[int] = None,
            initiator: Optional[str] = None,
            ip: Optional[str] = None,
            ip6: Optional[str] = None,
            new_profile: Optional[str] = None,
            old_profile: Optional[str] = None,
            scope: Optional[str] = None,
            status: Optional[str] = None,
            user: Optional[str] = None,
            user_group: Optional[str] = None,
            vdomparam: Optional[str] = None) -> Override
    func GetOverride(ctx *Context, name string, id IDInput, state *OverrideState, opts ...ResourceOption) (*Override, error)
    public static Override Get(string name, Input<string> id, OverrideState? state, CustomResourceOptions? opts = null)
    public static Override get(String name, Output<String> id, OverrideState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    Expires string
    Override expiration date and time, from 5 minutes to 365 from now (format: yyyy/mm/dd hh:mm:ss).
    Fosid int
    Override rule ID.
    Initiator string
    Initiating user of override (read-only setting).
    Ip string
    IPv4 address which the override applies.
    Ip6 string
    IPv6 address which the override applies.
    NewProfile string
    Name of the new web filter profile used by the override.
    OldProfile string
    Name of the web filter profile which the override applies.
    Scope string
    Override either the specific user, user group, IPv4 address, or IPv6 address. Valid values: user, user-group, ip, ip6.
    Status string
    Enable/disable override rule. Valid values: enable, disable.
    User string
    Name of the user which the override applies.
    UserGroup string
    Specify the user group for which the override applies.
    Vdomparam string
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
    Expires string
    Override expiration date and time, from 5 minutes to 365 from now (format: yyyy/mm/dd hh:mm:ss).
    Fosid int
    Override rule ID.
    Initiator string
    Initiating user of override (read-only setting).
    Ip string
    IPv4 address which the override applies.
    Ip6 string
    IPv6 address which the override applies.
    NewProfile string
    Name of the new web filter profile used by the override.
    OldProfile string
    Name of the web filter profile which the override applies.
    Scope string
    Override either the specific user, user group, IPv4 address, or IPv6 address. Valid values: user, user-group, ip, ip6.
    Status string
    Enable/disable override rule. Valid values: enable, disable.
    User string
    Name of the user which the override applies.
    UserGroup string
    Specify the user group for which the override applies.
    Vdomparam string
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
    expires String
    Override expiration date and time, from 5 minutes to 365 from now (format: yyyy/mm/dd hh:mm:ss).
    fosid Integer
    Override rule ID.
    initiator String
    Initiating user of override (read-only setting).
    ip String
    IPv4 address which the override applies.
    ip6 String
    IPv6 address which the override applies.
    newProfile String
    Name of the new web filter profile used by the override.
    oldProfile String
    Name of the web filter profile which the override applies.
    scope String
    Override either the specific user, user group, IPv4 address, or IPv6 address. Valid values: user, user-group, ip, ip6.
    status String
    Enable/disable override rule. Valid values: enable, disable.
    user String
    Name of the user which the override applies.
    userGroup String
    Specify the user group for which the override applies.
    vdomparam String
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
    expires string
    Override expiration date and time, from 5 minutes to 365 from now (format: yyyy/mm/dd hh:mm:ss).
    fosid number
    Override rule ID.
    initiator string
    Initiating user of override (read-only setting).
    ip string
    IPv4 address which the override applies.
    ip6 string
    IPv6 address which the override applies.
    newProfile string
    Name of the new web filter profile used by the override.
    oldProfile string
    Name of the web filter profile which the override applies.
    scope string
    Override either the specific user, user group, IPv4 address, or IPv6 address. Valid values: user, user-group, ip, ip6.
    status string
    Enable/disable override rule. Valid values: enable, disable.
    user string
    Name of the user which the override applies.
    userGroup string
    Specify the user group for which the override applies.
    vdomparam string
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
    expires str
    Override expiration date and time, from 5 minutes to 365 from now (format: yyyy/mm/dd hh:mm:ss).
    fosid int
    Override rule ID.
    initiator str
    Initiating user of override (read-only setting).
    ip str
    IPv4 address which the override applies.
    ip6 str
    IPv6 address which the override applies.
    new_profile str
    Name of the new web filter profile used by the override.
    old_profile str
    Name of the web filter profile which the override applies.
    scope str
    Override either the specific user, user group, IPv4 address, or IPv6 address. Valid values: user, user-group, ip, ip6.
    status str
    Enable/disable override rule. Valid values: enable, disable.
    user str
    Name of the user which the override applies.
    user_group str
    Specify the user group for which the override applies.
    vdomparam str
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
    expires String
    Override expiration date and time, from 5 minutes to 365 from now (format: yyyy/mm/dd hh:mm:ss).
    fosid Number
    Override rule ID.
    initiator String
    Initiating user of override (read-only setting).
    ip String
    IPv4 address which the override applies.
    ip6 String
    IPv6 address which the override applies.
    newProfile String
    Name of the new web filter profile used by the override.
    oldProfile String
    Name of the web filter profile which the override applies.
    scope String
    Override either the specific user, user group, IPv4 address, or IPv6 address. Valid values: user, user-group, ip, ip6.
    status String
    Enable/disable override rule. Valid values: enable, disable.
    user String
    Name of the user which the override applies.
    userGroup String
    Specify the user group for which the override applies.
    vdomparam String
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.

    Import

    Webfilter Override can be imported using any of these accepted formats:

    $ pulumi import fortios:filter/web/override:Override labelname {{fosid}}
    

    If you do not want to import arguments of block:

    $ export “FORTIOS_IMPORT_TABLE”=“false”

    $ pulumi import fortios:filter/web/override:Override labelname {{fosid}}
    

    $ unset “FORTIOS_IMPORT_TABLE”

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    fortios pulumiverse/pulumi-fortios
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the fortios Terraform Provider.
    fortios logo
    Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse