Scalr\Service\CloudStack\CloudStack::listAvailableProductTypes PHP 메소드

listAvailableProductTypes() 공개 메소드

It is a command used in checking the list of products provided as those of server and by selecting one of resulted lists, users can check combination of templateid, serviceofferingid, diskofferingid and zoneid which can be created with VM
public listAvailableProductTypes ( ) : Scalr\Service\CloudStack\DataType\AvailableProductsList | null
리턴 Scalr\Service\CloudStack\DataType\AvailableProductsList | null
    public function listAvailableProductTypes()
    {
        $result = null;
        $response = $this->getClient()->call('listAvailableProductTypes', array());
        if ($response->hasError() === false) {
            $resultObject = $response->getResult();
            if (!empty($resultObject) && property_exists($resultObject, 'count') && $resultObject->count > 0) {
                $result = $this->_loadProductTypesList($resultObject->producttypes);
            }
        }
        return $result;
    }