November 23, 2017
# Get Resource Records.
# This script retrieves the individual records contained within a domain record.
# Important manual pages:
# @see
# @license <>
# @author SoftLayer Technologies, Inc. <>
use lib '/path/to/SoftLayer/';
use Data::Dumper;
use SoftLayer::API::SOAP;
use strict;

# Set your SoftLayer API username and key.
my $api_username = 'set me';
my $api_key = 'set me';

# Set the domain id to get the related records
my $dns_id = 1880851;

# Service to use to get the records.
my $domain_service ='SoftLayer_Dns_Domain';
# Create a Domain client to the API service.
my $domain_client = SoftLayer::API::SOAP->new($domain_service, $dns_id, $api_username, $api_key);

my $result = $domain_client->getResourceRecords();
if ($result->fault) {
	die 'There is an error when trying to get the resource records...' . $result->faultstring;
} else {
	print Dumper($result);


If this article contains any error, or leaves any of your questions unanswered, please help us out by opening up a github issue.
Open an issue