• CLI

sdk
  1. Help Center
  2. CLI
  3. Developer Guide
  4. Command-Line Interface
  5. CLI Use Case
  6. Example of Creating an ECS Using the Individual CLI

Example of Creating an ECS Using the Individual CLI

Creating a Port

Run the following command to create a port:

neutron port-create d5d7e451-cc4a-4c26-a4cf-6e94d56cbabd --name port_test

Information similar to the following is displayed.

Creating a Mirrored Disk

Run the following command to create a mirrored disk:

cinder create --image-id f6784132-2951-4d1c-82b1-68c540f9fdd6 --volume-type SATA --availability-zone aaa --name volume_test 10

NOTE:

In the command, aaa indicates the name of an AZ.

Information similar to the following is displayed.

Creating an ECS

Run the following command to create an ECS:

nova boot --boot-volume 09a0281f-9cc1-4735-8d61-bdba6abe82a7 --availability-zone aaa --flavor normal1 --nic port-id=c2f6726d-99aa-4719-a63d-6dd72a627134 server_test

NOTE:

In the command, aaa indicates the name of an AZ.

Information similar to the following is displayed.