public function describeCloudsAction($envId) { $env = $this->getEnv($envId); $clouds = []; foreach ($env->cloudCredentialsList() as $credentials) { $clouds[] = ['cloud' => $credentials->cloud, 'credentials' => ['id' => $credentials->id]]; } return $this->resultList($clouds, count($clouds)); }