fortios.ips.Rule
Explore with Pulumi AI
Configure IPS rules.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumiverse/fortios";
// import first and then modify
const trname = new fortios.ips.Rule("trname", {
action: "block",
application: "All",
date: 1462435200,
group: "backdoor",
location: "server",
log: "enable",
logPacket: "disable",
os: "All",
rev: 6637,
ruleId: 40473,
service: "UDP, DNS",
severity: "critical",
status: "enable",
});
import pulumi
import pulumiverse_fortios as fortios
# import first and then modify
trname = fortios.ips.Rule("trname",
action="block",
application="All",
date=1462435200,
group="backdoor",
location="server",
log="enable",
log_packet="disable",
os="All",
rev=6637,
rule_id=40473,
service="UDP, DNS",
severity="critical",
status="enable")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/ips"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// import first and then modify
_, err := ips.NewRule(ctx, "trname", &ips.RuleArgs{
Action: pulumi.String("block"),
Application: pulumi.String("All"),
Date: pulumi.Int(1462435200),
Group: pulumi.String("backdoor"),
Location: pulumi.String("server"),
Log: pulumi.String("enable"),
LogPacket: pulumi.String("disable"),
Os: pulumi.String("All"),
Rev: pulumi.Int(6637),
RuleId: pulumi.Int(40473),
Service: pulumi.String("UDP, DNS"),
Severity: pulumi.String("critical"),
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(() =>
{
// import first and then modify
var trname = new Fortios.Ips.Rule("trname", new()
{
Action = "block",
Application = "All",
Date = 1462435200,
Group = "backdoor",
Location = "server",
Log = "enable",
LogPacket = "disable",
Os = "All",
Rev = 6637,
RuleId = 40473,
Service = "UDP, DNS",
Severity = "critical",
Status = "enable",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.ips.Rule;
import com.pulumi.fortios.ips.RuleArgs;
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 Rule("trname", RuleArgs.builder()
.action("block")
.application("All")
.date(1462435200)
.group("backdoor")
.location("server")
.log("enable")
.logPacket("disable")
.os("All")
.rev(6637)
.ruleId(40473)
.service("UDP, DNS")
.severity("critical")
.status("enable")
.build());
}
}
resources:
# import first and then modify
trname:
type: fortios:ips:Rule
properties:
action: block
application: All
date: 1.4624352e+09
group: backdoor
location: server
log: enable
logPacket: disable
os: All
rev: 6637
ruleId: 40473
service: UDP, DNS
severity: critical
status: enable
Create Rule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Rule(name: string, args?: RuleArgs, opts?: CustomResourceOptions);
@overload
def Rule(resource_name: str,
args: Optional[RuleArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Rule(resource_name: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
application: Optional[str] = None,
date: Optional[int] = None,
dynamic_sort_subtable: Optional[str] = None,
get_all_tables: Optional[str] = None,
group: Optional[str] = None,
location: Optional[str] = None,
log: Optional[str] = None,
log_packet: Optional[str] = None,
metadatas: Optional[Sequence[RuleMetadataArgs]] = None,
name: Optional[str] = None,
os: Optional[str] = None,
rev: Optional[int] = None,
rule_id: Optional[int] = None,
service: Optional[str] = None,
severity: Optional[str] = None,
status: Optional[str] = None,
vdomparam: Optional[str] = None)
func NewRule(ctx *Context, name string, args *RuleArgs, opts ...ResourceOption) (*Rule, error)
public Rule(string name, RuleArgs? args = null, CustomResourceOptions? opts = null)
type: fortios:ips:Rule
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 RuleArgs
- 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 RuleArgs
- 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 RuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RuleArgs
- 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 fortiosRuleResource = new Fortios.Ips.Rule("fortiosRuleResource", new()
{
Action = "string",
Application = "string",
Date = 0,
DynamicSortSubtable = "string",
GetAllTables = "string",
Group = "string",
Location = "string",
Log = "string",
LogPacket = "string",
Metadatas = new[]
{
new Fortios.Ips.Inputs.RuleMetadataArgs
{
Id = 0,
Metaid = 0,
Valueid = 0,
},
},
Name = "string",
Os = "string",
Rev = 0,
RuleId = 0,
Service = "string",
Severity = "string",
Status = "string",
Vdomparam = "string",
});
example, err := ips.NewRule(ctx, "fortiosRuleResource", &ips.RuleArgs{
Action: pulumi.String("string"),
Application: pulumi.String("string"),
Date: pulumi.Int(0),
DynamicSortSubtable: pulumi.String("string"),
GetAllTables: pulumi.String("string"),
Group: pulumi.String("string"),
Location: pulumi.String("string"),
Log: pulumi.String("string"),
LogPacket: pulumi.String("string"),
Metadatas: ips.RuleMetadataArray{
&ips.RuleMetadataArgs{
Id: pulumi.Int(0),
Metaid: pulumi.Int(0),
Valueid: pulumi.Int(0),
},
},
Name: pulumi.String("string"),
Os: pulumi.String("string"),
Rev: pulumi.Int(0),
RuleId: pulumi.Int(0),
Service: pulumi.String("string"),
Severity: pulumi.String("string"),
Status: pulumi.String("string"),
Vdomparam: pulumi.String("string"),
})
var fortiosRuleResource = new Rule("fortiosRuleResource", RuleArgs.builder()
.action("string")
.application("string")
.date(0)
.dynamicSortSubtable("string")
.getAllTables("string")
.group("string")
.location("string")
.log("string")
.logPacket("string")
.metadatas(RuleMetadataArgs.builder()
.id(0)
.metaid(0)
.valueid(0)
.build())
.name("string")
.os("string")
.rev(0)
.ruleId(0)
.service("string")
.severity("string")
.status("string")
.vdomparam("string")
.build());
fortios_rule_resource = fortios.ips.Rule("fortiosRuleResource",
action="string",
application="string",
date=0,
dynamic_sort_subtable="string",
get_all_tables="string",
group="string",
location="string",
log="string",
log_packet="string",
metadatas=[fortios.ips.RuleMetadataArgs(
id=0,
metaid=0,
valueid=0,
)],
name="string",
os="string",
rev=0,
rule_id=0,
service="string",
severity="string",
status="string",
vdomparam="string")
const fortiosRuleResource = new fortios.ips.Rule("fortiosRuleResource", {
action: "string",
application: "string",
date: 0,
dynamicSortSubtable: "string",
getAllTables: "string",
group: "string",
location: "string",
log: "string",
logPacket: "string",
metadatas: [{
id: 0,
metaid: 0,
valueid: 0,
}],
name: "string",
os: "string",
rev: 0,
ruleId: 0,
service: "string",
severity: "string",
status: "string",
vdomparam: "string",
});
type: fortios:ips:Rule
properties:
action: string
application: string
date: 0
dynamicSortSubtable: string
getAllTables: string
group: string
location: string
log: string
logPacket: string
metadatas:
- id: 0
metaid: 0
valueid: 0
name: string
os: string
rev: 0
ruleId: 0
service: string
severity: string
status: string
vdomparam: string
Rule 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 Rule resource accepts the following input properties:
- Action string
- Action. Valid values:
pass
,block
. - Application string
- Vulnerable applications.
- Date int
- Date.
- Dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- Get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- Group string
- Group.
- Location string
- Vulnerable location.
- Log string
- Enable/disable logging. Valid values:
disable
,enable
. - Log
Packet string - Enable/disable packet logging. Valid values:
disable
,enable
. - Metadatas
List<Pulumiverse.
Fortios. Ips. Inputs. Rule Metadata> - Meta data. The structure of
metadata
block is documented below. - Name string
- Rule name.
- Os string
- Vulnerable operation systems.
- Rev int
- Revision.
- Rule
Id int - Rule ID.
- Service string
- Vulnerable service.
- Severity string
- Severity.
- Status string
- Enable/disable status. Valid values:
disable
,enable
. - 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.
- Action string
- Action. Valid values:
pass
,block
. - Application string
- Vulnerable applications.
- Date int
- Date.
- Dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- Get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- Group string
- Group.
- Location string
- Vulnerable location.
- Log string
- Enable/disable logging. Valid values:
disable
,enable
. - Log
Packet string - Enable/disable packet logging. Valid values:
disable
,enable
. - Metadatas
[]Rule
Metadata Args - Meta data. The structure of
metadata
block is documented below. - Name string
- Rule name.
- Os string
- Vulnerable operation systems.
- Rev int
- Revision.
- Rule
Id int - Rule ID.
- Service string
- Vulnerable service.
- Severity string
- Severity.
- Status string
- Enable/disable status. Valid values:
disable
,enable
. - 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.
- action String
- Action. Valid values:
pass
,block
. - application String
- Vulnerable applications.
- date Integer
- Date.
- dynamic
Sort StringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- get
All StringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- group String
- Group.
- location String
- Vulnerable location.
- log String
- Enable/disable logging. Valid values:
disable
,enable
. - log
Packet String - Enable/disable packet logging. Valid values:
disable
,enable
. - metadatas
List<Rule
Metadata> - Meta data. The structure of
metadata
block is documented below. - name String
- Rule name.
- os String
- Vulnerable operation systems.
- rev Integer
- Revision.
- rule
Id Integer - Rule ID.
- service String
- Vulnerable service.
- severity String
- Severity.
- status String
- Enable/disable status. Valid values:
disable
,enable
. - 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.
- action string
- Action. Valid values:
pass
,block
. - application string
- Vulnerable applications.
- date number
- Date.
- dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- group string
- Group.
- location string
- Vulnerable location.
- log string
- Enable/disable logging. Valid values:
disable
,enable
. - log
Packet string - Enable/disable packet logging. Valid values:
disable
,enable
. - metadatas
Rule
Metadata[] - Meta data. The structure of
metadata
block is documented below. - name string
- Rule name.
- os string
- Vulnerable operation systems.
- rev number
- Revision.
- rule
Id number - Rule ID.
- service string
- Vulnerable service.
- severity string
- Severity.
- status string
- Enable/disable status. Valid values:
disable
,enable
. - 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.
- action str
- Action. Valid values:
pass
,block
. - application str
- Vulnerable applications.
- date int
- Date.
- dynamic_
sort_ strsubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- get_
all_ strtables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- group str
- Group.
- location str
- Vulnerable location.
- log str
- Enable/disable logging. Valid values:
disable
,enable
. - log_
packet str - Enable/disable packet logging. Valid values:
disable
,enable
. - metadatas
Sequence[Rule
Metadata Args] - Meta data. The structure of
metadata
block is documented below. - name str
- Rule name.
- os str
- Vulnerable operation systems.
- rev int
- Revision.
- rule_
id int - Rule ID.
- service str
- Vulnerable service.
- severity str
- Severity.
- status str
- Enable/disable status. Valid values:
disable
,enable
. - 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.
- action String
- Action. Valid values:
pass
,block
. - application String
- Vulnerable applications.
- date Number
- Date.
- dynamic
Sort StringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- get
All StringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- group String
- Group.
- location String
- Vulnerable location.
- log String
- Enable/disable logging. Valid values:
disable
,enable
. - log
Packet String - Enable/disable packet logging. Valid values:
disable
,enable
. - metadatas List<Property Map>
- Meta data. The structure of
metadata
block is documented below. - name String
- Rule name.
- os String
- Vulnerable operation systems.
- rev Number
- Revision.
- rule
Id Number - Rule ID.
- service String
- Vulnerable service.
- severity String
- Severity.
- status String
- Enable/disable status. Valid values:
disable
,enable
. - 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 Rule 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 Rule Resource
Get an existing Rule 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?: RuleState, opts?: CustomResourceOptions): Rule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
application: Optional[str] = None,
date: Optional[int] = None,
dynamic_sort_subtable: Optional[str] = None,
get_all_tables: Optional[str] = None,
group: Optional[str] = None,
location: Optional[str] = None,
log: Optional[str] = None,
log_packet: Optional[str] = None,
metadatas: Optional[Sequence[RuleMetadataArgs]] = None,
name: Optional[str] = None,
os: Optional[str] = None,
rev: Optional[int] = None,
rule_id: Optional[int] = None,
service: Optional[str] = None,
severity: Optional[str] = None,
status: Optional[str] = None,
vdomparam: Optional[str] = None) -> Rule
func GetRule(ctx *Context, name string, id IDInput, state *RuleState, opts ...ResourceOption) (*Rule, error)
public static Rule Get(string name, Input<string> id, RuleState? state, CustomResourceOptions? opts = null)
public static Rule get(String name, Output<String> id, RuleState 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.
- Action string
- Action. Valid values:
pass
,block
. - Application string
- Vulnerable applications.
- Date int
- Date.
- Dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- Get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- Group string
- Group.
- Location string
- Vulnerable location.
- Log string
- Enable/disable logging. Valid values:
disable
,enable
. - Log
Packet string - Enable/disable packet logging. Valid values:
disable
,enable
. - Metadatas
List<Pulumiverse.
Fortios. Ips. Inputs. Rule Metadata> - Meta data. The structure of
metadata
block is documented below. - Name string
- Rule name.
- Os string
- Vulnerable operation systems.
- Rev int
- Revision.
- Rule
Id int - Rule ID.
- Service string
- Vulnerable service.
- Severity string
- Severity.
- Status string
- Enable/disable status. Valid values:
disable
,enable
. - 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.
- Action string
- Action. Valid values:
pass
,block
. - Application string
- Vulnerable applications.
- Date int
- Date.
- Dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- Get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- Group string
- Group.
- Location string
- Vulnerable location.
- Log string
- Enable/disable logging. Valid values:
disable
,enable
. - Log
Packet string - Enable/disable packet logging. Valid values:
disable
,enable
. - Metadatas
[]Rule
Metadata Args - Meta data. The structure of
metadata
block is documented below. - Name string
- Rule name.
- Os string
- Vulnerable operation systems.
- Rev int
- Revision.
- Rule
Id int - Rule ID.
- Service string
- Vulnerable service.
- Severity string
- Severity.
- Status string
- Enable/disable status. Valid values:
disable
,enable
. - 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.
- action String
- Action. Valid values:
pass
,block
. - application String
- Vulnerable applications.
- date Integer
- Date.
- dynamic
Sort StringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- get
All StringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- group String
- Group.
- location String
- Vulnerable location.
- log String
- Enable/disable logging. Valid values:
disable
,enable
. - log
Packet String - Enable/disable packet logging. Valid values:
disable
,enable
. - metadatas
List<Rule
Metadata> - Meta data. The structure of
metadata
block is documented below. - name String
- Rule name.
- os String
- Vulnerable operation systems.
- rev Integer
- Revision.
- rule
Id Integer - Rule ID.
- service String
- Vulnerable service.
- severity String
- Severity.
- status String
- Enable/disable status. Valid values:
disable
,enable
. - 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.
- action string
- Action. Valid values:
pass
,block
. - application string
- Vulnerable applications.
- date number
- Date.
- dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- group string
- Group.
- location string
- Vulnerable location.
- log string
- Enable/disable logging. Valid values:
disable
,enable
. - log
Packet string - Enable/disable packet logging. Valid values:
disable
,enable
. - metadatas
Rule
Metadata[] - Meta data. The structure of
metadata
block is documented below. - name string
- Rule name.
- os string
- Vulnerable operation systems.
- rev number
- Revision.
- rule
Id number - Rule ID.
- service string
- Vulnerable service.
- severity string
- Severity.
- status string
- Enable/disable status. Valid values:
disable
,enable
. - 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.
- action str
- Action. Valid values:
pass
,block
. - application str
- Vulnerable applications.
- date int
- Date.
- dynamic_
sort_ strsubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- get_
all_ strtables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- group str
- Group.
- location str
- Vulnerable location.
- log str
- Enable/disable logging. Valid values:
disable
,enable
. - log_
packet str - Enable/disable packet logging. Valid values:
disable
,enable
. - metadatas
Sequence[Rule
Metadata Args] - Meta data. The structure of
metadata
block is documented below. - name str
- Rule name.
- os str
- Vulnerable operation systems.
- rev int
- Revision.
- rule_
id int - Rule ID.
- service str
- Vulnerable service.
- severity str
- Severity.
- status str
- Enable/disable status. Valid values:
disable
,enable
. - 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.
- action String
- Action. Valid values:
pass
,block
. - application String
- Vulnerable applications.
- date Number
- Date.
- dynamic
Sort StringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- get
All StringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- group String
- Group.
- location String
- Vulnerable location.
- log String
- Enable/disable logging. Valid values:
disable
,enable
. - log
Packet String - Enable/disable packet logging. Valid values:
disable
,enable
. - metadatas List<Property Map>
- Meta data. The structure of
metadata
block is documented below. - name String
- Rule name.
- os String
- Vulnerable operation systems.
- rev Number
- Revision.
- rule
Id Number - Rule ID.
- service String
- Vulnerable service.
- severity String
- Severity.
- status String
- Enable/disable status. Valid values:
disable
,enable
. - 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.
Supporting Types
RuleMetadata, RuleMetadataArgs
Import
Ips Rule can be imported using any of these accepted formats:
$ pulumi import fortios:ips/rule:Rule labelname {{name}}
If you do not want to import arguments of block:
$ export “FORTIOS_IMPORT_TABLE”=“false”
$ pulumi import fortios:ips/rule:Rule labelname {{name}}
$ 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.