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