public describeRegions ( ) : Scalr\Service\Aws\Ec2\DataType\RegionInfoList | ||
return | Scalr\Service\Aws\Ec2\DataType\RegionInfoList | Returns the list of the RegionInfoData objects on success |
public function describeRegions()
{
$result = null;
$options = array();
$action = ucfirst(__FUNCTION__);
$response = $this->client->call($action, $options);
if ($response->getError() === false) {
$sxml = simplexml_load_string($response->getRawContent());
$response = null;
$result = $this->_loadListByName('RegionInfo', $sxml->regionInfo);
$result->setRequestId((string) $sxml->requestId);
}
return $result;
}