php-opencloud / openstack

PHP SDK for OpenStack clouds
Apache License 2.0
221 stars 148 forks source link

ENH REQUEST: Filter Image List #350

Open elindydotcom opened 2 years ago

elindydotcom commented 2 years ago

When requesting a list of images, it would be nice if you could limit the list to just type IMAGE instead of returning both images and snapshots.

Passing a type parm into the listImages request does not seem to work right now:

$images = $compute->listImages(['status' => 'ACTIVE', 'type' => 'snapshot' ]);

returns nothing. Various variations on type such as 'SNAPSHOT' does not make a difference.

elindydotcom commented 2 years ago

Ideally we would also be able to limit by VISIBILITY (public/private).