create

Create a Server

Usage

ionosctl server create [flags]

Aliases

For server command:

[s svr]

For create command:

[c]

Description

Use this command to create an ENTERPRISE, CUBE or VCPU Server in a specified Virtual Data Center.

  1. For ENTERPRISE Servers:

You need to set the number of cores for the Server and the amount of memory for the Server to be set. The amount of memory for the Server must be specified in multiples of 256. The default unit is MB. Minimum: 256MB. Maximum: it depends on your contract limit. You can set the RAM size in the following ways:

  • providing only the value, e.g.--ram 256 equals 256MB.

  • providing both the value and the unit, e.g.--ram 1GB.

To see which CPU Family are available in which location, use ionosctl location commands.

Required values to create a Server of type ENTERPRISE:

  • Data Center Id

  • Cores

  • RAM

  1. For CUBE Servers:

Servers of type CUBE will be created with a Direct Attached Storage with the size set from the Template. To see more details about the available Templates, use ionosctl template commands.

Required values to create a Server of type CUBE:

  • Data Center Id

  • Type

  • Template Id

  1. For VCPU Servers:

You need to set the number of cores for the Server and the amount of memory for the Server to be set. The amount of memory for the Server must be specified in multiples of 256. The default unit is MB. Minimum: 256MB. Maximum: it depends on your contract limit. You can set the RAM size in the following ways:

  • providing only the value, e.g.--ram 256 equals 256MB.

  • providing both the value and the unit, e.g.--ram 1GB.

You cannot set the CPU Family for VCPU Servers.

Required values to create a Server of type VCPU:

  • Data Center Id

  • Cores

  • RAM

By default, Licence Type for Direct Attached Storage is set to LINUX. You can set it using the --licence-type option or set an Image Id. For Image Id, it is needed to set a password or SSH keys.

You can wait for the Request to be executed using --wait-for-request option. You can also wait for Server to be in AVAILABLE state using --wait-for-state option. It is recommended to use both options together for this command.

Options

Examples

Last updated