1. Packages
  2. Fortios
  3. API Docs
  4. log
  5. log/fortiguard
  6. Overridesetting
Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse

fortios.log/fortiguard.Overridesetting

Explore with Pulumi AI

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

    Override global FortiCloud logging settings for this VDOM.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fortios from "@pulumiverse/fortios";
    
    const trname = new fortios.log.fortiguard.Overridesetting("trname", {
        override: "disable",
        status: "disable",
        uploadInterval: "daily",
        uploadOption: "5-minute",
        uploadTime: "00:00",
    });
    
    import pulumi
    import pulumiverse_fortios as fortios
    
    trname = fortios.log.fortiguard.Overridesetting("trname",
        override="disable",
        status="disable",
        upload_interval="daily",
        upload_option="5-minute",
        upload_time="00:00")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/log"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := log.NewOverridesetting(ctx, "trname", &log.OverridesettingArgs{
    			Override:       pulumi.String("disable"),
    			Status:         pulumi.String("disable"),
    			UploadInterval: pulumi.String("daily"),
    			UploadOption:   pulumi.String("5-minute"),
    			UploadTime:     pulumi.String("00:00"),
    		})
    		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.Log.Fortiguard.Overridesetting("trname", new()
        {
            Override = "disable",
            Status = "disable",
            UploadInterval = "daily",
            UploadOption = "5-minute",
            UploadTime = "00:00",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortios.log.Overridesetting;
    import com.pulumi.fortios.log.OverridesettingArgs;
    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 Overridesetting("trname", OverridesettingArgs.builder()
                .override("disable")
                .status("disable")
                .uploadInterval("daily")
                .uploadOption("5-minute")
                .uploadTime("00:00")
                .build());
    
        }
    }
    
    resources:
      trname:
        type: fortios:log/fortiguard:Overridesetting
        properties:
          override: disable
          status: disable
          uploadInterval: daily
          uploadOption: 5-minute
          uploadTime: 00:00
    

    Create Overridesetting Resource

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

    Constructor syntax

    new Overridesetting(name: string, args?: OverridesettingArgs, opts?: CustomResourceOptions);
    @overload
    def Overridesetting(resource_name: str,
                        args: Optional[OverridesettingArgs] = None,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def Overridesetting(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        access_config: Optional[str] = None,
                        max_log_rate: Optional[int] = None,
                        override: Optional[str] = None,
                        priority: Optional[str] = None,
                        status: Optional[str] = None,
                        upload_day: Optional[str] = None,
                        upload_interval: Optional[str] = None,
                        upload_option: Optional[str] = None,
                        upload_time: Optional[str] = None,
                        vdomparam: Optional[str] = None)
    func NewOverridesetting(ctx *Context, name string, args *OverridesettingArgs, opts ...ResourceOption) (*Overridesetting, error)
    public Overridesetting(string name, OverridesettingArgs? args = null, CustomResourceOptions? opts = null)
    public Overridesetting(String name, OverridesettingArgs args)
    public Overridesetting(String name, OverridesettingArgs args, CustomResourceOptions options)
    
    type: fortios:log/fortiguard/overridesetting:Overridesetting
    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 OverridesettingArgs
    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 OverridesettingArgs
    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 OverridesettingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OverridesettingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OverridesettingArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    AccessConfig string
    Enable/disable FortiCloud access to configuration and data. Valid values: enable, disable.
    MaxLogRate int
    FortiCloud maximum log rate in MBps (0 = unlimited).
    Override string
    Overriding FortiCloud settings for this VDOM or use global settings. Valid values: enable, disable.
    Priority string
    Set log transmission priority. Valid values: default, low.
    Status string
    Enable/disable logging to FortiCloud. Valid values: enable, disable.
    UploadDay string
    Day of week to roll logs.
    UploadInterval string
    Frequency of uploading log files to FortiCloud. Valid values: daily, weekly, monthly.
    UploadOption string
    Configure how log messages are sent to FortiCloud. Valid values: store-and-upload, realtime, 1-minute, 5-minute.
    UploadTime string
    Time of day to roll logs (hh:mm).
    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.
    AccessConfig string
    Enable/disable FortiCloud access to configuration and data. Valid values: enable, disable.
    MaxLogRate int
    FortiCloud maximum log rate in MBps (0 = unlimited).
    Override string
    Overriding FortiCloud settings for this VDOM or use global settings. Valid values: enable, disable.
    Priority string
    Set log transmission priority. Valid values: default, low.
    Status string
    Enable/disable logging to FortiCloud. Valid values: enable, disable.
    UploadDay string
    Day of week to roll logs.
    UploadInterval string
    Frequency of uploading log files to FortiCloud. Valid values: daily, weekly, monthly.
    UploadOption string
    Configure how log messages are sent to FortiCloud. Valid values: store-and-upload, realtime, 1-minute, 5-minute.
    UploadTime string
    Time of day to roll logs (hh:mm).
    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.
    accessConfig String
    Enable/disable FortiCloud access to configuration and data. Valid values: enable, disable.
    maxLogRate Integer
    FortiCloud maximum log rate in MBps (0 = unlimited).
    override String
    Overriding FortiCloud settings for this VDOM or use global settings. Valid values: enable, disable.
    priority String
    Set log transmission priority. Valid values: default, low.
    status String
    Enable/disable logging to FortiCloud. Valid values: enable, disable.
    uploadDay String
    Day of week to roll logs.
    uploadInterval String
    Frequency of uploading log files to FortiCloud. Valid values: daily, weekly, monthly.
    uploadOption String
    Configure how log messages are sent to FortiCloud. Valid values: store-and-upload, realtime, 1-minute, 5-minute.
    uploadTime String
    Time of day to roll logs (hh:mm).
    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.
    accessConfig string
    Enable/disable FortiCloud access to configuration and data. Valid values: enable, disable.
    maxLogRate number
    FortiCloud maximum log rate in MBps (0 = unlimited).
    override string
    Overriding FortiCloud settings for this VDOM or use global settings. Valid values: enable, disable.
    priority string
    Set log transmission priority. Valid values: default, low.
    status string
    Enable/disable logging to FortiCloud. Valid values: enable, disable.
    uploadDay string
    Day of week to roll logs.
    uploadInterval string
    Frequency of uploading log files to FortiCloud. Valid values: daily, weekly, monthly.
    uploadOption string
    Configure how log messages are sent to FortiCloud. Valid values: store-and-upload, realtime, 1-minute, 5-minute.
    uploadTime string
    Time of day to roll logs (hh:mm).
    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.
    access_config str
    Enable/disable FortiCloud access to configuration and data. Valid values: enable, disable.
    max_log_rate int
    FortiCloud maximum log rate in MBps (0 = unlimited).
    override str
    Overriding FortiCloud settings for this VDOM or use global settings. Valid values: enable, disable.
    priority str
    Set log transmission priority. Valid values: default, low.
    status str
    Enable/disable logging to FortiCloud. Valid values: enable, disable.
    upload_day str
    Day of week to roll logs.
    upload_interval str
    Frequency of uploading log files to FortiCloud. Valid values: daily, weekly, monthly.
    upload_option str
    Configure how log messages are sent to FortiCloud. Valid values: store-and-upload, realtime, 1-minute, 5-minute.
    upload_time str
    Time of day to roll logs (hh:mm).
    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.
    accessConfig String
    Enable/disable FortiCloud access to configuration and data. Valid values: enable, disable.
    maxLogRate Number
    FortiCloud maximum log rate in MBps (0 = unlimited).
    override String
    Overriding FortiCloud settings for this VDOM or use global settings. Valid values: enable, disable.
    priority String
    Set log transmission priority. Valid values: default, low.
    status String
    Enable/disable logging to FortiCloud. Valid values: enable, disable.
    uploadDay String
    Day of week to roll logs.
    uploadInterval String
    Frequency of uploading log files to FortiCloud. Valid values: daily, weekly, monthly.
    uploadOption String
    Configure how log messages are sent to FortiCloud. Valid values: store-and-upload, realtime, 1-minute, 5-minute.
    uploadTime String
    Time of day to roll logs (hh:mm).
    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 Overridesetting 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 Overridesetting Resource

    Get an existing Overridesetting 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?: OverridesettingState, opts?: CustomResourceOptions): Overridesetting
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_config: Optional[str] = None,
            max_log_rate: Optional[int] = None,
            override: Optional[str] = None,
            priority: Optional[str] = None,
            status: Optional[str] = None,
            upload_day: Optional[str] = None,
            upload_interval: Optional[str] = None,
            upload_option: Optional[str] = None,
            upload_time: Optional[str] = None,
            vdomparam: Optional[str] = None) -> Overridesetting
    func GetOverridesetting(ctx *Context, name string, id IDInput, state *OverridesettingState, opts ...ResourceOption) (*Overridesetting, error)
    public static Overridesetting Get(string name, Input<string> id, OverridesettingState? state, CustomResourceOptions? opts = null)
    public static Overridesetting get(String name, Output<String> id, OverridesettingState 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:
    AccessConfig string
    Enable/disable FortiCloud access to configuration and data. Valid values: enable, disable.
    MaxLogRate int
    FortiCloud maximum log rate in MBps (0 = unlimited).
    Override string
    Overriding FortiCloud settings for this VDOM or use global settings. Valid values: enable, disable.
    Priority string
    Set log transmission priority. Valid values: default, low.
    Status string
    Enable/disable logging to FortiCloud. Valid values: enable, disable.
    UploadDay string
    Day of week to roll logs.
    UploadInterval string
    Frequency of uploading log files to FortiCloud. Valid values: daily, weekly, monthly.
    UploadOption string
    Configure how log messages are sent to FortiCloud. Valid values: store-and-upload, realtime, 1-minute, 5-minute.
    UploadTime string
    Time of day to roll logs (hh:mm).
    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.
    AccessConfig string
    Enable/disable FortiCloud access to configuration and data. Valid values: enable, disable.
    MaxLogRate int
    FortiCloud maximum log rate in MBps (0 = unlimited).
    Override string
    Overriding FortiCloud settings for this VDOM or use global settings. Valid values: enable, disable.
    Priority string
    Set log transmission priority. Valid values: default, low.
    Status string
    Enable/disable logging to FortiCloud. Valid values: enable, disable.
    UploadDay string
    Day of week to roll logs.
    UploadInterval string
    Frequency of uploading log files to FortiCloud. Valid values: daily, weekly, monthly.
    UploadOption string
    Configure how log messages are sent to FortiCloud. Valid values: store-and-upload, realtime, 1-minute, 5-minute.
    UploadTime string
    Time of day to roll logs (hh:mm).
    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.
    accessConfig String
    Enable/disable FortiCloud access to configuration and data. Valid values: enable, disable.
    maxLogRate Integer
    FortiCloud maximum log rate in MBps (0 = unlimited).
    override String
    Overriding FortiCloud settings for this VDOM or use global settings. Valid values: enable, disable.
    priority String
    Set log transmission priority. Valid values: default, low.
    status String
    Enable/disable logging to FortiCloud. Valid values: enable, disable.
    uploadDay String
    Day of week to roll logs.
    uploadInterval String
    Frequency of uploading log files to FortiCloud. Valid values: daily, weekly, monthly.
    uploadOption String
    Configure how log messages are sent to FortiCloud. Valid values: store-and-upload, realtime, 1-minute, 5-minute.
    uploadTime String
    Time of day to roll logs (hh:mm).
    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.
    accessConfig string
    Enable/disable FortiCloud access to configuration and data. Valid values: enable, disable.
    maxLogRate number
    FortiCloud maximum log rate in MBps (0 = unlimited).
    override string
    Overriding FortiCloud settings for this VDOM or use global settings. Valid values: enable, disable.
    priority string
    Set log transmission priority. Valid values: default, low.
    status string
    Enable/disable logging to FortiCloud. Valid values: enable, disable.
    uploadDay string
    Day of week to roll logs.
    uploadInterval string
    Frequency of uploading log files to FortiCloud. Valid values: daily, weekly, monthly.
    uploadOption string
    Configure how log messages are sent to FortiCloud. Valid values: store-and-upload, realtime, 1-minute, 5-minute.
    uploadTime string
    Time of day to roll logs (hh:mm).
    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.
    access_config str
    Enable/disable FortiCloud access to configuration and data. Valid values: enable, disable.
    max_log_rate int
    FortiCloud maximum log rate in MBps (0 = unlimited).
    override str
    Overriding FortiCloud settings for this VDOM or use global settings. Valid values: enable, disable.
    priority str
    Set log transmission priority. Valid values: default, low.
    status str
    Enable/disable logging to FortiCloud. Valid values: enable, disable.
    upload_day str
    Day of week to roll logs.
    upload_interval str
    Frequency of uploading log files to FortiCloud. Valid values: daily, weekly, monthly.
    upload_option str
    Configure how log messages are sent to FortiCloud. Valid values: store-and-upload, realtime, 1-minute, 5-minute.
    upload_time str
    Time of day to roll logs (hh:mm).
    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.
    accessConfig String
    Enable/disable FortiCloud access to configuration and data. Valid values: enable, disable.
    maxLogRate Number
    FortiCloud maximum log rate in MBps (0 = unlimited).
    override String
    Overriding FortiCloud settings for this VDOM or use global settings. Valid values: enable, disable.
    priority String
    Set log transmission priority. Valid values: default, low.
    status String
    Enable/disable logging to FortiCloud. Valid values: enable, disable.
    uploadDay String
    Day of week to roll logs.
    uploadInterval String
    Frequency of uploading log files to FortiCloud. Valid values: daily, weekly, monthly.
    uploadOption String
    Configure how log messages are sent to FortiCloud. Valid values: store-and-upload, realtime, 1-minute, 5-minute.
    uploadTime String
    Time of day to roll logs (hh:mm).
    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

    LogFortiguard OverrideSetting can be imported using any of these accepted formats:

    $ pulumi import fortios:log/fortiguard/overridesetting:Overridesetting labelname LogFortiguardOverrideSetting
    

    If you do not want to import arguments of block:

    $ export “FORTIOS_IMPORT_TABLE”=“false”

    $ pulumi import fortios:log/fortiguard/overridesetting:Overridesetting labelname LogFortiguardOverrideSetting
    

    $ 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