"SoftLayer_" prefix removed for readability.
Edit a domain’s resource record.
editObject edits an existing 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 “-”. Editing a resource record updates the serial number of the domain the resource record is associated with.
‘’editObject’’ returns Boolean ‘’true’’ on a successful edit or ‘‘false’’ if it was unable to edit the resource record.
Name | Type | Description |
---|---|---|
templateObject | SoftLayer_Dns_Domain_ResourceRecord | A skeleton SoftLayer_Dns_Domain_ResourceRecord object with only the properties defined that you wish to change. Unchanged properties are left alone. |
None
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/{SoftLayer_Dns_Domain_ResourceRecordID}/editObject'