createTxtRecord


SoftLayer_Dns_Domain::createTxtRecord

Create a TXT record on a domain.

Description

Create a TXT record on a SoftLayer domain. This is a shortcut method, meant to take the work out of creating a SoftLayer_Dns_Domain_ResourceRecord if you already have a domain record available. createARecord returns the newly created SoftLayer_Dns_Domain_ResourceRecord_TxtType.

Parameters

Name Type Description
host string The resource record’s name
data string The resource record’s value
ttl int The resource record’s time-to-live value.

Required Headers

Optional Headers

Return Values

curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [string, string, int]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Dns_Domain/{SoftLayer_Dns_DomainID}/createTxtRecord'