1. Packages
  2. Infoblox Provider
  3. API Docs
  4. PtrRecord
infoblox 2.10.0 published on Friday, Apr 25, 2025 by infobloxopen

infoblox.PtrRecord

Explore with Pulumi AI

infoblox logo
infoblox 2.10.0 published on Friday, Apr 25, 2025 by infobloxopen

    # PTR-record Resource

    The infoblox.PtrRecord resource allows you to create PTR-records in forward-mapping and reverse-mapping zones. In case of reverse-mapping zone, the PTR-record maps IP addresses with domain names.

    The following list describes the parameters you can define for the infoblox.PtrRecord resource block:

    • ptrdname: required, specifies the domain name in the FQDN format to which the record should point to. Example: host1.example.com.
    • ip_addr: required only for static allocation in reverse-mapping zones, specifies the IPv4 or IPv6 address for record creation in reverse-mapping zone. Example: 82.50.36.8.
      • For allocating a static IP address, specify a valid IP address.
      • For allocating a dynamic IP address, do not use this field. Instead, define the cidr field.
    • cidr: required only for dynamic allocation in reverse-mapping zones, specifies the network address in CIDR format, under which the record must be created. For static allocation, do not use this field. Instead, define the ip_addr field. Example: 10.3.128.0/20.
    • network_view: optional, specifies the network view to use when allocating an IP address from a network dynamically. If a value is not specified, the name default is used as the network view. For static allocation, do not use this field. Example: netview1.
    • dns_view: optional, specifies the DNS view in which the zone exists. If a value is not specified, the name default is used as the DNS view. Example: external_dnsview.
    • ttl: optional, specifies the “time to live” value for the PTR-record. The parameter does not have a default value. If a value is not specified, then in NIOS, the value is inherited from the parent zone of the DNS record for this resource. A TTL value of 0 (zero) means caching should be disabled for this record. Example: 10.
    • record_name: required only in case of forward-mapping zones, specifies the domain name in FQDN format; it is the name of the DNS PTR-record. Example: service1.zone21.org.
    • comment: optional, describes the PTR-record. Example: some unknown host.
    • ext_attrs: optional, a set of NIOS extensible attributes that are attached to the PTR-record. Example: jsonencode({}).

    When creating the PTR-record in a forward-mapping zone, ptrdname and record_name parameters are required, and network_view is optional. The corresponding forward-mapping zone must have been already created at the appropriate DNS view.

    When creating a PTR record in a reverse-mapping zone, you must specify the ptrdname parameter with any one of the ip_addr, cidr, and record_name parameters. Configuring any two or all of ip_addr, cidr, and record_name parameters in a resource block is not supported.

    Example of a PTR-record Resource

    import * as pulumi from "@pulumi/pulumi";
    import * as infoblox from "@pulumi/infoblox";
    
    // PTR-record, minimal set of parameters
    // Actually, either way may be used in reverse-mapping
    // zones to specify an IP address:
    //   1) 'ip_addr' (yes, literally) and
    //   2) 'record_name' - in the form of a domain name (ex. 1.0.0.10.in-addr.arpa)
    const ptr1 = new infoblox.PtrRecord("ptr1", {
        ptrdname: "rec1.example1.org",
        ipAddr: "10.0.0.1",
    });
    const ptr2 = new infoblox.PtrRecord("ptr2", {
        ptrdname: "rec2.example1.org",
        recordName: "2.0.0.10.in-addr.arpa",
    });
    // statically allocated PTR-record, full set of parameters
    const ptr3 = new infoblox.PtrRecord("ptr3", {
        ptrdname: "rec3.example2.org",
        dnsView: "nondefault_dnsview1",
        ipAddr: "2002:1f93::3",
        comment: "workstation #3",
        ttl: 300,
        extAttrs: JSON.stringify({
            Location: "the main office",
        }),
    });
    // dynamically allocated PTR-record, minimal set of parameters
    const ptr4 = new infoblox.PtrRecord("ptr4", {
        ptrdname: "rec4.example2.org",
        cidr: "10.0.0.0/16",
    });
    // dynamically allocated PTR-record, full set of parameters, non-default network view
    const ptr5 = new infoblox.PtrRecord("ptr5", {
        ptrdname: "rec5.example2.org",
        dnsView: "nondefault_dnsview2",
        networkView: "nondefault_netview",
        cidr: "10.1.0.0/24",
        comment: "workstation #5",
        ttl: 300,
        extAttrs: JSON.stringify({
            Location: "the main office",
        }),
    });
    // PTR-record in a forward-mapping zone
    const ptr6Forward = new infoblox.PtrRecord("ptr6Forward", {
        ptrdname: "example1.org",
        recordName: "www.example1.org",
    });
    
    import pulumi
    import json
    import pulumi_infoblox as infoblox
    
    # PTR-record, minimal set of parameters
    # Actually, either way may be used in reverse-mapping
    # zones to specify an IP address:
    #   1) 'ip_addr' (yes, literally) and
    #   2) 'record_name' - in the form of a domain name (ex. 1.0.0.10.in-addr.arpa)
    ptr1 = infoblox.PtrRecord("ptr1",
        ptrdname="rec1.example1.org",
        ip_addr="10.0.0.1")
    ptr2 = infoblox.PtrRecord("ptr2",
        ptrdname="rec2.example1.org",
        record_name="2.0.0.10.in-addr.arpa")
    # statically allocated PTR-record, full set of parameters
    ptr3 = infoblox.PtrRecord("ptr3",
        ptrdname="rec3.example2.org",
        dns_view="nondefault_dnsview1",
        ip_addr="2002:1f93::3",
        comment="workstation #3",
        ttl=300,
        ext_attrs=json.dumps({
            "Location": "the main office",
        }))
    # dynamically allocated PTR-record, minimal set of parameters
    ptr4 = infoblox.PtrRecord("ptr4",
        ptrdname="rec4.example2.org",
        cidr="10.0.0.0/16")
    # dynamically allocated PTR-record, full set of parameters, non-default network view
    ptr5 = infoblox.PtrRecord("ptr5",
        ptrdname="rec5.example2.org",
        dns_view="nondefault_dnsview2",
        network_view="nondefault_netview",
        cidr="10.1.0.0/24",
        comment="workstation #5",
        ttl=300,
        ext_attrs=json.dumps({
            "Location": "the main office",
        }))
    # PTR-record in a forward-mapping zone
    ptr6_forward = infoblox.PtrRecord("ptr6Forward",
        ptrdname="example1.org",
        record_name="www.example1.org")
    
    package main
    
    import (
    	"encoding/json"
    
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/infoblox/v2/infoblox"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// PTR-record, minimal set of parameters
    		// Actually, either way may be used in reverse-mapping
    		// zones to specify an IP address:
    		//  1. 'ip_addr' (yes, literally) and
    		//  2. 'record_name' - in the form of a domain name (ex. 1.0.0.10.in-addr.arpa)
    		_, err := infoblox.NewPtrRecord(ctx, "ptr1", &infoblox.PtrRecordArgs{
    			Ptrdname: pulumi.String("rec1.example1.org"),
    			IpAddr:   pulumi.String("10.0.0.1"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = infoblox.NewPtrRecord(ctx, "ptr2", &infoblox.PtrRecordArgs{
    			Ptrdname:   pulumi.String("rec2.example1.org"),
    			RecordName: pulumi.String("2.0.0.10.in-addr.arpa"),
    		})
    		if err != nil {
    			return err
    		}
    		tmpJSON0, err := json.Marshal(map[string]interface{}{
    			"Location": "the main office",
    		})
    		if err != nil {
    			return err
    		}
    		json0 := string(tmpJSON0)
    		// statically allocated PTR-record, full set of parameters
    		_, err = infoblox.NewPtrRecord(ctx, "ptr3", &infoblox.PtrRecordArgs{
    			Ptrdname: pulumi.String("rec3.example2.org"),
    			DnsView:  pulumi.String("nondefault_dnsview1"),
    			IpAddr:   pulumi.String("2002:1f93::3"),
    			Comment:  pulumi.String("workstation #3"),
    			Ttl:      pulumi.Float64(300),
    			ExtAttrs: pulumi.String(json0),
    		})
    		if err != nil {
    			return err
    		}
    		// dynamically allocated PTR-record, minimal set of parameters
    		_, err = infoblox.NewPtrRecord(ctx, "ptr4", &infoblox.PtrRecordArgs{
    			Ptrdname: pulumi.String("rec4.example2.org"),
    			Cidr:     pulumi.String("10.0.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		tmpJSON1, err := json.Marshal(map[string]interface{}{
    			"Location": "the main office",
    		})
    		if err != nil {
    			return err
    		}
    		json1 := string(tmpJSON1)
    		// dynamically allocated PTR-record, full set of parameters, non-default network view
    		_, err = infoblox.NewPtrRecord(ctx, "ptr5", &infoblox.PtrRecordArgs{
    			Ptrdname:    pulumi.String("rec5.example2.org"),
    			DnsView:     pulumi.String("nondefault_dnsview2"),
    			NetworkView: pulumi.String("nondefault_netview"),
    			Cidr:        pulumi.String("10.1.0.0/24"),
    			Comment:     pulumi.String("workstation #5"),
    			Ttl:         pulumi.Float64(300),
    			ExtAttrs:    pulumi.String(json1),
    		})
    		if err != nil {
    			return err
    		}
    		// PTR-record in a forward-mapping zone
    		_, err = infoblox.NewPtrRecord(ctx, "ptr6Forward", &infoblox.PtrRecordArgs{
    			Ptrdname:   pulumi.String("example1.org"),
    			RecordName: pulumi.String("www.example1.org"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using Infoblox = Pulumi.Infoblox;
    
    return await Deployment.RunAsync(() => 
    {
        // PTR-record, minimal set of parameters
        // Actually, either way may be used in reverse-mapping
        // zones to specify an IP address:
        //   1) 'ip_addr' (yes, literally) and
        //   2) 'record_name' - in the form of a domain name (ex. 1.0.0.10.in-addr.arpa)
        var ptr1 = new Infoblox.PtrRecord("ptr1", new()
        {
            Ptrdname = "rec1.example1.org",
            IpAddr = "10.0.0.1",
        });
    
        var ptr2 = new Infoblox.PtrRecord("ptr2", new()
        {
            Ptrdname = "rec2.example1.org",
            RecordName = "2.0.0.10.in-addr.arpa",
        });
    
        // statically allocated PTR-record, full set of parameters
        var ptr3 = new Infoblox.PtrRecord("ptr3", new()
        {
            Ptrdname = "rec3.example2.org",
            DnsView = "nondefault_dnsview1",
            IpAddr = "2002:1f93::3",
            Comment = "workstation #3",
            Ttl = 300,
            ExtAttrs = JsonSerializer.Serialize(new Dictionary<string, object?>
            {
                ["Location"] = "the main office",
            }),
        });
    
        // dynamically allocated PTR-record, minimal set of parameters
        var ptr4 = new Infoblox.PtrRecord("ptr4", new()
        {
            Ptrdname = "rec4.example2.org",
            Cidr = "10.0.0.0/16",
        });
    
        // dynamically allocated PTR-record, full set of parameters, non-default network view
        var ptr5 = new Infoblox.PtrRecord("ptr5", new()
        {
            Ptrdname = "rec5.example2.org",
            DnsView = "nondefault_dnsview2",
            NetworkView = "nondefault_netview",
            Cidr = "10.1.0.0/24",
            Comment = "workstation #5",
            Ttl = 300,
            ExtAttrs = JsonSerializer.Serialize(new Dictionary<string, object?>
            {
                ["Location"] = "the main office",
            }),
        });
    
        // PTR-record in a forward-mapping zone
        var ptr6Forward = new Infoblox.PtrRecord("ptr6Forward", new()
        {
            Ptrdname = "example1.org",
            RecordName = "www.example1.org",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.infoblox.PtrRecord;
    import com.pulumi.infoblox.PtrRecordArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    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) {
            // PTR-record, minimal set of parameters
            // Actually, either way may be used in reverse-mapping
            // zones to specify an IP address:
            //   1) 'ip_addr' (yes, literally) and
            //   2) 'record_name' - in the form of a domain name (ex. 1.0.0.10.in-addr.arpa)
            var ptr1 = new PtrRecord("ptr1", PtrRecordArgs.builder()
                .ptrdname("rec1.example1.org")
                .ipAddr("10.0.0.1")
                .build());
    
            var ptr2 = new PtrRecord("ptr2", PtrRecordArgs.builder()
                .ptrdname("rec2.example1.org")
                .recordName("2.0.0.10.in-addr.arpa")
                .build());
    
            // statically allocated PTR-record, full set of parameters
            var ptr3 = new PtrRecord("ptr3", PtrRecordArgs.builder()
                .ptrdname("rec3.example2.org")
                .dnsView("nondefault_dnsview1")
                .ipAddr("2002:1f93::3")
                .comment("workstation #3")
                .ttl(300)
                .extAttrs(serializeJson(
                    jsonObject(
                        jsonProperty("Location", "the main office")
                    )))
                .build());
    
            // dynamically allocated PTR-record, minimal set of parameters
            var ptr4 = new PtrRecord("ptr4", PtrRecordArgs.builder()
                .ptrdname("rec4.example2.org")
                .cidr("10.0.0.0/16")
                .build());
    
            // dynamically allocated PTR-record, full set of parameters, non-default network view
            var ptr5 = new PtrRecord("ptr5", PtrRecordArgs.builder()
                .ptrdname("rec5.example2.org")
                .dnsView("nondefault_dnsview2")
                .networkView("nondefault_netview")
                .cidr("10.1.0.0/24")
                .comment("workstation #5")
                .ttl(300)
                .extAttrs(serializeJson(
                    jsonObject(
                        jsonProperty("Location", "the main office")
                    )))
                .build());
    
            // PTR-record in a forward-mapping zone
            var ptr6Forward = new PtrRecord("ptr6Forward", PtrRecordArgs.builder()
                .ptrdname("example1.org")
                .recordName("www.example1.org")
                .build());
    
        }
    }
    
    resources:
      # PTR-record, minimal set of parameters
      # // Actually, either way may be used in reverse-mapping
      # // zones to specify an IP address:
      # //   1) 'ip_addr' (yes, literally) and
      # //   2) 'record_name' - in the form of a domain name (ex. 1.0.0.10.in-addr.arpa)
      ptr1:
        type: infoblox:PtrRecord
        properties:
          ptrdname: rec1.example1.org
          ipAddr: 10.0.0.1
      ptr2:
        type: infoblox:PtrRecord
        properties:
          ptrdname: rec2.example1.org
          recordName: 2.0.0.10.in-addr.arpa
      # statically allocated PTR-record, full set of parameters
      ptr3:
        type: infoblox:PtrRecord
        properties:
          ptrdname: rec3.example2.org
          dnsView: nondefault_dnsview1
          ipAddr: 2002:1f93::3
          comment: 'workstation #3'
          ttl: 300
          # 5 minutes
          extAttrs:
            fn::toJSON:
              Location: the main office
      # dynamically allocated PTR-record, minimal set of parameters
      ptr4:
        type: infoblox:PtrRecord
        properties:
          ptrdname: rec4.example2.org
          cidr: 10.0.0.0/16
      # dynamically allocated PTR-record, full set of parameters, non-default network view
      ptr5:
        type: infoblox:PtrRecord
        properties:
          ptrdname: rec5.example2.org
          dnsView: nondefault_dnsview2
          networkView: nondefault_netview
          cidr: 10.1.0.0/24
          comment: 'workstation #5'
          ttl: 300
          # 5 minutes
          extAttrs:
            fn::toJSON:
              Location: the main office
      # PTR-record in a forward-mapping zone
      ptr6Forward:
        type: infoblox:PtrRecord
        properties:
          ptrdname: example1.org
          recordName: www.example1.org
    

    Create PtrRecord Resource

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

    Constructor syntax

    new PtrRecord(name: string, args: PtrRecordArgs, opts?: CustomResourceOptions);
    @overload
    def PtrRecord(resource_name: str,
                  args: PtrRecordArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def PtrRecord(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  ptrdname: Optional[str] = None,
                  cidr: Optional[str] = None,
                  comment: Optional[str] = None,
                  dns_view: Optional[str] = None,
                  ext_attrs: Optional[str] = None,
                  ip_addr: Optional[str] = None,
                  network_view: Optional[str] = None,
                  ptr_record_id: Optional[str] = None,
                  record_name: Optional[str] = None,
                  ttl: Optional[float] = None)
    func NewPtrRecord(ctx *Context, name string, args PtrRecordArgs, opts ...ResourceOption) (*PtrRecord, error)
    public PtrRecord(string name, PtrRecordArgs args, CustomResourceOptions? opts = null)
    public PtrRecord(String name, PtrRecordArgs args)
    public PtrRecord(String name, PtrRecordArgs args, CustomResourceOptions options)
    
    type: infoblox:PtrRecord
    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 PtrRecordArgs
    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 PtrRecordArgs
    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 PtrRecordArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PtrRecordArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PtrRecordArgs
    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 ptrRecordResource = new Infoblox.PtrRecord("ptrRecordResource", new()
    {
        Ptrdname = "string",
        Cidr = "string",
        Comment = "string",
        DnsView = "string",
        ExtAttrs = "string",
        IpAddr = "string",
        NetworkView = "string",
        PtrRecordId = "string",
        RecordName = "string",
        Ttl = 0,
    });
    
    example, err := infoblox.NewPtrRecord(ctx, "ptrRecordResource", &infoblox.PtrRecordArgs{
    	Ptrdname:    pulumi.String("string"),
    	Cidr:        pulumi.String("string"),
    	Comment:     pulumi.String("string"),
    	DnsView:     pulumi.String("string"),
    	ExtAttrs:    pulumi.String("string"),
    	IpAddr:      pulumi.String("string"),
    	NetworkView: pulumi.String("string"),
    	PtrRecordId: pulumi.String("string"),
    	RecordName:  pulumi.String("string"),
    	Ttl:         pulumi.Float64(0),
    })
    
    var ptrRecordResource = new PtrRecord("ptrRecordResource", PtrRecordArgs.builder()
        .ptrdname("string")
        .cidr("string")
        .comment("string")
        .dnsView("string")
        .extAttrs("string")
        .ipAddr("string")
        .networkView("string")
        .ptrRecordId("string")
        .recordName("string")
        .ttl(0)
        .build());
    
    ptr_record_resource = infoblox.PtrRecord("ptrRecordResource",
        ptrdname="string",
        cidr="string",
        comment="string",
        dns_view="string",
        ext_attrs="string",
        ip_addr="string",
        network_view="string",
        ptr_record_id="string",
        record_name="string",
        ttl=0)
    
    const ptrRecordResource = new infoblox.PtrRecord("ptrRecordResource", {
        ptrdname: "string",
        cidr: "string",
        comment: "string",
        dnsView: "string",
        extAttrs: "string",
        ipAddr: "string",
        networkView: "string",
        ptrRecordId: "string",
        recordName: "string",
        ttl: 0,
    });
    
    type: infoblox:PtrRecord
    properties:
        cidr: string
        comment: string
        dnsView: string
        extAttrs: string
        ipAddr: string
        networkView: string
        ptrRecordId: string
        ptrdname: string
        recordName: string
        ttl: 0
    

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

    Ptrdname string
    The domain name in FQDN to which the record should point to.
    Cidr string
    The network address in cidr format under which record has to be created.
    Comment string
    A description about PTR record.
    DnsView string
    Dns View under which the zone has been created.
    ExtAttrs string
    The Extensible attributes of PTR record to be added/updated, as a map in JSON format
    IpAddr string
    IPv4/IPv6 address for record creation. Set the field with valid IP for static allocation. If to be dynamically allocated set cidr field
    NetworkView string
    Network view name of NIOS server.
    PtrRecordId string
    RecordName string
    The name of the DNS PTR record in FQDN format
    Ttl double
    TTL attribute value for the record.
    Ptrdname string
    The domain name in FQDN to which the record should point to.
    Cidr string
    The network address in cidr format under which record has to be created.
    Comment string
    A description about PTR record.
    DnsView string
    Dns View under which the zone has been created.
    ExtAttrs string
    The Extensible attributes of PTR record to be added/updated, as a map in JSON format
    IpAddr string
    IPv4/IPv6 address for record creation. Set the field with valid IP for static allocation. If to be dynamically allocated set cidr field
    NetworkView string
    Network view name of NIOS server.
    PtrRecordId string
    RecordName string
    The name of the DNS PTR record in FQDN format
    Ttl float64
    TTL attribute value for the record.
    ptrdname String
    The domain name in FQDN to which the record should point to.
    cidr String
    The network address in cidr format under which record has to be created.
    comment String
    A description about PTR record.
    dnsView String
    Dns View under which the zone has been created.
    extAttrs String
    The Extensible attributes of PTR record to be added/updated, as a map in JSON format
    ipAddr String
    IPv4/IPv6 address for record creation. Set the field with valid IP for static allocation. If to be dynamically allocated set cidr field
    networkView String
    Network view name of NIOS server.
    ptrRecordId String
    recordName String
    The name of the DNS PTR record in FQDN format
    ttl Double
    TTL attribute value for the record.
    ptrdname string
    The domain name in FQDN to which the record should point to.
    cidr string
    The network address in cidr format under which record has to be created.
    comment string
    A description about PTR record.
    dnsView string
    Dns View under which the zone has been created.
    extAttrs string
    The Extensible attributes of PTR record to be added/updated, as a map in JSON format
    ipAddr string
    IPv4/IPv6 address for record creation. Set the field with valid IP for static allocation. If to be dynamically allocated set cidr field
    networkView string
    Network view name of NIOS server.
    ptrRecordId string
    recordName string
    The name of the DNS PTR record in FQDN format
    ttl number
    TTL attribute value for the record.
    ptrdname str
    The domain name in FQDN to which the record should point to.
    cidr str
    The network address in cidr format under which record has to be created.
    comment str
    A description about PTR record.
    dns_view str
    Dns View under which the zone has been created.
    ext_attrs str
    The Extensible attributes of PTR record to be added/updated, as a map in JSON format
    ip_addr str
    IPv4/IPv6 address for record creation. Set the field with valid IP for static allocation. If to be dynamically allocated set cidr field
    network_view str
    Network view name of NIOS server.
    ptr_record_id str
    record_name str
    The name of the DNS PTR record in FQDN format
    ttl float
    TTL attribute value for the record.
    ptrdname String
    The domain name in FQDN to which the record should point to.
    cidr String
    The network address in cidr format under which record has to be created.
    comment String
    A description about PTR record.
    dnsView String
    Dns View under which the zone has been created.
    extAttrs String
    The Extensible attributes of PTR record to be added/updated, as a map in JSON format
    ipAddr String
    IPv4/IPv6 address for record creation. Set the field with valid IP for static allocation. If to be dynamically allocated set cidr field
    networkView String
    Network view name of NIOS server.
    ptrRecordId String
    recordName String
    The name of the DNS PTR record in FQDN format
    ttl Number
    TTL attribute value for the record.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PtrRecord resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    InternalId string
    Ref string
    NIOS object's reference, not to be set by a user.
    Id string
    The provider-assigned unique ID for this managed resource.
    InternalId string
    Ref string
    NIOS object's reference, not to be set by a user.
    id String
    The provider-assigned unique ID for this managed resource.
    internalId String
    ref String
    NIOS object's reference, not to be set by a user.
    id string
    The provider-assigned unique ID for this managed resource.
    internalId string
    ref string
    NIOS object's reference, not to be set by a user.
    id str
    The provider-assigned unique ID for this managed resource.
    internal_id str
    ref str
    NIOS object's reference, not to be set by a user.
    id String
    The provider-assigned unique ID for this managed resource.
    internalId String
    ref String
    NIOS object's reference, not to be set by a user.

    Look up Existing PtrRecord Resource

    Get an existing PtrRecord 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?: PtrRecordState, opts?: CustomResourceOptions): PtrRecord
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cidr: Optional[str] = None,
            comment: Optional[str] = None,
            dns_view: Optional[str] = None,
            ext_attrs: Optional[str] = None,
            internal_id: Optional[str] = None,
            ip_addr: Optional[str] = None,
            network_view: Optional[str] = None,
            ptr_record_id: Optional[str] = None,
            ptrdname: Optional[str] = None,
            record_name: Optional[str] = None,
            ref: Optional[str] = None,
            ttl: Optional[float] = None) -> PtrRecord
    func GetPtrRecord(ctx *Context, name string, id IDInput, state *PtrRecordState, opts ...ResourceOption) (*PtrRecord, error)
    public static PtrRecord Get(string name, Input<string> id, PtrRecordState? state, CustomResourceOptions? opts = null)
    public static PtrRecord get(String name, Output<String> id, PtrRecordState state, CustomResourceOptions options)
    resources:  _:    type: infoblox:PtrRecord    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:
    Cidr string
    The network address in cidr format under which record has to be created.
    Comment string
    A description about PTR record.
    DnsView string
    Dns View under which the zone has been created.
    ExtAttrs string
    The Extensible attributes of PTR record to be added/updated, as a map in JSON format
    InternalId string
    IpAddr string
    IPv4/IPv6 address for record creation. Set the field with valid IP for static allocation. If to be dynamically allocated set cidr field
    NetworkView string
    Network view name of NIOS server.
    PtrRecordId string
    Ptrdname string
    The domain name in FQDN to which the record should point to.
    RecordName string
    The name of the DNS PTR record in FQDN format
    Ref string
    NIOS object's reference, not to be set by a user.
    Ttl double
    TTL attribute value for the record.
    Cidr string
    The network address in cidr format under which record has to be created.
    Comment string
    A description about PTR record.
    DnsView string
    Dns View under which the zone has been created.
    ExtAttrs string
    The Extensible attributes of PTR record to be added/updated, as a map in JSON format
    InternalId string
    IpAddr string
    IPv4/IPv6 address for record creation. Set the field with valid IP for static allocation. If to be dynamically allocated set cidr field
    NetworkView string
    Network view name of NIOS server.
    PtrRecordId string
    Ptrdname string
    The domain name in FQDN to which the record should point to.
    RecordName string
    The name of the DNS PTR record in FQDN format
    Ref string
    NIOS object's reference, not to be set by a user.
    Ttl float64
    TTL attribute value for the record.
    cidr String
    The network address in cidr format under which record has to be created.
    comment String
    A description about PTR record.
    dnsView String
    Dns View under which the zone has been created.
    extAttrs String
    The Extensible attributes of PTR record to be added/updated, as a map in JSON format
    internalId String
    ipAddr String
    IPv4/IPv6 address for record creation. Set the field with valid IP for static allocation. If to be dynamically allocated set cidr field
    networkView String
    Network view name of NIOS server.
    ptrRecordId String
    ptrdname String
    The domain name in FQDN to which the record should point to.
    recordName String
    The name of the DNS PTR record in FQDN format
    ref String
    NIOS object's reference, not to be set by a user.
    ttl Double
    TTL attribute value for the record.
    cidr string
    The network address in cidr format under which record has to be created.
    comment string
    A description about PTR record.
    dnsView string
    Dns View under which the zone has been created.
    extAttrs string
    The Extensible attributes of PTR record to be added/updated, as a map in JSON format
    internalId string
    ipAddr string
    IPv4/IPv6 address for record creation. Set the field with valid IP for static allocation. If to be dynamically allocated set cidr field
    networkView string
    Network view name of NIOS server.
    ptrRecordId string
    ptrdname string
    The domain name in FQDN to which the record should point to.
    recordName string
    The name of the DNS PTR record in FQDN format
    ref string
    NIOS object's reference, not to be set by a user.
    ttl number
    TTL attribute value for the record.
    cidr str
    The network address in cidr format under which record has to be created.
    comment str
    A description about PTR record.
    dns_view str
    Dns View under which the zone has been created.
    ext_attrs str
    The Extensible attributes of PTR record to be added/updated, as a map in JSON format
    internal_id str
    ip_addr str
    IPv4/IPv6 address for record creation. Set the field with valid IP for static allocation. If to be dynamically allocated set cidr field
    network_view str
    Network view name of NIOS server.
    ptr_record_id str
    ptrdname str
    The domain name in FQDN to which the record should point to.
    record_name str
    The name of the DNS PTR record in FQDN format
    ref str
    NIOS object's reference, not to be set by a user.
    ttl float
    TTL attribute value for the record.
    cidr String
    The network address in cidr format under which record has to be created.
    comment String
    A description about PTR record.
    dnsView String
    Dns View under which the zone has been created.
    extAttrs String
    The Extensible attributes of PTR record to be added/updated, as a map in JSON format
    internalId String
    ipAddr String
    IPv4/IPv6 address for record creation. Set the field with valid IP for static allocation. If to be dynamically allocated set cidr field
    networkView String
    Network view name of NIOS server.
    ptrRecordId String
    ptrdname String
    The domain name in FQDN to which the record should point to.
    recordName String
    The name of the DNS PTR record in FQDN format
    ref String
    NIOS object's reference, not to be set by a user.
    ttl Number
    TTL attribute value for the record.

    Package Details

    Repository
    infoblox infobloxopen/terraform-provider-infoblox
    License
    Notes
    This Pulumi package is based on the infoblox Terraform Provider.
    infoblox logo
    infoblox 2.10.0 published on Friday, Apr 25, 2025 by infobloxopen