vinfra location create

Create a new child location of the specified failure domain within the parent location identified by ID:

usage: vinfra location create --fd <fd> --name <location-name>
                              [--parent-id <parent-id>]
--fd <fd>
Failure domain ID
--name <location-name>
Name of the location to be created.
--parent-id <parent-id>
ID of the parent location where the child location should be created in.

Example:

# vinfra location create --fd 3 --name row2 --parent-id 0
+----------+-------+
| Field    | Value |
+----------+-------+
| children | []    |
| id       | 1     |
| name     | row2  |
| parent   | 0     |
+----------+-------+

This command creates the location row2.

To create a location of level 4 (room), do not use the --parent-id argument.