constellix 0.4.6 published on Friday, Mar 7, 2025 by constellix
constellix.getRpRecord
Explore with Pulumi AI
constellix 0.4.6 published on Friday, Mar 7, 2025 by constellix
Data source for RP record
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as constellix from "@pulumi/constellix";
const datarp = constellix.getRpRecord({
domainId: data.constellix_domain.first.id,
name: "rpdatasource",
sourceType: "domains",
});
import pulumi
import pulumi_constellix as constellix
datarp = constellix.get_rp_record(domain_id=data["constellix_domain"]["first"]["id"],
name="rpdatasource",
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.LookupRpRecord(ctx, &constellix.LookupRpRecordArgs{
DomainId: data.Constellix_domain.First.Id,
Name: "rpdatasource",
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 datarp = Constellix.GetRpRecord.Invoke(new()
{
DomainId = data.Constellix_domain.First.Id,
Name = "rpdatasource",
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.GetRpRecordArgs;
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 datarp = ConstellixFunctions.getRpRecord(GetRpRecordArgs.builder()
.domainId(data.constellix_domain().first().id())
.name("rpdatasource")
.sourceType("domains")
.build());
}
}
variables:
datarp:
fn::invoke:
function: constellix:getRpRecord
arguments:
domainId: ${data.constellix_domain.first.id}
name: rpdatasource
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 RP record
Attribute Reference
ttl
- (Optional) TTL must be in between 0 and 2147483647source_type
- (Required) “domains” for Domain records and “template” for Template recordsroundrobin
- (Optional) Setroundrobin.mailbox
- (Optional) A mailbox for the responsible person of the domainroundrobin.txt
- (Optional) A hostname for the responsible person of the domainroundrobin.disable_flag
- (Optional) Enable or Disable the roundrobin object. Default is false. Atleast one roundrobin object should be false.name
- (Required) Name of record. Name should be unique.noanswer
- (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 RP
Using getRpRecord
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 getRpRecord(args: GetRpRecordArgs, opts?: InvokeOptions): Promise<GetRpRecordResult>
function getRpRecordOutput(args: GetRpRecordOutputArgs, opts?: InvokeOptions): Output<GetRpRecordResult>
def get_rp_record(domain_id: Optional[str] = None,
gtd_region: Optional[float] = None,
id: Optional[str] = None,
name: Optional[str] = None,
noanswer: Optional[bool] = None,
note: Optional[str] = None,
parent: Optional[str] = None,
parentid: Optional[float] = None,
roundrobins: Optional[Sequence[GetRpRecordRoundrobin]] = None,
source: Optional[str] = None,
source_type: Optional[str] = None,
ttl: Optional[float] = None,
type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRpRecordResult
def get_rp_record_output(domain_id: Optional[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,
parent: Optional[pulumi.Input[str]] = None,
parentid: Optional[pulumi.Input[float]] = None,
roundrobins: Optional[pulumi.Input[Sequence[pulumi.Input[GetRpRecordRoundrobinArgs]]]] = None,
source: 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[GetRpRecordResult]
func LookupRpRecord(ctx *Context, args *LookupRpRecordArgs, opts ...InvokeOption) (*LookupRpRecordResult, error)
func LookupRpRecordOutput(ctx *Context, args *LookupRpRecordOutputArgs, opts ...InvokeOption) LookupRpRecordResultOutput
> Note: This function is named LookupRpRecord
in the Go SDK.
public static class GetRpRecord
{
public static Task<GetRpRecordResult> InvokeAsync(GetRpRecordArgs args, InvokeOptions? opts = null)
public static Output<GetRpRecordResult> Invoke(GetRpRecordInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRpRecordResult> getRpRecord(GetRpRecordArgs args, InvokeOptions options)
public static Output<GetRpRecordResult> getRpRecord(GetRpRecordArgs args, InvokeOptions options)
fn::invoke:
function: constellix:index/getRpRecord:getRpRecord
arguments:
# arguments dictionary
The following arguments are supported:
- Domain
Id string - Name string
- Source
Type string - Gtd
Region double - Id string
- Noanswer bool
- Note string
- Parent string
- Parentid double
- Roundrobins
List<Get
Rp Record Roundrobin> - Source string
- Ttl double
- Type string
- Domain
Id string - Name string
- Source
Type string - Gtd
Region float64 - Id string
- Noanswer bool
- Note string
- Parent string
- Parentid float64
- Roundrobins
[]Get
Rp Record Roundrobin - Source string
- Ttl float64
- Type string
- domain
Id String - name String
- source
Type String - gtd
Region Double - id String
- noanswer Boolean
- note String
- parent String
- parentid Double
- roundrobins
List<Get
Rp Record Roundrobin> - source String
- ttl Double
- type String
- domain
Id string - name string
- source
Type string - gtd
Region number - id string
- noanswer boolean
- note string
- parent string
- parentid number
- roundrobins
Get
Rp Record Roundrobin[] - source string
- ttl number
- type string
- domain_
id str - name str
- source_
type str - gtd_
region float - id str
- noanswer bool
- note str
- parent str
- parentid float
- roundrobins
Sequence[Get
Rp Record Roundrobin] - source str
- ttl float
- type str
- domain
Id String - name String
- source
Type String - gtd
Region Number - id String
- noanswer Boolean
- note String
- parent String
- parentid Number
- roundrobins List<Property Map>
- source String
- ttl Number
- type String
getRpRecord Result
The following output properties are available:
- Domain
Id string - Gtd
Region double - Id string
- Name string
- Noanswer bool
- Note string
- Parent string
- Parentid double
- Source string
- Source
Type string - Ttl double
- Type string
- Roundrobins
List<Get
Rp Record Roundrobin>
- Domain
Id string - Gtd
Region float64 - Id string
- Name string
- Noanswer bool
- Note string
- Parent string
- Parentid float64
- Source string
- Source
Type string - Ttl float64
- Type string
- Roundrobins
[]Get
Rp Record Roundrobin
- domain
Id String - gtd
Region Double - id String
- name String
- noanswer Boolean
- note String
- parent String
- parentid Double
- source String
- source
Type String - ttl Double
- type String
- roundrobins
List<Get
Rp Record Roundrobin>
- domain
Id string - gtd
Region number - id string
- name string
- noanswer boolean
- note string
- parent string
- parentid number
- source string
- source
Type string - ttl number
- type string
- roundrobins
Get
Rp Record Roundrobin[]
- domain_
id str - gtd_
region float - id str
- name str
- noanswer bool
- note str
- parent str
- parentid float
- source str
- source_
type str - ttl float
- type str
- roundrobins
Sequence[Get
Rp Record Roundrobin]
- domain
Id String - gtd
Region Number - id String
- name String
- noanswer Boolean
- note String
- parent String
- parentid Number
- source String
- source
Type String - ttl Number
- type String
- roundrobins List<Property Map>
Supporting Types
GetRpRecordRoundrobin
- Disable
Flag bool - Mailbox string
- Txt string
- Disable
Flag bool - Mailbox string
- Txt string
- disable
Flag Boolean - mailbox String
- txt String
- disable
Flag boolean - mailbox string
- txt string
- disable_
flag bool - mailbox str
- txt str
- disable
Flag Boolean - mailbox String
- txt 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