createObject


SoftLayer_Dns_Secondary::createObject

Create a secondary DNS record.

Description

Create a secondary DNS record. The ‘‘zoneName’’, ‘‘masterIpAddress’’, and ‘’transferFrequency’’ properties in the templateObject parameter are required parameters to create a secondary DNS record.

Parameters

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

Required Headers

Optional Headers

Return Values

Error Handling

  • Throw the exception “The master IP address is not a valid IP address.” if the supplied master IP address is not in a valid IPv4 format.
  • Throw the exception “The transfer frequency must be numeric.” if the transfer frequency is blank or not a valid number.

Associated Methods

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