exoscale logo
Exoscale v0.48.0, May 19 23

exoscale.DomainRecord

Explore with Pulumi AI

Import

An existing DNS domain record may be imported by <ID>

 $ pulumi import exoscale:index/domainRecord:DomainRecord \

exoscale_domain_record.my_host \

f81d4fae-7dec-11d0-a765-00a0c91e6bf6

Create DomainRecord Resource

new DomainRecord(name: string, args: DomainRecordArgs, opts?: CustomResourceOptions);
@overload
def DomainRecord(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 content: Optional[str] = None,
                 domain: Optional[str] = None,
                 name: Optional[str] = None,
                 prio: Optional[int] = None,
                 record_type: Optional[str] = None,
                 ttl: Optional[int] = None)
@overload
def DomainRecord(resource_name: str,
                 args: DomainRecordArgs,
                 opts: Optional[ResourceOptions] = None)
func NewDomainRecord(ctx *Context, name string, args DomainRecordArgs, opts ...ResourceOption) (*DomainRecord, error)
public DomainRecord(string name, DomainRecordArgs args, CustomResourceOptions? opts = null)
public DomainRecord(String name, DomainRecordArgs args)
public DomainRecord(String name, DomainRecordArgs args, CustomResourceOptions options)
type: exoscale:DomainRecord
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args DomainRecordArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args DomainRecordArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args DomainRecordArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args DomainRecordArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args DomainRecordArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

DomainRecord Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The DomainRecord resource accepts the following input properties:

Content string

The record value.

Domain string

The parent exoscale_domain to attach the record to.

RecordType string

The record type (A, AAAA, ALIAS, CAA, CNAME, HINFO, MX, NAPTR, NS, POOL, SPF, SRV, SSHFP, TXT, URL).

Name string

The record name, Leave blank ("") to create a root record (similar to using @ in a DNS zone file).

Prio int

The record priority (for types that support it; minimum 0).

Ttl int

The record TTL (seconds; minimum 0; default: 3600).

Content string

The record value.

Domain string

The parent exoscale_domain to attach the record to.

RecordType string

The record type (A, AAAA, ALIAS, CAA, CNAME, HINFO, MX, NAPTR, NS, POOL, SPF, SRV, SSHFP, TXT, URL).

Name string

The record name, Leave blank ("") to create a root record (similar to using @ in a DNS zone file).

Prio int

The record priority (for types that support it; minimum 0).

Ttl int

The record TTL (seconds; minimum 0; default: 3600).

content String

The record value.

domain String

The parent exoscale_domain to attach the record to.

recordType String

The record type (A, AAAA, ALIAS, CAA, CNAME, HINFO, MX, NAPTR, NS, POOL, SPF, SRV, SSHFP, TXT, URL).

name String

The record name, Leave blank ("") to create a root record (similar to using @ in a DNS zone file).

prio Integer

The record priority (for types that support it; minimum 0).

ttl Integer

The record TTL (seconds; minimum 0; default: 3600).

content string

The record value.

domain string

The parent exoscale_domain to attach the record to.

recordType string

The record type (A, AAAA, ALIAS, CAA, CNAME, HINFO, MX, NAPTR, NS, POOL, SPF, SRV, SSHFP, TXT, URL).

name string

The record name, Leave blank ("") to create a root record (similar to using @ in a DNS zone file).

prio number

The record priority (for types that support it; minimum 0).

ttl number

The record TTL (seconds; minimum 0; default: 3600).

content str

The record value.

domain str

The parent exoscale_domain to attach the record to.

record_type str

The record type (A, AAAA, ALIAS, CAA, CNAME, HINFO, MX, NAPTR, NS, POOL, SPF, SRV, SSHFP, TXT, URL).

name str

The record name, Leave blank ("") to create a root record (similar to using @ in a DNS zone file).

prio int

The record priority (for types that support it; minimum 0).

ttl int

The record TTL (seconds; minimum 0; default: 3600).

content String

The record value.

domain String

The parent exoscale_domain to attach the record to.

recordType String

The record type (A, AAAA, ALIAS, CAA, CNAME, HINFO, MX, NAPTR, NS, POOL, SPF, SRV, SSHFP, TXT, URL).

name String

The record name, Leave blank ("") to create a root record (similar to using @ in a DNS zone file).

prio Number

The record priority (for types that support it; minimum 0).

ttl Number

The record TTL (seconds; minimum 0; default: 3600).

Outputs

All input properties are implicitly available as output properties. Additionally, the DomainRecord resource produces the following output properties:

Hostname string

The record Fully Qualified Domain Name (FQDN). Useful for aliasing A/AAAA records with CNAME.

Id string

The provider-assigned unique ID for this managed resource.

Hostname string

The record Fully Qualified Domain Name (FQDN). Useful for aliasing A/AAAA records with CNAME.

Id string

The provider-assigned unique ID for this managed resource.

hostname String

The record Fully Qualified Domain Name (FQDN). Useful for aliasing A/AAAA records with CNAME.

id String

The provider-assigned unique ID for this managed resource.

hostname string

The record Fully Qualified Domain Name (FQDN). Useful for aliasing A/AAAA records with CNAME.

id string

The provider-assigned unique ID for this managed resource.

hostname str

The record Fully Qualified Domain Name (FQDN). Useful for aliasing A/AAAA records with CNAME.

id str

The provider-assigned unique ID for this managed resource.

hostname String

The record Fully Qualified Domain Name (FQDN). Useful for aliasing A/AAAA records with CNAME.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing DomainRecord Resource

Get an existing DomainRecord resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: DomainRecordState, opts?: CustomResourceOptions): DomainRecord
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        content: Optional[str] = None,
        domain: Optional[str] = None,
        hostname: Optional[str] = None,
        name: Optional[str] = None,
        prio: Optional[int] = None,
        record_type: Optional[str] = None,
        ttl: Optional[int] = None) -> DomainRecord
func GetDomainRecord(ctx *Context, name string, id IDInput, state *DomainRecordState, opts ...ResourceOption) (*DomainRecord, error)
public static DomainRecord Get(string name, Input<string> id, DomainRecordState? state, CustomResourceOptions? opts = null)
public static DomainRecord get(String name, Output<String> id, DomainRecordState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Content string

The record value.

Domain string

The parent exoscale_domain to attach the record to.

Hostname string

The record Fully Qualified Domain Name (FQDN). Useful for aliasing A/AAAA records with CNAME.

Name string

The record name, Leave blank ("") to create a root record (similar to using @ in a DNS zone file).

Prio int

The record priority (for types that support it; minimum 0).

RecordType string

The record type (A, AAAA, ALIAS, CAA, CNAME, HINFO, MX, NAPTR, NS, POOL, SPF, SRV, SSHFP, TXT, URL).

Ttl int

The record TTL (seconds; minimum 0; default: 3600).

Content string

The record value.

Domain string

The parent exoscale_domain to attach the record to.

Hostname string

The record Fully Qualified Domain Name (FQDN). Useful for aliasing A/AAAA records with CNAME.

Name string

The record name, Leave blank ("") to create a root record (similar to using @ in a DNS zone file).

Prio int

The record priority (for types that support it; minimum 0).

RecordType string

The record type (A, AAAA, ALIAS, CAA, CNAME, HINFO, MX, NAPTR, NS, POOL, SPF, SRV, SSHFP, TXT, URL).

Ttl int

The record TTL (seconds; minimum 0; default: 3600).

content String

The record value.

domain String

The parent exoscale_domain to attach the record to.

hostname String

The record Fully Qualified Domain Name (FQDN). Useful for aliasing A/AAAA records with CNAME.

name String

The record name, Leave blank ("") to create a root record (similar to using @ in a DNS zone file).

prio Integer

The record priority (for types that support it; minimum 0).

recordType String

The record type (A, AAAA, ALIAS, CAA, CNAME, HINFO, MX, NAPTR, NS, POOL, SPF, SRV, SSHFP, TXT, URL).

ttl Integer

The record TTL (seconds; minimum 0; default: 3600).

content string

The record value.

domain string

The parent exoscale_domain to attach the record to.

hostname string

The record Fully Qualified Domain Name (FQDN). Useful for aliasing A/AAAA records with CNAME.

name string

The record name, Leave blank ("") to create a root record (similar to using @ in a DNS zone file).

prio number

The record priority (for types that support it; minimum 0).

recordType string

The record type (A, AAAA, ALIAS, CAA, CNAME, HINFO, MX, NAPTR, NS, POOL, SPF, SRV, SSHFP, TXT, URL).

ttl number

The record TTL (seconds; minimum 0; default: 3600).

content str

The record value.

domain str

The parent exoscale_domain to attach the record to.

hostname str

The record Fully Qualified Domain Name (FQDN). Useful for aliasing A/AAAA records with CNAME.

name str

The record name, Leave blank ("") to create a root record (similar to using @ in a DNS zone file).

prio int

The record priority (for types that support it; minimum 0).

record_type str

The record type (A, AAAA, ALIAS, CAA, CNAME, HINFO, MX, NAPTR, NS, POOL, SPF, SRV, SSHFP, TXT, URL).

ttl int

The record TTL (seconds; minimum 0; default: 3600).

content String

The record value.

domain String

The parent exoscale_domain to attach the record to.

hostname String

The record Fully Qualified Domain Name (FQDN). Useful for aliasing A/AAAA records with CNAME.

name String

The record name, Leave blank ("") to create a root record (similar to using @ in a DNS zone file).

prio Number

The record priority (for types that support it; minimum 0).

recordType String

The record type (A, AAAA, ALIAS, CAA, CNAME, HINFO, MX, NAPTR, NS, POOL, SPF, SRV, SSHFP, TXT, URL).

ttl Number

The record TTL (seconds; minimum 0; default: 3600).

Package Details

Repository
exoscale pulumiverse/pulumi-exoscale
License
Apache-2.0
Notes

This Pulumi package is based on the exoscale Terraform Provider.