Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to successfully call SoftLayer_Virtual_Guest/createObject #3

Open
Buhrietoe opened this issue Jan 5, 2015 · 1 comment
Open

Comments

@Buhrietoe
Copy link

Using the following guest definition and createObject call results in an HTTP 500 Internal Error:

my $client = SoftLayer::API::SOAP->new('SoftLayer_Virtual_Guest', undef, $api_username, $api_key);
my $myGuest = {
hostname => 'sl-test',
domain => 'softlayer.com',
startCpus => 1,
maxMemory => 1024,
hourlyBillingFlag => 1,
localDiskFlag => 1,
operatingSystemReferenceCode => 'CENTOS_6_64',
datacenter => {
name => "SJC01",
}
};
my $orderRet = $client->createObject($myGuest);

@allmightyspiff
Copy link
Member

To create a Virtual_Guest with the perl client, you are going to need to bless it into the slapi::SoftLayer_Virtual_Guest class.

bless($myGuest,'slapi:SoftLayer_Virtual_Guest');
my $orderRet = $client->createObject($myGuest);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants