SoftLayer Dns Domain ResourceRecord (type)

From SoftLayer Development Network Wiki

Jump to: navigation, search

This page refers to the SoftLayer_Dns_Domain_ResourceRecord data type. For information on the SoftLayer_Dns_Domain_ResourceRecord service please see SoftLayer_Dns_Domain_ResourceRecord.

Contents

Overview

The SoftLayer_Dns_Domain_ResourceRecord data type represents a single resource record entry in a SoftLayer hosted domain. Each resource record contains a host and data property, defining a resource's name and it's target data. Domains contain multiple types of resource records. The type property separates out resource records by type. Type can take one of the following values:


As SoftLayer_Dns_Domain_ResourceRecord objects are created and loaded, the API verifies the type property and casts the object as the appropriate type.

User Access

Users wishing to access the SoftLayer_Dns_Domain_ResourceRecord type must have the Manage DNS permission assigned to their account.

Warning! Even though our API is object based, XML-RPC can only return data as array values. The SOAP implementation treats data as object properties.

Local Properties

data

The value of a domain's resource record. This can be an IP address or a hostname. Fully qualified host and domain name data must end with the "." character.
data is required for object creation.

  • Type: string
  • Length: 255 characters



domainId

An identifier belonging to the domain that a resource record is associated with.
domainId is required for object creation.

  • Type: integer
  • Length: 8 digits



host

The host defined by a resource record. A value of "@" denotes a wildcard.
host is required for object creation.

  • Type: string
  • Length: 50 characters
  • Default Value: @



id

A domain resource record's internal identifier.

  • Type: integer



ttl

The Time To Live value of a resource record, measured in seconds. TTL is used by a name server to determine how long to cache a resource record. An SOA record's TTL value defines the domain's overall TTL.
ttl is required for object creation.

  • Type: integer
  • Length: 8 digits
  • Default Value: 86400



type

A domain resource record's type. A value of "a" denotes an A (address) record, "cname" denotes a CNAME (canonical name) record, "mx" denotes an MX (mail exchanger) record, "ns" denotes an NS (nameserver) record, "ptr" denotes a PTR (pointer/reverse) record, "soa" denotes the SOA (start of authority) record, and "txt" denotes a TXT (text) record. A domain record's type also denotes which class in the SoftLayer API is a best match for extending a resource record.
type is required for object creation.

  • Type: string
  • Length: 5 characters


Relational Properties

domain

The domain that a resource record belongs to.
domain can be queried by object mask.
domain must be a unique value.

Associated Methods

See Also

External Links

Personal tools