Scalr\Service\Aws\Ec2\V20150415\Ec2Api::describeRegions PHP 메소드

describeRegions() 공개 메소드

DescribeRegions action
public describeRegions ( ) : Scalr\Service\Aws\Ec2\DataType\RegionInfoList
리턴 Scalr\Service\Aws\Ec2\DataType\RegionInfoList Returns the list of the RegionInfoData objects on success
    public function describeRegions()
    {
        $result = null;
        $options = [];
        $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;
    }
Ec2Api