Scalr\Modules\Platforms\Cloudstack\CloudstackPlatformModule::IsServerExists PHP Method

IsServerExists() public method

See also: Scalr\Modules\PlatformModuleInterface::IsServerExists()
public IsServerExists ( DBServer $DBServer )
$DBServer DBServer
    public function IsServerExists(DBServer $DBServer)
    {
        $list = $this->GetServersList($DBServer->GetEnvironmentObject(), $this->GetServerCloudLocation($DBServer));
        return !empty($list) && in_array($DBServer->GetProperty(CLOUDSTACK_SERVER_PROPERTIES::SERVER_ID), array_keys($list));
    }