1. Packages
  2. Packages
  3. Constellix Provider
  4. API Docs
  5. getPtrRecord
Viewing docs for constellix 0.4.6
published on Friday, Mar 7, 2025 by constellix
Viewing docs for constellix 0.4.6
published on Friday, Mar 7, 2025 by constellix

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as constellix from "@pulumi/constellix";
    
    const ptr1 = constellix.getPtrRecord({
        domainId: constellix_domain.domain1.id,
        name: "pointer1",
        sourceType: "domains",
    });
    
    import pulumi
    import pulumi_constellix as constellix
    
    ptr1 = constellix.get_ptr_record(domain_id=constellix_domain["domain1"]["id"],
        name="pointer1",
        source_type="domains")
    
    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.LookupPtrRecord(ctx, &constellix.LookupPtrRecordArgs{
    			DomainId:   constellix_domain.Domain1.Id,
    			Name:       "pointer1",
    			SourceType: "domains",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Constellix = Pulumi.Constellix;
    
    return await Deployment.RunAsync(() => 
    {
        var ptr1 = Constellix.GetPtrRecord.Invoke(new()
        {
            DomainId = constellix_domain.Domain1.Id,
            Name = "pointer1",
            SourceType = "domains",
        });
    
    });
    
    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.GetPtrRecordArgs;
    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 ptr1 = ConstellixFunctions.getPtrRecord(GetPtrRecordArgs.builder()
                .domainId(constellix_domain.domain1().id())
                .name("pointer1")
                .sourceType("domains")
                .build());
    
        }
    }
    
    variables:
      ptr1:
        fn::invoke:
          function: constellix:getPtrRecord
          arguments:
            domainId: ${constellix_domain.domain1.id}
            name: pointer1
            sourceType: domains
    
    Example coming soon!
    

    Using getPtrRecord

    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 getPtrRecord(args: GetPtrRecordArgs, opts?: InvokeOptions): Promise<GetPtrRecordResult>
    function getPtrRecordOutput(args: GetPtrRecordOutputArgs, opts?: InvokeOptions): Output<GetPtrRecordResult>
    def get_ptr_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[GetPtrRecordRoundrobin]] = None,
                       source: Optional[str] = None,
                       source_type: Optional[str] = None,
                       ttl: Optional[float] = None,
                       type: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetPtrRecordResult
    def get_ptr_record_output(domain_id: pulumi.Input[Optional[str]] = None,
                       gtd_region: pulumi.Input[Optional[float]] = None,
                       id: pulumi.Input[Optional[str]] = None,
                       name: pulumi.Input[Optional[str]] = None,
                       noanswer: pulumi.Input[Optional[bool]] = None,
                       note: pulumi.Input[Optional[str]] = None,
                       parent: pulumi.Input[Optional[str]] = None,
                       parentid: pulumi.Input[Optional[float]] = None,
                       roundrobins: pulumi.Input[Optional[Sequence[pulumi.Input[GetPtrRecordRoundrobinArgs]]]] = None,
                       source: pulumi.Input[Optional[str]] = None,
                       source_type: pulumi.Input[Optional[str]] = None,
                       ttl: pulumi.Input[Optional[float]] = None,
                       type: pulumi.Input[Optional[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetPtrRecordResult]
    func LookupPtrRecord(ctx *Context, args *LookupPtrRecordArgs, opts ...InvokeOption) (*LookupPtrRecordResult, error)
    func LookupPtrRecordOutput(ctx *Context, args *LookupPtrRecordOutputArgs, opts ...InvokeOption) LookupPtrRecordResultOutput

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

    public static class GetPtrRecord 
    {
        public static Task<GetPtrRecordResult> InvokeAsync(GetPtrRecordArgs args, InvokeOptions? opts = null)
        public static Output<GetPtrRecordResult> Invoke(GetPtrRecordInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPtrRecordResult> getPtrRecord(GetPtrRecordArgs args, InvokeOptions options)
    public static Output<GetPtrRecordResult> getPtrRecord(GetPtrRecordArgs args, InvokeOptions options)
    
    fn::invoke:
      function: constellix:index/getPtrRecord:getPtrRecord
      arguments:
        # arguments dictionary
    data "constellix_getptrrecord" "name" {
        # arguments
    }

    The following arguments are supported:

    DomainId string
    Domain id of the PTR record.
    Name string
    Name of record. Name should be unique.
    SourceType string
    Type of the PTR 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<GetPtrRecordRoundrobin>
    Source string
    Ttl double
    Type string
    DomainId string
    Domain id of the PTR record.
    Name string
    Name of record. Name should be unique.
    SourceType string
    Type of the PTR record. The values which can be applied are "domains" or "templates".
    GtdRegion float64
    Id string
    Noanswer bool
    Note string
    Parent string
    Parentid float64
    Roundrobins []GetPtrRecordRoundrobin
    Source string
    Ttl float64
    Type string
    domain_id string
    Domain id of the PTR record.
    name string
    Name of record. Name should be unique.
    source_type string
    Type of the PTR record. The values which can be applied are "domains" or "templates".
    gtd_region number
    id string
    noanswer bool
    note string
    parent string
    parentid number
    roundrobins list(object)
    source string
    ttl number
    type string
    domainId String
    Domain id of the PTR record.
    name String
    Name of record. Name should be unique.
    sourceType String
    Type of the PTR 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<GetPtrRecordRoundrobin>
    source String
    ttl Double
    type String
    domainId string
    Domain id of the PTR record.
    name string
    Name of record. Name should be unique.
    sourceType string
    Type of the PTR record. The values which can be applied are "domains" or "templates".
    gtdRegion number
    id string
    noanswer boolean
    note string
    parent string
    parentid number
    roundrobins GetPtrRecordRoundrobin[]
    source string
    ttl number
    type string
    domain_id str
    Domain id of the PTR record.
    name str
    Name of record. Name should be unique.
    source_type str
    Type of the PTR 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[GetPtrRecordRoundrobin]
    source str
    ttl float
    type str
    domainId String
    Domain id of the PTR record.
    name String
    Name of record. Name should be unique.
    sourceType String
    Type of the PTR 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

    getPtrRecord 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<GetPtrRecordRoundrobin>
    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 []GetPtrRecordRoundrobin
    domain_id string
    gtd_region number
    id string
    name string
    noanswer bool
    note string
    parent string
    parentid number
    source string
    source_type string
    ttl number
    type string
    roundrobins list(object)
    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<GetPtrRecordRoundrobin>
    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 GetPtrRecordRoundrobin[]
    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

    GetPtrRecordRoundrobin

    DisableFlag bool
    Value double
    DisableFlag bool
    Value float64
    disable_flag bool
    value number
    disableFlag Boolean
    value Double
    disableFlag boolean
    value number
    disableFlag Boolean
    value Number

    Package Details

    Repository
    constellix constellix/terraform-provider-constellix
    License
    Notes
    This Pulumi package is based on the constellix Terraform Provider.
    Viewing docs for constellix 0.4.6
    published on Friday, Mar 7, 2025 by constellix
      Try Pulumi Cloud free. Your team will thank you.