constellix.getCaaRecord
Explore with Pulumi AI
Data source for CAA record
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as constellix from "@pulumi/constellix";
const datacaarecord = constellix.getCaaRecord({
domainId: constellix_domain.domain1.id,
name: "anamerecorddatasource",
sourceType: "domains",
});
import pulumi
import pulumi_constellix as constellix
datacaarecord = constellix.get_caa_record(domain_id=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.LookupCaaRecord(ctx, &constellix.LookupCaaRecordArgs{
DomainId: 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 datacaarecord = Constellix.GetCaaRecord.Invoke(new()
{
DomainId = 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.GetCaaRecordArgs;
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 datacaarecord = ConstellixFunctions.getCaaRecord(GetCaaRecordArgs.builder()
.domainId(constellix_domain.domain1().id())
.name("anamerecorddatasource")
.sourceType("domains")
.build());
}
}
variables:
datacaarecord:
fn::invoke:
function: constellix:getCaaRecord
arguments:
domainId: ${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 CAA 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.caa_provider_id
- (Optional) 1 for [ Custom ], 2 for [ No Provider ], 3 for Comodo, 4 for Digicert, 5 for Entrust, 6 for GeoTrust, 7 for Izenpe, 8 for Lets Encrypt, 9 for Symantec, 10 for Thawteroundrobin.tag
- (Optional) “issue” for Issue, “IssueWild” for IssueWild, “iodef” for iodef. Type allows you to choose how you want certificates to be issued by the CA. Each CAA record can contain only one tag-value pair. Options: issue: Explicitly authorizes a single certificate authority to issue a certificate (any type) for the hostname.
issuewild: Authorization to issue certificates that specify a wildcard domain. Please note: issuewild properties take precedence over issue properties when specified.
iodef: (Incident Description Exchange Format) Specifies a means of reporting certificate issue requests or cases of certificate issue for the corresponding domain that violate the security policy of the issuer or the domain name holder.
roundrobin.data
- (Optional) "" for [ Custom ] if CAA provider Id is 1, “;” for [ No Provider ], “comodoca.com” for Comodo, “digicert.com” for Digicert, “entrust.net” for Entrust, “geotrust.com” for GeoTrust, “izenpe.com” for Izenpe, “letsencrypt.org” for Lets Encrypt, “symantec.com” for Symantec, “thawte.com” for Thawteroundrobin.flag
- (Optional) roundRobin.Issuer Critical
There is currently only one flag defined, “issuer critical” at a value of 1. If a CA does not understand the flag value for an issuer critical record, then the CA will return with “no issue” for the certification.
All records will have the default issuer critical value of 0, which means they are “not critical”. Issuer Critical Value should be between 0 to 255.
roundrobin.disable_flag
- (Optional) Disable flag. Default is falsename
- (Required) Name of record. Name should be unique.gtd_region
- (Optional) Shows id of GTD region in which record is to be created.noanswer
- (Optional) Shows if record is enabled or disabled. Default is false (Active)note
- (Optional) Record notetype
- (Optional) Record type CAA
Using getCaaRecord
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 getCaaRecord(args: GetCaaRecordArgs, opts?: InvokeOptions): Promise<GetCaaRecordResult>
function getCaaRecordOutput(args: GetCaaRecordOutputArgs, opts?: InvokeOptions): Output<GetCaaRecordResult>
def get_caa_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[GetCaaRecordRoundrobin]] = None,
source_type: Optional[str] = None,
ttl: Optional[float] = None,
type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCaaRecordResult
def get_caa_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[GetCaaRecordRoundrobinArgs]]]] = 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[GetCaaRecordResult]
func LookupCaaRecord(ctx *Context, args *LookupCaaRecordArgs, opts ...InvokeOption) (*LookupCaaRecordResult, error)
func LookupCaaRecordOutput(ctx *Context, args *LookupCaaRecordOutputArgs, opts ...InvokeOption) LookupCaaRecordResultOutput
> Note: This function is named LookupCaaRecord
in the Go SDK.
public static class GetCaaRecord
{
public static Task<GetCaaRecordResult> InvokeAsync(GetCaaRecordArgs args, InvokeOptions? opts = null)
public static Output<GetCaaRecordResult> Invoke(GetCaaRecordInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCaaRecordResult> getCaaRecord(GetCaaRecordArgs args, InvokeOptions options)
public static Output<GetCaaRecordResult> getCaaRecord(GetCaaRecordArgs args, InvokeOptions options)
fn::invoke:
function: constellix:index/getCaaRecord:getCaaRecord
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
- Roundrobins
List<Get
Caa Record Roundrobin> - Ttl double
- Type string
- Domain
Id string - Name string
- Source
Type string - Gtd
Region float64 - Id string
- Noanswer bool
- Note string
- Roundrobins
[]Get
Caa Record Roundrobin - Ttl float64
- Type string
- domain
Id String - name String
- source
Type String - gtd
Region Double - id String
- noanswer Boolean
- note String
- roundrobins
List<Get
Caa Record Roundrobin> - ttl Double
- type String
- domain
Id string - name string
- source
Type string - gtd
Region number - id string
- noanswer boolean
- note string
- roundrobins
Get
Caa Record Roundrobin[] - ttl number
- type string
- domain_
id str - name str
- source_
type str - gtd_
region float - id str
- noanswer bool
- note str
- roundrobins
Sequence[Get
Caa Record Roundrobin] - ttl float
- type str
- domain
Id String - name String
- source
Type String - gtd
Region Number - id String
- noanswer Boolean
- note String
- roundrobins List<Property Map>
- ttl Number
- type String
getCaaRecord Result
The following output properties are available:
- Domain
Id string - Gtd
Region double - Id string
- Name string
- Noanswer bool
- Note string
- Source
Type string - Ttl double
- Type string
- Roundrobins
List<Get
Caa Record Roundrobin>
- Domain
Id string - Gtd
Region float64 - Id string
- Name string
- Noanswer bool
- Note string
- Source
Type string - Ttl float64
- Type string
- Roundrobins
[]Get
Caa Record Roundrobin
- domain
Id String - gtd
Region Double - id String
- name String
- noanswer Boolean
- note String
- source
Type String - ttl Double
- type String
- roundrobins
List<Get
Caa Record Roundrobin>
- domain
Id string - gtd
Region number - id string
- name string
- noanswer boolean
- note string
- source
Type string - ttl number
- type string
- roundrobins
Get
Caa 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[Get
Caa Record Roundrobin]
- domain
Id String - gtd
Region Number - id String
- name String
- noanswer Boolean
- note String
- source
Type String - ttl Number
- type String
- roundrobins List<Property Map>
Supporting Types
GetCaaRecordRoundrobin
- Caa
Provider doubleId - Data string
- Disable
Flag string - Flag string
- Tag string
- Caa
Provider float64Id - Data string
- Disable
Flag string - Flag string
- Tag string
- caa
Provider DoubleId - data String
- disable
Flag String - flag String
- tag String
- caa
Provider numberId - data string
- disable
Flag string - flag string
- tag string
- caa_
provider_ floatid - data str
- disable_
flag str - flag str
- tag str
- caa
Provider NumberId - data String
- disable
Flag String - flag String
- tag String
Package Details
- Repository
- constellix constellix/terraform-provider-constellix
- License
- Notes
- This Pulumi package is based on the
constellix
Terraform Provider.