'{username}', 'apiKey' => '{apiKey}', )); // 2. Obtain a Volume service object from the client. $volumeService = $client->volumeService(null, '{region}'); // 3. Get volume list. $volumes = $volumeService->volumeList(); foreach ($volumes as $volume) { /** @var $volume OpenCloud\Volume\Resource\Volume **/ echo "ID: " . $volume->id() . " | " . "Name: " . $volume->name() . PHP_EOL; }