1. Packages
  2. Packages
  3. Constellix Provider
  4. API Docs
  5. getARecord
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 A record.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as constellix from "@pulumi/constellix";
    
    const firstrecord = constellix.getARecord({
        domainId: constellix_domain.first_domain.id,
        name: "firstrecord",
        sourceType: "domains",
    });
    
    import pulumi
    import pulumi_constellix as constellix
    
    firstrecord = constellix.get_a_record(domain_id=constellix_domain["first_domain"]["id"],
        name="firstrecord",
        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.LookupARecord(ctx, &constellix.LookupARecordArgs{
    			DomainId:   constellix_domain.First_domain.Id,
    			Name:       "firstrecord",
    			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 firstrecord = Constellix.GetARecord.Invoke(new()
        {
            DomainId = constellix_domain.First_domain.Id,
            Name = "firstrecord",
            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.GetARecordArgs;
    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.getARecord(GetARecordArgs.builder()
                .domainId(constellix_domain.first_domain().id())
                .name("firstrecord")
                .sourceType("domains")
                .build());
    
        }
    }
    
    variables:
      firstrecord:
        fn::invoke:
          function: constellix:getARecord
          arguments:
            domainId: ${constellix_domain.first_domain.id}
            name: firstrecord
            sourceType: domains
    
    Example coming soon!
    

    Using getARecord

    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 getARecord(args: GetARecordArgs, opts?: InvokeOptions): Promise<GetARecordResult>
    function getARecordOutput(args: GetARecordOutputArgs, opts?: InvokeOptions): Output<GetARecordResult>
    def get_a_record(contact_ids: Optional[Sequence[float]] = None,
                     domain_id: Optional[str] = None,
                     geo_location: Optional[Mapping[str, str]] = None,
                     gtd_region: Optional[float] = None,
                     id: Optional[str] = None,
                     name: Optional[str] = None,
                     noanswer: Optional[bool] = None,
                     note: Optional[str] = None,
                     pools: Optional[Sequence[float]] = None,
                     record_failover_disable_flag: Optional[str] = None,
                     record_failover_failover_type: Optional[str] = None,
                     record_failover_values: Optional[Sequence[GetARecordRecordFailoverValue]] = None,
                     record_option: Optional[str] = None,
                     roundrobin: Optional[Mapping[str, str]] = None,
                     roundrobin_failovers: Optional[Sequence[GetARecordRoundrobinFailover]] = None,
                     source_type: Optional[str] = None,
                     ttl: Optional[float] = None,
                     type: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetARecordResult
    def get_a_record_output(contact_ids: pulumi.Input[Optional[Sequence[pulumi.Input[float]]]] = None,
                     domain_id: pulumi.Input[Optional[str]] = None,
                     geo_location: pulumi.Input[Optional[Mapping[str, pulumi.Input[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,
                     pools: pulumi.Input[Optional[Sequence[pulumi.Input[float]]]] = None,
                     record_failover_disable_flag: pulumi.Input[Optional[str]] = None,
                     record_failover_failover_type: pulumi.Input[Optional[str]] = None,
                     record_failover_values: pulumi.Input[Optional[Sequence[pulumi.Input[GetARecordRecordFailoverValueArgs]]]] = None,
                     record_option: pulumi.Input[Optional[str]] = None,
                     roundrobin: pulumi.Input[Optional[Mapping[str, pulumi.Input[str]]]] = None,
                     roundrobin_failovers: pulumi.Input[Optional[Sequence[pulumi.Input[GetARecordRoundrobinFailoverArgs]]]] = 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[GetARecordResult]
    func LookupARecord(ctx *Context, args *LookupARecordArgs, opts ...InvokeOption) (*LookupARecordResult, error)
    func LookupARecordOutput(ctx *Context, args *LookupARecordOutputArgs, opts ...InvokeOption) LookupARecordResultOutput

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

    public static class GetARecord 
    {
        public static Task<GetARecordResult> InvokeAsync(GetARecordArgs args, InvokeOptions? opts = null)
        public static Output<GetARecordResult> Invoke(GetARecordInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetARecordResult> getARecord(GetARecordArgs args, InvokeOptions options)
    public static Output<GetARecordResult> getARecord(GetARecordArgs args, InvokeOptions options)
    
    fn::invoke:
      function: constellix:index/getARecord:getARecord
      arguments:
        # arguments dictionary
    data "constellix_getarecord" "name" {
        # arguments
    }

    The following arguments are supported:

    DomainId string
    Domain id of the A record.
    Name string
    Name of record. Name should be unique.
    SourceType string
    Type of the A record. The values which can be applied are "domains" or "templates".
    ContactIds List<double>
    GeoLocation Dictionary<string, string>
    GtdRegion double
    Id string
    Noanswer bool
    Note string
    Pools List<double>
    RecordFailoverDisableFlag string
    RecordFailoverFailoverType string
    RecordFailoverValues List<GetARecordRecordFailoverValue>
    RecordOption string
    Roundrobin Dictionary<string, string>
    RoundrobinFailovers List<GetARecordRoundrobinFailover>
    Ttl double
    Type string
    DomainId string
    Domain id of the A record.
    Name string
    Name of record. Name should be unique.
    SourceType string
    Type of the A record. The values which can be applied are "domains" or "templates".
    ContactIds []float64
    GeoLocation map[string]string
    GtdRegion float64
    Id string
    Noanswer bool
    Note string
    Pools []float64
    RecordFailoverDisableFlag string
    RecordFailoverFailoverType string
    RecordFailoverValues []GetARecordRecordFailoverValue
    RecordOption string
    Roundrobin map[string]string
    RoundrobinFailovers []GetARecordRoundrobinFailover
    Ttl float64
    Type string
    domain_id string
    Domain id of the A record.
    name string
    Name of record. Name should be unique.
    source_type string
    Type of the A record. The values which can be applied are "domains" or "templates".
    contact_ids list(number)
    geo_location map(string)
    gtd_region number
    id string
    noanswer bool
    note string
    pools list(number)
    record_failover_disable_flag string
    record_failover_failover_type string
    record_failover_values list(object)
    record_option string
    roundrobin map(string)
    roundrobin_failovers list(object)
    ttl number
    type string
    domainId String
    Domain id of the A record.
    name String
    Name of record. Name should be unique.
    sourceType String
    Type of the A record. The values which can be applied are "domains" or "templates".
    contactIds List<Double>
    geoLocation Map<String,String>
    gtdRegion Double
    id String
    noanswer Boolean
    note String
    pools List<Double>
    recordFailoverDisableFlag String
    recordFailoverFailoverType String
    recordFailoverValues List<GetARecordRecordFailoverValue>
    recordOption String
    roundrobin Map<String,String>
    roundrobinFailovers List<GetARecordRoundrobinFailover>
    ttl Double
    type String
    domainId string
    Domain id of the A record.
    name string
    Name of record. Name should be unique.
    sourceType string
    Type of the A record. The values which can be applied are "domains" or "templates".
    contactIds number[]
    geoLocation {[key: string]: string}
    gtdRegion number
    id string
    noanswer boolean
    note string
    pools number[]
    recordFailoverDisableFlag string
    recordFailoverFailoverType string
    recordFailoverValues GetARecordRecordFailoverValue[]
    recordOption string
    roundrobin {[key: string]: string}
    roundrobinFailovers GetARecordRoundrobinFailover[]
    ttl number
    type string
    domain_id str
    Domain id of the A record.
    name str
    Name of record. Name should be unique.
    source_type str
    Type of the A record. The values which can be applied are "domains" or "templates".
    contact_ids Sequence[float]
    geo_location Mapping[str, str]
    gtd_region float
    id str
    noanswer bool
    note str
    pools Sequence[float]
    record_failover_disable_flag str
    record_failover_failover_type str
    record_failover_values Sequence[GetARecordRecordFailoverValue]
    record_option str
    roundrobin Mapping[str, str]
    roundrobin_failovers Sequence[GetARecordRoundrobinFailover]
    ttl float
    type str
    domainId String
    Domain id of the A record.
    name String
    Name of record. Name should be unique.
    sourceType String
    Type of the A record. The values which can be applied are "domains" or "templates".
    contactIds List<Number>
    geoLocation Map<String>
    gtdRegion Number
    id String
    noanswer Boolean
    note String
    pools List<Number>
    recordFailoverDisableFlag String
    recordFailoverFailoverType String
    recordFailoverValues List<Property Map>
    recordOption String
    roundrobin Map<String>
    roundrobinFailovers List<Property Map>
    ttl Number
    type String

    getARecord Result

    The following output properties are available:

    Supporting Types

    GetARecordRecordFailoverValue

    Checkidrcdf double
    DisableFlag string
    SortOrder string
    Value string
    Checkidrcdf float64
    DisableFlag string
    SortOrder string
    Value string
    checkidrcdf number
    disable_flag string
    sort_order string
    value string
    checkidrcdf Double
    disableFlag String
    sortOrder String
    value String
    checkidrcdf number
    disableFlag string
    sortOrder string
    value string
    checkidrcdf Number
    disableFlag String
    sortOrder String
    value String

    GetARecordRoundrobinFailover

    DisableFlag string
    SortOrder string
    Value string
    DisableFlag string
    SortOrder string
    Value string
    disable_flag string
    sort_order string
    value string
    disableFlag String
    sortOrder String
    value String
    disableFlag string
    sortOrder string
    value string
    disableFlag String
    sortOrder String
    value String

    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.