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 one or more domain CNAME records.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as constellix from "@pulumi/constellix";
const firstrecord = constellix.getCnameRecord({
domainId: constellix_domain.first_domain.id,
name: "firstrecord",
sourceType: "domains",
});
import pulumi
import pulumi_constellix as constellix
firstrecord = constellix.get_cname_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.LookupCnameRecord(ctx, &constellix.LookupCnameRecordArgs{
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.GetCnameRecord.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.GetCnameRecordArgs;
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.getCnameRecord(GetCnameRecordArgs.builder()
.domainId(constellix_domain.first_domain().id())
.name("firstrecord")
.sourceType("domains")
.build());
}
}
variables:
firstrecord:
fn::invoke:
function: constellix:getCnameRecord
arguments:
domainId: ${constellix_domain.first_domain.id}
name: firstrecord
sourceType: domains
Using getCnameRecord
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 getCnameRecord(args: GetCnameRecordArgs, opts?: InvokeOptions): Promise<GetCnameRecordResult>
function getCnameRecordOutput(args: GetCnameRecordOutputArgs, opts?: InvokeOptions): Output<GetCnameRecordResult>def get_cname_record(contact_ids: Optional[Sequence[float]] = None,
domain_id: Optional[str] = None,
geo_location: Optional[Mapping[str, str]] = None,
gtd_region: Optional[float] = None,
host: Optional[str] = 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[GetCnameRecordRecordFailoverValue]] = None,
record_option: Optional[str] = None,
source_type: Optional[str] = None,
ttl: Optional[float] = None,
type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCnameRecordResult
def get_cname_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,
host: Optional[pulumi.Input[str]] = 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,
pools: Optional[pulumi.Input[Sequence[pulumi.Input[float]]]] = None,
record_failover_disable_flag: Optional[pulumi.Input[str]] = None,
record_failover_failover_type: Optional[pulumi.Input[str]] = None,
record_failover_values: Optional[pulumi.Input[Sequence[pulumi.Input[GetCnameRecordRecordFailoverValueArgs]]]] = None,
record_option: Optional[pulumi.Input[str]] = 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[GetCnameRecordResult]func LookupCnameRecord(ctx *Context, args *LookupCnameRecordArgs, opts ...InvokeOption) (*LookupCnameRecordResult, error)
func LookupCnameRecordOutput(ctx *Context, args *LookupCnameRecordOutputArgs, opts ...InvokeOption) LookupCnameRecordResultOutput> Note: This function is named LookupCnameRecord in the Go SDK.
public static class GetCnameRecord
{
public static Task<GetCnameRecordResult> InvokeAsync(GetCnameRecordArgs args, InvokeOptions? opts = null)
public static Output<GetCnameRecordResult> Invoke(GetCnameRecordInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCnameRecordResult> getCnameRecord(GetCnameRecordArgs args, InvokeOptions options)
public static Output<GetCnameRecordResult> getCnameRecord(GetCnameRecordArgs args, InvokeOptions options)
fn::invoke:
function: constellix:index/getCnameRecord:getCnameRecord
arguments:
# arguments dictionaryThe following arguments are supported:
- Domain
Id string - Domain id of the CName record.
- Name string
- Name of record. Name should be unique.
- Source
Type string - Type of the CName record. The values which can be applied are "domains" or "templates".
- Contact
Ids List<double> - Geo
Location Dictionary<string, string> - Gtd
Region double - Host string
- Id string
- Noanswer bool
- Note string
- Pools List<double>
- Record
Failover stringDisable Flag - Record
Failover stringFailover Type - Record
Failover List<GetValues Cname Record Record Failover Value> - Record
Option string - Ttl double
- Type string
- Domain
Id string - Domain id of the CName record.
- Name string
- Name of record. Name should be unique.
- Source
Type string - Type of the CName record. The values which can be applied are "domains" or "templates".
- Contact
Ids []float64 - Geo
Location map[string]string - Gtd
Region float64 - Host string
- Id string
- Noanswer bool
- Note string
- Pools []float64
- Record
Failover stringDisable Flag - Record
Failover stringFailover Type - Record
Failover []GetValues Cname Record Record Failover Value - Record
Option string - Ttl float64
- Type string
- domain
Id String - Domain id of the CName record.
- name String
- Name of record. Name should be unique.
- source
Type String - Type of the CName record. The values which can be applied are "domains" or "templates".
- contact
Ids List<Double> - geo
Location Map<String,String> - gtd
Region Double - host String
- id String
- noanswer Boolean
- note String
- pools List<Double>
- record
Failover StringDisable Flag - record
Failover StringFailover Type - record
Failover List<GetValues Cname Record Record Failover Value> - record
Option String - ttl Double
- type String
- domain
Id string - Domain id of the CName record.
- name string
- Name of record. Name should be unique.
- source
Type string - Type of the CName record. The values which can be applied are "domains" or "templates".
- contact
Ids number[] - geo
Location {[key: string]: string} - gtd
Region number - host string
- id string
- noanswer boolean
- note string
- pools number[]
- record
Failover stringDisable Flag - record
Failover stringFailover Type - record
Failover GetValues Cname Record Record Failover Value[] - record
Option string - ttl number
- type string
- domain_
id str - Domain id of the CName record.
- name str
- Name of record. Name should be unique.
- source_
type str - Type of the CName record. The values which can be applied are "domains" or "templates".
- contact_
ids Sequence[float] - geo_
location Mapping[str, str] - gtd_
region float - host str
- id str
- noanswer bool
- note str
- pools Sequence[float]
- record_
failover_ strdisable_ flag - record_
failover_ strfailover_ type - record_
failover_ Sequence[Getvalues Cname Record Record Failover Value] - record_
option str - ttl float
- type str
- domain
Id String - Domain id of the CName record.
- name String
- Name of record. Name should be unique.
- source
Type String - Type of the CName record. The values which can be applied are "domains" or "templates".
- contact
Ids List<Number> - geo
Location Map<String> - gtd
Region Number - host String
- 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 - ttl Number
- type String
getCnameRecord Result
The following output properties are available:
- Contact
Ids List<double> - Domain
Id string - Geo
Location Dictionary<string, string> - Gtd
Region double - Host string
- Id string
- Name string
- Noanswer bool
- Note string
- Pools List<double>
- Record
Failover stringDisable Flag - Record
Failover stringFailover Type - Record
Option string - Source
Type string - Ttl double
- Type string
- Record
Failover List<GetValues Cname Record Record Failover Value>
- Contact
Ids []float64 - Domain
Id string - Geo
Location map[string]string - Gtd
Region float64 - Host string
- Id string
- Name string
- Noanswer bool
- Note string
- Pools []float64
- Record
Failover stringDisable Flag - Record
Failover stringFailover Type - Record
Option string - Source
Type string - Ttl float64
- Type string
- Record
Failover []GetValues Cname Record Record Failover Value
- contact
Ids List<Double> - domain
Id String - geo
Location Map<String,String> - gtd
Region Double - host String
- id String
- name String
- noanswer Boolean
- note String
- pools List<Double>
- record
Failover StringDisable Flag - record
Failover StringFailover Type - record
Option String - source
Type String - ttl Double
- type String
- record
Failover List<GetValues Cname Record Record Failover Value>
- contact
Ids number[] - domain
Id string - geo
Location {[key: string]: string} - gtd
Region number - host string
- id string
- name string
- noanswer boolean
- note string
- pools number[]
- record
Failover stringDisable Flag - record
Failover stringFailover Type - record
Option string - source
Type string - ttl number
- type string
- record
Failover GetValues Cname Record Record Failover Value[]
- contact_
ids Sequence[float] - domain_
id str - geo_
location Mapping[str, str] - gtd_
region float - host str
- id str
- name str
- noanswer bool
- note str
- pools Sequence[float]
- record_
failover_ strdisable_ flag - record_
failover_ strfailover_ type - record_
option str - source_
type str - ttl float
- type str
- record_
failover_ Sequence[Getvalues Cname Record Record Failover Value]
- contact
Ids List<Number> - domain
Id String - geo
Location Map<String> - gtd
Region Number - host String
- id String
- name String
- noanswer Boolean
- note String
- pools List<Number>
- record
Failover StringDisable Flag - record
Failover StringFailover Type - record
Option String - source
Type String - ttl Number
- type String
- record
Failover List<Property Map>Values
Supporting Types
GetCnameRecordRecordFailoverValue
- Check
Id double - Disable
Flag string - Sort
Order string - Value string
- Check
Id float64 - Disable
Flag string - Sort
Order string - Value string
- check
Id Double - disable
Flag String - sort
Order String - value String
- check
Id number - disable
Flag string - sort
Order string - value string
- check_
id float - disable_
flag str - sort_
order str - value str
- check
Id Number - 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
