Red Hat Training

A Red Hat training course is available for Red Hat OpenStack Platform

2.317. openstack server list

usage: openstack server list [-h] [-f {csv,json,table,value,yaml}] [-c COLUMN]
                             [--max-width <integer>] [--noindent]
                             [--quote {all,minimal,none,nonnumeric}]
                             [--reservation-id <reservation-id>]
                             [--ip <ip-address-regex>]
                             [--ip6 <ip-address-regex>] [--name <name-regex>]
                             [--instance-name <server-name>]
                             [--status <status>] [--flavor <flavor>]
                             [--image <image>] [--host <hostname>]
                             [--all-projects] [--project <project>]
                             [--project-domain <project-domain>]
                             [--user <user>] [--user-domain <user-domain>]
                             [--long] [--marker <marker>] [--limit <limit>]
List servers

Optional arguments

-h, --help


        show this help message and exit

--reservation-id <reservation-id>


      Only return instances that match the reservation

--ip <ip-address-regex>


      Regular expression to match IP addresses

--ip6 <ip-address-regex>


      Regular expression to match IPv6 addresses

--name <name-regex>


        Regular expression to match names

--instance-name <server-name>


      Regular expression to match instance name (admin only)

--status <status>


        Search by server status

--flavor <flavor>


        Search by flavor (name or ID)

--image <image>


        Search by image (name or ID)

--host <hostname>


        Search by hostname

--all-projects


        Include all projects (admin only)

--project <project>


        Search by project (admin only) (name or ID)

--project-domain <project-domain>


      Domain the project belongs to (name or ID). This can
      be used in case collisions between project names
      exist.

--user <user>


        Search by user (admin only) (name or ID)

--user-domain <user-domain>


      Domain the user belongs to (name or ID). This can be
      used in case collisions between user names exist.

--long


        List additional fields in output

--marker <marker>


        The last server (name or ID) of the previous page.
      Display list of servers after marker. Display all
      servers if not specified.

--limit <limit>


        Maximum number of servers to display. If limit equals
      -1, all servers will be displayed. If limit is greater
      than 'osapi_max_limit' option of Nova API,
      'osapi_max_limit' will be used instead.