We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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);
The text was updated successfully, but these errors were encountered:
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);
Sorry, something went wrong.
No branches or pull requests
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);
The text was updated successfully, but these errors were encountered: