Chapter 48. project
This chapter describes the commands under the project
command.
48.1. project create
Create new project
Usage:
openstack project create [-h] [-f {json,shell,table,value,yaml}] [-c COLUMN] [--max-width <integer>] [--fit-width] [--print-empty] [--noindent] [--prefix PREFIX] [--description <description>] [--enable | --disable] [--property <key=value>] [--or-show] <project-name>
Value | Summary |
---|---|
--print-empty | Print empty table if there is no data to show. |
--max-width <integer> | Maximum display width, <1 to disable. you can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence. |
--fit-width | Fit the table to the display width. implied if --max- width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable |
Value | Summary |
---|---|
<project-name> | New project name |
Value | Summary |
---|---|
output formatter options-f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml} | The output format, defaults to table |
-c COLUMN, --column COLUMN | Specify the column(s) to include, can be repeated |
Value | Summary |
---|---|
--noindent | Whether to disable indenting the json |
Value | Summary |
---|---|
--description <description> | Project description |
--enable | Enable project (default) |
--or-show | Return existing project |
--property <key=value> | Add a property to <name> (repeat option to set multiple properties) |
-h, --help | Show this help message and exit |
--disable | Disable project |
Value | Summary |
---|---|
a format a UNIX shell can parse (variable="value")--prefix PREFIX | Add a prefix to all variable names |
48.2. project delete
Delete project(s)
Usage:
openstack project delete [-h] <project> [<project> ...]
Value | Summary |
---|---|
<project> | Project(s) to delete (name or id) |
Value | Summary |
---|---|
-h, --help | Show this help message and exit |
48.3. project list
List projects
Usage:
openstack project list [-h] [-f {csv,json,table,value,yaml}] [-c COLUMN] [--max-width <integer>] [--fit-width] [--print-empty] [--noindent] [--quote {all,minimal,none,nonnumeric}] [--sort-column SORT_COLUMN] [--long] [--sort <key>[:<direction>]]
Value | Summary |
---|---|
--print-empty | Print empty table if there is no data to show. |
--max-width <integer> | Maximum display width, <1 to disable. you can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence. |
--fit-width | Fit the table to the display width. implied if --max- width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable |
Value | Summary |
---|---|
--quote {all,minimal,none,nonnumeric} | When to include quotes, defaults to nonnumeric |
Value | Summary |
---|---|
output formatter options-f {csv,json,table,value,yaml}, --format {csv,json,table,value,yaml} | The output format, defaults to table |
-c COLUMN, --column COLUMN | Specify the column(s) to include, can be repeated |
--sort-column SORT_COLUMN | Specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), can be repeated |
Value | Summary |
---|---|
--noindent | Whether to disable indenting the json |
Value | Summary |
---|---|
-h, --help | Show this help message and exit |
--sort <key>[:<direction>] | Sort output by selected keys and directions (asc or desc) (default: asc), repeat this option to specify multiple keys and directions. |
--long | List additional fields in output |
48.4. project purge
Clean resources associated with a project
Usage:
openstack project purge [-h] [--dry-run] [--keep-project] (--auth-project | --project <project>) [--project-domain <project-domain>]
Value | Summary |
---|---|
--auth-project | Delete resources of the project used to authenticate |
--project <project> | Project to clean (name or id) |
--dry-run | List a project’s resources |
--keep-project | Clean project resources, but don’t delete the project |
-h, --help | Show this help message and exit |
--project-domain <project-domain> | Domain the project belongs to (name or id). this can be used in case collisions between project names exist. |
48.5. project set
Set project properties
Usage:
openstack project set [-h] [--name <name>] [--description <description>] [--enable | --disable] [--property <key=value>] <project>
Value | Summary |
---|---|
<project> | Project to modify (name or id) |
Value | Summary |
---|---|
--description <description> | Set project description |
--enable | Enable project |
--name <name> | Set project name |
--property <key=value> | Set a project property (repeat option to set multiple properties) |
-h, --help | Show this help message and exit |
--disable | Disable project |
48.6. project show
Display project details
Usage:
openstack project show [-h] [-f {json,shell,table,value,yaml}] [-c COLUMN] [--max-width <integer>] [--fit-width] [--print-empty] [--noindent] [--prefix PREFIX] <project>
Value | Summary |
---|---|
--print-empty | Print empty table if there is no data to show. |
--max-width <integer> | Maximum display width, <1 to disable. you can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence. |
--fit-width | Fit the table to the display width. implied if --max- width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable |
Value | Summary |
---|---|
<project> | Project to display (name or id) |
Value | Summary |
---|---|
output formatter options-f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml} | The output format, defaults to table |
-c COLUMN, --column COLUMN | Specify the column(s) to include, can be repeated |
Value | Summary |
---|---|
--noindent | Whether to disable indenting the json |
Value | Summary |
---|---|
-h, --help | Show this help message and exit |
Value | Summary |
---|---|
a format a UNIX shell can parse (variable="value")--prefix PREFIX | Add a prefix to all variable names |
48.7. project unset
Unset project properties
Usage:
openstack project unset [-h] [--property <key>] <project>
Value | Summary |
---|---|
<project> | Project to modify (name or id) |
Value | Summary |
---|---|
--property <key> | Unset a project property (repeat option to unset multiple properties) |
-h, --help | Show this help message and exit |