From 61a40343fdbb89a1c6404ab03fcfd84daee31c9e Mon Sep 17 00:00:00 2001 From: Dean Troyer Date: Wed, 21 Jan 2015 15:02:58 -0600 Subject: Add filter to image list * Hides previously broken --page-size option * Adds --property to image list for filtering on properties * Adds Visibility, Protected, Owner, Properties/Tags to --long output * Adds api.utils.simple_filter() for selecting matches out of a list of objects * Adds tests for all of the above * Updates image docs There are additional filtering options to be added in later reviews. Change-Id: I32feff0ad61aae749b33621c817658d7dc90c3aa Closes-bug: 1401902 --- doc/source/command-objects/image.rst | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'doc/source/command-objects/image.rst') diff --git a/doc/source/command-objects/image.rst b/doc/source/command-objects/image.rst index 63b55b89..bc38429d 100644 --- a/doc/source/command-objects/image.rst +++ b/doc/source/command-objects/image.rst @@ -138,14 +138,10 @@ List available images .. code:: bash os image list - [--page-size ] - [--public|--private] + [--public | --private | --shared] + [--property ] [--long] -.. option:: --page-size - - Number of images to request in each paginated request - .. option:: --public List only public images @@ -154,6 +150,16 @@ List available images List only private images +.. option:: --shared + + List only shared images + + *Image version 2 only.* + +.. option:: --property + + Filter output based on property + .. option:: --long List additional fields in output -- cgit v1.2.1