'{username}', 'apiKey' => '{apiKey}', )); // 2. Obtain a Compute service object from the client. $computeService = $client->computeService(null, '{region}'); // 3. Get the list of images. $images = $service->imageList(); // 4. Traverse foreach ($images as $image) { printf("ID: %s, Name: %s\n", $image->id, $image->name); }