createObject


SoftLayer_Dns_Domain_ResourceRecord::createObject

Create a domain’s resource record.

Description

createObject creates a new domain resource 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 a resource record updates the serial number of the domain the resource record is associated with.

‘‘createObject’’ returns Boolean ‘’true’’ on successful create or ‘‘false’’ if it was unable to create a resource record.


Parameters

Name Type Description
templateObject SoftLayer_Dns_Domain_ResourceRecord The SoftLayer_Dns_Domain_ResourceRecord 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]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Dns_Domain_ResourceRecord/createObject'