constellix 0.4.6 published on Friday, Mar 7, 2025 by constellix
constellix.getAnameRecord
Explore with Pulumi AI
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 recordsdomain_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 recordsttl
- (Optional) TTL must be in between 0 and 2147483647roundrobin
- (Optional) Setroundrobin.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 Failovernoanswer
- (Optional) Shows if record is enabled or disabled. Default is false (Active)note
- (Optional) Record notegtd_region
- (Optional) Shows id of GTD region in which record is to be created.type
- (Optional) Record type ANAMEcontact_ids
- (Optional) Applied contact list id. Only applicable to record with type failover.record_failover
- (Optional) Setrecord_failover_values
- (Required) Setrecord_failover_values.value
- (Optional) Host namerecord_failover_values.check_id
- (Optional) Sonar check idrecord_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:
- Domain
Id string - Name string
- Source
Type string - Contact
Ids List<double> - Geo
Location Dictionary<string, string> - Gtd
Region double - Id string
- Noanswer bool
- Note string
- Record
Failover stringDisable Flag - Record
Failover doubleFailover Type - Record
Failover List<GetValues Aname Record Record Failover Value> - Record
Option string - Roundrobins
List<Get
Aname Record Roundrobin> - Skip
Lookup bool - Ttl double
- Type string
- Domain
Id string - Name string
- Source
Type string - Contact
Ids []float64 - Geo
Location map[string]string - Gtd
Region float64 - Id string
- Noanswer bool
- Note string
- Record
Failover stringDisable Flag - Record
Failover float64Failover Type - Record
Failover []GetValues Aname Record Record Failover Value - Record
Option string - Roundrobins
[]Get
Aname Record Roundrobin - Skip
Lookup bool - Ttl float64
- Type string
- domain
Id String - name String
- source
Type String - contact
Ids List<Double> - geo
Location Map<String,String> - gtd
Region Double - id String
- noanswer Boolean
- note String
- record
Failover StringDisable Flag - record
Failover DoubleFailover Type - record
Failover List<GetValues Aname Record Record Failover Value> - record
Option String - roundrobins
List<Get
Aname Record Roundrobin> - skip
Lookup Boolean - ttl Double
- type String
- domain
Id string - name string
- source
Type string - contact
Ids number[] - geo
Location {[key: string]: string} - gtd
Region number - id string
- noanswer boolean
- note string
- record
Failover stringDisable Flag - record
Failover numberFailover Type - record
Failover GetValues Aname Record Record Failover Value[] - record
Option string - roundrobins
Get
Aname Record Roundrobin[] - skip
Lookup boolean - ttl number
- type string
- domain_
id str - name str
- source_
type str - contact_
ids Sequence[float] - geo_
location Mapping[str, str] - gtd_
region float - id str
- noanswer bool
- note str
- record_
failover_ strdisable_ flag - record_
failover_ floatfailover_ type - record_
failover_ Sequence[Getvalues Aname Record Record Failover Value] - record_
option str - roundrobins
Sequence[Get
Aname Record Roundrobin] - skip_
lookup bool - ttl float
- type str
- domain
Id String - name String
- source
Type String - contact
Ids List<Number> - geo
Location Map<String> - gtd
Region Number - id String
- noanswer Boolean
- note String
- record
Failover StringDisable Flag - record
Failover NumberFailover Type - record
Failover List<Property Map>Values - record
Option String - roundrobins List<Property Map>
- skip
Lookup Boolean - ttl Number
- type String
getAnameRecord Result
The following output properties are available:
- Contact
Ids List<double> - Domain
Id string - Geo
Location Dictionary<string, string> - Gtd
Region double - Id string
- Name string
- Noanswer bool
- Note string
- Record
Failover stringDisable Flag - Record
Failover doubleFailover Type - Record
Option string - Skip
Lookup bool - Source
Type string - Ttl double
- Type string
- Record
Failover List<GetValues Aname Record Record Failover Value> - Roundrobins
List<Get
Aname Record Roundrobin>
- Contact
Ids []float64 - Domain
Id string - Geo
Location map[string]string - Gtd
Region float64 - Id string
- Name string
- Noanswer bool
- Note string
- Record
Failover stringDisable Flag - Record
Failover float64Failover Type - Record
Option string - Skip
Lookup bool - Source
Type string - Ttl float64
- Type string
- Record
Failover []GetValues Aname Record Record Failover Value - Roundrobins
[]Get
Aname Record Roundrobin
- contact
Ids List<Double> - domain
Id String - geo
Location Map<String,String> - gtd
Region Double - id String
- name String
- noanswer Boolean
- note String
- record
Failover StringDisable Flag - record
Failover DoubleFailover Type - record
Option String - skip
Lookup Boolean - source
Type String - ttl Double
- type String
- record
Failover List<GetValues Aname Record Record Failover Value> - roundrobins
List<Get
Aname Record Roundrobin>
- contact
Ids number[] - domain
Id string - geo
Location {[key: string]: string} - gtd
Region number - id string
- name string
- noanswer boolean
- note string
- record
Failover stringDisable Flag - record
Failover numberFailover Type - record
Option string - skip
Lookup boolean - source
Type string - ttl number
- type string
- record
Failover GetValues Aname Record Record Failover Value[] - roundrobins
Get
Aname Record Roundrobin[]
- contact_
ids Sequence[float] - domain_
id str - geo_
location Mapping[str, str] - gtd_
region float - id str
- name str
- noanswer bool
- note str
- record_
failover_ strdisable_ flag - record_
failover_ floatfailover_ type - record_
option str - skip_
lookup bool - source_
type str - ttl float
- type str
- record_
failover_ Sequence[Getvalues Aname Record Record Failover Value] - roundrobins
Sequence[Get
Aname Record Roundrobin]
- contact
Ids List<Number> - domain
Id String - geo
Location Map<String> - gtd
Region Number - id String
- name String
- noanswer Boolean
- note String
- record
Failover StringDisable Flag - record
Failover NumberFailover Type - record
Option String - skip
Lookup Boolean - source
Type String - ttl Number
- type String
- record
Failover List<Property Map>Values - roundrobins List<Property Map>
Supporting Types
GetAnameRecordRecordFailoverValue
- Disable
Flag string - Sort
Order string - Value string
- Disable
Flag string - Sort
Order string - Value string
- disable
Flag String - sort
Order String - value String
- disable
Flag string - sort
Order string - value string
- disable_
flag str - sort_
order str - value str
- disable
Flag String - sort
Order String - value String
GetAnameRecordRoundrobin
- Disable
Flag bool - Value string
- Disable
Flag bool - Value string
- disable
Flag Boolean - value String
- disable
Flag boolean - value string
- disable_
flag bool - value str
- disable
Flag Boolean - value String
Package Details
- Repository
- constellix constellix/terraform-provider-constellix
- License
- Notes
- This Pulumi package is based on the
constellix
Terraform Provider.
constellix 0.4.6 published on Friday, Mar 7, 2025 by constellix