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

constellix.getAnameRecord

Explore with Pulumi AI

constellix logo
constellix 0.4.6 published on Friday, Mar 7, 2025 by constellix

    Data source for Aname record

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as constellix from "@pulumi/constellix";
    
    const dataanamerecord = constellix.getAnameRecord({
        domainId: data.constellix_domain.domain1.id,
        name: "anamerecorddatasource",
        sourceType: "domains",
    });
    
    import pulumi
    import pulumi_constellix as constellix
    
    dataanamerecord = constellix.get_aname_record(domain_id=data["constellix_domain"]["domain1"]["id"],
        name="anamerecorddatasource",
        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.LookupAnameRecord(ctx, &constellix.LookupAnameRecordArgs{
    			DomainId:   data.Constellix_domain.Domain1.Id,
    			Name:       "anamerecorddatasource",
    			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 dataanamerecord = Constellix.GetAnameRecord.Invoke(new()
        {
            DomainId = data.Constellix_domain.Domain1.Id,
            Name = "anamerecorddatasource",
            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.GetAnameRecordArgs;
    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 dataanamerecord = ConstellixFunctions.getAnameRecord(GetAnameRecordArgs.builder()
                .domainId(data.constellix_domain().domain1().id())
                .name("anamerecorddatasource")
                .sourceType("domains")
                .build());
    
        }
    }
    
    variables:
      dataanamerecord:
        fn::invoke:
          function: constellix:getAnameRecord
          arguments:
            domainId: ${data.constellix_domain.domain1.id}
            name: anamerecorddatasource
            sourceType: domains
    

    Argument Reference

    • name - (Required) Name of record. Name should be unique.
    • source_type - (Required) “domains” for Domain records and “template” for Template records
    • domain_id - (Required) Record id of Aname record

    Attribute Reference

    • name - (Required) Name of record. Name should be unique.
    • source_type - (Required) “domains” for Domain records and “template” for Template records
    • ttl - (Optional) TTL must be in between 0 and 2147483647
    • roundrobin - (Optional) Set
    • roundrobin.value - (Optional) Host name. If “Host” value does not end in a dot, your domain name will be appended to it.
    • roundrobin.disable_flag - (Optional) Enable or Disable the roundrobin object. Default is false. Atleast one roundrobin object should be false.
    • record_option - (Optional) Type of record. “roundRobin” for Standard record (Default). “failover” for Failover
    • 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 ANAME
    • contact_ids - (Optional) Applied contact list id. Only applicable to record with type failover.
    • record_failover - (Optional) Set
    • record_failover_values - (Required) Set
    • record_failover_values.value - (Optional) Host name
    • record_failover_values.check_id - (Optional) Sonar check id
    • record_failover_values.disable_flag - (Optional) Enable or Disable the recordfailover values object. Default is false. Atleast one object should be false.
    • record_failover_values.sort_order - (Optional) Integer value which decides in which order recordfailover should be sorted.
    • record_failover_failover_type - (Optional) 1 for Normal (always lowest level), 2 for Off on any Failover event, 3 for One Way (move to higher level)
    • record_failover_disable_flag - (Optional) Enable or Disable the recordfailover object. Default is false. Atleast one recordfailover object should be false.

    Using getAnameRecord

    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 getAnameRecord(args: GetAnameRecordArgs, opts?: InvokeOptions): Promise<GetAnameRecordResult>
    function getAnameRecordOutput(args: GetAnameRecordOutputArgs, opts?: InvokeOptions): Output<GetAnameRecordResult>
    def get_aname_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,
                         record_failover_disable_flag: Optional[str] = None,
                         record_failover_failover_type: Optional[float] = None,
                         record_failover_values: Optional[Sequence[GetAnameRecordRecordFailoverValue]] = None,
                         record_option: Optional[str] = None,
                         roundrobins: Optional[Sequence[GetAnameRecordRoundrobin]] = None,
                         skip_lookup: Optional[bool] = None,
                         source_type: Optional[str] = None,
                         ttl: Optional[float] = None,
                         type: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetAnameRecordResult
    def get_aname_record_output(contact_ids: Optional[pulumi.Input[Sequence[pulumi.Input[float]]]] = None,
                         domain_id: Optional[pulumi.Input[str]] = None,
                         geo_location: Optional[pulumi.Input[Mapping[str, 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,
                         record_failover_disable_flag: Optional[pulumi.Input[str]] = None,
                         record_failover_failover_type: Optional[pulumi.Input[float]] = None,
                         record_failover_values: Optional[pulumi.Input[Sequence[pulumi.Input[GetAnameRecordRecordFailoverValueArgs]]]] = None,
                         record_option: Optional[pulumi.Input[str]] = None,
                         roundrobins: Optional[pulumi.Input[Sequence[pulumi.Input[GetAnameRecordRoundrobinArgs]]]] = None,
                         skip_lookup: Optional[pulumi.Input[bool]] = 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[GetAnameRecordResult]
    func LookupAnameRecord(ctx *Context, args *LookupAnameRecordArgs, opts ...InvokeOption) (*LookupAnameRecordResult, error)
    func LookupAnameRecordOutput(ctx *Context, args *LookupAnameRecordOutputArgs, opts ...InvokeOption) LookupAnameRecordResultOutput

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

    public static class GetAnameRecord 
    {
        public static Task<GetAnameRecordResult> InvokeAsync(GetAnameRecordArgs args, InvokeOptions? opts = null)
        public static Output<GetAnameRecordResult> Invoke(GetAnameRecordInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAnameRecordResult> getAnameRecord(GetAnameRecordArgs args, InvokeOptions options)
    public static Output<GetAnameRecordResult> getAnameRecord(GetAnameRecordArgs args, InvokeOptions options)
    
    fn::invoke:
      function: constellix:index/getAnameRecord:getAnameRecord
      arguments:
        # arguments dictionary

    The following arguments are supported:

    getAnameRecord Result

    The following output properties are available:

    Supporting Types

    GetAnameRecordRecordFailoverValue

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

    GetAnameRecordRoundrobin

    DisableFlag bool
    Value string
    DisableFlag bool
    Value string
    disableFlag Boolean
    value String
    disableFlag boolean
    value string
    disableFlag Boolean
    value String

    Package Details

    Repository
    constellix constellix/terraform-provider-constellix
    License
    Notes
    This Pulumi package is based on the constellix Terraform Provider.
    constellix logo
    constellix 0.4.6 published on Friday, Mar 7, 2025 by constellix