In SoftLayer, I can see I have 2 bare metal servers. One I requested to cancel, but other one is all good and there's no pending action and everything is all active. However when I invoke SoftLayer_Account::getBareMetalInstances(), it's returning an empty list. Why?
I have Virtual Guests as well and getVirtualGuests() returns what it's suppose to return. Is it a bug on getBareMetalInstances()? Or is there another API that I should be using to get my bare metal list? Can someone also try this and see if you get same result?
Below is bit of code that I am using for this:
$client = SoftLayer_SoapClient::getClient('SoftLayer_Account', null, $apiUsername, $apiKey);
$result = '{}';
if ($type == 'vg') {
$result = $client->getVirtualGuests();
}
else if ($type == 'bm') {
$result = $client->getBareMetalInstances();
}
ApsUtilsDebug::Debug(__METHOD__." type=".$type.". result=".json_encode($result));
Also I've manually tried invoking below using Poster:
GET https://api.softlayer.com/rest/v3/SoftLayer_Account/getBareMetalInstances.json
GET https://api.softlayer.com/rest/v3/SoftLayer_Account/getVirtualGuests.json
What I have is the hourly bare metal server. So I've also tried getHourlyBareMetalInstances() and still returns empty list.