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

fortimanager.ObjectEmailfilterDnsblEntries

Explore with Pulumi AI

Spam filter DNSBL and ORBL server.

This resource is a sub resource for variable entries of resource fortimanager.ObjectEmailfilterDnsbl. 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 trnameObjectEmailfilterDnsbl = new fortimanager.ObjectEmailfilterDnsbl("trnameObjectEmailfilterDnsbl", {
    comment: "This is a Terraform example",
    fosid: 1,
});
const trnameObjectEmailfilterDnsblEntries = new fortimanager.ObjectEmailfilterDnsblEntries("trnameObjectEmailfilterDnsblEntries", {
    action: "spam",
    fosid: 12,
    status: "disable",
    dnsbl: trnameObjectEmailfilterDnsbl.fosid,
}, {
    dependsOn: [trnameObjectEmailfilterDnsbl],
});
Copy
import pulumi
import pulumi_fortimanager as fortimanager

trname_object_emailfilter_dnsbl = fortimanager.ObjectEmailfilterDnsbl("trnameObjectEmailfilterDnsbl",
    comment="This is a Terraform example",
    fosid=1)
trname_object_emailfilter_dnsbl_entries = fortimanager.ObjectEmailfilterDnsblEntries("trnameObjectEmailfilterDnsblEntries",
    action="spam",
    fosid=12,
    status="disable",
    dnsbl=trname_object_emailfilter_dnsbl.fosid,
    opts = pulumi.ResourceOptions(depends_on=[trname_object_emailfilter_dnsbl]))
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 {
		trnameObjectEmailfilterDnsbl, err := fortimanager.NewObjectEmailfilterDnsbl(ctx, "trnameObjectEmailfilterDnsbl", &fortimanager.ObjectEmailfilterDnsblArgs{
			Comment: pulumi.String("This is a Terraform example"),
			Fosid:   pulumi.Float64(1),
		})
		if err != nil {
			return err
		}
		_, err = fortimanager.NewObjectEmailfilterDnsblEntries(ctx, "trnameObjectEmailfilterDnsblEntries", &fortimanager.ObjectEmailfilterDnsblEntriesArgs{
			Action: pulumi.String("spam"),
			Fosid:  pulumi.Float64(12),
			Status: pulumi.String("disable"),
			Dnsbl:  trnameObjectEmailfilterDnsbl.Fosid,
		}, pulumi.DependsOn([]pulumi.Resource{
			trnameObjectEmailfilterDnsbl,
		}))
		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 trnameObjectEmailfilterDnsbl = new Fortimanager.ObjectEmailfilterDnsbl("trnameObjectEmailfilterDnsbl", new()
    {
        Comment = "This is a Terraform example",
        Fosid = 1,
    });

    var trnameObjectEmailfilterDnsblEntries = new Fortimanager.ObjectEmailfilterDnsblEntries("trnameObjectEmailfilterDnsblEntries", new()
    {
        Action = "spam",
        Fosid = 12,
        Status = "disable",
        Dnsbl = trnameObjectEmailfilterDnsbl.Fosid,
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            trnameObjectEmailfilterDnsbl,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.ObjectEmailfilterDnsbl;
import com.pulumi.fortimanager.ObjectEmailfilterDnsblArgs;
import com.pulumi.fortimanager.ObjectEmailfilterDnsblEntries;
import com.pulumi.fortimanager.ObjectEmailfilterDnsblEntriesArgs;
import com.pulumi.resources.CustomResourceOptions;
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 trnameObjectEmailfilterDnsbl = new ObjectEmailfilterDnsbl("trnameObjectEmailfilterDnsbl", ObjectEmailfilterDnsblArgs.builder()
            .comment("This is a Terraform example")
            .fosid(1)
            .build());

        var trnameObjectEmailfilterDnsblEntries = new ObjectEmailfilterDnsblEntries("trnameObjectEmailfilterDnsblEntries", ObjectEmailfilterDnsblEntriesArgs.builder()
            .action("spam")
            .fosid(12)
            .status("disable")
            .dnsbl(trnameObjectEmailfilterDnsbl.fosid())
            .build(), CustomResourceOptions.builder()
                .dependsOn(trnameObjectEmailfilterDnsbl)
                .build());

    }
}
Copy
resources:
  trnameObjectEmailfilterDnsblEntries:
    type: fortimanager:ObjectEmailfilterDnsblEntries
    properties:
      action: spam
      fosid: 12
      status: disable
      dnsbl: ${trnameObjectEmailfilterDnsbl.fosid}
    options:
      dependsOn:
        - ${trnameObjectEmailfilterDnsbl}
  trnameObjectEmailfilterDnsbl:
    type: fortimanager:ObjectEmailfilterDnsbl
    properties:
      comment: This is a Terraform example
      fosid: 1
Copy

Create ObjectEmailfilterDnsblEntries Resource

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

Constructor syntax

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

@overload
def ObjectEmailfilterDnsblEntries(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  dnsbl: Optional[str] = None,
                                  action: Optional[str] = None,
                                  adom: Optional[str] = None,
                                  fosid: Optional[float] = None,
                                  object_emailfilter_dnsbl_entries_id: Optional[str] = None,
                                  scopetype: Optional[str] = None,
                                  server: Optional[str] = None,
                                  status: Optional[str] = None)
func NewObjectEmailfilterDnsblEntries(ctx *Context, name string, args ObjectEmailfilterDnsblEntriesArgs, opts ...ResourceOption) (*ObjectEmailfilterDnsblEntries, error)
public ObjectEmailfilterDnsblEntries(string name, ObjectEmailfilterDnsblEntriesArgs args, CustomResourceOptions? opts = null)
public ObjectEmailfilterDnsblEntries(String name, ObjectEmailfilterDnsblEntriesArgs args)
public ObjectEmailfilterDnsblEntries(String name, ObjectEmailfilterDnsblEntriesArgs args, CustomResourceOptions options)
type: fortimanager:ObjectEmailfilterDnsblEntries
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. ObjectEmailfilterDnsblEntriesArgs
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. ObjectEmailfilterDnsblEntriesArgs
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. ObjectEmailfilterDnsblEntriesArgs
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. ObjectEmailfilterDnsblEntriesArgs
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. ObjectEmailfilterDnsblEntriesArgs
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 objectEmailfilterDnsblEntriesResource = new Fortimanager.ObjectEmailfilterDnsblEntries("objectEmailfilterDnsblEntriesResource", new()
{
    Dnsbl = "string",
    Action = "string",
    Adom = "string",
    Fosid = 0,
    ObjectEmailfilterDnsblEntriesId = "string",
    Scopetype = "string",
    Server = "string",
    Status = "string",
});
Copy
example, err := fortimanager.NewObjectEmailfilterDnsblEntries(ctx, "objectEmailfilterDnsblEntriesResource", &fortimanager.ObjectEmailfilterDnsblEntriesArgs{
Dnsbl: pulumi.String("string"),
Action: pulumi.String("string"),
Adom: pulumi.String("string"),
Fosid: pulumi.Float64(0),
ObjectEmailfilterDnsblEntriesId: pulumi.String("string"),
Scopetype: pulumi.String("string"),
Server: pulumi.String("string"),
Status: pulumi.String("string"),
})
Copy
var objectEmailfilterDnsblEntriesResource = new ObjectEmailfilterDnsblEntries("objectEmailfilterDnsblEntriesResource", ObjectEmailfilterDnsblEntriesArgs.builder()
    .dnsbl("string")
    .action("string")
    .adom("string")
    .fosid(0)
    .objectEmailfilterDnsblEntriesId("string")
    .scopetype("string")
    .server("string")
    .status("string")
    .build());
Copy
object_emailfilter_dnsbl_entries_resource = fortimanager.ObjectEmailfilterDnsblEntries("objectEmailfilterDnsblEntriesResource",
    dnsbl="string",
    action="string",
    adom="string",
    fosid=0,
    object_emailfilter_dnsbl_entries_id="string",
    scopetype="string",
    server="string",
    status="string")
Copy
const objectEmailfilterDnsblEntriesResource = new fortimanager.ObjectEmailfilterDnsblEntries("objectEmailfilterDnsblEntriesResource", {
    dnsbl: "string",
    action: "string",
    adom: "string",
    fosid: 0,
    objectEmailfilterDnsblEntriesId: "string",
    scopetype: "string",
    server: "string",
    status: "string",
});
Copy
type: fortimanager:ObjectEmailfilterDnsblEntries
properties:
    action: string
    adom: string
    dnsbl: string
    fosid: 0
    objectEmailfilterDnsblEntriesId: string
    scopetype: string
    server: string
    status: string
Copy

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

Dnsbl This property is required. string
Dnsbl.
Action string
Reject connection or mark as spam email. Valid values: spam, reject.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Fosid double
DNSBL/ORBL entry ID.
ObjectEmailfilterDnsblEntriesId string
an identifier for the resource with format {{fosid}}.
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.
Server string
DNSBL or ORBL server name.
Status string
Enable/disable status. Valid values: disable, enable.
Dnsbl This property is required. string
Dnsbl.
Action string
Reject connection or mark as spam email. Valid values: spam, reject.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Fosid float64
DNSBL/ORBL entry ID.
ObjectEmailfilterDnsblEntriesId string
an identifier for the resource with format {{fosid}}.
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.
Server string
DNSBL or ORBL server name.
Status string
Enable/disable status. Valid values: disable, enable.
dnsbl This property is required. String
Dnsbl.
action String
Reject connection or mark as spam email. Valid values: spam, reject.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
fosid Double
DNSBL/ORBL entry ID.
objectEmailfilterDnsblEntriesId String
an identifier for the resource with format {{fosid}}.
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.
server String
DNSBL or ORBL server name.
status String
Enable/disable status. Valid values: disable, enable.
dnsbl This property is required. string
Dnsbl.
action string
Reject connection or mark as spam email. Valid values: spam, reject.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
fosid number
DNSBL/ORBL entry ID.
objectEmailfilterDnsblEntriesId string
an identifier for the resource with format {{fosid}}.
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.
server string
DNSBL or ORBL server name.
status string
Enable/disable status. Valid values: disable, enable.
dnsbl This property is required. str
Dnsbl.
action str
Reject connection or mark as spam email. Valid values: spam, reject.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
fosid float
DNSBL/ORBL entry ID.
object_emailfilter_dnsbl_entries_id str
an identifier for the resource with format {{fosid}}.
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.
server str
DNSBL or ORBL server name.
status str
Enable/disable status. Valid values: disable, enable.
dnsbl This property is required. String
Dnsbl.
action String
Reject connection or mark as spam email. Valid values: spam, reject.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
fosid Number
DNSBL/ORBL entry ID.
objectEmailfilterDnsblEntriesId String
an identifier for the resource with format {{fosid}}.
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.
server String
DNSBL or ORBL server name.
status String
Enable/disable status. Valid values: disable, enable.

Outputs

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

Get an existing ObjectEmailfilterDnsblEntries 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?: ObjectEmailfilterDnsblEntriesState, opts?: CustomResourceOptions): ObjectEmailfilterDnsblEntries
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        action: Optional[str] = None,
        adom: Optional[str] = None,
        dnsbl: Optional[str] = None,
        fosid: Optional[float] = None,
        object_emailfilter_dnsbl_entries_id: Optional[str] = None,
        scopetype: Optional[str] = None,
        server: Optional[str] = None,
        status: Optional[str] = None) -> ObjectEmailfilterDnsblEntries
func GetObjectEmailfilterDnsblEntries(ctx *Context, name string, id IDInput, state *ObjectEmailfilterDnsblEntriesState, opts ...ResourceOption) (*ObjectEmailfilterDnsblEntries, error)
public static ObjectEmailfilterDnsblEntries Get(string name, Input<string> id, ObjectEmailfilterDnsblEntriesState? state, CustomResourceOptions? opts = null)
public static ObjectEmailfilterDnsblEntries get(String name, Output<String> id, ObjectEmailfilterDnsblEntriesState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectEmailfilterDnsblEntries    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 connection or mark as spam email. Valid values: spam, reject.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Dnsbl string
Dnsbl.
Fosid double
DNSBL/ORBL entry ID.
ObjectEmailfilterDnsblEntriesId string
an identifier for the resource with format {{fosid}}.
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.
Server string
DNSBL or ORBL server name.
Status string
Enable/disable status. Valid values: disable, enable.
Action string
Reject connection or mark as spam email. Valid values: spam, reject.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Dnsbl string
Dnsbl.
Fosid float64
DNSBL/ORBL entry ID.
ObjectEmailfilterDnsblEntriesId string
an identifier for the resource with format {{fosid}}.
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.
Server string
DNSBL or ORBL server name.
Status string
Enable/disable status. Valid values: disable, enable.
action String
Reject connection or mark as spam email. Valid values: spam, reject.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
dnsbl String
Dnsbl.
fosid Double
DNSBL/ORBL entry ID.
objectEmailfilterDnsblEntriesId String
an identifier for the resource with format {{fosid}}.
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.
server String
DNSBL or ORBL server name.
status String
Enable/disable status. Valid values: disable, enable.
action string
Reject connection or mark as spam email. Valid values: spam, reject.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
dnsbl string
Dnsbl.
fosid number
DNSBL/ORBL entry ID.
objectEmailfilterDnsblEntriesId string
an identifier for the resource with format {{fosid}}.
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.
server string
DNSBL or ORBL server name.
status string
Enable/disable status. Valid values: disable, enable.
action str
Reject connection or mark as spam email. Valid values: spam, reject.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
dnsbl str
Dnsbl.
fosid float
DNSBL/ORBL entry ID.
object_emailfilter_dnsbl_entries_id str
an identifier for the resource with format {{fosid}}.
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.
server str
DNSBL or ORBL server name.
status str
Enable/disable status. Valid values: disable, enable.
action String
Reject connection or mark as spam email. Valid values: spam, reject.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
dnsbl String
Dnsbl.
fosid Number
DNSBL/ORBL entry ID.
objectEmailfilterDnsblEntriesId String
an identifier for the resource with format {{fosid}}.
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.
server String
DNSBL or ORBL server name.
status String
Enable/disable status. Valid values: disable, enable.

Import

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

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

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/objectEmailfilterDnsblEntries:ObjectEmailfilterDnsblEntries 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.