'{username}', 'apiKey' => '{apiKey}', )); // 2. Obtain an Object Store service object from the client. $objectStoreService = $client->objectStoreService(null, '{region}'); // 3. Get container. $container = $objectStoreService->getContainer('{containerName}'); // 4. Get the list of objects $objects = $container->objectList(); // 5. Create a list of all objects in the container $containerObjects = array(); $marker = ''; while ($marker !== null) { $params = array( 'marker' => $marker, ); $objects = $container->objectList($params); $total = $objects->count(); $count = 0; if ($total == 0) { break; } foreach ($objects as $object) { /** @var $object OpenCloud\ObjectStore\Resource\DataObject **/ $containerObjects[] = $object->getName(); $count++; $marker = ($count == $total) ? $object->getName() : null; } }