• CLI

sdk
  1. Help Center
  2. CLI
  3. Developer Guide
  4. Command-Line Interface
  5. CLI Use Case
  6. Use Case for ECS Creation Using Unified CLI

Use Case for ECS Creation Using Unified CLI

Creating a Port

Run the following command to create a port:

openstack port create port_test --network d5d7e451-cc4a-4c26-a4cf-6e94d56cbabd

Creating an ECS

Run the following command to create an ECS:

openstack server create --image f6784132-2951-4d1c-82b1-68c540f9fdd6 --flavor normal1 --availability-zone aaa --nic port-id=06137bc8-bf2a-47cf-8f0a-86ff43581cbf myserver

NOTE:

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

The command output is as follows.