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

fortimanager.ObjectDnsfilterProfileDnstranslation

Explore with Pulumi AI

DNS translation settings.

This resource is a sub resource for variable dns_translation of resource fortimanager.ObjectDnsfilterProfile. 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 trnameObjectDnsfilterProfile = new fortimanager.ObjectDnsfilterProfile("trnameObjectDnsfilterProfile", {});
const trnameObjectDnsfilterProfileDnstranslation = new fortimanager.ObjectDnsfilterProfileDnstranslation("trnameObjectDnsfilterProfileDnstranslation", {
    dst: "38.53.6.21",
    fosid: 1,
    src: "34.53.6.21",
    status: "disable",
    profile: trnameObjectDnsfilterProfile.name,
}, {
    dependsOn: [trnameObjectDnsfilterProfile],
});
Copy
import pulumi
import pulumi_fortimanager as fortimanager

trname_object_dnsfilter_profile = fortimanager.ObjectDnsfilterProfile("trnameObjectDnsfilterProfile")
trname_object_dnsfilter_profile_dnstranslation = fortimanager.ObjectDnsfilterProfileDnstranslation("trnameObjectDnsfilterProfileDnstranslation",
    dst="38.53.6.21",
    fosid=1,
    src="34.53.6.21",
    status="disable",
    profile=trname_object_dnsfilter_profile.name,
    opts = pulumi.ResourceOptions(depends_on=[trname_object_dnsfilter_profile]))
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 {
		trnameObjectDnsfilterProfile, err := fortimanager.NewObjectDnsfilterProfile(ctx, "trnameObjectDnsfilterProfile", nil)
		if err != nil {
			return err
		}
		_, err = fortimanager.NewObjectDnsfilterProfileDnstranslation(ctx, "trnameObjectDnsfilterProfileDnstranslation", &fortimanager.ObjectDnsfilterProfileDnstranslationArgs{
			Dst:     pulumi.String("38.53.6.21"),
			Fosid:   pulumi.Float64(1),
			Src:     pulumi.String("34.53.6.21"),
			Status:  pulumi.String("disable"),
			Profile: trnameObjectDnsfilterProfile.Name,
		}, pulumi.DependsOn([]pulumi.Resource{
			trnameObjectDnsfilterProfile,
		}))
		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 trnameObjectDnsfilterProfile = new Fortimanager.ObjectDnsfilterProfile("trnameObjectDnsfilterProfile");

    var trnameObjectDnsfilterProfileDnstranslation = new Fortimanager.ObjectDnsfilterProfileDnstranslation("trnameObjectDnsfilterProfileDnstranslation", new()
    {
        Dst = "38.53.6.21",
        Fosid = 1,
        Src = "34.53.6.21",
        Status = "disable",
        Profile = trnameObjectDnsfilterProfile.Name,
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            trnameObjectDnsfilterProfile,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.ObjectDnsfilterProfile;
import com.pulumi.fortimanager.ObjectDnsfilterProfileDnstranslation;
import com.pulumi.fortimanager.ObjectDnsfilterProfileDnstranslationArgs;
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 trnameObjectDnsfilterProfile = new ObjectDnsfilterProfile("trnameObjectDnsfilterProfile");

        var trnameObjectDnsfilterProfileDnstranslation = new ObjectDnsfilterProfileDnstranslation("trnameObjectDnsfilterProfileDnstranslation", ObjectDnsfilterProfileDnstranslationArgs.builder()
            .dst("38.53.6.21")
            .fosid(1)
            .src("34.53.6.21")
            .status("disable")
            .profile(trnameObjectDnsfilterProfile.name())
            .build(), CustomResourceOptions.builder()
                .dependsOn(trnameObjectDnsfilterProfile)
                .build());

    }
}
Copy
resources:
  trnameObjectDnsfilterProfileDnstranslation:
    type: fortimanager:ObjectDnsfilterProfileDnstranslation
    properties:
      dst: 38.53.6.21
      fosid: 1
      src: 34.53.6.21
      status: disable
      profile: ${trnameObjectDnsfilterProfile.name}
    options:
      dependsOn:
        - ${trnameObjectDnsfilterProfile}
  trnameObjectDnsfilterProfile:
    type: fortimanager:ObjectDnsfilterProfile
Copy

Create ObjectDnsfilterProfileDnstranslation Resource

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

Constructor syntax

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

@overload
def ObjectDnsfilterProfileDnstranslation(resource_name: str,
                                         opts: Optional[ResourceOptions] = None,
                                         profile: Optional[str] = None,
                                         object_dnsfilter_profile_dnstranslation_id: Optional[str] = None,
                                         dst: Optional[str] = None,
                                         dst6: Optional[str] = None,
                                         fosid: Optional[float] = None,
                                         netmask: Optional[str] = None,
                                         addr_type: Optional[str] = None,
                                         prefix: Optional[float] = None,
                                         adom: Optional[str] = None,
                                         scopetype: Optional[str] = None,
                                         src: Optional[str] = None,
                                         src6: Optional[str] = None,
                                         status: Optional[str] = None)
func NewObjectDnsfilterProfileDnstranslation(ctx *Context, name string, args ObjectDnsfilterProfileDnstranslationArgs, opts ...ResourceOption) (*ObjectDnsfilterProfileDnstranslation, error)
public ObjectDnsfilterProfileDnstranslation(string name, ObjectDnsfilterProfileDnstranslationArgs args, CustomResourceOptions? opts = null)
public ObjectDnsfilterProfileDnstranslation(String name, ObjectDnsfilterProfileDnstranslationArgs args)
public ObjectDnsfilterProfileDnstranslation(String name, ObjectDnsfilterProfileDnstranslationArgs args, CustomResourceOptions options)
type: fortimanager:ObjectDnsfilterProfileDnstranslation
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. ObjectDnsfilterProfileDnstranslationArgs
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. ObjectDnsfilterProfileDnstranslationArgs
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. ObjectDnsfilterProfileDnstranslationArgs
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. ObjectDnsfilterProfileDnstranslationArgs
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. ObjectDnsfilterProfileDnstranslationArgs
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 objectDnsfilterProfileDnstranslationResource = new Fortimanager.ObjectDnsfilterProfileDnstranslation("objectDnsfilterProfileDnstranslationResource", new()
{
    Profile = "string",
    ObjectDnsfilterProfileDnstranslationId = "string",
    Dst = "string",
    Dst6 = "string",
    Fosid = 0,
    Netmask = "string",
    AddrType = "string",
    Prefix = 0,
    Adom = "string",
    Scopetype = "string",
    Src = "string",
    Src6 = "string",
    Status = "string",
});
Copy
example, err := fortimanager.NewObjectDnsfilterProfileDnstranslation(ctx, "objectDnsfilterProfileDnstranslationResource", &fortimanager.ObjectDnsfilterProfileDnstranslationArgs{
Profile: pulumi.String("string"),
ObjectDnsfilterProfileDnstranslationId: pulumi.String("string"),
Dst: pulumi.String("string"),
Dst6: pulumi.String("string"),
Fosid: pulumi.Float64(0),
Netmask: pulumi.String("string"),
AddrType: pulumi.String("string"),
Prefix: pulumi.Float64(0),
Adom: pulumi.String("string"),
Scopetype: pulumi.String("string"),
Src: pulumi.String("string"),
Src6: pulumi.String("string"),
Status: pulumi.String("string"),
})
Copy
var objectDnsfilterProfileDnstranslationResource = new ObjectDnsfilterProfileDnstranslation("objectDnsfilterProfileDnstranslationResource", ObjectDnsfilterProfileDnstranslationArgs.builder()
    .profile("string")
    .objectDnsfilterProfileDnstranslationId("string")
    .dst("string")
    .dst6("string")
    .fosid(0)
    .netmask("string")
    .addrType("string")
    .prefix(0)
    .adom("string")
    .scopetype("string")
    .src("string")
    .src6("string")
    .status("string")
    .build());
Copy
object_dnsfilter_profile_dnstranslation_resource = fortimanager.ObjectDnsfilterProfileDnstranslation("objectDnsfilterProfileDnstranslationResource",
    profile="string",
    object_dnsfilter_profile_dnstranslation_id="string",
    dst="string",
    dst6="string",
    fosid=0,
    netmask="string",
    addr_type="string",
    prefix=0,
    adom="string",
    scopetype="string",
    src="string",
    src6="string",
    status="string")
Copy
const objectDnsfilterProfileDnstranslationResource = new fortimanager.ObjectDnsfilterProfileDnstranslation("objectDnsfilterProfileDnstranslationResource", {
    profile: "string",
    objectDnsfilterProfileDnstranslationId: "string",
    dst: "string",
    dst6: "string",
    fosid: 0,
    netmask: "string",
    addrType: "string",
    prefix: 0,
    adom: "string",
    scopetype: "string",
    src: "string",
    src6: "string",
    status: "string",
});
Copy
type: fortimanager:ObjectDnsfilterProfileDnstranslation
properties:
    addrType: string
    adom: string
    dst: string
    dst6: string
    fosid: 0
    netmask: string
    objectDnsfilterProfileDnstranslationId: string
    prefix: 0
    profile: string
    scopetype: string
    src: string
    src6: string
    status: string
Copy

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

Profile This property is required. string
Profile.
AddrType string
DNS translation type (IPv4 or IPv6). 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.
Dst string
IPv4 address or subnet on the external network to substitute for the resolved address in DNS query replies. Can be single IP address or subnet on the external network, but number of addresses must equal number of mapped IP addresses in src.
Dst6 string
IPv6 address or subnet on the external network to substitute for the resolved address in DNS query replies. Can be single IP address or subnet on the external network, but number of addresses must equal number of mapped IP addresses in src6.
Fosid double
ID.
Netmask string
If src and dst are subnets rather than single IP addresses, enter the netmask for both src and dst.
ObjectDnsfilterProfileDnstranslationId string
an identifier for the resource with format {{fosid}}.
Prefix double
If src6 and dst6 are subnets rather than single IP addresses, enter the prefix for both src6 and dst6 (1 - 128, default = 128).
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.
Src string
IPv4 address or subnet on the internal network to compare with the resolved address in DNS query replies. If the resolved address matches, the resolved address is substituted with dst.
Src6 string
IPv6 address or subnet on the internal network to compare with the resolved address in DNS query replies. If the resolved address matches, the resolved address is substituted with dst6.
Status string
Enable/disable this DNS translation entry. Valid values: disable, enable.
Profile This property is required. string
Profile.
AddrType string
DNS translation type (IPv4 or IPv6). 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.
Dst string
IPv4 address or subnet on the external network to substitute for the resolved address in DNS query replies. Can be single IP address or subnet on the external network, but number of addresses must equal number of mapped IP addresses in src.
Dst6 string
IPv6 address or subnet on the external network to substitute for the resolved address in DNS query replies. Can be single IP address or subnet on the external network, but number of addresses must equal number of mapped IP addresses in src6.
Fosid float64
ID.
Netmask string
If src and dst are subnets rather than single IP addresses, enter the netmask for both src and dst.
ObjectDnsfilterProfileDnstranslationId string
an identifier for the resource with format {{fosid}}.
Prefix float64
If src6 and dst6 are subnets rather than single IP addresses, enter the prefix for both src6 and dst6 (1 - 128, default = 128).
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.
Src string
IPv4 address or subnet on the internal network to compare with the resolved address in DNS query replies. If the resolved address matches, the resolved address is substituted with dst.
Src6 string
IPv6 address or subnet on the internal network to compare with the resolved address in DNS query replies. If the resolved address matches, the resolved address is substituted with dst6.
Status string
Enable/disable this DNS translation entry. Valid values: disable, enable.
profile This property is required. String
Profile.
addrType String
DNS translation type (IPv4 or IPv6). 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.
dst String
IPv4 address or subnet on the external network to substitute for the resolved address in DNS query replies. Can be single IP address or subnet on the external network, but number of addresses must equal number of mapped IP addresses in src.
dst6 String
IPv6 address or subnet on the external network to substitute for the resolved address in DNS query replies. Can be single IP address or subnet on the external network, but number of addresses must equal number of mapped IP addresses in src6.
fosid Double
ID.
netmask String
If src and dst are subnets rather than single IP addresses, enter the netmask for both src and dst.
objectDnsfilterProfileDnstranslationId String
an identifier for the resource with format {{fosid}}.
prefix Double
If src6 and dst6 are subnets rather than single IP addresses, enter the prefix for both src6 and dst6 (1 - 128, default = 128).
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.
src String
IPv4 address or subnet on the internal network to compare with the resolved address in DNS query replies. If the resolved address matches, the resolved address is substituted with dst.
src6 String
IPv6 address or subnet on the internal network to compare with the resolved address in DNS query replies. If the resolved address matches, the resolved address is substituted with dst6.
status String
Enable/disable this DNS translation entry. Valid values: disable, enable.
profile This property is required. string
Profile.
addrType string
DNS translation type (IPv4 or IPv6). 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.
dst string
IPv4 address or subnet on the external network to substitute for the resolved address in DNS query replies. Can be single IP address or subnet on the external network, but number of addresses must equal number of mapped IP addresses in src.
dst6 string
IPv6 address or subnet on the external network to substitute for the resolved address in DNS query replies. Can be single IP address or subnet on the external network, but number of addresses must equal number of mapped IP addresses in src6.
fosid number
ID.
netmask string
If src and dst are subnets rather than single IP addresses, enter the netmask for both src and dst.
objectDnsfilterProfileDnstranslationId string
an identifier for the resource with format {{fosid}}.
prefix number
If src6 and dst6 are subnets rather than single IP addresses, enter the prefix for both src6 and dst6 (1 - 128, default = 128).
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.
src string
IPv4 address or subnet on the internal network to compare with the resolved address in DNS query replies. If the resolved address matches, the resolved address is substituted with dst.
src6 string
IPv6 address or subnet on the internal network to compare with the resolved address in DNS query replies. If the resolved address matches, the resolved address is substituted with dst6.
status string
Enable/disable this DNS translation entry. Valid values: disable, enable.
profile This property is required. str
Profile.
addr_type str
DNS translation type (IPv4 or IPv6). 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.
dst str
IPv4 address or subnet on the external network to substitute for the resolved address in DNS query replies. Can be single IP address or subnet on the external network, but number of addresses must equal number of mapped IP addresses in src.
dst6 str
IPv6 address or subnet on the external network to substitute for the resolved address in DNS query replies. Can be single IP address or subnet on the external network, but number of addresses must equal number of mapped IP addresses in src6.
fosid float
ID.
netmask str
If src and dst are subnets rather than single IP addresses, enter the netmask for both src and dst.
object_dnsfilter_profile_dnstranslation_id str
an identifier for the resource with format {{fosid}}.
prefix float
If src6 and dst6 are subnets rather than single IP addresses, enter the prefix for both src6 and dst6 (1 - 128, default = 128).
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.
src str
IPv4 address or subnet on the internal network to compare with the resolved address in DNS query replies. If the resolved address matches, the resolved address is substituted with dst.
src6 str
IPv6 address or subnet on the internal network to compare with the resolved address in DNS query replies. If the resolved address matches, the resolved address is substituted with dst6.
status str
Enable/disable this DNS translation entry. Valid values: disable, enable.
profile This property is required. String
Profile.
addrType String
DNS translation type (IPv4 or IPv6). 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.
dst String
IPv4 address or subnet on the external network to substitute for the resolved address in DNS query replies. Can be single IP address or subnet on the external network, but number of addresses must equal number of mapped IP addresses in src.
dst6 String
IPv6 address or subnet on the external network to substitute for the resolved address in DNS query replies. Can be single IP address or subnet on the external network, but number of addresses must equal number of mapped IP addresses in src6.
fosid Number
ID.
netmask String
If src and dst are subnets rather than single IP addresses, enter the netmask for both src and dst.
objectDnsfilterProfileDnstranslationId String
an identifier for the resource with format {{fosid}}.
prefix Number
If src6 and dst6 are subnets rather than single IP addresses, enter the prefix for both src6 and dst6 (1 - 128, default = 128).
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.
src String
IPv4 address or subnet on the internal network to compare with the resolved address in DNS query replies. If the resolved address matches, the resolved address is substituted with dst.
src6 String
IPv6 address or subnet on the internal network to compare with the resolved address in DNS query replies. If the resolved address matches, the resolved address is substituted with dst6.
status String
Enable/disable this DNS translation entry. Valid values: disable, enable.

Outputs

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

Get an existing ObjectDnsfilterProfileDnstranslation 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?: ObjectDnsfilterProfileDnstranslationState, opts?: CustomResourceOptions): ObjectDnsfilterProfileDnstranslation
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        addr_type: Optional[str] = None,
        adom: Optional[str] = None,
        dst: Optional[str] = None,
        dst6: Optional[str] = None,
        fosid: Optional[float] = None,
        netmask: Optional[str] = None,
        object_dnsfilter_profile_dnstranslation_id: Optional[str] = None,
        prefix: Optional[float] = None,
        profile: Optional[str] = None,
        scopetype: Optional[str] = None,
        src: Optional[str] = None,
        src6: Optional[str] = None,
        status: Optional[str] = None) -> ObjectDnsfilterProfileDnstranslation
func GetObjectDnsfilterProfileDnstranslation(ctx *Context, name string, id IDInput, state *ObjectDnsfilterProfileDnstranslationState, opts ...ResourceOption) (*ObjectDnsfilterProfileDnstranslation, error)
public static ObjectDnsfilterProfileDnstranslation Get(string name, Input<string> id, ObjectDnsfilterProfileDnstranslationState? state, CustomResourceOptions? opts = null)
public static ObjectDnsfilterProfileDnstranslation get(String name, Output<String> id, ObjectDnsfilterProfileDnstranslationState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectDnsfilterProfileDnstranslation    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
DNS translation type (IPv4 or IPv6). 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.
Dst string
IPv4 address or subnet on the external network to substitute for the resolved address in DNS query replies. Can be single IP address or subnet on the external network, but number of addresses must equal number of mapped IP addresses in src.
Dst6 string
IPv6 address or subnet on the external network to substitute for the resolved address in DNS query replies. Can be single IP address or subnet on the external network, but number of addresses must equal number of mapped IP addresses in src6.
Fosid double
ID.
Netmask string
If src and dst are subnets rather than single IP addresses, enter the netmask for both src and dst.
ObjectDnsfilterProfileDnstranslationId string
an identifier for the resource with format {{fosid}}.
Prefix double
If src6 and dst6 are subnets rather than single IP addresses, enter the prefix for both src6 and dst6 (1 - 128, default = 128).
Profile string
Profile.
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.
Src string
IPv4 address or subnet on the internal network to compare with the resolved address in DNS query replies. If the resolved address matches, the resolved address is substituted with dst.
Src6 string
IPv6 address or subnet on the internal network to compare with the resolved address in DNS query replies. If the resolved address matches, the resolved address is substituted with dst6.
Status string
Enable/disable this DNS translation entry. Valid values: disable, enable.
AddrType string
DNS translation type (IPv4 or IPv6). 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.
Dst string
IPv4 address or subnet on the external network to substitute for the resolved address in DNS query replies. Can be single IP address or subnet on the external network, but number of addresses must equal number of mapped IP addresses in src.
Dst6 string
IPv6 address or subnet on the external network to substitute for the resolved address in DNS query replies. Can be single IP address or subnet on the external network, but number of addresses must equal number of mapped IP addresses in src6.
Fosid float64
ID.
Netmask string
If src and dst are subnets rather than single IP addresses, enter the netmask for both src and dst.
ObjectDnsfilterProfileDnstranslationId string
an identifier for the resource with format {{fosid}}.
Prefix float64
If src6 and dst6 are subnets rather than single IP addresses, enter the prefix for both src6 and dst6 (1 - 128, default = 128).
Profile string
Profile.
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.
Src string
IPv4 address or subnet on the internal network to compare with the resolved address in DNS query replies. If the resolved address matches, the resolved address is substituted with dst.
Src6 string
IPv6 address or subnet on the internal network to compare with the resolved address in DNS query replies. If the resolved address matches, the resolved address is substituted with dst6.
Status string
Enable/disable this DNS translation entry. Valid values: disable, enable.
addrType String
DNS translation type (IPv4 or IPv6). 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.
dst String
IPv4 address or subnet on the external network to substitute for the resolved address in DNS query replies. Can be single IP address or subnet on the external network, but number of addresses must equal number of mapped IP addresses in src.
dst6 String
IPv6 address or subnet on the external network to substitute for the resolved address in DNS query replies. Can be single IP address or subnet on the external network, but number of addresses must equal number of mapped IP addresses in src6.
fosid Double
ID.
netmask String
If src and dst are subnets rather than single IP addresses, enter the netmask for both src and dst.
objectDnsfilterProfileDnstranslationId String
an identifier for the resource with format {{fosid}}.
prefix Double
If src6 and dst6 are subnets rather than single IP addresses, enter the prefix for both src6 and dst6 (1 - 128, default = 128).
profile String
Profile.
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.
src String
IPv4 address or subnet on the internal network to compare with the resolved address in DNS query replies. If the resolved address matches, the resolved address is substituted with dst.
src6 String
IPv6 address or subnet on the internal network to compare with the resolved address in DNS query replies. If the resolved address matches, the resolved address is substituted with dst6.
status String
Enable/disable this DNS translation entry. Valid values: disable, enable.
addrType string
DNS translation type (IPv4 or IPv6). 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.
dst string
IPv4 address or subnet on the external network to substitute for the resolved address in DNS query replies. Can be single IP address or subnet on the external network, but number of addresses must equal number of mapped IP addresses in src.
dst6 string
IPv6 address or subnet on the external network to substitute for the resolved address in DNS query replies. Can be single IP address or subnet on the external network, but number of addresses must equal number of mapped IP addresses in src6.
fosid number
ID.
netmask string
If src and dst are subnets rather than single IP addresses, enter the netmask for both src and dst.
objectDnsfilterProfileDnstranslationId string
an identifier for the resource with format {{fosid}}.
prefix number
If src6 and dst6 are subnets rather than single IP addresses, enter the prefix for both src6 and dst6 (1 - 128, default = 128).
profile string
Profile.
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.
src string
IPv4 address or subnet on the internal network to compare with the resolved address in DNS query replies. If the resolved address matches, the resolved address is substituted with dst.
src6 string
IPv6 address or subnet on the internal network to compare with the resolved address in DNS query replies. If the resolved address matches, the resolved address is substituted with dst6.
status string
Enable/disable this DNS translation entry. Valid values: disable, enable.
addr_type str
DNS translation type (IPv4 or IPv6). 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.
dst str
IPv4 address or subnet on the external network to substitute for the resolved address in DNS query replies. Can be single IP address or subnet on the external network, but number of addresses must equal number of mapped IP addresses in src.
dst6 str
IPv6 address or subnet on the external network to substitute for the resolved address in DNS query replies. Can be single IP address or subnet on the external network, but number of addresses must equal number of mapped IP addresses in src6.
fosid float
ID.
netmask str
If src and dst are subnets rather than single IP addresses, enter the netmask for both src and dst.
object_dnsfilter_profile_dnstranslation_id str
an identifier for the resource with format {{fosid}}.
prefix float
If src6 and dst6 are subnets rather than single IP addresses, enter the prefix for both src6 and dst6 (1 - 128, default = 128).
profile str
Profile.
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.
src str
IPv4 address or subnet on the internal network to compare with the resolved address in DNS query replies. If the resolved address matches, the resolved address is substituted with dst.
src6 str
IPv6 address or subnet on the internal network to compare with the resolved address in DNS query replies. If the resolved address matches, the resolved address is substituted with dst6.
status str
Enable/disable this DNS translation entry. Valid values: disable, enable.
addrType String
DNS translation type (IPv4 or IPv6). 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.
dst String
IPv4 address or subnet on the external network to substitute for the resolved address in DNS query replies. Can be single IP address or subnet on the external network, but number of addresses must equal number of mapped IP addresses in src.
dst6 String
IPv6 address or subnet on the external network to substitute for the resolved address in DNS query replies. Can be single IP address or subnet on the external network, but number of addresses must equal number of mapped IP addresses in src6.
fosid Number
ID.
netmask String
If src and dst are subnets rather than single IP addresses, enter the netmask for both src and dst.
objectDnsfilterProfileDnstranslationId String
an identifier for the resource with format {{fosid}}.
prefix Number
If src6 and dst6 are subnets rather than single IP addresses, enter the prefix for both src6 and dst6 (1 - 128, default = 128).
profile String
Profile.
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.
src String
IPv4 address or subnet on the internal network to compare with the resolved address in DNS query replies. If the resolved address matches, the resolved address is substituted with dst.
src6 String
IPv6 address or subnet on the internal network to compare with the resolved address in DNS query replies. If the resolved address matches, the resolved address is substituted with dst6.
status String
Enable/disable this DNS translation entry. Valid values: disable, enable.

Import

ObjectDnsfilter ProfileDnsTranslation can be imported using any of these accepted formats:

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

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

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