|
| 1 | +## stackit beta server create |
| 2 | + |
| 3 | +Creates a server |
| 4 | + |
| 5 | +### Synopsis |
| 6 | + |
| 7 | +Creates a server. |
| 8 | + |
| 9 | +``` |
| 10 | +stackit beta server create [flags] |
| 11 | +``` |
| 12 | + |
| 13 | +### Examples |
| 14 | + |
| 15 | +``` |
| 16 | + Create a server from an image with id xxx |
| 17 | + $ stackit beta server create --machine-type t1.1 --name server1 --image-id xxx |
| 18 | +
|
| 19 | + Create a server with labels from an image with id xxx |
| 20 | + $ stackit beta server create --machine-type t1.1 --name server1 --image-id xxx --labels key=value,foo=bar |
| 21 | +
|
| 22 | + Create a server with a boot volume |
| 23 | + $ stackit beta server create --machine-type t1.1 --name server1 --boot-volume-source-id xxx --boot-volume-source-type image --boot-volume-size 64 |
| 24 | +
|
| 25 | + Create a server with a boot volume from an existing volume |
| 26 | + $ stackit beta server create --machine-type t1.1 --name server1 --boot-volume-source-id xxx --boot-volume-source-type volume |
| 27 | +
|
| 28 | + Create a server with a keypair |
| 29 | + $ stackit beta server create --machine-type t1.1 --name server1 --image-id xxx --keypair-name example |
| 30 | +
|
| 31 | + Create a server with a network |
| 32 | + $ stackit beta server create --machine-type t1.1 --name server1 --image-id xxx --network-id yyy |
| 33 | +
|
| 34 | + Create a server with a network interface |
| 35 | + $ stackit beta server create --machine-type t1.1 --name server1 --boot-volume-source-id xxx --boot-volume-source-type image --boot-volume-size 64 --network-interface-ids yyy |
| 36 | +
|
| 37 | + Create a server with an attached volume |
| 38 | + $ stackit beta server create --machine-type t1.1 --name server1 --boot-volume-source-id xxx --boot-volume-source-type image --boot-volume-size 64 --volumes yyy |
| 39 | +
|
| 40 | + Create a server with user data (cloud-init) |
| 41 | + $ stackit beta server create --machine-type t1.1 --name server1 --boot-volume-source-id xxx --boot-volume-source-type image --boot-volume-size 64 --user-data @path/to/file.yaml") |
| 42 | +``` |
| 43 | + |
| 44 | +### Options |
| 45 | + |
| 46 | +``` |
| 47 | + --affinity-group string The affinity group the server is assigned to |
| 48 | + --availability-zone string The availability zone of the server |
| 49 | + --boot-volume-delete-on-termination Delete the volume during the termination of the server. Defaults to false |
| 50 | + --boot-volume-performance-class string Boot volume performance class |
| 51 | + --boot-volume-size int The size of the boot volume in GB. Must be provided when 'boot-volume-source-type' is 'image' |
| 52 | + --boot-volume-source-id string ID of the source object of boot volume. It can be either an image or volume ID |
| 53 | + --boot-volume-source-type string Type of the source object of boot volume. It can be either 'image' or 'volume' |
| 54 | + -h, --help Help for "stackit beta server create" |
| 55 | + --image-id string The image ID to be used for an ephemeral disk on the server. Either 'image-id' or 'boot-volume-...' flags are required |
| 56 | + --keypair-name string The name of the SSH keypair used during the server creation |
| 57 | + --labels stringToString Labels are key-value string pairs which can be attached to a server. E.g. '--labels key1=value1,key2=value2,...' (default []) |
| 58 | + --machine-type string Name of the type of the machine for the server. Possible values are documented in https://docs.stackit.cloud/stackit/en/virtual-machine-flavors-75137231.html |
| 59 | + -n, --name string Server name |
| 60 | + --network-id string ID of the network for the initial networking setup for the server creation |
| 61 | + --network-interface-ids strings List of network interface IDs for the initial networking setup for the server creation |
| 62 | + --security-groups strings The initial security groups for the server creation |
| 63 | + --service-account-emails strings List of the service account mails |
| 64 | + --user-data string User data that is passed via cloud-init to the server |
| 65 | + --volumes strings The list of volumes attached to the server |
| 66 | +``` |
| 67 | + |
| 68 | +### Options inherited from parent commands |
| 69 | + |
| 70 | +``` |
| 71 | + -y, --assume-yes If set, skips all confirmation prompts |
| 72 | + --async If set, runs the command asynchronously |
| 73 | + -o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"] |
| 74 | + -p, --project-id string Project ID |
| 75 | + --verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info") |
| 76 | +``` |
| 77 | + |
| 78 | +### SEE ALSO |
| 79 | + |
| 80 | +* [stackit beta server](./stackit_beta_server.md) - Provides functionality for Server |
| 81 | + |
0 commit comments