constellix 0.4.6 published on Friday, Mar 7, 2025 by constellix
constellix.getSpfRecord
Explore with Pulumi AI
constellix 0.4.6 published on Friday, Mar 7, 2025 by constellix
Data source for records of type SPF for a specific domain.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as constellix from "@pulumi/constellix";
const spf1 = constellix.getSpfRecord({
    domainId: constellix_domain.domain1.id,
    name: "temp",
    sourceType: "domains",
});
import pulumi
import pulumi_constellix as constellix
spf1 = constellix.get_spf_record(domain_id=constellix_domain["domain1"]["id"],
    name="temp",
    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.LookupSpfRecord(ctx, &constellix.LookupSpfRecordArgs{
			DomainId:   constellix_domain.Domain1.Id,
			Name:       "temp",
			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 spf1 = Constellix.GetSpfRecord.Invoke(new()
    {
        DomainId = constellix_domain.Domain1.Id,
        Name = "temp",
        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.GetSpfRecordArgs;
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 spf1 = ConstellixFunctions.getSpfRecord(GetSpfRecordArgs.builder()
            .domainId(constellix_domain.domain1().id())
            .name("temp")
            .sourceType("domains")
            .build());
    }
}
variables:
  spf1:
    fn::invoke:
      function: constellix:getSpfRecord
      arguments:
        domainId: ${constellix_domain.domain1.id}
        name: temp
        sourceType: domains
Attributes Reference
- ttl- (Optional) TTL must be in between 0 and 2147483647.
- 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 A.
- roundrobin- (Optional) Object.
- roundrobin.value- (Optional) Value may contain multiple strings (each string enclosed in double quotes). Individual string length should not exceed 255 characters.
- roundrobin.disable_flag- (Optional) enable or disable the roundrobin object. Default is false. Atleast one roundrobin object should be false.
Using getSpfRecord
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 getSpfRecord(args: GetSpfRecordArgs, opts?: InvokeOptions): Promise<GetSpfRecordResult>
function getSpfRecordOutput(args: GetSpfRecordOutputArgs, opts?: InvokeOptions): Output<GetSpfRecordResult>def get_spf_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,
                   roundrobins: Optional[Sequence[GetSpfRecordRoundrobin]] = None,
                   source_type: Optional[str] = None,
                   ttl: Optional[float] = None,
                   type: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetSpfRecordResult
def get_spf_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,
                   roundrobins: Optional[pulumi.Input[Sequence[pulumi.Input[GetSpfRecordRoundrobinArgs]]]] = 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[GetSpfRecordResult]func LookupSpfRecord(ctx *Context, args *LookupSpfRecordArgs, opts ...InvokeOption) (*LookupSpfRecordResult, error)
func LookupSpfRecordOutput(ctx *Context, args *LookupSpfRecordOutputArgs, opts ...InvokeOption) LookupSpfRecordResultOutput> Note: This function is named LookupSpfRecord in the Go SDK.
public static class GetSpfRecord 
{
    public static Task<GetSpfRecordResult> InvokeAsync(GetSpfRecordArgs args, InvokeOptions? opts = null)
    public static Output<GetSpfRecordResult> Invoke(GetSpfRecordInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSpfRecordResult> getSpfRecord(GetSpfRecordArgs args, InvokeOptions options)
public static Output<GetSpfRecordResult> getSpfRecord(GetSpfRecordArgs args, InvokeOptions options)
fn::invoke:
  function: constellix:index/getSpfRecord:getSpfRecord
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DomainId string
- Domain id of the SPF record.
- Name string
- Name of record. Name should be unique.
- SourceType string
- Type of the SPF record. The values which can be applied are "domains" or "templates".
- GtdRegion double
- Id string
- Noanswer bool
- Note string
- Roundrobins
List<GetSpf Record Roundrobin> 
- Ttl double
- Type string
- DomainId string
- Domain id of the SPF record.
- Name string
- Name of record. Name should be unique.
- SourceType string
- Type of the SPF record. The values which can be applied are "domains" or "templates".
- GtdRegion float64
- Id string
- Noanswer bool
- Note string
- Roundrobins
[]GetSpf Record Roundrobin 
- Ttl float64
- Type string
- domainId String
- Domain id of the SPF record.
- name String
- Name of record. Name should be unique.
- sourceType String
- Type of the SPF record. The values which can be applied are "domains" or "templates".
- gtdRegion Double
- id String
- noanswer Boolean
- note String
- roundrobins
List<GetSpf Record Roundrobin> 
- ttl Double
- type String
- domainId string
- Domain id of the SPF record.
- name string
- Name of record. Name should be unique.
- sourceType string
- Type of the SPF record. The values which can be applied are "domains" or "templates".
- gtdRegion number
- id string
- noanswer boolean
- note string
- roundrobins
GetSpf Record Roundrobin[] 
- ttl number
- type string
- domain_id str
- Domain id of the SPF record.
- name str
- Name of record. Name should be unique.
- source_type str
- Type of the SPF record. The values which can be applied are "domains" or "templates".
- gtd_region float
- id str
- noanswer bool
- note str
- roundrobins
Sequence[GetSpf Record Roundrobin] 
- ttl float
- type str
- domainId String
- Domain id of the SPF record.
- name String
- Name of record. Name should be unique.
- sourceType String
- Type of the SPF record. The values which can be applied are "domains" or "templates".
- gtdRegion Number
- id String
- noanswer Boolean
- note String
- roundrobins List<Property Map>
- ttl Number
- type String
getSpfRecord Result
The following output properties are available:
- DomainId string
- GtdRegion double
- Id string
- Name string
- Noanswer bool
- Note string
- SourceType string
- Ttl double
- Type string
- Roundrobins
List<GetSpf Record Roundrobin> 
- DomainId string
- GtdRegion float64
- Id string
- Name string
- Noanswer bool
- Note string
- SourceType string
- Ttl float64
- Type string
- Roundrobins
[]GetSpf Record Roundrobin 
- domainId String
- gtdRegion Double
- id String
- name String
- noanswer Boolean
- note String
- sourceType String
- ttl Double
- type String
- roundrobins
List<GetSpf Record Roundrobin> 
- domainId string
- gtdRegion number
- id string
- name string
- noanswer boolean
- note string
- sourceType string
- ttl number
- type string
- roundrobins
GetSpf Record Roundrobin[] 
- domain_id str
- gtd_region float
- id str
- name str
- noanswer bool
- note str
- source_type str
- ttl float
- type str
- roundrobins
Sequence[GetSpf Record Roundrobin] 
- domainId String
- gtdRegion Number
- id String
- name String
- noanswer Boolean
- note String
- sourceType String
- ttl Number
- type String
- roundrobins List<Property Map>
Supporting Types
GetSpfRecordRoundrobin   
- DisableFlag string
- Value string
- DisableFlag string
- Value string
- disableFlag String
- value String
- disableFlag string
- value string
- disable_flag str
- value str
- disableFlag String
- value String
Package Details
- Repository
- constellix constellix/terraform-provider-constellix
- License
- Notes
- This Pulumi package is based on the constellixTerraform Provider.
constellix 0.4.6 published on Friday, Mar 7, 2025 by constellix