1. Packages
  2. Constellix Provider
  3. API Docs
  4. getNaptrRecord
constellix 0.4.6 published on Friday, Mar 7, 2025 by constellix

constellix.getNaptrRecord

Explore with Pulumi AI

Data source for records of type NAPTR for a specific domain.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as constellix from "@pulumi/constellix";

const firstrecord = constellix.getNaptrRecord({
    domainId: constellix_domain.first_domain.id,
    name: "firstrecord",
    sourceType: "domains",
});
Copy
import pulumi
import pulumi_constellix as constellix

firstrecord = constellix.get_naptr_record(domain_id=constellix_domain["first_domain"]["id"],
    name="firstrecord",
    source_type="domains")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/constellix/constellix"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := constellix.LookupNaptrRecord(ctx, &constellix.LookupNaptrRecordArgs{
			DomainId:   constellix_domain.First_domain.Id,
			Name:       "firstrecord",
			SourceType: "domains",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Constellix = Pulumi.Constellix;

return await Deployment.RunAsync(() => 
{
    var firstrecord = Constellix.GetNaptrRecord.Invoke(new()
    {
        DomainId = constellix_domain.First_domain.Id,
        Name = "firstrecord",
        SourceType = "domains",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.constellix.ConstellixFunctions;
import com.pulumi.constellix.inputs.GetNaptrRecordArgs;
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) {
        final var firstrecord = ConstellixFunctions.getNaptrRecord(GetNaptrRecordArgs.builder()
            .domainId(constellix_domain.first_domain().id())
            .name("firstrecord")
            .sourceType("domains")
            .build());

    }
}
Copy
variables:
  firstrecord:
    fn::invoke:
      function: constellix:getNaptrRecord
      arguments:
        domainId: ${constellix_domain.first_domain.id}
        name: firstrecord
        sourceType: domains
Copy

Attributes Reference

  • ttl - (Optional) TTL must be in between 0 and 2147483647.
  • noanswer - (Optional) Shows if record is enabled or disabled. Default is false (Active).
  • note - (Optional)Record note.
  • gtd_region - (Optional) Shows id of GTD region in which record is to be created.
  • type - (Optional) Record type Naptr.
  • roundrobin - (Optional) Set.
  • roundrobin.order - (Optional) A 16-bit value ranging from 0 to 63535, the lowest number having the highest order. For example, an order of 10 is of more importance (has a higher order value) than an order of 50.
  • roundrobin.preference - (Optional) Preference is used only when two NAPTR records with the same name also have the same order and is used to indicate preference (all other things being equal). A 16-bit value ranging from 0 to 63535, the lowest number having the highest order.
  • roundrobin.flags - (Optional) A Flag is a single character from the set A-Z and 0-9, defined to be application specific, such that each application may define a specific use of the flag or which flags are valid. The flag is enclosed in quotes (“”). Currently defined values are: U – a terminal condition – the result of the regexp is a valid URI. S – a terminal condition – the replace field contains the FQDN of an SRV record. A – a terminal condition – the replace field contains the FQDN of an A or AAAA record. P – a non-terminal condition – the protocol/services part of the params field determines the application specific behavior and subsequent processing is external to the record. “” (empty string) – a non-terminal condition to indicate that regexp is empty and the replace field contains the FQDN of a further NAPTR record.
  • roundrobin.service - (Optional) Defines the application specific service parameters. The generic format is: protocol+rs. Where “protocol” defines the protocol used by the application and “rs” is the resolution service. There may be 0 or more resolution services each separated by +.
  • roundrobin.regular_expression - (Optional) A 16-bit value ranging from 0 to 63535, the lowest number having the highest order. For example, an order of 10 is of more importance (has a higher order value) than an order of 50.
  • roundrobin.replacement - (Optional) Preference is used only when two NAPTR records with the same name also have the same order and is used to indicate preference (all other things being equal).
  • roundrobin.disable_flag - (Optional) disable flag. Default is false

Using getNaptrRecord

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getNaptrRecord(args: GetNaptrRecordArgs, opts?: InvokeOptions): Promise<GetNaptrRecordResult>
function getNaptrRecordOutput(args: GetNaptrRecordOutputArgs, opts?: InvokeOptions): Output<GetNaptrRecordResult>
Copy
def get_naptr_record(domain_id: Optional[str] = None,
                     gtd_region: Optional[float] = None,
                     id: Optional[str] = None,
                     name: Optional[str] = None,
                     noanswer: Optional[bool] = None,
                     note: Optional[str] = None,
                     parent: Optional[str] = None,
                     parentid: Optional[float] = None,
                     roundrobins: Optional[Sequence[GetNaptrRecordRoundrobin]] = None,
                     source: Optional[str] = None,
                     source_type: Optional[str] = None,
                     ttl: Optional[float] = None,
                     type: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetNaptrRecordResult
def get_naptr_record_output(domain_id: Optional[pulumi.Input[str]] = None,
                     gtd_region: Optional[pulumi.Input[float]] = None,
                     id: Optional[pulumi.Input[str]] = None,
                     name: Optional[pulumi.Input[str]] = None,
                     noanswer: Optional[pulumi.Input[bool]] = None,
                     note: Optional[pulumi.Input[str]] = None,
                     parent: Optional[pulumi.Input[str]] = None,
                     parentid: Optional[pulumi.Input[float]] = None,
                     roundrobins: Optional[pulumi.Input[Sequence[pulumi.Input[GetNaptrRecordRoundrobinArgs]]]] = None,
                     source: Optional[pulumi.Input[str]] = None,
                     source_type: Optional[pulumi.Input[str]] = None,
                     ttl: Optional[pulumi.Input[float]] = None,
                     type: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetNaptrRecordResult]
Copy
func LookupNaptrRecord(ctx *Context, args *LookupNaptrRecordArgs, opts ...InvokeOption) (*LookupNaptrRecordResult, error)
func LookupNaptrRecordOutput(ctx *Context, args *LookupNaptrRecordOutputArgs, opts ...InvokeOption) LookupNaptrRecordResultOutput
Copy

> Note: This function is named LookupNaptrRecord in the Go SDK.

public static class GetNaptrRecord 
{
    public static Task<GetNaptrRecordResult> InvokeAsync(GetNaptrRecordArgs args, InvokeOptions? opts = null)
    public static Output<GetNaptrRecordResult> Invoke(GetNaptrRecordInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetNaptrRecordResult> getNaptrRecord(GetNaptrRecordArgs args, InvokeOptions options)
public static Output<GetNaptrRecordResult> getNaptrRecord(GetNaptrRecordArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: constellix:index/getNaptrRecord:getNaptrRecord
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

DomainId This property is required. string
Domain id of the NAPTR record.
Name This property is required. string
Name of record. Name should be unique.
SourceType This property is required. string
Type of the NAPTR record. The values which can be applied are "domains" or "templates".
GtdRegion double
Id string
Noanswer bool
Note string
Parent string
Parentid double
Roundrobins List<GetNaptrRecordRoundrobin>
Source string
Ttl double
Type string
DomainId This property is required. string
Domain id of the NAPTR record.
Name This property is required. string
Name of record. Name should be unique.
SourceType This property is required. string
Type of the NAPTR record. The values which can be applied are "domains" or "templates".
GtdRegion float64
Id string
Noanswer bool
Note string
Parent string
Parentid float64
Roundrobins []GetNaptrRecordRoundrobin
Source string
Ttl float64
Type string
domainId This property is required. String
Domain id of the NAPTR record.
name This property is required. String
Name of record. Name should be unique.
sourceType This property is required. String
Type of the NAPTR record. The values which can be applied are "domains" or "templates".
gtdRegion Double
id String
noanswer Boolean
note String
parent String
parentid Double
roundrobins List<GetNaptrRecordRoundrobin>
source String
ttl Double
type String
domainId This property is required. string
Domain id of the NAPTR record.
name This property is required. string
Name of record. Name should be unique.
sourceType This property is required. string
Type of the NAPTR record. The values which can be applied are "domains" or "templates".
gtdRegion number
id string
noanswer boolean
note string
parent string
parentid number
roundrobins GetNaptrRecordRoundrobin[]
source string
ttl number
type string
domain_id This property is required. str
Domain id of the NAPTR record.
name This property is required. str
Name of record. Name should be unique.
source_type This property is required. str
Type of the NAPTR record. The values which can be applied are "domains" or "templates".
gtd_region float
id str
noanswer bool
note str
parent str
parentid float
roundrobins Sequence[GetNaptrRecordRoundrobin]
source str
ttl float
type str
domainId This property is required. String
Domain id of the NAPTR record.
name This property is required. String
Name of record. Name should be unique.
sourceType This property is required. String
Type of the NAPTR record. The values which can be applied are "domains" or "templates".
gtdRegion Number
id String
noanswer Boolean
note String
parent String
parentid Number
roundrobins List<Property Map>
source String
ttl Number
type String

getNaptrRecord Result

The following output properties are available:

DomainId string
GtdRegion double
Id string
Name string
Noanswer bool
Note string
Parent string
Parentid double
Source string
SourceType string
Ttl double
Type string
Roundrobins List<GetNaptrRecordRoundrobin>
DomainId string
GtdRegion float64
Id string
Name string
Noanswer bool
Note string
Parent string
Parentid float64
Source string
SourceType string
Ttl float64
Type string
Roundrobins []GetNaptrRecordRoundrobin
domainId String
gtdRegion Double
id String
name String
noanswer Boolean
note String
parent String
parentid Double
source String
sourceType String
ttl Double
type String
roundrobins List<GetNaptrRecordRoundrobin>
domainId string
gtdRegion number
id string
name string
noanswer boolean
note string
parent string
parentid number
source string
sourceType string
ttl number
type string
roundrobins GetNaptrRecordRoundrobin[]
domainId String
gtdRegion Number
id String
name String
noanswer Boolean
note String
parent String
parentid Number
source String
sourceType String
ttl Number
type String
roundrobins List<Property Map>

Supporting Types

GetNaptrRecordRoundrobin

DisableFlag This property is required. bool
Flags This property is required. string
Order This property is required. string
Preference This property is required. string
RegularExpression This property is required. string
Replacement This property is required. string
Service This property is required. string
DisableFlag This property is required. bool
Flags This property is required. string
Order This property is required. string
Preference This property is required. string
RegularExpression This property is required. string
Replacement This property is required. string
Service This property is required. string
disableFlag This property is required. Boolean
flags This property is required. String
order This property is required. String
preference This property is required. String
regularExpression This property is required. String
replacement This property is required. String
service This property is required. String
disableFlag This property is required. boolean
flags This property is required. string
order This property is required. string
preference This property is required. string
regularExpression This property is required. string
replacement This property is required. string
service This property is required. string
disable_flag This property is required. bool
flags This property is required. str
order This property is required. str
preference This property is required. str
regular_expression This property is required. str
replacement This property is required. str
service This property is required. str
disableFlag This property is required. Boolean
flags This property is required. String
order This property is required. String
preference This property is required. String
regularExpression This property is required. String
replacement This property is required. String
service This property is required. String

Package Details

Repository
constellix constellix/terraform-provider-constellix
License
Notes
This Pulumi package is based on the constellix Terraform Provider.