1. Packages
  2. Fortimanager Provider
  3. API Docs
  4. ObjectSystemDnsdatabaseDnsentry
fortimanager 1.15.0 published on Thursday, Nov 13, 2025 by fortinetdev
fortimanager logo
fortimanager 1.15.0 published on Thursday, Nov 13, 2025 by fortinetdev

    DNS entry.

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

    Create ObjectSystemDnsdatabaseDnsentry Resource

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

    Constructor syntax

    new ObjectSystemDnsdatabaseDnsentry(name: string, args: ObjectSystemDnsdatabaseDnsentryArgs, opts?: CustomResourceOptions);
    @overload
    def ObjectSystemDnsdatabaseDnsentry(resource_name: str,
                                        args: ObjectSystemDnsdatabaseDnsentryArgs,
                                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def ObjectSystemDnsdatabaseDnsentry(resource_name: str,
                                        opts: Optional[ResourceOptions] = None,
                                        dns_database: Optional[str] = None,
                                        ipv6: Optional[str] = None,
                                        canonical_name: Optional[str] = None,
                                        fosid: Optional[float] = None,
                                        hostname: Optional[str] = None,
                                        ip: Optional[str] = None,
                                        adom: Optional[str] = None,
                                        object_system_dnsdatabase_dnsentry_id: Optional[str] = None,
                                        preference: Optional[float] = None,
                                        scopetype: Optional[str] = None,
                                        status: Optional[str] = None,
                                        ttl: Optional[float] = None,
                                        type: Optional[str] = None)
    func NewObjectSystemDnsdatabaseDnsentry(ctx *Context, name string, args ObjectSystemDnsdatabaseDnsentryArgs, opts ...ResourceOption) (*ObjectSystemDnsdatabaseDnsentry, error)
    public ObjectSystemDnsdatabaseDnsentry(string name, ObjectSystemDnsdatabaseDnsentryArgs args, CustomResourceOptions? opts = null)
    public ObjectSystemDnsdatabaseDnsentry(String name, ObjectSystemDnsdatabaseDnsentryArgs args)
    public ObjectSystemDnsdatabaseDnsentry(String name, ObjectSystemDnsdatabaseDnsentryArgs args, CustomResourceOptions options)
    
    type: fortimanager:ObjectSystemDnsdatabaseDnsentry
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ObjectSystemDnsdatabaseDnsentryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ObjectSystemDnsdatabaseDnsentryArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ObjectSystemDnsdatabaseDnsentryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ObjectSystemDnsdatabaseDnsentryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ObjectSystemDnsdatabaseDnsentryArgs
    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 objectSystemDnsdatabaseDnsentryResource = new Fortimanager.ObjectSystemDnsdatabaseDnsentry("objectSystemDnsdatabaseDnsentryResource", new()
    {
        DnsDatabase = "string",
        Ipv6 = "string",
        CanonicalName = "string",
        Fosid = 0,
        Hostname = "string",
        Ip = "string",
        Adom = "string",
        ObjectSystemDnsdatabaseDnsentryId = "string",
        Preference = 0,
        Scopetype = "string",
        Status = "string",
        Ttl = 0,
        Type = "string",
    });
    
    example, err := fortimanager.NewObjectSystemDnsdatabaseDnsentry(ctx, "objectSystemDnsdatabaseDnsentryResource", &fortimanager.ObjectSystemDnsdatabaseDnsentryArgs{
    	DnsDatabase:                       pulumi.String("string"),
    	Ipv6:                              pulumi.String("string"),
    	CanonicalName:                     pulumi.String("string"),
    	Fosid:                             pulumi.Float64(0),
    	Hostname:                          pulumi.String("string"),
    	Ip:                                pulumi.String("string"),
    	Adom:                              pulumi.String("string"),
    	ObjectSystemDnsdatabaseDnsentryId: pulumi.String("string"),
    	Preference:                        pulumi.Float64(0),
    	Scopetype:                         pulumi.String("string"),
    	Status:                            pulumi.String("string"),
    	Ttl:                               pulumi.Float64(0),
    	Type:                              pulumi.String("string"),
    })
    
    var objectSystemDnsdatabaseDnsentryResource = new ObjectSystemDnsdatabaseDnsentry("objectSystemDnsdatabaseDnsentryResource", ObjectSystemDnsdatabaseDnsentryArgs.builder()
        .dnsDatabase("string")
        .ipv6("string")
        .canonicalName("string")
        .fosid(0.0)
        .hostname("string")
        .ip("string")
        .adom("string")
        .objectSystemDnsdatabaseDnsentryId("string")
        .preference(0.0)
        .scopetype("string")
        .status("string")
        .ttl(0.0)
        .type("string")
        .build());
    
    object_system_dnsdatabase_dnsentry_resource = fortimanager.ObjectSystemDnsdatabaseDnsentry("objectSystemDnsdatabaseDnsentryResource",
        dns_database="string",
        ipv6="string",
        canonical_name="string",
        fosid=0,
        hostname="string",
        ip="string",
        adom="string",
        object_system_dnsdatabase_dnsentry_id="string",
        preference=0,
        scopetype="string",
        status="string",
        ttl=0,
        type="string")
    
    const objectSystemDnsdatabaseDnsentryResource = new fortimanager.ObjectSystemDnsdatabaseDnsentry("objectSystemDnsdatabaseDnsentryResource", {
        dnsDatabase: "string",
        ipv6: "string",
        canonicalName: "string",
        fosid: 0,
        hostname: "string",
        ip: "string",
        adom: "string",
        objectSystemDnsdatabaseDnsentryId: "string",
        preference: 0,
        scopetype: "string",
        status: "string",
        ttl: 0,
        type: "string",
    });
    
    type: fortimanager:ObjectSystemDnsdatabaseDnsentry
    properties:
        adom: string
        canonicalName: string
        dnsDatabase: string
        fosid: 0
        hostname: string
        ip: string
        ipv6: string
        objectSystemDnsdatabaseDnsentryId: string
        preference: 0
        scopetype: string
        status: string
        ttl: 0
        type: string
    

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

    DnsDatabase string
    Dns Database.
    Adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    CanonicalName string
    Canonical name of the host.
    Fosid double
    DNS entry ID.
    Hostname string
    Name of the host.
    Ip string
    IPv4 address of the host.
    Ipv6 string
    IPv6 address of the host.
    ObjectSystemDnsdatabaseDnsentryId string
    an identifier for the resource with format {{fosid}}.
    Preference double
    DNS entry preference (0 - 65535, highest preference = 0, default = 10).
    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 resource record status. Valid values: disable, enable.
    Ttl double
    Time-to-live for this entry (0 to 2147483647 sec, default = 0).
    Type string
    Resource record type. Valid values: NS, MX, CNAME, A, AAAA, PTR, PTR_V6.
    DnsDatabase string
    Dns Database.
    Adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    CanonicalName string
    Canonical name of the host.
    Fosid float64
    DNS entry ID.
    Hostname string
    Name of the host.
    Ip string
    IPv4 address of the host.
    Ipv6 string
    IPv6 address of the host.
    ObjectSystemDnsdatabaseDnsentryId string
    an identifier for the resource with format {{fosid}}.
    Preference float64
    DNS entry preference (0 - 65535, highest preference = 0, default = 10).
    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 resource record status. Valid values: disable, enable.
    Ttl float64
    Time-to-live for this entry (0 to 2147483647 sec, default = 0).
    Type string
    Resource record type. Valid values: NS, MX, CNAME, A, AAAA, PTR, PTR_V6.
    dnsDatabase String
    Dns Database.
    adom String
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    canonicalName String
    Canonical name of the host.
    fosid Double
    DNS entry ID.
    hostname String
    Name of the host.
    ip String
    IPv4 address of the host.
    ipv6 String
    IPv6 address of the host.
    objectSystemDnsdatabaseDnsentryId String
    an identifier for the resource with format {{fosid}}.
    preference Double
    DNS entry preference (0 - 65535, highest preference = 0, default = 10).
    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 resource record status. Valid values: disable, enable.
    ttl Double
    Time-to-live for this entry (0 to 2147483647 sec, default = 0).
    type String
    Resource record type. Valid values: NS, MX, CNAME, A, AAAA, PTR, PTR_V6.
    dnsDatabase string
    Dns Database.
    adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    canonicalName string
    Canonical name of the host.
    fosid number
    DNS entry ID.
    hostname string
    Name of the host.
    ip string
    IPv4 address of the host.
    ipv6 string
    IPv6 address of the host.
    objectSystemDnsdatabaseDnsentryId string
    an identifier for the resource with format {{fosid}}.
    preference number
    DNS entry preference (0 - 65535, highest preference = 0, default = 10).
    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 resource record status. Valid values: disable, enable.
    ttl number
    Time-to-live for this entry (0 to 2147483647 sec, default = 0).
    type string
    Resource record type. Valid values: NS, MX, CNAME, A, AAAA, PTR, PTR_V6.
    dns_database str
    Dns Database.
    adom str
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    canonical_name str
    Canonical name of the host.
    fosid float
    DNS entry ID.
    hostname str
    Name of the host.
    ip str
    IPv4 address of the host.
    ipv6 str
    IPv6 address of the host.
    object_system_dnsdatabase_dnsentry_id str
    an identifier for the resource with format {{fosid}}.
    preference float
    DNS entry preference (0 - 65535, highest preference = 0, default = 10).
    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 resource record status. Valid values: disable, enable.
    ttl float
    Time-to-live for this entry (0 to 2147483647 sec, default = 0).
    type str
    Resource record type. Valid values: NS, MX, CNAME, A, AAAA, PTR, PTR_V6.
    dnsDatabase String
    Dns Database.
    adom String
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    canonicalName String
    Canonical name of the host.
    fosid Number
    DNS entry ID.
    hostname String
    Name of the host.
    ip String
    IPv4 address of the host.
    ipv6 String
    IPv6 address of the host.
    objectSystemDnsdatabaseDnsentryId String
    an identifier for the resource with format {{fosid}}.
    preference Number
    DNS entry preference (0 - 65535, highest preference = 0, default = 10).
    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 resource record status. Valid values: disable, enable.
    ttl Number
    Time-to-live for this entry (0 to 2147483647 sec, default = 0).
    type String
    Resource record type. Valid values: NS, MX, CNAME, A, AAAA, PTR, PTR_V6.

    Outputs

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

    Get an existing ObjectSystemDnsdatabaseDnsentry 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?: ObjectSystemDnsdatabaseDnsentryState, opts?: CustomResourceOptions): ObjectSystemDnsdatabaseDnsentry
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            adom: Optional[str] = None,
            canonical_name: Optional[str] = None,
            dns_database: Optional[str] = None,
            fosid: Optional[float] = None,
            hostname: Optional[str] = None,
            ip: Optional[str] = None,
            ipv6: Optional[str] = None,
            object_system_dnsdatabase_dnsentry_id: Optional[str] = None,
            preference: Optional[float] = None,
            scopetype: Optional[str] = None,
            status: Optional[str] = None,
            ttl: Optional[float] = None,
            type: Optional[str] = None) -> ObjectSystemDnsdatabaseDnsentry
    func GetObjectSystemDnsdatabaseDnsentry(ctx *Context, name string, id IDInput, state *ObjectSystemDnsdatabaseDnsentryState, opts ...ResourceOption) (*ObjectSystemDnsdatabaseDnsentry, error)
    public static ObjectSystemDnsdatabaseDnsentry Get(string name, Input<string> id, ObjectSystemDnsdatabaseDnsentryState? state, CustomResourceOptions? opts = null)
    public static ObjectSystemDnsdatabaseDnsentry get(String name, Output<String> id, ObjectSystemDnsdatabaseDnsentryState state, CustomResourceOptions options)
    resources:  _:    type: fortimanager:ObjectSystemDnsdatabaseDnsentry    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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.
    CanonicalName string
    Canonical name of the host.
    DnsDatabase string
    Dns Database.
    Fosid double
    DNS entry ID.
    Hostname string
    Name of the host.
    Ip string
    IPv4 address of the host.
    Ipv6 string
    IPv6 address of the host.
    ObjectSystemDnsdatabaseDnsentryId string
    an identifier for the resource with format {{fosid}}.
    Preference double
    DNS entry preference (0 - 65535, highest preference = 0, default = 10).
    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 resource record status. Valid values: disable, enable.
    Ttl double
    Time-to-live for this entry (0 to 2147483647 sec, default = 0).
    Type string
    Resource record type. Valid values: NS, MX, CNAME, A, AAAA, PTR, PTR_V6.
    Adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    CanonicalName string
    Canonical name of the host.
    DnsDatabase string
    Dns Database.
    Fosid float64
    DNS entry ID.
    Hostname string
    Name of the host.
    Ip string
    IPv4 address of the host.
    Ipv6 string
    IPv6 address of the host.
    ObjectSystemDnsdatabaseDnsentryId string
    an identifier for the resource with format {{fosid}}.
    Preference float64
    DNS entry preference (0 - 65535, highest preference = 0, default = 10).
    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 resource record status. Valid values: disable, enable.
    Ttl float64
    Time-to-live for this entry (0 to 2147483647 sec, default = 0).
    Type string
    Resource record type. Valid values: NS, MX, CNAME, A, AAAA, PTR, PTR_V6.
    adom String
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    canonicalName String
    Canonical name of the host.
    dnsDatabase String
    Dns Database.
    fosid Double
    DNS entry ID.
    hostname String
    Name of the host.
    ip String
    IPv4 address of the host.
    ipv6 String
    IPv6 address of the host.
    objectSystemDnsdatabaseDnsentryId String
    an identifier for the resource with format {{fosid}}.
    preference Double
    DNS entry preference (0 - 65535, highest preference = 0, default = 10).
    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 resource record status. Valid values: disable, enable.
    ttl Double
    Time-to-live for this entry (0 to 2147483647 sec, default = 0).
    type String
    Resource record type. Valid values: NS, MX, CNAME, A, AAAA, PTR, PTR_V6.
    adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    canonicalName string
    Canonical name of the host.
    dnsDatabase string
    Dns Database.
    fosid number
    DNS entry ID.
    hostname string
    Name of the host.
    ip string
    IPv4 address of the host.
    ipv6 string
    IPv6 address of the host.
    objectSystemDnsdatabaseDnsentryId string
    an identifier for the resource with format {{fosid}}.
    preference number
    DNS entry preference (0 - 65535, highest preference = 0, default = 10).
    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 resource record status. Valid values: disable, enable.
    ttl number
    Time-to-live for this entry (0 to 2147483647 sec, default = 0).
    type string
    Resource record type. Valid values: NS, MX, CNAME, A, AAAA, PTR, PTR_V6.
    adom str
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    canonical_name str
    Canonical name of the host.
    dns_database str
    Dns Database.
    fosid float
    DNS entry ID.
    hostname str
    Name of the host.
    ip str
    IPv4 address of the host.
    ipv6 str
    IPv6 address of the host.
    object_system_dnsdatabase_dnsentry_id str
    an identifier for the resource with format {{fosid}}.
    preference float
    DNS entry preference (0 - 65535, highest preference = 0, default = 10).
    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 resource record status. Valid values: disable, enable.
    ttl float
    Time-to-live for this entry (0 to 2147483647 sec, default = 0).
    type str
    Resource record type. Valid values: NS, MX, CNAME, A, AAAA, PTR, PTR_V6.
    adom String
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    canonicalName String
    Canonical name of the host.
    dnsDatabase String
    Dns Database.
    fosid Number
    DNS entry ID.
    hostname String
    Name of the host.
    ip String
    IPv4 address of the host.
    ipv6 String
    IPv6 address of the host.
    objectSystemDnsdatabaseDnsentryId String
    an identifier for the resource with format {{fosid}}.
    preference Number
    DNS entry preference (0 - 65535, highest preference = 0, default = 10).
    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 resource record status. Valid values: disable, enable.
    ttl Number
    Time-to-live for this entry (0 to 2147483647 sec, default = 0).
    type String
    Resource record type. Valid values: NS, MX, CNAME, A, AAAA, PTR, PTR_V6.

    Import

    ObjectSystem DnsDatabaseDnsEntry can be imported using any of these accepted formats:

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

    $ export “FORTIMANAGER_IMPORT_TABLE”=“true”

    $ pulumi import fortimanager:index/objectSystemDnsdatabaseDnsentry:ObjectSystemDnsdatabaseDnsentry labelname {{fosid}}
    

    $ 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.
    fortimanager logo
    fortimanager 1.15.0 published on Thursday, Nov 13, 2025 by fortinetdev
      Meet Neo: Your AI Platform Teammate