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

fortimanager.SystemAutodeleteQuarantinefilesautodeletion

Explore with Pulumi AI

Automatic deletion policy for quarantined files.

This resource is a sub resource for variable quarantine_files_auto_deletion of resource fortimanager.SystemAutodelete. Conflict and overwrite may occur if use both of them.

Example Usage

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

const trname = new fortimanager.SystemAutodeleteQuarantinefilesautodeletion("trname", {
    retention: "days",
    runat: 2,
    status: "enable",
    value: 10,
});
Copy
import pulumi
import pulumi_fortimanager as fortimanager

trname = fortimanager.SystemAutodeleteQuarantinefilesautodeletion("trname",
    retention="days",
    runat=2,
    status="enable",
    value=10)
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.NewSystemAutodeleteQuarantinefilesautodeletion(ctx, "trname", &fortimanager.SystemAutodeleteQuarantinefilesautodeletionArgs{
			Retention: pulumi.String("days"),
			Runat:     pulumi.Float64(2),
			Status:    pulumi.String("enable"),
			Value:     pulumi.Float64(10),
		})
		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.SystemAutodeleteQuarantinefilesautodeletion("trname", new()
    {
        Retention = "days",
        Runat = 2,
        Status = "enable",
        Value = 10,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.SystemAutodeleteQuarantinefilesautodeletion;
import com.pulumi.fortimanager.SystemAutodeleteQuarantinefilesautodeletionArgs;
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 SystemAutodeleteQuarantinefilesautodeletion("trname", SystemAutodeleteQuarantinefilesautodeletionArgs.builder()
            .retention("days")
            .runat("2")
            .status("enable")
            .value("10")
            .build());

    }
}
Copy
resources:
  trname:
    type: fortimanager:SystemAutodeleteQuarantinefilesautodeletion
    properties:
      retention: days
      runat: '2'
      status: enable
      value: '10'
Copy

Create SystemAutodeleteQuarantinefilesautodeletion Resource

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

Constructor syntax

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

@overload
def SystemAutodeleteQuarantinefilesautodeletion(resource_name: str,
                                                opts: Optional[ResourceOptions] = None,
                                                retention: Optional[str] = None,
                                                runat: Optional[float] = None,
                                                status: Optional[str] = None,
                                                system_autodelete_quarantinefilesautodeletion_id: Optional[str] = None,
                                                value: Optional[float] = None)
func NewSystemAutodeleteQuarantinefilesautodeletion(ctx *Context, name string, args *SystemAutodeleteQuarantinefilesautodeletionArgs, opts ...ResourceOption) (*SystemAutodeleteQuarantinefilesautodeletion, error)
public SystemAutodeleteQuarantinefilesautodeletion(string name, SystemAutodeleteQuarantinefilesautodeletionArgs? args = null, CustomResourceOptions? opts = null)
public SystemAutodeleteQuarantinefilesautodeletion(String name, SystemAutodeleteQuarantinefilesautodeletionArgs args)
public SystemAutodeleteQuarantinefilesautodeletion(String name, SystemAutodeleteQuarantinefilesautodeletionArgs args, CustomResourceOptions options)
type: fortimanager:SystemAutodeleteQuarantinefilesautodeletion
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 SystemAutodeleteQuarantinefilesautodeletionArgs
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 SystemAutodeleteQuarantinefilesautodeletionArgs
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 SystemAutodeleteQuarantinefilesautodeletionArgs
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 SystemAutodeleteQuarantinefilesautodeletionArgs
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. SystemAutodeleteQuarantinefilesautodeletionArgs
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 systemAutodeleteQuarantinefilesautodeletionResource = new Fortimanager.SystemAutodeleteQuarantinefilesautodeletion("systemAutodeleteQuarantinefilesautodeletionResource", new()
{
    Retention = "string",
    Runat = 0,
    Status = "string",
    SystemAutodeleteQuarantinefilesautodeletionId = "string",
    Value = 0,
});
Copy
example, err := fortimanager.NewSystemAutodeleteQuarantinefilesautodeletion(ctx, "systemAutodeleteQuarantinefilesautodeletionResource", &fortimanager.SystemAutodeleteQuarantinefilesautodeletionArgs{
Retention: pulumi.String("string"),
Runat: pulumi.Float64(0),
Status: pulumi.String("string"),
SystemAutodeleteQuarantinefilesautodeletionId: pulumi.String("string"),
Value: pulumi.Float64(0),
})
Copy
var systemAutodeleteQuarantinefilesautodeletionResource = new SystemAutodeleteQuarantinefilesautodeletion("systemAutodeleteQuarantinefilesautodeletionResource", SystemAutodeleteQuarantinefilesautodeletionArgs.builder()
    .retention("string")
    .runat(0)
    .status("string")
    .systemAutodeleteQuarantinefilesautodeletionId("string")
    .value(0)
    .build());
Copy
system_autodelete_quarantinefilesautodeletion_resource = fortimanager.SystemAutodeleteQuarantinefilesautodeletion("systemAutodeleteQuarantinefilesautodeletionResource",
    retention="string",
    runat=0,
    status="string",
    system_autodelete_quarantinefilesautodeletion_id="string",
    value=0)
Copy
const systemAutodeleteQuarantinefilesautodeletionResource = new fortimanager.SystemAutodeleteQuarantinefilesautodeletion("systemAutodeleteQuarantinefilesautodeletionResource", {
    retention: "string",
    runat: 0,
    status: "string",
    systemAutodeleteQuarantinefilesautodeletionId: "string",
    value: 0,
});
Copy
type: fortimanager:SystemAutodeleteQuarantinefilesautodeletion
properties:
    retention: string
    runat: 0
    status: string
    systemAutodeleteQuarantinefilesautodeletionId: string
    value: 0
Copy

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

Retention string
Automatic deletion in days, weeks, or months. days - Auto-delete data older than days. weeks - Auto-delete data older than weeks. months - Auto-delete data older than months. Valid values: days, weeks, months.
Runat double
Automatic deletion run at (0 - 23) o'clock.
Status string
Enable/disable automatic deletion. disable - Disable automatic deletion. enable - Enable automatic deletion. Valid values: disable, enable.
SystemAutodeleteQuarantinefilesautodeletionId string
an identifier for the resource.
Value double
Automatic deletion in x days, weeks, or months.
Retention string
Automatic deletion in days, weeks, or months. days - Auto-delete data older than days. weeks - Auto-delete data older than weeks. months - Auto-delete data older than months. Valid values: days, weeks, months.
Runat float64
Automatic deletion run at (0 - 23) o'clock.
Status string
Enable/disable automatic deletion. disable - Disable automatic deletion. enable - Enable automatic deletion. Valid values: disable, enable.
SystemAutodeleteQuarantinefilesautodeletionId string
an identifier for the resource.
Value float64
Automatic deletion in x days, weeks, or months.
retention String
Automatic deletion in days, weeks, or months. days - Auto-delete data older than days. weeks - Auto-delete data older than weeks. months - Auto-delete data older than months. Valid values: days, weeks, months.
runat Double
Automatic deletion run at (0 - 23) o'clock.
status String
Enable/disable automatic deletion. disable - Disable automatic deletion. enable - Enable automatic deletion. Valid values: disable, enable.
systemAutodeleteQuarantinefilesautodeletionId String
an identifier for the resource.
value Double
Automatic deletion in x days, weeks, or months.
retention string
Automatic deletion in days, weeks, or months. days - Auto-delete data older than days. weeks - Auto-delete data older than weeks. months - Auto-delete data older than months. Valid values: days, weeks, months.
runat number
Automatic deletion run at (0 - 23) o'clock.
status string
Enable/disable automatic deletion. disable - Disable automatic deletion. enable - Enable automatic deletion. Valid values: disable, enable.
systemAutodeleteQuarantinefilesautodeletionId string
an identifier for the resource.
value number
Automatic deletion in x days, weeks, or months.
retention str
Automatic deletion in days, weeks, or months. days - Auto-delete data older than days. weeks - Auto-delete data older than weeks. months - Auto-delete data older than months. Valid values: days, weeks, months.
runat float
Automatic deletion run at (0 - 23) o'clock.
status str
Enable/disable automatic deletion. disable - Disable automatic deletion. enable - Enable automatic deletion. Valid values: disable, enable.
system_autodelete_quarantinefilesautodeletion_id str
an identifier for the resource.
value float
Automatic deletion in x days, weeks, or months.
retention String
Automatic deletion in days, weeks, or months. days - Auto-delete data older than days. weeks - Auto-delete data older than weeks. months - Auto-delete data older than months. Valid values: days, weeks, months.
runat Number
Automatic deletion run at (0 - 23) o'clock.
status String
Enable/disable automatic deletion. disable - Disable automatic deletion. enable - Enable automatic deletion. Valid values: disable, enable.
systemAutodeleteQuarantinefilesautodeletionId String
an identifier for the resource.
value Number
Automatic deletion in x days, weeks, or months.

Outputs

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

Get an existing SystemAutodeleteQuarantinefilesautodeletion 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?: SystemAutodeleteQuarantinefilesautodeletionState, opts?: CustomResourceOptions): SystemAutodeleteQuarantinefilesautodeletion
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        retention: Optional[str] = None,
        runat: Optional[float] = None,
        status: Optional[str] = None,
        system_autodelete_quarantinefilesautodeletion_id: Optional[str] = None,
        value: Optional[float] = None) -> SystemAutodeleteQuarantinefilesautodeletion
func GetSystemAutodeleteQuarantinefilesautodeletion(ctx *Context, name string, id IDInput, state *SystemAutodeleteQuarantinefilesautodeletionState, opts ...ResourceOption) (*SystemAutodeleteQuarantinefilesautodeletion, error)
public static SystemAutodeleteQuarantinefilesautodeletion Get(string name, Input<string> id, SystemAutodeleteQuarantinefilesautodeletionState? state, CustomResourceOptions? opts = null)
public static SystemAutodeleteQuarantinefilesautodeletion get(String name, Output<String> id, SystemAutodeleteQuarantinefilesautodeletionState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:SystemAutodeleteQuarantinefilesautodeletion    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:
Retention string
Automatic deletion in days, weeks, or months. days - Auto-delete data older than days. weeks - Auto-delete data older than weeks. months - Auto-delete data older than months. Valid values: days, weeks, months.
Runat double
Automatic deletion run at (0 - 23) o'clock.
Status string
Enable/disable automatic deletion. disable - Disable automatic deletion. enable - Enable automatic deletion. Valid values: disable, enable.
SystemAutodeleteQuarantinefilesautodeletionId string
an identifier for the resource.
Value double
Automatic deletion in x days, weeks, or months.
Retention string
Automatic deletion in days, weeks, or months. days - Auto-delete data older than days. weeks - Auto-delete data older than weeks. months - Auto-delete data older than months. Valid values: days, weeks, months.
Runat float64
Automatic deletion run at (0 - 23) o'clock.
Status string
Enable/disable automatic deletion. disable - Disable automatic deletion. enable - Enable automatic deletion. Valid values: disable, enable.
SystemAutodeleteQuarantinefilesautodeletionId string
an identifier for the resource.
Value float64
Automatic deletion in x days, weeks, or months.
retention String
Automatic deletion in days, weeks, or months. days - Auto-delete data older than days. weeks - Auto-delete data older than weeks. months - Auto-delete data older than months. Valid values: days, weeks, months.
runat Double
Automatic deletion run at (0 - 23) o'clock.
status String
Enable/disable automatic deletion. disable - Disable automatic deletion. enable - Enable automatic deletion. Valid values: disable, enable.
systemAutodeleteQuarantinefilesautodeletionId String
an identifier for the resource.
value Double
Automatic deletion in x days, weeks, or months.
retention string
Automatic deletion in days, weeks, or months. days - Auto-delete data older than days. weeks - Auto-delete data older than weeks. months - Auto-delete data older than months. Valid values: days, weeks, months.
runat number
Automatic deletion run at (0 - 23) o'clock.
status string
Enable/disable automatic deletion. disable - Disable automatic deletion. enable - Enable automatic deletion. Valid values: disable, enable.
systemAutodeleteQuarantinefilesautodeletionId string
an identifier for the resource.
value number
Automatic deletion in x days, weeks, or months.
retention str
Automatic deletion in days, weeks, or months. days - Auto-delete data older than days. weeks - Auto-delete data older than weeks. months - Auto-delete data older than months. Valid values: days, weeks, months.
runat float
Automatic deletion run at (0 - 23) o'clock.
status str
Enable/disable automatic deletion. disable - Disable automatic deletion. enable - Enable automatic deletion. Valid values: disable, enable.
system_autodelete_quarantinefilesautodeletion_id str
an identifier for the resource.
value float
Automatic deletion in x days, weeks, or months.
retention String
Automatic deletion in days, weeks, or months. days - Auto-delete data older than days. weeks - Auto-delete data older than weeks. months - Auto-delete data older than months. Valid values: days, weeks, months.
runat Number
Automatic deletion run at (0 - 23) o'clock.
status String
Enable/disable automatic deletion. disable - Disable automatic deletion. enable - Enable automatic deletion. Valid values: disable, enable.
systemAutodeleteQuarantinefilesautodeletionId String
an identifier for the resource.
value Number
Automatic deletion in x days, weeks, or months.

Import

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

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/systemAutodeleteQuarantinefilesautodeletion:SystemAutodeleteQuarantinefilesautodeletion labelname SystemAutoDeleteQuarantineFilesAutoDeletion
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.