Overview of OpenStack Client commands
To get more information about a specific subcommand, append the --help flag to it.
To list all commands, you can use the --help flag:
openstack --help
Server
With the command openstack server you can create, administrate, or delete a VM.
Here is a list of some common commands:
openstack server addAdds parameters (Fixed IP, Floating IP, Security group, Volume) to a VMopenstack server createCreates a VMopenstack server deleteDeletes a VMopenstack server listShows a list of all VMsopenstack server removeRemoves parameters (Fixed IP, Floating IP, Security group, Volume) from a VMopenstack server showShows all important information about the specified VM
Security Group
Security Groups are used to allow or deny incoming and outgoing network traffic based on IP adresses and ports for VMs.
You can also manage security groups in the OpenStackClient.
Here are some common commands:
openstack security group createCreates a new security group.openstack security group deleteDeletes a security groupopenstack security group listShows a list of all security groupsopenstack security group showShows all important information about a security groupopenstack security group rule createAdds a rule for a security groupopenstack security group rule deleteDeletes a rule in a security group
Network
To create VMs, a network is required. Here are some common network commands:
openstack network createCreates a new networkopenstack network listShows a list of all networksopenstack network showShows all important information about a networkopenstack network deleteDeletes a network
Router
For the VMs on your network to reach the internet, you need a router. Here are some common router commands.
openstack router createCreates a new routeropenstack router deleteDeletes a routeropenstack router add portAdds a port to a routeropenstack router add subnetAdds a subnet to a router
Subnet
To use a virtual router correctly, you need a subnet that can be administrated with openstack subnet. Here are some common commands:
openstack subnet createCreates a new subnetopenstack subnet deleteDeletes a subnetopenstack subnet showShows all infomation about a subnet
Port
Ports connect your VMs to your network. Here are some common commands:
openstack port createCreate a new portopenstack port deleteDeletes a portopenstack port showShows all infomation about a port
Volume
Volumes are storage locations that persist across the existence of individual instances. Here are some common commands:
openstack volume createCreates a new Volumeopenstack volume deleteDeletes a volumeopenstack volume showShows all infomation about a volume
