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

fortimanager.SystemLogRatelimit

Explore with Pulumi AI

Logging rate limit.

The following variables have sub resource. Avoid using them together, otherwise conflicts and overwrites may occur.

  • device: fortimanager.SystemLogRatelimitDevice
  • ratelimits: fortimanager.SystemLogRatelimitRatelimits

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as fortimanager from "@pulumi/fortimanager";

const trname = new fortimanager.SystemLogRatelimit("trname", {
    mode: "manual",
    ratelimits: [{
        filter: "1",
        id: 1,
    }],
});
Copy
import pulumi
import pulumi_fortimanager as fortimanager

trname = fortimanager.SystemLogRatelimit("trname",
    mode="manual",
    ratelimits=[{
        "filter": "1",
        "id": 1,
    }])
Copy
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 {
		_, err := fortimanager.NewSystemLogRatelimit(ctx, "trname", &fortimanager.SystemLogRatelimitArgs{
			Mode: pulumi.String("manual"),
			Ratelimits: fortimanager.SystemLogRatelimitRatelimitArray{
				&fortimanager.SystemLogRatelimitRatelimitArgs{
					Filter: pulumi.String("1"),
					Id:     pulumi.Float64(1),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortimanager = Pulumi.Fortimanager;

return await Deployment.RunAsync(() => 
{
    var trname = new Fortimanager.SystemLogRatelimit("trname", new()
    {
        Mode = "manual",
        Ratelimits = new[]
        {
            new Fortimanager.Inputs.SystemLogRatelimitRatelimitArgs
            {
                Filter = "1",
                Id = 1,
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.SystemLogRatelimit;
import com.pulumi.fortimanager.SystemLogRatelimitArgs;
import com.pulumi.fortimanager.inputs.SystemLogRatelimitRatelimitArgs;
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 SystemLogRatelimit("trname", SystemLogRatelimitArgs.builder()
            .mode("manual")
            .ratelimits(SystemLogRatelimitRatelimitArgs.builder()
                .filter(1)
                .id(1)
                .build())
            .build());

    }
}
Copy
resources:
  trname:
    type: fortimanager:SystemLogRatelimit
    properties:
      mode: manual
      ratelimits:
        - filter: 1
          id: 1
Copy

Create SystemLogRatelimit Resource

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

Constructor syntax

new SystemLogRatelimit(name: string, args?: SystemLogRatelimitArgs, opts?: CustomResourceOptions);
@overload
def SystemLogRatelimit(resource_name: str,
                       args: Optional[SystemLogRatelimitArgs] = None,
                       opts: Optional[ResourceOptions] = None)

@overload
def SystemLogRatelimit(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       device_ratelimit_default: Optional[float] = None,
                       devices: Optional[Sequence[SystemLogRatelimitDeviceArgs]] = None,
                       dynamic_sort_subtable: Optional[str] = None,
                       mode: Optional[str] = None,
                       ratelimits: Optional[Sequence[SystemLogRatelimitRatelimitArgs]] = None,
                       system_log_ratelimit_id: Optional[str] = None,
                       system_ratelimit: Optional[float] = None)
func NewSystemLogRatelimit(ctx *Context, name string, args *SystemLogRatelimitArgs, opts ...ResourceOption) (*SystemLogRatelimit, error)
public SystemLogRatelimit(string name, SystemLogRatelimitArgs? args = null, CustomResourceOptions? opts = null)
public SystemLogRatelimit(String name, SystemLogRatelimitArgs args)
public SystemLogRatelimit(String name, SystemLogRatelimitArgs args, CustomResourceOptions options)
type: fortimanager:SystemLogRatelimit
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args SystemLogRatelimitArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args SystemLogRatelimitArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args SystemLogRatelimitArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args SystemLogRatelimitArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. SystemLogRatelimitArgs
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 systemLogRatelimitResource = new Fortimanager.SystemLogRatelimit("systemLogRatelimitResource", new()
{
    DeviceRatelimitDefault = 0,
    Devices = new[]
    {
        new Fortimanager.Inputs.SystemLogRatelimitDeviceArgs
        {
            Device = "string",
            FilterType = "string",
            Id = 0,
            Ratelimit = 0,
        },
    },
    DynamicSortSubtable = "string",
    Mode = "string",
    Ratelimits = new[]
    {
        new Fortimanager.Inputs.SystemLogRatelimitRatelimitArgs
        {
            Filter = "string",
            FilterType = "string",
            Id = 0,
            Ratelimit = 0,
        },
    },
    SystemLogRatelimitId = "string",
    SystemRatelimit = 0,
});
Copy
example, err := fortimanager.NewSystemLogRatelimit(ctx, "systemLogRatelimitResource", &fortimanager.SystemLogRatelimitArgs{
DeviceRatelimitDefault: pulumi.Float64(0),
Devices: .SystemLogRatelimitDeviceTypeArray{
&.SystemLogRatelimitDeviceTypeArgs{
Device: pulumi.String("string"),
FilterType: pulumi.String("string"),
Id: pulumi.Float64(0),
Ratelimit: pulumi.Float64(0),
},
},
DynamicSortSubtable: pulumi.String("string"),
Mode: pulumi.String("string"),
Ratelimits: .SystemLogRatelimitRatelimitArray{
&.SystemLogRatelimitRatelimitArgs{
Filter: pulumi.String("string"),
FilterType: pulumi.String("string"),
Id: pulumi.Float64(0),
Ratelimit: pulumi.Float64(0),
},
},
SystemLogRatelimitId: pulumi.String("string"),
SystemRatelimit: pulumi.Float64(0),
})
Copy
var systemLogRatelimitResource = new SystemLogRatelimit("systemLogRatelimitResource", SystemLogRatelimitArgs.builder()
    .deviceRatelimitDefault(0)
    .devices(SystemLogRatelimitDeviceArgs.builder()
        .device("string")
        .filterType("string")
        .id(0)
        .ratelimit(0)
        .build())
    .dynamicSortSubtable("string")
    .mode("string")
    .ratelimits(SystemLogRatelimitRatelimitArgs.builder()
        .filter("string")
        .filterType("string")
        .id(0)
        .ratelimit(0)
        .build())
    .systemLogRatelimitId("string")
    .systemRatelimit(0)
    .build());
Copy
system_log_ratelimit_resource = fortimanager.SystemLogRatelimit("systemLogRatelimitResource",
    device_ratelimit_default=0,
    devices=[{
        "device": "string",
        "filter_type": "string",
        "id": 0,
        "ratelimit": 0,
    }],
    dynamic_sort_subtable="string",
    mode="string",
    ratelimits=[{
        "filter": "string",
        "filter_type": "string",
        "id": 0,
        "ratelimit": 0,
    }],
    system_log_ratelimit_id="string",
    system_ratelimit=0)
Copy
const systemLogRatelimitResource = new fortimanager.SystemLogRatelimit("systemLogRatelimitResource", {
    deviceRatelimitDefault: 0,
    devices: [{
        device: "string",
        filterType: "string",
        id: 0,
        ratelimit: 0,
    }],
    dynamicSortSubtable: "string",
    mode: "string",
    ratelimits: [{
        filter: "string",
        filterType: "string",
        id: 0,
        ratelimit: 0,
    }],
    systemLogRatelimitId: "string",
    systemRatelimit: 0,
});
Copy
type: fortimanager:SystemLogRatelimit
properties:
    deviceRatelimitDefault: 0
    devices:
        - device: string
          filterType: string
          id: 0
          ratelimit: 0
    dynamicSortSubtable: string
    mode: string
    ratelimits:
        - filter: string
          filterType: string
          id: 0
          ratelimit: 0
    systemLogRatelimitId: string
    systemRatelimit: 0
Copy

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

DeviceRatelimitDefault double
Default maximum device log rate limit.
Devices List<SystemLogRatelimitDevice>
Device. The structure of device block is documented below.
DynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
Mode string
Logging rate limit mode. disable - Logging rate limit function disabled. manual - System rate limit and device rate limit both configurable, no limit if not configured. Valid values: disable, manual.
Ratelimits List<SystemLogRatelimitRatelimit>
Ratelimits. The structure of ratelimits block is documented below.
SystemLogRatelimitId string
an identifier for the resource.
SystemRatelimit double
Maximum system log rate limit.
DeviceRatelimitDefault float64
Default maximum device log rate limit.
Devices []SystemLogRatelimitDeviceTypeArgs
Device. The structure of device block is documented below.
DynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
Mode string
Logging rate limit mode. disable - Logging rate limit function disabled. manual - System rate limit and device rate limit both configurable, no limit if not configured. Valid values: disable, manual.
Ratelimits []SystemLogRatelimitRatelimitArgs
Ratelimits. The structure of ratelimits block is documented below.
SystemLogRatelimitId string
an identifier for the resource.
SystemRatelimit float64
Maximum system log rate limit.
deviceRatelimitDefault Double
Default maximum device log rate limit.
devices List<SystemLogRatelimitDevice>
Device. The structure of device block is documented below.
dynamicSortSubtable String
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
mode String
Logging rate limit mode. disable - Logging rate limit function disabled. manual - System rate limit and device rate limit both configurable, no limit if not configured. Valid values: disable, manual.
ratelimits List<SystemLogRatelimitRatelimit>
Ratelimits. The structure of ratelimits block is documented below.
systemLogRatelimitId String
an identifier for the resource.
systemRatelimit Double
Maximum system log rate limit.
deviceRatelimitDefault number
Default maximum device log rate limit.
devices SystemLogRatelimitDevice[]
Device. The structure of device block is documented below.
dynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
mode string
Logging rate limit mode. disable - Logging rate limit function disabled. manual - System rate limit and device rate limit both configurable, no limit if not configured. Valid values: disable, manual.
ratelimits SystemLogRatelimitRatelimit[]
Ratelimits. The structure of ratelimits block is documented below.
systemLogRatelimitId string
an identifier for the resource.
systemRatelimit number
Maximum system log rate limit.
device_ratelimit_default float
Default maximum device log rate limit.
devices Sequence[SystemLogRatelimitDeviceArgs]
Device. The structure of device block is documented below.
dynamic_sort_subtable str
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
mode str
Logging rate limit mode. disable - Logging rate limit function disabled. manual - System rate limit and device rate limit both configurable, no limit if not configured. Valid values: disable, manual.
ratelimits Sequence[SystemLogRatelimitRatelimitArgs]
Ratelimits. The structure of ratelimits block is documented below.
system_log_ratelimit_id str
an identifier for the resource.
system_ratelimit float
Maximum system log rate limit.
deviceRatelimitDefault Number
Default maximum device log rate limit.
devices List<Property Map>
Device. The structure of device block is documented below.
dynamicSortSubtable String
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
mode String
Logging rate limit mode. disable - Logging rate limit function disabled. manual - System rate limit and device rate limit both configurable, no limit if not configured. Valid values: disable, manual.
ratelimits List<Property Map>
Ratelimits. The structure of ratelimits block is documented below.
systemLogRatelimitId String
an identifier for the resource.
systemRatelimit Number
Maximum system log rate limit.

Outputs

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

Get an existing SystemLogRatelimit 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?: SystemLogRatelimitState, opts?: CustomResourceOptions): SystemLogRatelimit
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        device_ratelimit_default: Optional[float] = None,
        devices: Optional[Sequence[SystemLogRatelimitDeviceArgs]] = None,
        dynamic_sort_subtable: Optional[str] = None,
        mode: Optional[str] = None,
        ratelimits: Optional[Sequence[SystemLogRatelimitRatelimitArgs]] = None,
        system_log_ratelimit_id: Optional[str] = None,
        system_ratelimit: Optional[float] = None) -> SystemLogRatelimit
func GetSystemLogRatelimit(ctx *Context, name string, id IDInput, state *SystemLogRatelimitState, opts ...ResourceOption) (*SystemLogRatelimit, error)
public static SystemLogRatelimit Get(string name, Input<string> id, SystemLogRatelimitState? state, CustomResourceOptions? opts = null)
public static SystemLogRatelimit get(String name, Output<String> id, SystemLogRatelimitState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:SystemLogRatelimit    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
DeviceRatelimitDefault double
Default maximum device log rate limit.
Devices List<SystemLogRatelimitDevice>
Device. The structure of device block is documented below.
DynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
Mode string
Logging rate limit mode. disable - Logging rate limit function disabled. manual - System rate limit and device rate limit both configurable, no limit if not configured. Valid values: disable, manual.
Ratelimits List<SystemLogRatelimitRatelimit>
Ratelimits. The structure of ratelimits block is documented below.
SystemLogRatelimitId string
an identifier for the resource.
SystemRatelimit double
Maximum system log rate limit.
DeviceRatelimitDefault float64
Default maximum device log rate limit.
Devices []SystemLogRatelimitDeviceTypeArgs
Device. The structure of device block is documented below.
DynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
Mode string
Logging rate limit mode. disable - Logging rate limit function disabled. manual - System rate limit and device rate limit both configurable, no limit if not configured. Valid values: disable, manual.
Ratelimits []SystemLogRatelimitRatelimitArgs
Ratelimits. The structure of ratelimits block is documented below.
SystemLogRatelimitId string
an identifier for the resource.
SystemRatelimit float64
Maximum system log rate limit.
deviceRatelimitDefault Double
Default maximum device log rate limit.
devices List<SystemLogRatelimitDevice>
Device. The structure of device block is documented below.
dynamicSortSubtable String
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
mode String
Logging rate limit mode. disable - Logging rate limit function disabled. manual - System rate limit and device rate limit both configurable, no limit if not configured. Valid values: disable, manual.
ratelimits List<SystemLogRatelimitRatelimit>
Ratelimits. The structure of ratelimits block is documented below.
systemLogRatelimitId String
an identifier for the resource.
systemRatelimit Double
Maximum system log rate limit.
deviceRatelimitDefault number
Default maximum device log rate limit.
devices SystemLogRatelimitDevice[]
Device. The structure of device block is documented below.
dynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
mode string
Logging rate limit mode. disable - Logging rate limit function disabled. manual - System rate limit and device rate limit both configurable, no limit if not configured. Valid values: disable, manual.
ratelimits SystemLogRatelimitRatelimit[]
Ratelimits. The structure of ratelimits block is documented below.
systemLogRatelimitId string
an identifier for the resource.
systemRatelimit number
Maximum system log rate limit.
device_ratelimit_default float
Default maximum device log rate limit.
devices Sequence[SystemLogRatelimitDeviceArgs]
Device. The structure of device block is documented below.
dynamic_sort_subtable str
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
mode str
Logging rate limit mode. disable - Logging rate limit function disabled. manual - System rate limit and device rate limit both configurable, no limit if not configured. Valid values: disable, manual.
ratelimits Sequence[SystemLogRatelimitRatelimitArgs]
Ratelimits. The structure of ratelimits block is documented below.
system_log_ratelimit_id str
an identifier for the resource.
system_ratelimit float
Maximum system log rate limit.
deviceRatelimitDefault Number
Default maximum device log rate limit.
devices List<Property Map>
Device. The structure of device block is documented below.
dynamicSortSubtable String
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
mode String
Logging rate limit mode. disable - Logging rate limit function disabled. manual - System rate limit and device rate limit both configurable, no limit if not configured. Valid values: disable, manual.
ratelimits List<Property Map>
Ratelimits. The structure of ratelimits block is documented below.
systemLogRatelimitId String
an identifier for the resource.
systemRatelimit Number
Maximum system log rate limit.

Supporting Types

SystemLogRatelimitDevice
, SystemLogRatelimitDeviceArgs

Device string
Device(s) filter according to filter-type setting, wildcard expression supported.
FilterType string
Device filter type. devid - Device ID. Valid values: devid.
Id double
Device filter ID.
Ratelimit double
Maximum device log rate limit.
Device string
Device(s) filter according to filter-type setting, wildcard expression supported.
FilterType string
Device filter type. devid - Device ID. Valid values: devid.
Id float64
Device filter ID.
Ratelimit float64
Maximum device log rate limit.
device String
Device(s) filter according to filter-type setting, wildcard expression supported.
filterType String
Device filter type. devid - Device ID. Valid values: devid.
id Double
Device filter ID.
ratelimit Double
Maximum device log rate limit.
device string
Device(s) filter according to filter-type setting, wildcard expression supported.
filterType string
Device filter type. devid - Device ID. Valid values: devid.
id number
Device filter ID.
ratelimit number
Maximum device log rate limit.
device str
Device(s) filter according to filter-type setting, wildcard expression supported.
filter_type str
Device filter type. devid - Device ID. Valid values: devid.
id float
Device filter ID.
ratelimit float
Maximum device log rate limit.
device String
Device(s) filter according to filter-type setting, wildcard expression supported.
filterType String
Device filter type. devid - Device ID. Valid values: devid.
id Number
Device filter ID.
ratelimit Number
Maximum device log rate limit.

SystemLogRatelimitRatelimit
, SystemLogRatelimitRatelimitArgs

Filter string
Device or ADOM filter according to filter-type setting, wildcard expression supported.
FilterType string
Device filter type. devid - Device ID. adom - ADOM name. Valid values: devid, adom.
Id double
Filter ID.
Ratelimit double
Maximum log rate limit.
Filter string
Device or ADOM filter according to filter-type setting, wildcard expression supported.
FilterType string
Device filter type. devid - Device ID. adom - ADOM name. Valid values: devid, adom.
Id float64
Filter ID.
Ratelimit float64
Maximum log rate limit.
filter String
Device or ADOM filter according to filter-type setting, wildcard expression supported.
filterType String
Device filter type. devid - Device ID. adom - ADOM name. Valid values: devid, adom.
id Double
Filter ID.
ratelimit Double
Maximum log rate limit.
filter string
Device or ADOM filter according to filter-type setting, wildcard expression supported.
filterType string
Device filter type. devid - Device ID. adom - ADOM name. Valid values: devid, adom.
id number
Filter ID.
ratelimit number
Maximum log rate limit.
filter str
Device or ADOM filter according to filter-type setting, wildcard expression supported.
filter_type str
Device filter type. devid - Device ID. adom - ADOM name. Valid values: devid, adom.
id float
Filter ID.
ratelimit float
Maximum log rate limit.
filter String
Device or ADOM filter according to filter-type setting, wildcard expression supported.
filterType String
Device filter type. devid - Device ID. adom - ADOM name. Valid values: devid, adom.
id Number
Filter ID.
ratelimit Number
Maximum log rate limit.

Import

System LogRatelimit can be imported using any of these accepted formats:

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/systemLogRatelimit:SystemLogRatelimit labelname SystemLogRatelimit
Copy

$ unset “FORTIMANAGER_IMPORT_TABLE”

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.