With this one-line example, you list all the servers in an active state, omit the header row from the output, look for servers with -db in the name, and then restart those servers. Use the appropriate search command for your operating system.

If you have a large number of servers, you can use the following command to search through the list of available servers running in your account. Use the appropriate search command for your operating system.

You usually want to list or create a few things before you launch a server instance. For example, you might want to choose a flavor and image, and add a key pair that you can use to log in to the server after it is launched. This series of commands shows you what to expect in return.

If you want to upload your public key, you can either point to the file or copy and paste it into the command itself.

In this example, you choose the image and flavor to launch a Rackspace Cloud Servers instance, such as a 4 GB General Purpose server on Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM), and then put those values into the command along with the key pair and any metadata key-value pairs that you want to include.

The boot from volume feature gives you the ability to start a server with an attached volume. You can either start with a volume with a bootable image, to enable simpler migration when a server fails, or a storage volume that remains intact even after a server is shut down or deleted.

To create a bootable volume from an image and launch an instance from this volume, use the --block-device parameter.