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

fortios.log.SyslogSetting

Explore with Pulumi AI

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

    Provides a resource to configure logging to remote Syslog logging servers.

    !> Warning: The resource will be deprecated and replaced by new resource fortios.log/syslogd.Setting, we recommend that you use the new resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fortios from "@pulumiverse/fortios";
    
    const test2 = new fortios.log.SyslogSetting("test2", {
        facility: "local7",
        format: "csv",
        mode: "udp",
        port: "514",
        server: "2.2.2.2",
        sourceIp: "10.2.2.199",
        status: "enable",
    });
    
    import pulumi
    import pulumiverse_fortios as fortios
    
    test2 = fortios.log.SyslogSetting("test2",
        facility="local7",
        format="csv",
        mode="udp",
        port="514",
        server="2.2.2.2",
        source_ip="10.2.2.199",
        status="enable")
    
    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.NewSyslogSetting(ctx, "test2", &log.SyslogSettingArgs{
    			Facility: pulumi.String("local7"),
    			Format:   pulumi.String("csv"),
    			Mode:     pulumi.String("udp"),
    			Port:     pulumi.String("514"),
    			Server:   pulumi.String("2.2.2.2"),
    			SourceIp: pulumi.String("10.2.2.199"),
    			Status:   pulumi.String("enable"),
    		})
    		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 test2 = new Fortios.Log.SyslogSetting("test2", new()
        {
            Facility = "local7",
            Format = "csv",
            Mode = "udp",
            Port = "514",
            Server = "2.2.2.2",
            SourceIp = "10.2.2.199",
            Status = "enable",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortios.log.SyslogSetting;
    import com.pulumi.fortios.log.SyslogSettingArgs;
    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 test2 = new SyslogSetting("test2", SyslogSettingArgs.builder()
                .facility("local7")
                .format("csv")
                .mode("udp")
                .port("514")
                .server("2.2.2.2")
                .sourceIp("10.2.2.199")
                .status("enable")
                .build());
    
        }
    }
    
    resources:
      test2:
        type: fortios:log:SyslogSetting
        properties:
          facility: local7
          format: csv
          mode: udp
          port: '514'
          server: 2.2.2.2
          sourceIp: 10.2.2.199
          status: enable
    

    Create SyslogSetting Resource

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

    Constructor syntax

    new SyslogSetting(name: string, args: SyslogSettingArgs, opts?: CustomResourceOptions);
    @overload
    def SyslogSetting(resource_name: str,
                      args: SyslogSettingArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def SyslogSetting(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      status: Optional[str] = None,
                      facility: Optional[str] = None,
                      format: Optional[str] = None,
                      mode: Optional[str] = None,
                      port: Optional[str] = None,
                      server: Optional[str] = None,
                      source_ip: Optional[str] = None)
    func NewSyslogSetting(ctx *Context, name string, args SyslogSettingArgs, opts ...ResourceOption) (*SyslogSetting, error)
    public SyslogSetting(string name, SyslogSettingArgs args, CustomResourceOptions? opts = null)
    public SyslogSetting(String name, SyslogSettingArgs args)
    public SyslogSetting(String name, SyslogSettingArgs args, CustomResourceOptions options)
    
    type: fortios:log:SyslogSetting
    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 SyslogSettingArgs
    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 SyslogSettingArgs
    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 SyslogSettingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SyslogSettingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SyslogSettingArgs
    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 syslogSettingResource = new Fortios.Log.SyslogSetting("syslogSettingResource", new()
    {
        Status = "string",
        Facility = "string",
        Format = "string",
        Mode = "string",
        Port = "string",
        Server = "string",
        SourceIp = "string",
    });
    
    example, err := log.NewSyslogSetting(ctx, "syslogSettingResource", &log.SyslogSettingArgs{
    	Status:   pulumi.String("string"),
    	Facility: pulumi.String("string"),
    	Format:   pulumi.String("string"),
    	Mode:     pulumi.String("string"),
    	Port:     pulumi.String("string"),
    	Server:   pulumi.String("string"),
    	SourceIp: pulumi.String("string"),
    })
    
    var syslogSettingResource = new SyslogSetting("syslogSettingResource", SyslogSettingArgs.builder()
        .status("string")
        .facility("string")
        .format("string")
        .mode("string")
        .port("string")
        .server("string")
        .sourceIp("string")
        .build());
    
    syslog_setting_resource = fortios.log.SyslogSetting("syslogSettingResource",
        status="string",
        facility="string",
        format="string",
        mode="string",
        port="string",
        server="string",
        source_ip="string")
    
    const syslogSettingResource = new fortios.log.SyslogSetting("syslogSettingResource", {
        status: "string",
        facility: "string",
        format: "string",
        mode: "string",
        port: "string",
        server: "string",
        sourceIp: "string",
    });
    
    type: fortios:log:SyslogSetting
    properties:
        facility: string
        format: string
        mode: string
        port: string
        server: string
        sourceIp: string
        status: string
    

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

    Status string
    Enable/disable remote syslog logging.
    Facility string
    Remote syslog facility.
    Format string
    Log format.
    Mode string
    Remote syslog logging over UDP/Reliable TCP.
    Port string
    Server listen port.
    Server string
    Address of remote syslog server.
    SourceIp string
    Source IP address of syslog.
    Status string
    Enable/disable remote syslog logging.
    Facility string
    Remote syslog facility.
    Format string
    Log format.
    Mode string
    Remote syslog logging over UDP/Reliable TCP.
    Port string
    Server listen port.
    Server string
    Address of remote syslog server.
    SourceIp string
    Source IP address of syslog.
    status String
    Enable/disable remote syslog logging.
    facility String
    Remote syslog facility.
    format String
    Log format.
    mode String
    Remote syslog logging over UDP/Reliable TCP.
    port String
    Server listen port.
    server String
    Address of remote syslog server.
    sourceIp String
    Source IP address of syslog.
    status string
    Enable/disable remote syslog logging.
    facility string
    Remote syslog facility.
    format string
    Log format.
    mode string
    Remote syslog logging over UDP/Reliable TCP.
    port string
    Server listen port.
    server string
    Address of remote syslog server.
    sourceIp string
    Source IP address of syslog.
    status str
    Enable/disable remote syslog logging.
    facility str
    Remote syslog facility.
    format str
    Log format.
    mode str
    Remote syslog logging over UDP/Reliable TCP.
    port str
    Server listen port.
    server str
    Address of remote syslog server.
    source_ip str
    Source IP address of syslog.
    status String
    Enable/disable remote syslog logging.
    facility String
    Remote syslog facility.
    format String
    Log format.
    mode String
    Remote syslog logging over UDP/Reliable TCP.
    port String
    Server listen port.
    server String
    Address of remote syslog server.
    sourceIp String
    Source IP address of syslog.

    Outputs

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

    Get an existing SyslogSetting 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?: SyslogSettingState, opts?: CustomResourceOptions): SyslogSetting
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            facility: Optional[str] = None,
            format: Optional[str] = None,
            mode: Optional[str] = None,
            port: Optional[str] = None,
            server: Optional[str] = None,
            source_ip: Optional[str] = None,
            status: Optional[str] = None) -> SyslogSetting
    func GetSyslogSetting(ctx *Context, name string, id IDInput, state *SyslogSettingState, opts ...ResourceOption) (*SyslogSetting, error)
    public static SyslogSetting Get(string name, Input<string> id, SyslogSettingState? state, CustomResourceOptions? opts = null)
    public static SyslogSetting get(String name, Output<String> id, SyslogSettingState 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:
    Facility string
    Remote syslog facility.
    Format string
    Log format.
    Mode string
    Remote syslog logging over UDP/Reliable TCP.
    Port string
    Server listen port.
    Server string
    Address of remote syslog server.
    SourceIp string
    Source IP address of syslog.
    Status string
    Enable/disable remote syslog logging.
    Facility string
    Remote syslog facility.
    Format string
    Log format.
    Mode string
    Remote syslog logging over UDP/Reliable TCP.
    Port string
    Server listen port.
    Server string
    Address of remote syslog server.
    SourceIp string
    Source IP address of syslog.
    Status string
    Enable/disable remote syslog logging.
    facility String
    Remote syslog facility.
    format String
    Log format.
    mode String
    Remote syslog logging over UDP/Reliable TCP.
    port String
    Server listen port.
    server String
    Address of remote syslog server.
    sourceIp String
    Source IP address of syslog.
    status String
    Enable/disable remote syslog logging.
    facility string
    Remote syslog facility.
    format string
    Log format.
    mode string
    Remote syslog logging over UDP/Reliable TCP.
    port string
    Server listen port.
    server string
    Address of remote syslog server.
    sourceIp string
    Source IP address of syslog.
    status string
    Enable/disable remote syslog logging.
    facility str
    Remote syslog facility.
    format str
    Log format.
    mode str
    Remote syslog logging over UDP/Reliable TCP.
    port str
    Server listen port.
    server str
    Address of remote syslog server.
    source_ip str
    Source IP address of syslog.
    status str
    Enable/disable remote syslog logging.
    facility String
    Remote syslog facility.
    format String
    Log format.
    mode String
    Remote syslog logging over UDP/Reliable TCP.
    port String
    Server listen port.
    server String
    Address of remote syslog server.
    sourceIp String
    Source IP address of syslog.
    status String
    Enable/disable remote syslog logging.

    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