createObject


SoftLayer_Dns_Domain_ResourceRecord_MxType::createObject

Create an MX record.

Description

createObject creates a new MX record. The ‘‘host’’ property of the templateObject parameter is scrubbed to remove all non-alpha numeric characters except for “@”, “_”, “.”, “*”, and “-”. The ‘‘data’’ property of the templateObject parameter is scrubbed to remove all non-alphanumeric characters for “.” and “-”. Creating an MX record updates the serial number of the domain the resource record is associated with.

Parameters

Name Type Description
templateObject SoftLayer_Dns_Domain_ResourceRecord_MxType The SoftLayer_Dns_Domain_ResourceRecord_MxType object that you wish to create.

Required Headers

Optional Headers

Return Values

Associated Methods

curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [SoftLayer_Dns_Domain_ResourceRecord_MxType]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Dns_Domain_ResourceRecord_MxType/createObject'