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

fortimanager.ObjectEmailfilterIptrustEntries

Explore with Pulumi AI

Spam filter trusted IP addresses.

This resource is a sub resource for variable entries of resource fortimanager.ObjectEmailfilterIptrust. 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 trnameObjectEmailfilterIptrust = new fortimanager.ObjectEmailfilterIptrust("trnameObjectEmailfilterIptrust", {
    comment: "This is a Terraform example",
    fosid: 1,
});
const trnameObjectEmailfilterIptrustEntries = new fortimanager.ObjectEmailfilterIptrustEntries("trnameObjectEmailfilterIptrustEntries", {
    iptrust: trnameObjectEmailfilterIptrust.fosid,
    addrType: "ipv4",
    fosid: 1,
    ip4Subnet: "32.25.23.0 255.255.255.0",
}, {
    dependsOn: [trnameObjectEmailfilterIptrust],
});
Copy
import pulumi
import pulumi_fortimanager as fortimanager

trname_object_emailfilter_iptrust = fortimanager.ObjectEmailfilterIptrust("trnameObjectEmailfilterIptrust",
    comment="This is a Terraform example",
    fosid=1)
trname_object_emailfilter_iptrust_entries = fortimanager.ObjectEmailfilterIptrustEntries("trnameObjectEmailfilterIptrustEntries",
    iptrust=trname_object_emailfilter_iptrust.fosid,
    addr_type="ipv4",
    fosid=1,
    ip4_subnet="32.25.23.0 255.255.255.0",
    opts = pulumi.ResourceOptions(depends_on=[trname_object_emailfilter_iptrust]))
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 {
		trnameObjectEmailfilterIptrust, err := fortimanager.NewObjectEmailfilterIptrust(ctx, "trnameObjectEmailfilterIptrust", &fortimanager.ObjectEmailfilterIptrustArgs{
			Comment: pulumi.String("This is a Terraform example"),
			Fosid:   pulumi.Float64(1),
		})
		if err != nil {
			return err
		}
		_, err = fortimanager.NewObjectEmailfilterIptrustEntries(ctx, "trnameObjectEmailfilterIptrustEntries", &fortimanager.ObjectEmailfilterIptrustEntriesArgs{
			Iptrust:   trnameObjectEmailfilterIptrust.Fosid,
			AddrType:  pulumi.String("ipv4"),
			Fosid:     pulumi.Float64(1),
			Ip4Subnet: pulumi.String("32.25.23.0 255.255.255.0"),
		}, pulumi.DependsOn([]pulumi.Resource{
			trnameObjectEmailfilterIptrust,
		}))
		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 trnameObjectEmailfilterIptrust = new Fortimanager.ObjectEmailfilterIptrust("trnameObjectEmailfilterIptrust", new()
    {
        Comment = "This is a Terraform example",
        Fosid = 1,
    });

    var trnameObjectEmailfilterIptrustEntries = new Fortimanager.ObjectEmailfilterIptrustEntries("trnameObjectEmailfilterIptrustEntries", new()
    {
        Iptrust = trnameObjectEmailfilterIptrust.Fosid,
        AddrType = "ipv4",
        Fosid = 1,
        Ip4Subnet = "32.25.23.0 255.255.255.0",
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            trnameObjectEmailfilterIptrust,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.ObjectEmailfilterIptrust;
import com.pulumi.fortimanager.ObjectEmailfilterIptrustArgs;
import com.pulumi.fortimanager.ObjectEmailfilterIptrustEntries;
import com.pulumi.fortimanager.ObjectEmailfilterIptrustEntriesArgs;
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 trnameObjectEmailfilterIptrust = new ObjectEmailfilterIptrust("trnameObjectEmailfilterIptrust", ObjectEmailfilterIptrustArgs.builder()
            .comment("This is a Terraform example")
            .fosid(1)
            .build());

        var trnameObjectEmailfilterIptrustEntries = new ObjectEmailfilterIptrustEntries("trnameObjectEmailfilterIptrustEntries", ObjectEmailfilterIptrustEntriesArgs.builder()
            .iptrust(trnameObjectEmailfilterIptrust.fosid())
            .addrType("ipv4")
            .fosid(1)
            .ip4Subnet("32.25.23.0 255.255.255.0")
            .build(), CustomResourceOptions.builder()
                .dependsOn(trnameObjectEmailfilterIptrust)
                .build());

    }
}
Copy
resources:
  trnameObjectEmailfilterIptrustEntries:
    type: fortimanager:ObjectEmailfilterIptrustEntries
    properties:
      iptrust: ${trnameObjectEmailfilterIptrust.fosid}
      addrType: ipv4
      fosid: 1
      ip4Subnet: 32.25.23.0 255.255.255.0
    options:
      dependsOn:
        - ${trnameObjectEmailfilterIptrust}
  trnameObjectEmailfilterIptrust:
    type: fortimanager:ObjectEmailfilterIptrust
    properties:
      comment: This is a Terraform example
      fosid: 1
Copy

Create ObjectEmailfilterIptrustEntries Resource

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

Constructor syntax

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

@overload
def ObjectEmailfilterIptrustEntries(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    iptrust: Optional[str] = None,
                                    addr_type: Optional[str] = None,
                                    adom: Optional[str] = None,
                                    fosid: Optional[float] = None,
                                    ip4_subnet: Optional[str] = None,
                                    ip6_subnet: Optional[str] = None,
                                    object_emailfilter_iptrust_entries_id: Optional[str] = None,
                                    scopetype: Optional[str] = None,
                                    status: Optional[str] = None)
func NewObjectEmailfilterIptrustEntries(ctx *Context, name string, args ObjectEmailfilterIptrustEntriesArgs, opts ...ResourceOption) (*ObjectEmailfilterIptrustEntries, error)
public ObjectEmailfilterIptrustEntries(string name, ObjectEmailfilterIptrustEntriesArgs args, CustomResourceOptions? opts = null)
public ObjectEmailfilterIptrustEntries(String name, ObjectEmailfilterIptrustEntriesArgs args)
public ObjectEmailfilterIptrustEntries(String name, ObjectEmailfilterIptrustEntriesArgs args, CustomResourceOptions options)
type: fortimanager:ObjectEmailfilterIptrustEntries
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. ObjectEmailfilterIptrustEntriesArgs
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. ObjectEmailfilterIptrustEntriesArgs
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. ObjectEmailfilterIptrustEntriesArgs
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. ObjectEmailfilterIptrustEntriesArgs
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. ObjectEmailfilterIptrustEntriesArgs
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 objectEmailfilterIptrustEntriesResource = new Fortimanager.ObjectEmailfilterIptrustEntries("objectEmailfilterIptrustEntriesResource", new()
{
    Iptrust = "string",
    AddrType = "string",
    Adom = "string",
    Fosid = 0,
    Ip4Subnet = "string",
    Ip6Subnet = "string",
    ObjectEmailfilterIptrustEntriesId = "string",
    Scopetype = "string",
    Status = "string",
});
Copy
example, err := fortimanager.NewObjectEmailfilterIptrustEntries(ctx, "objectEmailfilterIptrustEntriesResource", &fortimanager.ObjectEmailfilterIptrustEntriesArgs{
Iptrust: pulumi.String("string"),
AddrType: pulumi.String("string"),
Adom: pulumi.String("string"),
Fosid: pulumi.Float64(0),
Ip4Subnet: pulumi.String("string"),
Ip6Subnet: pulumi.String("string"),
ObjectEmailfilterIptrustEntriesId: pulumi.String("string"),
Scopetype: pulumi.String("string"),
Status: pulumi.String("string"),
})
Copy
var objectEmailfilterIptrustEntriesResource = new ObjectEmailfilterIptrustEntries("objectEmailfilterIptrustEntriesResource", ObjectEmailfilterIptrustEntriesArgs.builder()
    .iptrust("string")
    .addrType("string")
    .adom("string")
    .fosid(0)
    .ip4Subnet("string")
    .ip6Subnet("string")
    .objectEmailfilterIptrustEntriesId("string")
    .scopetype("string")
    .status("string")
    .build());
Copy
object_emailfilter_iptrust_entries_resource = fortimanager.ObjectEmailfilterIptrustEntries("objectEmailfilterIptrustEntriesResource",
    iptrust="string",
    addr_type="string",
    adom="string",
    fosid=0,
    ip4_subnet="string",
    ip6_subnet="string",
    object_emailfilter_iptrust_entries_id="string",
    scopetype="string",
    status="string")
Copy
const objectEmailfilterIptrustEntriesResource = new fortimanager.ObjectEmailfilterIptrustEntries("objectEmailfilterIptrustEntriesResource", {
    iptrust: "string",
    addrType: "string",
    adom: "string",
    fosid: 0,
    ip4Subnet: "string",
    ip6Subnet: "string",
    objectEmailfilterIptrustEntriesId: "string",
    scopetype: "string",
    status: "string",
});
Copy
type: fortimanager:ObjectEmailfilterIptrustEntries
properties:
    addrType: string
    adom: string
    fosid: 0
    ip4Subnet: string
    ip6Subnet: string
    iptrust: string
    objectEmailfilterIptrustEntriesId: string
    scopetype: string
    status: string
Copy

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

Iptrust This property is required. string
Iptrust.
AddrType string
Type of address. 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.
Fosid double
Trusted IP entry ID.
Ip4Subnet string
IPv4 network address or network address/subnet mask bits.
Ip6Subnet string
IPv6 network address/subnet mask bits.
ObjectEmailfilterIptrustEntriesId 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.
Status string
Enable/disable status. Valid values: disable, enable.
Iptrust This property is required. string
Iptrust.
AddrType string
Type of address. 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.
Fosid float64
Trusted IP entry ID.
Ip4Subnet string
IPv4 network address or network address/subnet mask bits.
Ip6Subnet string
IPv6 network address/subnet mask bits.
ObjectEmailfilterIptrustEntriesId 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.
Status string
Enable/disable status. Valid values: disable, enable.
iptrust This property is required. String
Iptrust.
addrType String
Type of address. 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.
fosid Double
Trusted IP entry ID.
ip4Subnet String
IPv4 network address or network address/subnet mask bits.
ip6Subnet String
IPv6 network address/subnet mask bits.
objectEmailfilterIptrustEntriesId 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.
status String
Enable/disable status. Valid values: disable, enable.
iptrust This property is required. string
Iptrust.
addrType string
Type of address. 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.
fosid number
Trusted IP entry ID.
ip4Subnet string
IPv4 network address or network address/subnet mask bits.
ip6Subnet string
IPv6 network address/subnet mask bits.
objectEmailfilterIptrustEntriesId 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.
status string
Enable/disable status. Valid values: disable, enable.
iptrust This property is required. str
Iptrust.
addr_type str
Type of address. 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.
fosid float
Trusted IP entry ID.
ip4_subnet str
IPv4 network address or network address/subnet mask bits.
ip6_subnet str
IPv6 network address/subnet mask bits.
object_emailfilter_iptrust_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.
status str
Enable/disable status. Valid values: disable, enable.
iptrust This property is required. String
Iptrust.
addrType String
Type of address. 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.
fosid Number
Trusted IP entry ID.
ip4Subnet String
IPv4 network address or network address/subnet mask bits.
ip6Subnet String
IPv6 network address/subnet mask bits.
objectEmailfilterIptrustEntriesId 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.
status String
Enable/disable status. Valid values: disable, enable.

Outputs

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

Get an existing ObjectEmailfilterIptrustEntries 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?: ObjectEmailfilterIptrustEntriesState, opts?: CustomResourceOptions): ObjectEmailfilterIptrustEntries
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        addr_type: Optional[str] = None,
        adom: Optional[str] = None,
        fosid: Optional[float] = None,
        ip4_subnet: Optional[str] = None,
        ip6_subnet: Optional[str] = None,
        iptrust: Optional[str] = None,
        object_emailfilter_iptrust_entries_id: Optional[str] = None,
        scopetype: Optional[str] = None,
        status: Optional[str] = None) -> ObjectEmailfilterIptrustEntries
func GetObjectEmailfilterIptrustEntries(ctx *Context, name string, id IDInput, state *ObjectEmailfilterIptrustEntriesState, opts ...ResourceOption) (*ObjectEmailfilterIptrustEntries, error)
public static ObjectEmailfilterIptrustEntries Get(string name, Input<string> id, ObjectEmailfilterIptrustEntriesState? state, CustomResourceOptions? opts = null)
public static ObjectEmailfilterIptrustEntries get(String name, Output<String> id, ObjectEmailfilterIptrustEntriesState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectEmailfilterIptrustEntries    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:
AddrType string
Type of address. 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.
Fosid double
Trusted IP entry ID.
Ip4Subnet string
IPv4 network address or network address/subnet mask bits.
Ip6Subnet string
IPv6 network address/subnet mask bits.
Iptrust string
Iptrust.
ObjectEmailfilterIptrustEntriesId 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.
Status string
Enable/disable status. Valid values: disable, enable.
AddrType string
Type of address. 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.
Fosid float64
Trusted IP entry ID.
Ip4Subnet string
IPv4 network address or network address/subnet mask bits.
Ip6Subnet string
IPv6 network address/subnet mask bits.
Iptrust string
Iptrust.
ObjectEmailfilterIptrustEntriesId 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.
Status string
Enable/disable status. Valid values: disable, enable.
addrType String
Type of address. 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.
fosid Double
Trusted IP entry ID.
ip4Subnet String
IPv4 network address or network address/subnet mask bits.
ip6Subnet String
IPv6 network address/subnet mask bits.
iptrust String
Iptrust.
objectEmailfilterIptrustEntriesId 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.
status String
Enable/disable status. Valid values: disable, enable.
addrType string
Type of address. 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.
fosid number
Trusted IP entry ID.
ip4Subnet string
IPv4 network address or network address/subnet mask bits.
ip6Subnet string
IPv6 network address/subnet mask bits.
iptrust string
Iptrust.
objectEmailfilterIptrustEntriesId 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.
status string
Enable/disable status. Valid values: disable, enable.
addr_type str
Type of address. 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.
fosid float
Trusted IP entry ID.
ip4_subnet str
IPv4 network address or network address/subnet mask bits.
ip6_subnet str
IPv6 network address/subnet mask bits.
iptrust str
Iptrust.
object_emailfilter_iptrust_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.
status str
Enable/disable status. Valid values: disable, enable.
addrType String
Type of address. 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.
fosid Number
Trusted IP entry ID.
ip4Subnet String
IPv4 network address or network address/subnet mask bits.
ip6Subnet String
IPv6 network address/subnet mask bits.
iptrust String
Iptrust.
objectEmailfilterIptrustEntriesId 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.
status String
Enable/disable status. Valid values: disable, enable.

Import

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

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

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

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