Scalr\Service\CloudStack\CloudStack::getCloudIdentifier PHP Метод

getCloudIdentifier() публичный Метод

Retrieves a cloud identifier.
public getCloudIdentifier ( string $userId ) : Scalr\Service\CloudStack\DataType\CloudIdentifierData
$userId string the user ID for the cloud identifier
Результат Scalr\Service\CloudStack\DataType\CloudIdentifierData
    public function getCloudIdentifier($userId)
    {
        $result = null;
        $response = $this->getClient()->call('getCloudIdentifier', array('userid' => $this->escape($userId)));
        if ($response->hasError() === false) {
            $resultObject = $response->getResult();
            if (!empty($resultObject)) {
                $result = $this->_loadCloudIdentifierData($resultObject);
            }
        }
        return $result;
    }