1. Packages
  2. Fortimanager Provider
  3. API Docs
  4. ObjectEmailfilterBwlEntries
fortimanager 1.14.0 published on Tuesday, Apr 15, 2025 by fortinetdev

fortimanager.ObjectEmailfilterBwlEntries

Explore with Pulumi AI

Anti-spam black/white list entries.

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

Create ObjectEmailfilterBwlEntries Resource

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

Constructor syntax

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

@overload
def ObjectEmailfilterBwlEntries(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                bwl: Optional[str] = None,
                                ip4_subnet: Optional[str] = None,
                                adom: Optional[str] = None,
                                addr_type: Optional[str] = None,
                                email_pattern: Optional[str] = None,
                                fosid: Optional[float] = None,
                                action: Optional[str] = None,
                                ip6_subnet: Optional[str] = None,
                                object_emailfilter_bwl_entries_id: Optional[str] = None,
                                pattern_type: Optional[str] = None,
                                scopetype: Optional[str] = None,
                                status: Optional[str] = None,
                                type: Optional[str] = None)
func NewObjectEmailfilterBwlEntries(ctx *Context, name string, args ObjectEmailfilterBwlEntriesArgs, opts ...ResourceOption) (*ObjectEmailfilterBwlEntries, error)
public ObjectEmailfilterBwlEntries(string name, ObjectEmailfilterBwlEntriesArgs args, CustomResourceOptions? opts = null)
public ObjectEmailfilterBwlEntries(String name, ObjectEmailfilterBwlEntriesArgs args)
public ObjectEmailfilterBwlEntries(String name, ObjectEmailfilterBwlEntriesArgs args, CustomResourceOptions options)
type: fortimanager:ObjectEmailfilterBwlEntries
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 This property is required. ObjectEmailfilterBwlEntriesArgs
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 This property is required. ObjectEmailfilterBwlEntriesArgs
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 This property is required. ObjectEmailfilterBwlEntriesArgs
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 This property is required. ObjectEmailfilterBwlEntriesArgs
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. ObjectEmailfilterBwlEntriesArgs
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 objectEmailfilterBwlEntriesResource = new Fortimanager.ObjectEmailfilterBwlEntries("objectEmailfilterBwlEntriesResource", new()
{
    Bwl = "string",
    Ip4Subnet = "string",
    Adom = "string",
    AddrType = "string",
    EmailPattern = "string",
    Fosid = 0,
    Action = "string",
    Ip6Subnet = "string",
    ObjectEmailfilterBwlEntriesId = "string",
    PatternType = "string",
    Scopetype = "string",
    Status = "string",
    Type = "string",
});
Copy
example, err := fortimanager.NewObjectEmailfilterBwlEntries(ctx, "objectEmailfilterBwlEntriesResource", &fortimanager.ObjectEmailfilterBwlEntriesArgs{
Bwl: pulumi.String("string"),
Ip4Subnet: pulumi.String("string"),
Adom: pulumi.String("string"),
AddrType: pulumi.String("string"),
EmailPattern: pulumi.String("string"),
Fosid: pulumi.Float64(0),
Action: pulumi.String("string"),
Ip6Subnet: pulumi.String("string"),
ObjectEmailfilterBwlEntriesId: pulumi.String("string"),
PatternType: pulumi.String("string"),
Scopetype: pulumi.String("string"),
Status: pulumi.String("string"),
Type: pulumi.String("string"),
})
Copy
var objectEmailfilterBwlEntriesResource = new ObjectEmailfilterBwlEntries("objectEmailfilterBwlEntriesResource", ObjectEmailfilterBwlEntriesArgs.builder()
    .bwl("string")
    .ip4Subnet("string")
    .adom("string")
    .addrType("string")
    .emailPattern("string")
    .fosid(0)
    .action("string")
    .ip6Subnet("string")
    .objectEmailfilterBwlEntriesId("string")
    .patternType("string")
    .scopetype("string")
    .status("string")
    .type("string")
    .build());
Copy
object_emailfilter_bwl_entries_resource = fortimanager.ObjectEmailfilterBwlEntries("objectEmailfilterBwlEntriesResource",
    bwl="string",
    ip4_subnet="string",
    adom="string",
    addr_type="string",
    email_pattern="string",
    fosid=0,
    action="string",
    ip6_subnet="string",
    object_emailfilter_bwl_entries_id="string",
    pattern_type="string",
    scopetype="string",
    status="string",
    type="string")
Copy
const objectEmailfilterBwlEntriesResource = new fortimanager.ObjectEmailfilterBwlEntries("objectEmailfilterBwlEntriesResource", {
    bwl: "string",
    ip4Subnet: "string",
    adom: "string",
    addrType: "string",
    emailPattern: "string",
    fosid: 0,
    action: "string",
    ip6Subnet: "string",
    objectEmailfilterBwlEntriesId: "string",
    patternType: "string",
    scopetype: "string",
    status: "string",
    type: "string",
});
Copy
type: fortimanager:ObjectEmailfilterBwlEntries
properties:
    action: string
    addrType: string
    adom: string
    bwl: string
    emailPattern: string
    fosid: 0
    ip4Subnet: string
    ip6Subnet: string
    objectEmailfilterBwlEntriesId: string
    patternType: string
    scopetype: string
    status: string
    type: string
Copy

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

Bwl This property is required. string
Bwl.
Action string
Reject, mark as spam or good email. Valid values: spam, clear, reject.
AddrType string
IP address type. Valid values: ipv4, ipv6.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
EmailPattern string
Email address pattern.
Fosid double
Entry ID.
Ip4Subnet string
IPv4 network address/subnet mask bits.
Ip6Subnet string
IPv6 network address/subnet mask bits.
ObjectEmailfilterBwlEntriesId string
an identifier for the resource with format {{fosid}}.
PatternType string
Wildcard pattern or regular expression. Valid values: wildcard, regexp.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Status string
Enable/disable status. Valid values: disable, enable.
Type string
Entry type. Valid values: ip, email.
Bwl This property is required. string
Bwl.
Action string
Reject, mark as spam or good email. Valid values: spam, clear, reject.
AddrType string
IP address type. Valid values: ipv4, ipv6.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
EmailPattern string
Email address pattern.
Fosid float64
Entry ID.
Ip4Subnet string
IPv4 network address/subnet mask bits.
Ip6Subnet string
IPv6 network address/subnet mask bits.
ObjectEmailfilterBwlEntriesId string
an identifier for the resource with format {{fosid}}.
PatternType string
Wildcard pattern or regular expression. Valid values: wildcard, regexp.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Status string
Enable/disable status. Valid values: disable, enable.
Type string
Entry type. Valid values: ip, email.
bwl This property is required. String
Bwl.
action String
Reject, mark as spam or good email. Valid values: spam, clear, reject.
addrType String
IP address type. Valid values: ipv4, ipv6.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
emailPattern String
Email address pattern.
fosid Double
Entry ID.
ip4Subnet String
IPv4 network address/subnet mask bits.
ip6Subnet String
IPv6 network address/subnet mask bits.
objectEmailfilterBwlEntriesId String
an identifier for the resource with format {{fosid}}.
patternType String
Wildcard pattern or regular expression. Valid values: wildcard, regexp.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
status String
Enable/disable status. Valid values: disable, enable.
type String
Entry type. Valid values: ip, email.
bwl This property is required. string
Bwl.
action string
Reject, mark as spam or good email. Valid values: spam, clear, reject.
addrType string
IP address type. Valid values: ipv4, ipv6.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
emailPattern string
Email address pattern.
fosid number
Entry ID.
ip4Subnet string
IPv4 network address/subnet mask bits.
ip6Subnet string
IPv6 network address/subnet mask bits.
objectEmailfilterBwlEntriesId string
an identifier for the resource with format {{fosid}}.
patternType string
Wildcard pattern or regular expression. Valid values: wildcard, regexp.
scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
status string
Enable/disable status. Valid values: disable, enable.
type string
Entry type. Valid values: ip, email.
bwl This property is required. str
Bwl.
action str
Reject, mark as spam or good email. Valid values: spam, clear, reject.
addr_type str
IP address type. Valid values: ipv4, ipv6.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
email_pattern str
Email address pattern.
fosid float
Entry ID.
ip4_subnet str
IPv4 network address/subnet mask bits.
ip6_subnet str
IPv6 network address/subnet mask bits.
object_emailfilter_bwl_entries_id str
an identifier for the resource with format {{fosid}}.
pattern_type str
Wildcard pattern or regular expression. Valid values: wildcard, regexp.
scopetype str
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
status str
Enable/disable status. Valid values: disable, enable.
type str
Entry type. Valid values: ip, email.
bwl This property is required. String
Bwl.
action String
Reject, mark as spam or good email. Valid values: spam, clear, reject.
addrType String
IP address type. Valid values: ipv4, ipv6.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
emailPattern String
Email address pattern.
fosid Number
Entry ID.
ip4Subnet String
IPv4 network address/subnet mask bits.
ip6Subnet String
IPv6 network address/subnet mask bits.
objectEmailfilterBwlEntriesId String
an identifier for the resource with format {{fosid}}.
patternType String
Wildcard pattern or regular expression. Valid values: wildcard, regexp.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
status String
Enable/disable status. Valid values: disable, enable.
type String
Entry type. Valid values: ip, email.

Outputs

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

Get an existing ObjectEmailfilterBwlEntries 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?: ObjectEmailfilterBwlEntriesState, opts?: CustomResourceOptions): ObjectEmailfilterBwlEntries
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        action: Optional[str] = None,
        addr_type: Optional[str] = None,
        adom: Optional[str] = None,
        bwl: Optional[str] = None,
        email_pattern: Optional[str] = None,
        fosid: Optional[float] = None,
        ip4_subnet: Optional[str] = None,
        ip6_subnet: Optional[str] = None,
        object_emailfilter_bwl_entries_id: Optional[str] = None,
        pattern_type: Optional[str] = None,
        scopetype: Optional[str] = None,
        status: Optional[str] = None,
        type: Optional[str] = None) -> ObjectEmailfilterBwlEntries
func GetObjectEmailfilterBwlEntries(ctx *Context, name string, id IDInput, state *ObjectEmailfilterBwlEntriesState, opts ...ResourceOption) (*ObjectEmailfilterBwlEntries, error)
public static ObjectEmailfilterBwlEntries Get(string name, Input<string> id, ObjectEmailfilterBwlEntriesState? state, CustomResourceOptions? opts = null)
public static ObjectEmailfilterBwlEntries get(String name, Output<String> id, ObjectEmailfilterBwlEntriesState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectEmailfilterBwlEntries    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:
Action string
Reject, mark as spam or good email. Valid values: spam, clear, reject.
AddrType string
IP address type. Valid values: ipv4, ipv6.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Bwl string
Bwl.
EmailPattern string
Email address pattern.
Fosid double
Entry ID.
Ip4Subnet string
IPv4 network address/subnet mask bits.
Ip6Subnet string
IPv6 network address/subnet mask bits.
ObjectEmailfilterBwlEntriesId string
an identifier for the resource with format {{fosid}}.
PatternType string
Wildcard pattern or regular expression. Valid values: wildcard, regexp.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Status string
Enable/disable status. Valid values: disable, enable.
Type string
Entry type. Valid values: ip, email.
Action string
Reject, mark as spam or good email. Valid values: spam, clear, reject.
AddrType string
IP address type. Valid values: ipv4, ipv6.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Bwl string
Bwl.
EmailPattern string
Email address pattern.
Fosid float64
Entry ID.
Ip4Subnet string
IPv4 network address/subnet mask bits.
Ip6Subnet string
IPv6 network address/subnet mask bits.
ObjectEmailfilterBwlEntriesId string
an identifier for the resource with format {{fosid}}.
PatternType string
Wildcard pattern or regular expression. Valid values: wildcard, regexp.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Status string
Enable/disable status. Valid values: disable, enable.
Type string
Entry type. Valid values: ip, email.
action String
Reject, mark as spam or good email. Valid values: spam, clear, reject.
addrType String
IP address type. Valid values: ipv4, ipv6.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
bwl String
Bwl.
emailPattern String
Email address pattern.
fosid Double
Entry ID.
ip4Subnet String
IPv4 network address/subnet mask bits.
ip6Subnet String
IPv6 network address/subnet mask bits.
objectEmailfilterBwlEntriesId String
an identifier for the resource with format {{fosid}}.
patternType String
Wildcard pattern or regular expression. Valid values: wildcard, regexp.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
status String
Enable/disable status. Valid values: disable, enable.
type String
Entry type. Valid values: ip, email.
action string
Reject, mark as spam or good email. Valid values: spam, clear, reject.
addrType string
IP address type. Valid values: ipv4, ipv6.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
bwl string
Bwl.
emailPattern string
Email address pattern.
fosid number
Entry ID.
ip4Subnet string
IPv4 network address/subnet mask bits.
ip6Subnet string
IPv6 network address/subnet mask bits.
objectEmailfilterBwlEntriesId string
an identifier for the resource with format {{fosid}}.
patternType string
Wildcard pattern or regular expression. Valid values: wildcard, regexp.
scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
status string
Enable/disable status. Valid values: disable, enable.
type string
Entry type. Valid values: ip, email.
action str
Reject, mark as spam or good email. Valid values: spam, clear, reject.
addr_type str
IP address type. Valid values: ipv4, ipv6.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
bwl str
Bwl.
email_pattern str
Email address pattern.
fosid float
Entry ID.
ip4_subnet str
IPv4 network address/subnet mask bits.
ip6_subnet str
IPv6 network address/subnet mask bits.
object_emailfilter_bwl_entries_id str
an identifier for the resource with format {{fosid}}.
pattern_type str
Wildcard pattern or regular expression. Valid values: wildcard, regexp.
scopetype str
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
status str
Enable/disable status. Valid values: disable, enable.
type str
Entry type. Valid values: ip, email.
action String
Reject, mark as spam or good email. Valid values: spam, clear, reject.
addrType String
IP address type. Valid values: ipv4, ipv6.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
bwl String
Bwl.
emailPattern String
Email address pattern.
fosid Number
Entry ID.
ip4Subnet String
IPv4 network address/subnet mask bits.
ip6Subnet String
IPv6 network address/subnet mask bits.
objectEmailfilterBwlEntriesId String
an identifier for the resource with format {{fosid}}.
patternType String
Wildcard pattern or regular expression. Valid values: wildcard, regexp.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
status String
Enable/disable status. Valid values: disable, enable.
type String
Entry type. Valid values: ip, email.

Import

ObjectEmailfilter BwlEntries can be imported using any of these accepted formats:

Set import_options = [“bwl=YOUR_VALUE”] in the provider section.

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/objectEmailfilterBwlEntries:ObjectEmailfilterBwlEntries labelname {{fosid}}
Copy

$ unset “FORTIMANAGER_IMPORT_TABLE”

-> Hint: The scopetype and adom for import will directly inherit the scopetype and adom configuration of the provider.

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.