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

fortimanager.ObjectSpamfilterDnsbl

Explore with Pulumi AI

Configure AntiSpam DNSBL/ORBL.

The following variables have sub resource. Avoid using them together, otherwise conflicts and overwrites may occur.

  • entries: fortimanager_object_spamfilter_dnsbl_entries

Create ObjectSpamfilterDnsbl Resource

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

Constructor syntax

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

@overload
def ObjectSpamfilterDnsbl(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          adom: Optional[str] = None,
                          comment: Optional[str] = None,
                          dynamic_sort_subtable: Optional[str] = None,
                          entries: Optional[Sequence[ObjectSpamfilterDnsblEntryArgs]] = None,
                          fosid: Optional[float] = None,
                          name: Optional[str] = None,
                          object_spamfilter_dnsbl_id: Optional[str] = None,
                          scopetype: Optional[str] = None)
func NewObjectSpamfilterDnsbl(ctx *Context, name string, args *ObjectSpamfilterDnsblArgs, opts ...ResourceOption) (*ObjectSpamfilterDnsbl, error)
public ObjectSpamfilterDnsbl(string name, ObjectSpamfilterDnsblArgs? args = null, CustomResourceOptions? opts = null)
public ObjectSpamfilterDnsbl(String name, ObjectSpamfilterDnsblArgs args)
public ObjectSpamfilterDnsbl(String name, ObjectSpamfilterDnsblArgs args, CustomResourceOptions options)
type: fortimanager:ObjectSpamfilterDnsbl
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 ObjectSpamfilterDnsblArgs
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 ObjectSpamfilterDnsblArgs
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 ObjectSpamfilterDnsblArgs
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 ObjectSpamfilterDnsblArgs
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. ObjectSpamfilterDnsblArgs
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 objectSpamfilterDnsblResource = new Fortimanager.ObjectSpamfilterDnsbl("objectSpamfilterDnsblResource", new()
{
    Adom = "string",
    Comment = "string",
    DynamicSortSubtable = "string",
    Entries = new[]
    {
        new Fortimanager.Inputs.ObjectSpamfilterDnsblEntryArgs
        {
            Action = "string",
            Id = 0,
            Server = "string",
            Status = "string",
        },
    },
    Fosid = 0,
    Name = "string",
    ObjectSpamfilterDnsblId = "string",
    Scopetype = "string",
});
Copy
example, err := fortimanager.NewObjectSpamfilterDnsbl(ctx, "objectSpamfilterDnsblResource", &fortimanager.ObjectSpamfilterDnsblArgs{
Adom: pulumi.String("string"),
Comment: pulumi.String("string"),
DynamicSortSubtable: pulumi.String("string"),
Entries: .ObjectSpamfilterDnsblEntryArray{
&.ObjectSpamfilterDnsblEntryArgs{
Action: pulumi.String("string"),
Id: pulumi.Float64(0),
Server: pulumi.String("string"),
Status: pulumi.String("string"),
},
},
Fosid: pulumi.Float64(0),
Name: pulumi.String("string"),
ObjectSpamfilterDnsblId: pulumi.String("string"),
Scopetype: pulumi.String("string"),
})
Copy
var objectSpamfilterDnsblResource = new ObjectSpamfilterDnsbl("objectSpamfilterDnsblResource", ObjectSpamfilterDnsblArgs.builder()
    .adom("string")
    .comment("string")
    .dynamicSortSubtable("string")
    .entries(ObjectSpamfilterDnsblEntryArgs.builder()
        .action("string")
        .id(0)
        .server("string")
        .status("string")
        .build())
    .fosid(0)
    .name("string")
    .objectSpamfilterDnsblId("string")
    .scopetype("string")
    .build());
Copy
object_spamfilter_dnsbl_resource = fortimanager.ObjectSpamfilterDnsbl("objectSpamfilterDnsblResource",
    adom="string",
    comment="string",
    dynamic_sort_subtable="string",
    entries=[{
        "action": "string",
        "id": 0,
        "server": "string",
        "status": "string",
    }],
    fosid=0,
    name="string",
    object_spamfilter_dnsbl_id="string",
    scopetype="string")
Copy
const objectSpamfilterDnsblResource = new fortimanager.ObjectSpamfilterDnsbl("objectSpamfilterDnsblResource", {
    adom: "string",
    comment: "string",
    dynamicSortSubtable: "string",
    entries: [{
        action: "string",
        id: 0,
        server: "string",
        status: "string",
    }],
    fosid: 0,
    name: "string",
    objectSpamfilterDnsblId: "string",
    scopetype: "string",
});
Copy
type: fortimanager:ObjectSpamfilterDnsbl
properties:
    adom: string
    comment: string
    dynamicSortSubtable: string
    entries:
        - action: string
          id: 0
          server: string
          status: string
    fosid: 0
    name: string
    objectSpamfilterDnsblId: string
    scopetype: string
Copy

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

Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Comment string
Optional comments.
DynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
Entries List<ObjectSpamfilterDnsblEntry>
Entries. The structure of entries block is documented below.
Fosid double
ID.
Name string
Name of table.
ObjectSpamfilterDnsblId 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.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Comment string
Optional comments.
DynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
Entries []ObjectSpamfilterDnsblEntryArgs
Entries. The structure of entries block is documented below.
Fosid float64
ID.
Name string
Name of table.
ObjectSpamfilterDnsblId 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.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
comment String
Optional comments.
dynamicSortSubtable String
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
entries List<ObjectSpamfilterDnsblEntry>
Entries. The structure of entries block is documented below.
fosid Double
ID.
name String
Name of table.
objectSpamfilterDnsblId 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.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
comment string
Optional comments.
dynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
entries ObjectSpamfilterDnsblEntry[]
Entries. The structure of entries block is documented below.
fosid number
ID.
name string
Name of table.
objectSpamfilterDnsblId 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.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
comment str
Optional comments.
dynamic_sort_subtable str
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
entries Sequence[ObjectSpamfilterDnsblEntryArgs]
Entries. The structure of entries block is documented below.
fosid float
ID.
name str
Name of table.
object_spamfilter_dnsbl_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.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
comment String
Optional comments.
dynamicSortSubtable String
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
entries List<Property Map>
Entries. The structure of entries block is documented below.
fosid Number
ID.
name String
Name of table.
objectSpamfilterDnsblId 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.

Outputs

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

Get an existing ObjectSpamfilterDnsbl 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?: ObjectSpamfilterDnsblState, opts?: CustomResourceOptions): ObjectSpamfilterDnsbl
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        adom: Optional[str] = None,
        comment: Optional[str] = None,
        dynamic_sort_subtable: Optional[str] = None,
        entries: Optional[Sequence[ObjectSpamfilterDnsblEntryArgs]] = None,
        fosid: Optional[float] = None,
        name: Optional[str] = None,
        object_spamfilter_dnsbl_id: Optional[str] = None,
        scopetype: Optional[str] = None) -> ObjectSpamfilterDnsbl
func GetObjectSpamfilterDnsbl(ctx *Context, name string, id IDInput, state *ObjectSpamfilterDnsblState, opts ...ResourceOption) (*ObjectSpamfilterDnsbl, error)
public static ObjectSpamfilterDnsbl Get(string name, Input<string> id, ObjectSpamfilterDnsblState? state, CustomResourceOptions? opts = null)
public static ObjectSpamfilterDnsbl get(String name, Output<String> id, ObjectSpamfilterDnsblState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectSpamfilterDnsbl    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:
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Comment string
Optional comments.
DynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
Entries List<ObjectSpamfilterDnsblEntry>
Entries. The structure of entries block is documented below.
Fosid double
ID.
Name string
Name of table.
ObjectSpamfilterDnsblId 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.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Comment string
Optional comments.
DynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
Entries []ObjectSpamfilterDnsblEntryArgs
Entries. The structure of entries block is documented below.
Fosid float64
ID.
Name string
Name of table.
ObjectSpamfilterDnsblId 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.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
comment String
Optional comments.
dynamicSortSubtable String
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
entries List<ObjectSpamfilterDnsblEntry>
Entries. The structure of entries block is documented below.
fosid Double
ID.
name String
Name of table.
objectSpamfilterDnsblId 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.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
comment string
Optional comments.
dynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
entries ObjectSpamfilterDnsblEntry[]
Entries. The structure of entries block is documented below.
fosid number
ID.
name string
Name of table.
objectSpamfilterDnsblId 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.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
comment str
Optional comments.
dynamic_sort_subtable str
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
entries Sequence[ObjectSpamfilterDnsblEntryArgs]
Entries. The structure of entries block is documented below.
fosid float
ID.
name str
Name of table.
object_spamfilter_dnsbl_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.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
comment String
Optional comments.
dynamicSortSubtable String
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
entries List<Property Map>
Entries. The structure of entries block is documented below.
fosid Number
ID.
name String
Name of table.
objectSpamfilterDnsblId 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.

Supporting Types

ObjectSpamfilterDnsblEntry
, ObjectSpamfilterDnsblEntryArgs

Action string
Reject connection or mark as spam email. Valid values: spam, reject.
Id double
DNSBL/ORBL entry ID.
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.
Id float64
DNSBL/ORBL entry ID.
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.
id Double
DNSBL/ORBL entry ID.
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.
id number
DNSBL/ORBL entry ID.
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.
id float
DNSBL/ORBL entry ID.
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.
id Number
DNSBL/ORBL entry ID.
server String
DNSBL or ORBL server name.
status String
Enable/disable status. Valid values: disable, enable.

Import

ObjectSpamfilter Dnsbl can be imported using any of these accepted formats:

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

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