Akamai
DnsRecord
Use the akamai.DnsRecord
resource to configure a DNS record that can integrate with your existing DNS infrastructure.
Argument reference [argument-reference]
This resource supports these arguments for all record types:
name
- (Required) The DNS record name. This is the node this DNS record is associated with. Also known as an owner name.zone
- (Required) The domain zone, including any nested subdomains.recordType
- (Required) The DNS record type.ttl
- (Required) The time to live (TTL) is a 32-bit signed integer for the time the resource record is cached.
A value of0
means that the resource record is not cached. It’s only used for the transaction in progress and may be useful for extremely volatile data.
Additional arguments by record type
This section lists additional required and optional arguments for specific record types.
A record
An A record requires this argument:
target
- One or more IPv4 addresses, for example, 192.0.2.0.
AAAA record
An AAAA record requires this argument:
target
- One or more IPv6 addresses, for example, 2001:0db8::ff00:0042:8329.
AFSDB record
An AFSDB record requires these arguments:
target
- The domain name of the host having a server for the cell named by the owner name of the resource record.subtype
- An integer between0
and65535
that indicates the type of service provided by the host.
AKAMAICDN record
An AKAMAICDN record requires this argument:
target
- A DNS name representing the selected edge hostname and domain.
AKAMAITLC record
No additional arguments are needed for AKAMAITLC records. This resource returns these computed attributes for this record type:
dns_name
- A valid DNS name.answer_type
- The answer type.
CAA record
A certificate authority authorization (CAA) record requires this argument:
target
- One or more certificate authority authorizations. Each authorization contains three attributes: flags, property tag, and property value.
Example:
import * as pulumi from "@pulumi/pulumi";
import pulumi
using Pulumi;
class MyStack : Stack
{
public MyStack()
{
}
}
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
return nil
})
}
CERT record
A CERT record requires these arguments:
type_value
- A numeric certificate type value.type_mnemonic
- A mnemonic certificate type value.keytag
- A value computed for the key embedded in the certificate.algorithm
- The cryptographic algorithm used to create the signature.certificate
- Certificate data.
Note: When entering the certificate type, you can enter
type_value
,type_mnemonic
, or both arguments. If you use both,type_mnemonic
takes precedence.
CNAME record
A CNAME record requires this argument:
target
- A domain name that specifies the canonical or primary name for the owner. The owner name is an alias.
DNSKEY record
A DNSKEY record requires these arguments:
flags
protocol
- Set to3
. If the value isn’t3
, the DNSKEY resource record is treated as invalid during signature verification.algorithm
- The public key’s cryptographic algorithm. This algorithm determines the format of the public key field.key
- A Base64 encoded value representing the public key. The format used depends on thealgorithm
.
DS record
A DS record requires these arguments:
keytag
- The key tag of the DNSKEY record that the DS record refers to, in network byte order.algorithm
- The algorithm number of the DNSKEY resource record referred to by the DS record.digest_type
- Identifies the algorithm used to construct the digest.digest
- A base 16 encoded DS record includes a digest of the DNSKEY record it refers to. The digest is conifgured the canonical form of the DNSKEY record’s fully qualified owner name with the DNSKEY RDATA, and then applying the digest algorithm.
HINFO record
A HINFO record requires these arguments:
hardware
- The type of hardware the host uses. A machine name or CPU type may be up to 40 characters long and include uppercase letters, digits, hyphens, and slashes. The entry needs to start and to end with an uppercase letter.software
- The type of software the host uses. A system name may be up to 40 characters long and include uppercase letters, digits, hyphens, and slashes. The entry needs to start with an uppercase letter and end with an uppercase letter or a digit.
HTTPS Record
The following fields are required:
svc_priority
- Service priority associated with endpoint. Value mist be between 0 and 65535. A piority of 0 enables alias mode.svc_params
- Space separated list of endpoint parameters. Not allowed if service priority is 0.target_name
- Domain name of the service endpoint.
LOC record
A LOC record requires this argument:
target
- A geographical location associated with a domain name.
MX record
An MX record supports these arguments:
target
- (Required) One or more domain names that specify a host willing to act as a mail exchange for the owner name.priority
- (Optional) The preference value given to this MX record in relation to all other MX records. When a mailer needs to send mail to a certain DNS domain, it first contacts a DNS server for that domain and retrieves all the MX records. It then contacts the mailer with the lowest preference value. This value is ignored if an embedded priority exists in the target.priority_increment
- (Optional) An auto priority increment when multiple targets are provided with no embedded priority.
See Working with MX records in the DNS Getting Started Guide for more information.
NAPTR record
An NAPTR record requires these arguments:
order
- A 16-bit unsigned integer specifying the order in which the NAPTR records need to be processed to ensure the correct ordering of rules. Low numbers are processed before high numbers. Once a NAPTR is found whose rule matches the target, the client shouldn’t consider any NAPTRs with a higher value for order (except as noted below for the flagsnapter field).preference
- A 16-bit unsigned integer that specifies the order in which NAPTR records with equal order values are processed. Low numbers are processed before high numbers.flagsnaptr
- A character string containing flags that control how fields in the record are rewritten and interpreted. Flags are single alphanumeric characters.service
- Specifies the services available down this rewrite path.regexp
- A regular expression string containing a substitution expression. This substitution expression is applied to the original client string in order to construct the next domain name to lookup.replacement
- Depending on the value of theflags
attribute, the next NAME to query for NAPTR, SRV, or address records. Enter a fully qualified domain name as the value.
NS record
An NS record requires these arguments:
target
- One or more domain names that specify authoritative hosts for the specified class and domain.
NSEC3 record
An NSEC3 record requires these arguments:
algorithm
- The cryptographic hash algorithm used to construct the hash-value.flags
- Eight one-bit flags you can use to indicate different processing. All undefined flags must be zero.iterations
- The number of additional times the hash function has been performed.salt
- The base 16 encoded salt value, which is appended to the original owner name before hashing. Used to defend against pre-calculated dictionary attacks.next_hashed_owner_name
- Base 32 encoded. The next hashed owner name in hash order. This value is in binary format. Given the ordered set of all hashed owner names, the Next Hashed Owner Name field contains the hash of an owner name that immediately follows the owner name of the given NSEC3 RR.type_bitmaps
- The resource record set types that exist at the original owner name of the NSEC3 RR.
NSEC3PARAM record
An NSEC3PARAM record requires these arguments:
algorithm
- The cryptographic hash algorithm used to construct the hash-value.flags
- Eight one-bit flags that can be used to indicate different processing. All undefined flags must be zero.iterations
- The number of additional times the hash function has been performed.salt
- The base 16 encoded salt value, which is appended to the original owner name before hashing in order to defend against pre-calculated dictionary attacks.
PTR record
A PTR record requires this argument:
target
- A domain name that points to some location in the domain name space.
RP record
An RP record requires these arguments:
mailbox
- A domain name that specifies the mailbox for the responsible person.txt
- A domain name for which TXT resource records exist.
RRSIG record
An RRSIG record requires these arguments:
type_covered
- The resource record set type covered by this signature.algorithm
- Identifies the cryptographic algorithm used to create the signature.original_ttl
- The TTL of the covered record set as it appears in the authoritative zone.expiration
- The end point of this signature’s validity. The signature can`t be used for authentication past this point in time.inception
- The start point of this signature’s validity. The signature can`t be used for authentication prior to this point in time.keytag
- The Key Tag field contains the key tag value of the DNSKEY RR that validates this signature, in network byte order.signer
- The owner of the DNSKEY resource record who validates this signature.signature
- The base 64 encoded cryptographic signature that covers the RRSIG RDATA and covered record set. Format depends on the TSIG algorithm in use.labels
- The Labels field specifies the number of labels in the original RRSIG RR owner name. The significance of this field is that a validator uses it to determine whether the answer was synthesized from a wildcard. If so, it can be used to determine what owner name was used in generating the signature.
SPF record
An SPF record requires this argument:
target
- Indicates which hosts are, and are not, authorized to use a domain name for the “HELO” and “MAIL FROM” identities.
SRV record
An SRV record requires these arguments:
target
- The domain name of the target host.priority
- A 16-bit integer that specifies the preference given to this resource record among others at the same owner. Lower values are preferred.weight
- A server selection mechanism that specifies a relative weight for entries with the same priority. Larger weights are given a proportionately higher probability of being selected. The range of this number is 0–65535, a 16-bit unsigned integer in network byte order. Domain administrators should use Weight 0 when there isn’t any server selection to do, to make the RR easier to read for humans. In the presence of records containing weights greater than 0, records with weight 0 should have a very small chance of being selected.port
- The port on this target of this service. The range of this number is 0–65535, a 16-bit unsigned integer in network byte order.
SSHFP record
An SSHFP record requires these arguments:
algorithm
- Describes the algorithm of the public key. The following values are assigned:0
is reserved,1
is for RSA,2
is for DSS, and3
is for ECDSA.fingerprint_type
- Describes the message-digest algorithm used to calculate the fingerprint of the public key. The following values are assigned: 0 = reserved, 1 = SHA-1, 2 = SHA-256.fingerprint
- The base 16 encoded fingerprint as calculated over the public key blob. The message-digest algorithm is presumed to produce an opaque octet string output, which is placed as-is in the RDATA fingerprint field.
SOA record
An SOA record requires these arguments:
name_server
- The domain name of the name server that was the original or primary source of data for this zone.email_address
- A domain name that specifies the mailbox of this person responsible for this zone.serial
- The unsigned version number between 0 and 214748364 of the original copy of the zone.refresh
- A time interval between 0 and 214748364 before the zone should be refreshed.retry
- A time interval between 0 and 214748364 that should elapse before a failed refresh should be retried.expiry
- A time value between 0 and 214748364 that specifies the upper limit on the time interval that can elapse before the zone is no longer authoritative.nxdomain_ttl
- The unsigned minimum TTL between 0 and 214748364 that should be exported with any resource record from this zone.
SVCB record
An SVCB record requires these arguments:
svc_priority
- Service priority associated with endpoint. Value mist be between 0 and 65535. A piority of 0 enables alias mode.svc_params
- Space separated list of endpoint parameters. Not allowed if service priority is 0.target_name
- Domain name of the service endpoint.
TLSA record
A TLSA record requires these arguments:
usage
- Specifies the association used to match the certificate presented in the TLS handshake.selector
- Specifies the part of the TLS certificate presented by the server that is matched against the association data.match_type
- Specifies how the certificate association is presented.certificate
- Specifies the certificate association data to be matched.
TXT record
A TXT record requires this argument:
target
- One or more character strings. TXT resource records hold descriptive text. The semantics of the text depends on the domain where it is found.
Example Usage
An A record example
using Pulumi;
using Akamai = Pulumi.Akamai;
class MyStack : Stack
{
public MyStack()
{
var origin = new Akamai.DnsRecord("origin", new Akamai.DnsRecordArgs
{
Active = true,
Recordtype = "A",
Targets =
{
"192.0.2.42",
},
Ttl = 30,
Zone = "origin.org",
});
}
}
package main
import (
"github.com/pulumi/pulumi-akamai/sdk/v2/go/akamai"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := akamai.NewDnsRecord(ctx, "origin", &akamai.DnsRecordArgs{
Active: pulumi.Bool(true),
Recordtype: pulumi.String("A"),
Targets: pulumi.StringArray{
pulumi.String("192.0.2.42"),
},
Ttl: pulumi.Int(30),
Zone: pulumi.String("origin.org"),
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_akamai as akamai
origin = akamai.DnsRecord("origin",
active=True,
recordtype="A",
targets=["192.0.2.42"],
ttl=30,
zone="origin.org")
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";
const origin = new akamai.DnsRecord("origin", {
active: true,
recordtype: "A",
targets: ["192.0.2.42"],
ttl: 30,
zone: "origin.org",
});
Coming soon!
CNAME Record Example
using Pulumi;
using Akamai = Pulumi.Akamai;
class MyStack : Stack
{
public MyStack()
{
var www = new Akamai.DnsRecord("www", new Akamai.DnsRecordArgs
{
Active = true,
Recordtype = "CNAME",
Targets = "origin.example.org.edgesuite.net",
Ttl = 600,
Zone = "example.com",
});
}
}
package main
import (
"github.com/pulumi/pulumi-akamai/sdk/v2/go/akamai"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := akamai.NewDnsRecord(ctx, "www", &akamai.DnsRecordArgs{
Active: pulumi.Bool(true),
Recordtype: pulumi.String("CNAME"),
Targets: pulumi.StringArray("origin.example.org.edgesuite.net"),
Ttl: pulumi.Int(600),
Zone: pulumi.String("example.com"),
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_akamai as akamai
www = akamai.DnsRecord("www",
active=True,
recordtype="CNAME",
targets="origin.example.org.edgesuite.net",
ttl=600,
zone="example.com")
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";
const www = new akamai.DnsRecord("www", {
active: true,
recordtype: "CNAME",
targets: "origin.example.org.edgesuite.net",
ttl: 600,
zone: "example.com",
});
Coming soon!
Create a DnsRecord Resource
new DnsRecord(name: string, args: DnsRecordArgs, opts?: CustomResourceOptions);
@overload
def DnsRecord(resource_name: str,
opts: Optional[ResourceOptions] = None,
active: Optional[bool] = None,
algorithm: Optional[int] = None,
certificate: Optional[str] = None,
digest: Optional[str] = None,
digest_type: Optional[int] = None,
email_address: Optional[str] = None,
expiration: Optional[str] = None,
expiry: Optional[int] = None,
fingerprint: Optional[str] = None,
fingerprint_type: Optional[int] = None,
flags: Optional[int] = None,
flagsnaptr: Optional[str] = None,
hardware: Optional[str] = None,
inception: Optional[str] = None,
iterations: Optional[int] = None,
key: Optional[str] = None,
keytag: Optional[int] = None,
labels: Optional[int] = None,
mailbox: Optional[str] = None,
match_type: Optional[int] = None,
name: Optional[str] = None,
name_server: Optional[str] = None,
next_hashed_owner_name: Optional[str] = None,
nxdomain_ttl: Optional[int] = None,
order: Optional[int] = None,
original_ttl: Optional[int] = None,
port: Optional[int] = None,
preference: Optional[int] = None,
priority: Optional[int] = None,
priority_increment: Optional[int] = None,
protocol: Optional[int] = None,
recordtype: Optional[str] = None,
refresh: Optional[int] = None,
regexp: Optional[str] = None,
replacement: Optional[str] = None,
retry: Optional[int] = None,
salt: Optional[str] = None,
selector: Optional[int] = None,
service: Optional[str] = None,
signature: Optional[str] = None,
signer: Optional[str] = None,
software: Optional[str] = None,
subtype: Optional[int] = None,
svc_params: Optional[str] = None,
svc_priority: Optional[int] = None,
target_name: Optional[str] = None,
targets: Optional[Sequence[str]] = None,
ttl: Optional[int] = None,
txt: Optional[str] = None,
type_bitmaps: Optional[str] = None,
type_covered: Optional[str] = None,
type_mnemonic: Optional[str] = None,
type_value: Optional[int] = None,
usage: Optional[int] = None,
weight: Optional[int] = None,
zone: Optional[str] = None)
@overload
def DnsRecord(resource_name: str,
args: DnsRecordArgs,
opts: Optional[ResourceOptions] = None)
func NewDnsRecord(ctx *Context, name string, args DnsRecordArgs, opts ...ResourceOption) (*DnsRecord, error)
public DnsRecord(string name, DnsRecordArgs args, CustomResourceOptions? opts = null)
public DnsRecord(String name, DnsRecordArgs args)
public DnsRecord(String name, DnsRecordArgs args, CustomResourceOptions options)
type: akamai:DnsRecord
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DnsRecordArgs
- 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 DnsRecordArgs
- 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 DnsRecordArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DnsRecordArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DnsRecordArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DnsRecord 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 DnsRecord resource accepts the following input properties:
- Recordtype string
- Ttl int
- Zone string
- Active bool
- Algorithm int
- Certificate string
- Digest string
- Digest
Type int - Email
Address string - Expiration string
- Expiry int
- Fingerprint string
- Fingerprint
Type int - Flags int
- Flagsnaptr string
- Hardware string
- Inception string
- Iterations int
- Key string
- Keytag int
- Labels int
- Mailbox string
- Match
Type int - Name string
- Name
Server string - Next
Hashed stringOwner Name - Nxdomain
Ttl int - Order int
- Original
Ttl int - Port int
- Preference int
- Priority int
- Priority
Increment int - Protocol int
- Refresh int
- Regexp string
- Replacement string
- Retry int
- Salt string
- Selector int
- Service string
- Signature string
- Signer string
- Software string
- Subtype int
- Svc
Params string - Svc
Priority int - Target
Name string - Targets List<string>
- Txt string
- Type
Bitmaps string - Type
Covered string - Type
Mnemonic string - Type
Value int - Usage int
- Weight int
- Recordtype string
- Ttl int
- Zone string
- Active bool
- Algorithm int
- Certificate string
- Digest string
- Digest
Type int - Email
Address string - Expiration string
- Expiry int
- Fingerprint string
- Fingerprint
Type int - Flags int
- Flagsnaptr string
- Hardware string
- Inception string
- Iterations int
- Key string
- Keytag int
- Labels int
- Mailbox string
- Match
Type int - Name string
- Name
Server string - Next
Hashed stringOwner Name - Nxdomain
Ttl int - Order int
- Original
Ttl int - Port int
- Preference int
- Priority int
- Priority
Increment int - Protocol int
- Refresh int
- Regexp string
- Replacement string
- Retry int
- Salt string
- Selector int
- Service string
- Signature string
- Signer string
- Software string
- Subtype int
- Svc
Params string - Svc
Priority int - Target
Name string - Targets []string
- Txt string
- Type
Bitmaps string - Type
Covered string - Type
Mnemonic string - Type
Value int - Usage int
- Weight int
- recordtype String
- ttl Integer
- zone String
- active Boolean
- algorithm Integer
- certificate String
- digest String
- digest
Type Integer - email
Address String - expiration String
- expiry Integer
- fingerprint String
- fingerprint
Type Integer - flags Integer
- flagsnaptr String
- hardware String
- inception String
- iterations Integer
- key String
- keytag Integer
- labels Integer
- mailbox String
- match
Type Integer - name String
- name
Server String - next
Hashed StringOwner Name - nxdomain
Ttl Integer - order Integer
- original
Ttl Integer - port Integer
- preference Integer
- priority Integer
- priority
Increment Integer - protocol Integer
- refresh Integer
- regexp String
- replacement String
- retry Integer
- salt String
- selector Integer
- service String
- signature String
- signer String
- software String
- subtype Integer
- svc
Params String - svc
Priority Integer - target
Name String - targets
List
- txt String
- type
Bitmaps String - type
Covered String - type
Mnemonic String - type
Value Integer - usage Integer
- weight Integer
- recordtype string
- ttl number
- zone string
- active boolean
- algorithm number
- certificate string
- digest string
- digest
Type number - email
Address string - expiration string
- expiry number
- fingerprint string
- fingerprint
Type number - flags number
- flagsnaptr string
- hardware string
- inception string
- iterations number
- key string
- keytag number
- labels number
- mailbox string
- match
Type number - name string
- name
Server string - next
Hashed stringOwner Name - nxdomain
Ttl number - order number
- original
Ttl number - port number
- preference number
- priority number
- priority
Increment number - protocol number
- refresh number
- regexp string
- replacement string
- retry number
- salt string
- selector number
- service string
- signature string
- signer string
- software string
- subtype number
- svc
Params string - svc
Priority number - target
Name string - targets string[]
- txt string
- type
Bitmaps string - type
Covered string - type
Mnemonic string - type
Value number - usage number
- weight number
- recordtype str
- ttl int
- zone str
- active bool
- algorithm int
- certificate str
- digest str
- digest_
type int - email_
address str - expiration str
- expiry int
- fingerprint str
- fingerprint_
type int - flags int
- flagsnaptr str
- hardware str
- inception str
- iterations int
- key str
- keytag int
- labels int
- mailbox str
- match_
type int - name str
- name_
server str - next_
hashed_ strowner_ name - nxdomain_
ttl int - order int
- original_
ttl int - port int
- preference int
- priority int
- priority_
increment int - protocol int
- refresh int
- regexp str
- replacement str
- retry int
- salt str
- selector int
- service str
- signature str
- signer str
- software str
- subtype int
- svc_
params str - svc_
priority int - target_
name str - targets Sequence[str]
- txt str
- type_
bitmaps str - type_
covered str - type_
mnemonic str - type_
value int - usage int
- weight int
- recordtype String
- ttl Number
- zone String
- active Boolean
- algorithm Number
- certificate String
- digest String
- digest
Type Number - email
Address String - expiration String
- expiry Number
- fingerprint String
- fingerprint
Type Number - flags Number
- flagsnaptr String
- hardware String
- inception String
- iterations Number
- key String
- keytag Number
- labels Number
- mailbox String
- match
Type Number - name String
- name
Server String - next
Hashed StringOwner Name - nxdomain
Ttl Number - order Number
- original
Ttl Number - port Number
- preference Number
- priority Number
- priority
Increment Number - protocol Number
- refresh Number
- regexp String
- replacement String
- retry Number
- salt String
- selector Number
- service String
- signature String
- signer String
- software String
- subtype Number
- svc
Params String - svc
Priority Number - target
Name String - targets
List
- txt String
- type
Bitmaps String - type
Covered String - type
Mnemonic String - type
Value Number - usage Number
- weight Number
Outputs
All input properties are implicitly available as output properties. Additionally, the DnsRecord resource produces the following output properties:
- Answer
Type string - Dns
Name string - Id string
The provider-assigned unique ID for this managed resource.
- Record
Sha string - Serial int
- Answer
Type string - Dns
Name string - Id string
The provider-assigned unique ID for this managed resource.
- Record
Sha string - Serial int
- answer
Type String - dns
Name String - id String
The provider-assigned unique ID for this managed resource.
- record
Sha String - serial Integer
- answer
Type string - dns
Name string - id string
The provider-assigned unique ID for this managed resource.
- record
Sha string - serial number
- answer_
type str - dns_
name str - id str
The provider-assigned unique ID for this managed resource.
- record_
sha str - serial int
- answer
Type String - dns
Name String - id String
The provider-assigned unique ID for this managed resource.
- record
Sha String - serial Number
Look up an Existing DnsRecord Resource
Get an existing DnsRecord 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?: DnsRecordState, opts?: CustomResourceOptions): DnsRecord
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
active: Optional[bool] = None,
algorithm: Optional[int] = None,
answer_type: Optional[str] = None,
certificate: Optional[str] = None,
digest: Optional[str] = None,
digest_type: Optional[int] = None,
dns_name: Optional[str] = None,
email_address: Optional[str] = None,
expiration: Optional[str] = None,
expiry: Optional[int] = None,
fingerprint: Optional[str] = None,
fingerprint_type: Optional[int] = None,
flags: Optional[int] = None,
flagsnaptr: Optional[str] = None,
hardware: Optional[str] = None,
inception: Optional[str] = None,
iterations: Optional[int] = None,
key: Optional[str] = None,
keytag: Optional[int] = None,
labels: Optional[int] = None,
mailbox: Optional[str] = None,
match_type: Optional[int] = None,
name: Optional[str] = None,
name_server: Optional[str] = None,
next_hashed_owner_name: Optional[str] = None,
nxdomain_ttl: Optional[int] = None,
order: Optional[int] = None,
original_ttl: Optional[int] = None,
port: Optional[int] = None,
preference: Optional[int] = None,
priority: Optional[int] = None,
priority_increment: Optional[int] = None,
protocol: Optional[int] = None,
record_sha: Optional[str] = None,
recordtype: Optional[str] = None,
refresh: Optional[int] = None,
regexp: Optional[str] = None,
replacement: Optional[str] = None,
retry: Optional[int] = None,
salt: Optional[str] = None,
selector: Optional[int] = None,
serial: Optional[int] = None,
service: Optional[str] = None,
signature: Optional[str] = None,
signer: Optional[str] = None,
software: Optional[str] = None,
subtype: Optional[int] = None,
svc_params: Optional[str] = None,
svc_priority: Optional[int] = None,
target_name: Optional[str] = None,
targets: Optional[Sequence[str]] = None,
ttl: Optional[int] = None,
txt: Optional[str] = None,
type_bitmaps: Optional[str] = None,
type_covered: Optional[str] = None,
type_mnemonic: Optional[str] = None,
type_value: Optional[int] = None,
usage: Optional[int] = None,
weight: Optional[int] = None,
zone: Optional[str] = None) -> DnsRecord
func GetDnsRecord(ctx *Context, name string, id IDInput, state *DnsRecordState, opts ...ResourceOption) (*DnsRecord, error)
public static DnsRecord Get(string name, Input<string> id, DnsRecordState? state, CustomResourceOptions? opts = null)
public static DnsRecord get(String name, Output<String> id, DnsRecordState 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.
- Active bool
- Algorithm int
- Answer
Type string - Certificate string
- Digest string
- Digest
Type int - Dns
Name string - Email
Address string - Expiration string
- Expiry int
- Fingerprint string
- Fingerprint
Type int - Flags int
- Flagsnaptr string
- Hardware string
- Inception string
- Iterations int
- Key string
- Keytag int
- Labels int
- Mailbox string
- Match
Type int - Name string
- Name
Server string - Next
Hashed stringOwner Name - Nxdomain
Ttl int - Order int
- Original
Ttl int - Port int
- Preference int
- Priority int
- Priority
Increment int - Protocol int
- Record
Sha string - Recordtype string
- Refresh int
- Regexp string
- Replacement string
- Retry int
- Salt string
- Selector int
- Serial int
- Service string
- Signature string
- Signer string
- Software string
- Subtype int
- Svc
Params string - Svc
Priority int - Target
Name string - Targets List<string>
- Ttl int
- Txt string
- Type
Bitmaps string - Type
Covered string - Type
Mnemonic string - Type
Value int - Usage int
- Weight int
- Zone string
- Active bool
- Algorithm int
- Answer
Type string - Certificate string
- Digest string
- Digest
Type int - Dns
Name string - Email
Address string - Expiration string
- Expiry int
- Fingerprint string
- Fingerprint
Type int - Flags int
- Flagsnaptr string
- Hardware string
- Inception string
- Iterations int
- Key string
- Keytag int
- Labels int
- Mailbox string
- Match
Type int - Name string
- Name
Server string - Next
Hashed stringOwner Name - Nxdomain
Ttl int - Order int
- Original
Ttl int - Port int
- Preference int
- Priority int
- Priority
Increment int - Protocol int
- Record
Sha string - Recordtype string
- Refresh int
- Regexp string
- Replacement string
- Retry int
- Salt string
- Selector int
- Serial int
- Service string
- Signature string
- Signer string
- Software string
- Subtype int
- Svc
Params string - Svc
Priority int - Target
Name string - Targets []string
- Ttl int
- Txt string
- Type
Bitmaps string - Type
Covered string - Type
Mnemonic string - Type
Value int - Usage int
- Weight int
- Zone string
- active Boolean
- algorithm Integer
- answer
Type String - certificate String
- digest String
- digest
Type Integer - dns
Name String - email
Address String - expiration String
- expiry Integer
- fingerprint String
- fingerprint
Type Integer - flags Integer
- flagsnaptr String
- hardware String
- inception String
- iterations Integer
- key String
- keytag Integer
- labels Integer
- mailbox String
- match
Type Integer - name String
- name
Server String - next
Hashed StringOwner Name - nxdomain
Ttl Integer - order Integer
- original
Ttl Integer - port Integer
- preference Integer
- priority Integer
- priority
Increment Integer - protocol Integer
- record
Sha String - recordtype String
- refresh Integer
- regexp String
- replacement String
- retry Integer
- salt String
- selector Integer
- serial Integer
- service String
- signature String
- signer String
- software String
- subtype Integer
- svc
Params String - svc
Priority Integer - target
Name String - targets
List
- ttl Integer
- txt String
- type
Bitmaps String - type
Covered String - type
Mnemonic String - type
Value Integer - usage Integer
- weight Integer
- zone String
- active boolean
- algorithm number
- answer
Type string - certificate string
- digest string
- digest
Type number - dns
Name string - email
Address string - expiration string
- expiry number
- fingerprint string
- fingerprint
Type number - flags number
- flagsnaptr string
- hardware string
- inception string
- iterations number
- key string
- keytag number
- labels number
- mailbox string
- match
Type number - name string
- name
Server string - next
Hashed stringOwner Name - nxdomain
Ttl number - order number
- original
Ttl number - port number
- preference number
- priority number
- priority
Increment number - protocol number
- record
Sha string - recordtype string
- refresh number
- regexp string
- replacement string
- retry number
- salt string
- selector number
- serial number
- service string
- signature string
- signer string
- software string
- subtype number
- svc
Params string - svc
Priority number - target
Name string - targets string[]
- ttl number
- txt string
- type
Bitmaps string - type
Covered string - type
Mnemonic string - type
Value number - usage number
- weight number
- zone string
- active bool
- algorithm int
- answer_
type str - certificate str
- digest str
- digest_
type int - dns_
name str - email_
address str - expiration str
- expiry int
- fingerprint str
- fingerprint_
type int - flags int
- flagsnaptr str
- hardware str
- inception str
- iterations int
- key str
- keytag int
- labels int
- mailbox str
- match_
type int - name str
- name_
server str - next_
hashed_ strowner_ name - nxdomain_
ttl int - order int
- original_
ttl int - port int
- preference int
- priority int
- priority_
increment int - protocol int
- record_
sha str - recordtype str
- refresh int
- regexp str
- replacement str
- retry int
- salt str
- selector int
- serial int
- service str
- signature str
- signer str
- software str
- subtype int
- svc_
params str - svc_
priority int - target_
name str - targets Sequence[str]
- ttl int
- txt str
- type_
bitmaps str - type_
covered str - type_
mnemonic str - type_
value int - usage int
- weight int
- zone str
- active Boolean
- algorithm Number
- answer
Type String - certificate String
- digest String
- digest
Type Number - dns
Name String - email
Address String - expiration String
- expiry Number
- fingerprint String
- fingerprint
Type Number - flags Number
- flagsnaptr String
- hardware String
- inception String
- iterations Number
- key String
- keytag Number
- labels Number
- mailbox String
- match
Type Number - name String
- name
Server String - next
Hashed StringOwner Name - nxdomain
Ttl Number - order Number
- original
Ttl Number - port Number
- preference Number
- priority Number
- priority
Increment Number - protocol Number
- record
Sha String - recordtype String
- refresh Number
- regexp String
- replacement String
- retry Number
- salt String
- selector Number
- serial Number
- service String
- signature String
- signer String
- software String
- subtype Number
- svc
Params String - svc
Priority Number - target
Name String - targets
List
- ttl Number
- txt String
- type
Bitmaps String - type
Covered String - type
Mnemonic String - type
Value Number - usage Number
- weight Number
- zone String
Package Details
- Repository
- https://github.com/pulumi/pulumi-akamai
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
akamai
Terraform Provider.