From 34975edd1456b65986f24f8b17390e3ef99b4ac4 Mon Sep 17 00:00:00 2001 From: Steve Martinelli Date: Mon, 5 Jan 2015 01:36:35 -0500 Subject: [PATCH] tweak the server command docs the formatting used for the server commands is not the same as the other command docs, this patch addresses that issue. Change-Id: I5f31cf6a317d9eb35ec46185800fade3dd956dc4 --- doc/source/command-objects/server.rst | 246 +++++++++++++++++--------- 1 file changed, 164 insertions(+), 82 deletions(-) diff --git a/doc/source/command-objects/server.rst b/doc/source/command-objects/server.rst index 2f5aef1070..48cefe6ada 100644 --- a/doc/source/command-objects/server.rst +++ b/doc/source/command-objects/server.rst @@ -14,10 +14,12 @@ Add security group to server -:option:`` +.. describe:: + Server (name or ID) -:option:`` +.. describe:: + Security group to add (name or ID) server add volume @@ -32,13 +34,16 @@ Add volume to server -:option:`--device` +.. option:: --device + Server internal device name for volume -:option:`` +.. describe:: + Server (name or ID) -:option:`` +.. describe:: + Volume to add (name or ID) server create @@ -66,55 +71,72 @@ Create a new server [--wait] -:option:`--image` +.. option:: --image + Create server from this image -:option:`--volume` +.. option:: --volume + Create server from this volume -:option:`--flavor` +.. option:: --flavor + Create server with this flavor -:option:`--security-group` +.. option:: --security-group + Security group to assign to this server (repeat for multiple groups) -:option:`--key-name` +.. option:: --key-name + Keypair to inject into this server (optional extension) -:option:`--property` +.. option:: --property + Set a property on this server (repeat for multiple values) -:option:`--file` +.. option:: --file + File to inject into image before boot (repeat for multiple files) -:option:`--user-data` +.. option:: --user-data + User data file to serve from the metadata server -:option:`--availability-zone` +.. option:: --availability-zone + Select an availability zone for the server -:option:`--block-device-mapping` +.. option:: --block-device-mapping + Map block devices; map is ::: (optional extension) -:option:`--nic` +.. option:: --nic + Specify NIC configuration (optional extension) -:option:`--hint` +.. option:: --hint + Hints for the scheduler (optional extension) -:option:`--config-drive` |True +.. option:: --config-drive |True + Use specified volume as the config drive, or 'True' to use an ephemeral drive -:option:`--min` +.. option:: --min + Minimum number of servers to launch (default=1) -:option:`--max` +.. option:: --max + Maximum number of servers to launch (default=1) -:option:`--wait` +.. option:: --wait + Wait for build to complete -:option:`` +.. describe:: + New server name server delete @@ -127,7 +149,8 @@ Delete server(s) os server delete [ ...] -:option:`` +.. describe:: + Server to delete (name or ID) server list @@ -150,37 +173,48 @@ List servers [--all-projects] [--long] -:option:`--reservation-id` +.. option:: --reservation-id + Only return instances that match the reservation -:option:`--ip` +.. option:: --ip + Regular expression to match IP addresses -:option:`--ip6` +.. option:: --ip6 + Regular expression to match IPv6 addresses -:option:`--name` +.. option:: --name + Regular expression to match names -:option:`--instance-name` +.. option:: --instance-name + Regular expression to match instance name (admin only) -:option:`--status` +.. option:: --status + Search by server status -:option:`--flavor` +.. option:: --flavor + Search by flavor ID -:option:`--image` +.. option:: --image + Search by image ID -:option:`--host` +.. option:: --host + Search by hostname -:option:`--all-projects` +.. option:: --all-projects + Include all projects (admin only) -:option:`--long` +.. option:: --long + List additional fields in output server lock @@ -193,7 +227,8 @@ Lock server os server lock -:option:`` +.. describe:: + Server (name or ID) server migrate @@ -210,25 +245,32 @@ Migrate server to different host [--wait] -:option:`--live` +.. option:: --live + Target hostname -:option:`--shared-migration` +.. option:: --shared-migration + Perform a shared live migration (default) -:option:`--block-migration` +.. option:: --block-migration + Perform a block live migration -:option:`--disk-overcommit` +.. option:: --disk-overcommit + Allow disk over-commit on the destination host -:option:`--no-disk-overcommit` +.. option:: --no-disk-overcommit + Do not over-commit disk on the destination host (default) -:option:`--wait` +.. option:: --wait + Wait for resize to complete -:option:`` +.. describe:: + Server to migrate (name or ID) server pause @@ -241,7 +283,8 @@ Pause server os server pause -:option:`` +.. describe:: + Server (name or ID) server reboot @@ -256,16 +299,20 @@ Perform a hard or soft server reboot [--wait] -:option:`--hard` +.. option:: --hard + Perform a hard reboot -:option:`--soft` +.. option:: --soft + Perform a soft reboot -:option:`--wait` +.. option:: --wait + Wait for reboot to complete -:option:`` +.. describe:: + Server (name or ID) server rebuild @@ -281,16 +328,20 @@ Rebuild server [--wait] -:option:`--image` +.. option:: --image + Recreate server from this image -:option:`--password` +.. option:: --password + Set the password on the rebuilt instance -:option:`--wait` +.. option:: --wait + Wait for rebuild to complete -:option:`` +.. describe:: + Server (name or ID) server remove security group @@ -304,10 +355,12 @@ Remove security group from server -:option:`` +.. describe:: + Name or ID of server to use -:option:`` +.. describe:: + Name or ID of security group to remove from server server remove volume @@ -321,10 +374,12 @@ Remove volume from server -:option:`` +.. describe:: + Server (name or ID) -:option:`` +.. describe:: + Volume to remove (name or ID) server rescue @@ -337,7 +392,8 @@ Put server in rescue mode os server rescue -:option:`` +.. describe:: + Server (name or ID) server resize @@ -356,19 +412,24 @@ Scale server to a new flavor --verify | --revert -:option:`--flavor` +.. option:: --flavor + Resize server to specified flavor -:option:`--verify` +.. option:: --verify + Verify server resize is complete -:option:`--revert` +.. option:: --revert + Restore server state before resize -:option:`--wait` +.. option:: --wait + Wait for resize to complete -:option:`` +.. describe:: + Server (name or ID) A resize operation is implemented by creating a new server and copying @@ -387,7 +448,8 @@ Resume server os server resume -:option:`` +.. describe:: + Server (name or ID) server set @@ -404,17 +466,21 @@ Set server properties --root-password -:option:`--name` +.. option:: --name + New server name -:option:`--root-password` +.. option:: --root-password + Set new root password (interactive only) -:option:`--property` +.. option:: --property + Property to add/change for this server (repeat option to set multiple properties) -:option:`` +.. describe:: + Server (name or ID) server show @@ -428,10 +494,12 @@ Show server details [--diagnostics] -:option:`--diagnostics` +.. option:: --diagnostics + Display server diagnostics information -:option:`` +.. describe:: + Server (name or ID) server ssh @@ -449,28 +517,36 @@ Ssh to server [--public | --private | --address-type ] -:option:`--login` +.. option:: --login + Login name (ssh -l option) -:option:`--port` +.. option:: --port + Destination port (ssh -p option) -:option:`--identity` +.. option:: --identity + Private key file (ssh -i option) -:option:`--option` +.. option:: --option + Options in ssh_config(5) format (ssh -o option) -:option:`--public` +.. option:: --public + Use public IP address -:option:`--private` +.. option:: --private + Use private IP address -:option:`--address-type` +.. option:: --address-type + Use other IP address (public, private, etc) -:option:`` +.. describe:: + Server (name or ID) server suspend @@ -483,7 +559,8 @@ Suspend server os server suspend -:option:`` +.. describe:: + Server (name or ID) server unlock @@ -496,7 +573,8 @@ Unlock server os server unlock -:option:`` +.. describe:: + Server (name or ID) server unpause @@ -509,7 +587,8 @@ Unpause server os server unpause -:option:`` +.. describe:: + Server (name or ID) server unrescue @@ -522,7 +601,8 @@ Restore server from rescue mode os server unrescue -:option:`` +.. describe:: + Server (name or ID) server unset @@ -537,8 +617,10 @@ Unset server properties [--property ] ... -:option:`--property` +.. option:: --property + Property key to remove from server (repeat to set multiple values) -:option:`` +.. describe:: + Server (name or ID)