Viewing docs for constellix 0.4.6
published on Friday, Mar 7, 2025 by constellix
published on Friday, Mar 7, 2025 by constellix
Viewing docs for constellix 0.4.6
published on Friday, Mar 7, 2025 by constellix
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 dictionarydata "constellix_getarecord" "name" {
# arguments
}The following arguments are supported:
- 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<double> - Geo
Location Dictionary<string, string> - Gtd
Region double - Id string
- Noanswer bool
- Note string
- Pools List<double>
- Record
Failover stringDisable Flag - Record
Failover stringFailover Type - Record
Failover List<GetValues ARecord Record Failover Value> - Record
Option string - Roundrobin Dictionary<string, string>
- Roundrobin
Failovers List<GetARecord Roundrobin Failover> - Ttl double
- 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 []float64 - Geo
Location map[string]string - Gtd
Region float64 - Id string
- Noanswer bool
- Note string
- Pools []float64
- Record
Failover stringDisable Flag - Record
Failover stringFailover Type - Record
Failover []GetValues ARecord Record Failover Value - Record
Option string - Roundrobin map[string]string
- Roundrobin
Failovers []GetARecord Roundrobin Failover - 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_ stringdisable_ flag - record_
failover_ stringfailover_ type - record_
failover_ list(object)values - record_
option string - roundrobin map(string)
- roundrobin_
failovers list(object) - ttl number
- 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<Double> - geo
Location Map<String,String> - gtd
Region Double - id String
- noanswer Boolean
- note String
- pools List<Double>
- record
Failover StringDisable Flag - record
Failover StringFailover Type - record
Failover List<GetValues ARecord Record Failover Value> - record
Option String - roundrobin Map<String,String>
- roundrobin
Failovers List<GetARecord Roundrobin Failover> - ttl Double
- 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 number[] - geo
Location {[key: string]: string} - gtd
Region number - id string
- noanswer boolean
- note string
- pools number[]
- record
Failover stringDisable Flag - record
Failover stringFailover Type - record
Failover GetValues ARecord Record Failover Value[] - record
Option string - roundrobin {[key: string]: string}
- roundrobin
Failovers GetARecord Roundrobin Failover[] - 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_ strdisable_ flag - record_
failover_ strfailover_ type - record_
failover_ Sequence[Getvalues ARecord Record Failover Value] - record_
option str - roundrobin Mapping[str, str]
- roundrobin_
failovers Sequence[GetARecord Roundrobin Failover] - ttl float
- type str
- 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 Boolean
- note String
- pools List<Number>
- record
Failover StringDisable Flag - record
Failover StringFailover Type - record
Failover List<Property Map>Values - record
Option String - roundrobin Map<String>
- roundrobin
Failovers List<Property Map> - ttl Number
- type String
getARecord 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
- Pools List<double>
- Record
Failover stringDisable Flag - Record
Failover stringFailover Type - Record
Option string - Roundrobin Dictionary<string, string>
- Source
Type string - Ttl double
- Type string
- Record
Failover List<GetValues ARecord Record Failover Value> - Roundrobin
Failovers List<GetARecord Roundrobin Failover>
- Contact
Ids []float64 - Domain
Id string - Geo
Location map[string]string - Gtd
Region float64 - Id string
- Name string
- Noanswer bool
- Note string
- Pools []float64
- Record
Failover stringDisable Flag - Record
Failover stringFailover Type - Record
Option string - Roundrobin map[string]string
- Source
Type string - Ttl float64
- Type string
- Record
Failover []GetValues ARecord Record Failover Value - Roundrobin
Failovers []GetARecord Roundrobin Failover
- contact_
ids list(number) - domain_
id string - geo_
location map(string) - gtd_
region number - id string
- name string
- noanswer bool
- note string
- pools list(number)
- record_
failover_ stringdisable_ flag - record_
failover_ stringfailover_ type - record_
option string - roundrobin map(string)
- source_
type string - ttl number
- type string
- record_
failover_ list(object)values - roundrobin_
failovers list(object)
- contact
Ids List<Double> - domain
Id String - geo
Location Map<String,String> - gtd
Region Double - id String
- name String
- noanswer Boolean
- note String
- pools List<Double>
- record
Failover StringDisable Flag - record
Failover StringFailover Type - record
Option String - roundrobin Map<String,String>
- source
Type String - ttl Double
- type String
- record
Failover List<GetValues ARecord Record Failover Value> - roundrobin
Failovers List<GetARecord Roundrobin Failover>
- contact
Ids number[] - domain
Id string - geo
Location {[key: string]: string} - gtd
Region number - id string
- name string
- noanswer boolean
- note string
- pools number[]
- record
Failover stringDisable Flag - record
Failover stringFailover Type - record
Option string - roundrobin {[key: string]: string}
- source
Type string - ttl number
- type string
- record
Failover GetValues ARecord Record Failover Value[] - roundrobin
Failovers GetARecord Roundrobin Failover[]
- contact_
ids Sequence[float] - domain_
id str - geo_
location Mapping[str, str] - gtd_
region float - id str
- name str
- noanswer bool
- note str
- pools Sequence[float]
- record_
failover_ strdisable_ flag - record_
failover_ strfailover_ type - record_
option str - roundrobin Mapping[str, str]
- source_
type str - ttl float
- type str
- record_
failover_ Sequence[Getvalues ARecord Record Failover Value] - roundrobin_
failovers Sequence[GetARecord Roundrobin Failover]
- contact
Ids List<Number> - domain
Id String - geo
Location Map<String> - gtd
Region Number - id String
- name String
- noanswer Boolean
- note String
- pools List<Number>
- record
Failover StringDisable Flag - record
Failover StringFailover Type - record
Option String - roundrobin Map<String>
- source
Type String - ttl Number
- type String
- record
Failover List<Property Map>Values - roundrobin
Failovers List<Property Map>
Supporting Types
GetARecordRecordFailoverValue
- Checkidrcdf double
- Disable
Flag string - Sort
Order string - Value string
- Checkidrcdf float64
- Disable
Flag string - Sort
Order string - Value string
- checkidrcdf number
- disable_
flag string - sort_
order string - value string
- checkidrcdf Double
- disable
Flag String - sort
Order String - value String
- checkidrcdf number
- disable
Flag string - sort
Order string - value string
- checkidrcdf float
- disable_
flag str - sort_
order str - value str
- checkidrcdf Number
- disable
Flag String - sort
Order String - value String
GetARecordRoundrobinFailover
- 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 string - sort
Order string - value string
- disable_
flag str - sort_
order str - value str
- disable
Flag String - sort
Order String - value String
Package Details
- Repository
- constellix constellix/terraform-provider-constellix
- License
- Notes
- This Pulumi package is based on the
constellixTerraform Provider.
Viewing docs for constellix 0.4.6
published on Friday, Mar 7, 2025 by constellix
published on Friday, Mar 7, 2025 by constellix
