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

fortimanager.SystemLogFospolicystats

Explore with Pulumi AI

FortiOS policy statistics settings.

Example Usage

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

const trname = new fortimanager.SystemLogFospolicystats("trname", {
    retentionDays: 100,
    samplingInterval: 200,
});
Copy
import pulumi
import pulumi_fortimanager as fortimanager

trname = fortimanager.SystemLogFospolicystats("trname",
    retention_days=100,
    sampling_interval=200)
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.NewSystemLogFospolicystats(ctx, "trname", &fortimanager.SystemLogFospolicystatsArgs{
			RetentionDays:    pulumi.Float64(100),
			SamplingInterval: pulumi.Float64(200),
		})
		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.SystemLogFospolicystats("trname", new()
    {
        RetentionDays = 100,
        SamplingInterval = 200,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.SystemLogFospolicystats;
import com.pulumi.fortimanager.SystemLogFospolicystatsArgs;
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 SystemLogFospolicystats("trname", SystemLogFospolicystatsArgs.builder()
            .retentionDays(100)
            .samplingInterval(200)
            .build());

    }
}
Copy
resources:
  trname:
    type: fortimanager:SystemLogFospolicystats
    properties:
      retentionDays: 100
      samplingInterval: 200
Copy

Create SystemLogFospolicystats Resource

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

Constructor syntax

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

@overload
def SystemLogFospolicystats(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            retention_days: Optional[float] = None,
                            sampling_interval: Optional[float] = None,
                            status: Optional[str] = None,
                            system_log_fospolicystats_id: Optional[str] = None)
func NewSystemLogFospolicystats(ctx *Context, name string, args *SystemLogFospolicystatsArgs, opts ...ResourceOption) (*SystemLogFospolicystats, error)
public SystemLogFospolicystats(string name, SystemLogFospolicystatsArgs? args = null, CustomResourceOptions? opts = null)
public SystemLogFospolicystats(String name, SystemLogFospolicystatsArgs args)
public SystemLogFospolicystats(String name, SystemLogFospolicystatsArgs args, CustomResourceOptions options)
type: fortimanager:SystemLogFospolicystats
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 SystemLogFospolicystatsArgs
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 SystemLogFospolicystatsArgs
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 SystemLogFospolicystatsArgs
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 SystemLogFospolicystatsArgs
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. SystemLogFospolicystatsArgs
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 systemLogFospolicystatsResource = new Fortimanager.SystemLogFospolicystats("systemLogFospolicystatsResource", new()
{
    RetentionDays = 0,
    SamplingInterval = 0,
    Status = "string",
    SystemLogFospolicystatsId = "string",
});
Copy
example, err := fortimanager.NewSystemLogFospolicystats(ctx, "systemLogFospolicystatsResource", &fortimanager.SystemLogFospolicystatsArgs{
RetentionDays: pulumi.Float64(0),
SamplingInterval: pulumi.Float64(0),
Status: pulumi.String("string"),
SystemLogFospolicystatsId: pulumi.String("string"),
})
Copy
var systemLogFospolicystatsResource = new SystemLogFospolicystats("systemLogFospolicystatsResource", SystemLogFospolicystatsArgs.builder()
    .retentionDays(0)
    .samplingInterval(0)
    .status("string")
    .systemLogFospolicystatsId("string")
    .build());
Copy
system_log_fospolicystats_resource = fortimanager.SystemLogFospolicystats("systemLogFospolicystatsResource",
    retention_days=0,
    sampling_interval=0,
    status="string",
    system_log_fospolicystats_id="string")
Copy
const systemLogFospolicystatsResource = new fortimanager.SystemLogFospolicystats("systemLogFospolicystatsResource", {
    retentionDays: 0,
    samplingInterval: 0,
    status: "string",
    systemLogFospolicystatsId: "string",
});
Copy
type: fortimanager:SystemLogFospolicystats
properties:
    retentionDays: 0
    samplingInterval: 0
    status: string
    systemLogFospolicystatsId: string
Copy

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

RetentionDays double
Number of days for FortiOS policy stats data storage.
SamplingInterval double
Interval to request policy stats data from FortiOS in minutes.
Status string
Disable/Enable FortiOS policy statistics feature. disable - Disable querying FortiOS policy stats. enable - Enable querying FortiOS policy stats. Valid values: disable, enable.
SystemLogFospolicystatsId string
an identifier for the resource.
RetentionDays float64
Number of days for FortiOS policy stats data storage.
SamplingInterval float64
Interval to request policy stats data from FortiOS in minutes.
Status string
Disable/Enable FortiOS policy statistics feature. disable - Disable querying FortiOS policy stats. enable - Enable querying FortiOS policy stats. Valid values: disable, enable.
SystemLogFospolicystatsId string
an identifier for the resource.
retentionDays Double
Number of days for FortiOS policy stats data storage.
samplingInterval Double
Interval to request policy stats data from FortiOS in minutes.
status String
Disable/Enable FortiOS policy statistics feature. disable - Disable querying FortiOS policy stats. enable - Enable querying FortiOS policy stats. Valid values: disable, enable.
systemLogFospolicystatsId String
an identifier for the resource.
retentionDays number
Number of days for FortiOS policy stats data storage.
samplingInterval number
Interval to request policy stats data from FortiOS in minutes.
status string
Disable/Enable FortiOS policy statistics feature. disable - Disable querying FortiOS policy stats. enable - Enable querying FortiOS policy stats. Valid values: disable, enable.
systemLogFospolicystatsId string
an identifier for the resource.
retention_days float
Number of days for FortiOS policy stats data storage.
sampling_interval float
Interval to request policy stats data from FortiOS in minutes.
status str
Disable/Enable FortiOS policy statistics feature. disable - Disable querying FortiOS policy stats. enable - Enable querying FortiOS policy stats. Valid values: disable, enable.
system_log_fospolicystats_id str
an identifier for the resource.
retentionDays Number
Number of days for FortiOS policy stats data storage.
samplingInterval Number
Interval to request policy stats data from FortiOS in minutes.
status String
Disable/Enable FortiOS policy statistics feature. disable - Disable querying FortiOS policy stats. enable - Enable querying FortiOS policy stats. Valid values: disable, enable.
systemLogFospolicystatsId String
an identifier for the resource.

Outputs

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

Get an existing SystemLogFospolicystats 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?: SystemLogFospolicystatsState, opts?: CustomResourceOptions): SystemLogFospolicystats
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        retention_days: Optional[float] = None,
        sampling_interval: Optional[float] = None,
        status: Optional[str] = None,
        system_log_fospolicystats_id: Optional[str] = None) -> SystemLogFospolicystats
func GetSystemLogFospolicystats(ctx *Context, name string, id IDInput, state *SystemLogFospolicystatsState, opts ...ResourceOption) (*SystemLogFospolicystats, error)
public static SystemLogFospolicystats Get(string name, Input<string> id, SystemLogFospolicystatsState? state, CustomResourceOptions? opts = null)
public static SystemLogFospolicystats get(String name, Output<String> id, SystemLogFospolicystatsState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:SystemLogFospolicystats    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:
RetentionDays double
Number of days for FortiOS policy stats data storage.
SamplingInterval double
Interval to request policy stats data from FortiOS in minutes.
Status string
Disable/Enable FortiOS policy statistics feature. disable - Disable querying FortiOS policy stats. enable - Enable querying FortiOS policy stats. Valid values: disable, enable.
SystemLogFospolicystatsId string
an identifier for the resource.
RetentionDays float64
Number of days for FortiOS policy stats data storage.
SamplingInterval float64
Interval to request policy stats data from FortiOS in minutes.
Status string
Disable/Enable FortiOS policy statistics feature. disable - Disable querying FortiOS policy stats. enable - Enable querying FortiOS policy stats. Valid values: disable, enable.
SystemLogFospolicystatsId string
an identifier for the resource.
retentionDays Double
Number of days for FortiOS policy stats data storage.
samplingInterval Double
Interval to request policy stats data from FortiOS in minutes.
status String
Disable/Enable FortiOS policy statistics feature. disable - Disable querying FortiOS policy stats. enable - Enable querying FortiOS policy stats. Valid values: disable, enable.
systemLogFospolicystatsId String
an identifier for the resource.
retentionDays number
Number of days for FortiOS policy stats data storage.
samplingInterval number
Interval to request policy stats data from FortiOS in minutes.
status string
Disable/Enable FortiOS policy statistics feature. disable - Disable querying FortiOS policy stats. enable - Enable querying FortiOS policy stats. Valid values: disable, enable.
systemLogFospolicystatsId string
an identifier for the resource.
retention_days float
Number of days for FortiOS policy stats data storage.
sampling_interval float
Interval to request policy stats data from FortiOS in minutes.
status str
Disable/Enable FortiOS policy statistics feature. disable - Disable querying FortiOS policy stats. enable - Enable querying FortiOS policy stats. Valid values: disable, enable.
system_log_fospolicystats_id str
an identifier for the resource.
retentionDays Number
Number of days for FortiOS policy stats data storage.
samplingInterval Number
Interval to request policy stats data from FortiOS in minutes.
status String
Disable/Enable FortiOS policy statistics feature. disable - Disable querying FortiOS policy stats. enable - Enable querying FortiOS policy stats. Valid values: disable, enable.
systemLogFospolicystatsId String
an identifier for the resource.

Import

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

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/systemLogFospolicystats:SystemLogFospolicystats labelname SystemLogFosPolicyStats
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.