Skip to content

Commit 96df1f2

Browse files
committed
onboard iaas server commands
1 parent 4324f07 commit 96df1f2

19 files changed

+2579
-0
lines changed

docs/stackit_beta_server.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,9 @@ stackit beta server [flags]
3131
* [stackit beta](./stackit_beta.md) - Contains beta STACKIT CLI commands
3232
* [stackit beta server backup](./stackit_beta_server_backup.md) - Provides functionality for Server Backup
3333
* [stackit beta server command](./stackit_beta_server_command.md) - Provides functionality for Server Command
34+
* [stackit beta server create](./stackit_beta_server_create.md) - Creates a server
35+
* [stackit beta server delete](./stackit_beta_server_delete.md) - Deletes a server
36+
* [stackit beta server describe](./stackit_beta_server_describe.md) - Shows details of a server
37+
* [stackit beta server list](./stackit_beta_server_list.md) - Lists all servers of a project
38+
* [stackit beta server update](./stackit_beta_server_update.md) - Updates a server
3439

docs/stackit_beta_server_create.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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 with machine type "t1.1", name "server1" and image with id xxx
17+
$ stackit beta server create --machine-type t1.1 --name server1 --image-id xxx
18+
19+
Create a server with machine type "t1.1", name "server1", image with id xxx and labels
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 machine type "t1.1", name "server1", boot volume source id "xxx", type "image" and size 64GB
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+
26+
### Options
27+
28+
```
29+
--affinity-group string The affinity group the server is assigned to
30+
--availability-zone string Availability zone
31+
--boot-volume-delete-on-termination Delete the volume during the termination of the server. Defaults to false
32+
--boot-volume-performance-class string Boot volume performance class
33+
--boot-volume-size int Boot volume size (GB). Size is required for the image type boot volumes
34+
--boot-volume-source-id string ID of the source object of boot volume. It can be either 'image-id' or 'volume-id'
35+
--boot-volume-source-type string Type of the source object of boot volume. It can be either 'image' or 'volume'
36+
-h, --help Help for "stackit beta server create"
37+
--image-id string ID of the image. Either image-id or boot volume is required
38+
--keypair-name string The SSH keypair used during the server creation
39+
--labels stringToString Labels are key-value string pairs which can be attached to a server. E.g. '--labels key1=value1,key2=value2,...' (default [])
40+
--machine-type string Machine type the server shall belong to
41+
-n, --name string Server name
42+
--network-id string ID of the network for the initial networking setup for the server creation
43+
--network-interface-ids strings List of network interface IDs for the initial networking setup for the server creation
44+
--security-groups strings The initial security groups for the server creation
45+
--service-account-emails strings List of the service account mails
46+
--user-data string User data that is provided to the server
47+
--volumes strings The list of volumes attached to the server
48+
```
49+
50+
### Options inherited from parent commands
51+
52+
```
53+
-y, --assume-yes If set, skips all confirmation prompts
54+
--async If set, runs the command asynchronously
55+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
56+
-p, --project-id string Project ID
57+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
58+
```
59+
60+
### SEE ALSO
61+
62+
* [stackit beta server](./stackit_beta_server.md) - Provides functionality for Server
63+

docs/stackit_beta_server_delete.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
## stackit beta server delete
2+
3+
Deletes a server
4+
5+
### Synopsis
6+
7+
Deletes a server.
8+
If the server is still in use, the deletion will fail
9+
10+
11+
```
12+
stackit beta server delete [flags]
13+
```
14+
15+
### Examples
16+
17+
```
18+
Delete server with ID "xxx"
19+
$ stackit beta server delete xxx
20+
```
21+
22+
### Options
23+
24+
```
25+
-h, --help Help for "stackit beta server delete"
26+
```
27+
28+
### Options inherited from parent commands
29+
30+
```
31+
-y, --assume-yes If set, skips all confirmation prompts
32+
--async If set, runs the command asynchronously
33+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
34+
-p, --project-id string Project ID
35+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
36+
```
37+
38+
### SEE ALSO
39+
40+
* [stackit beta server](./stackit_beta_server.md) - Provides functionality for Server
41+
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
## stackit beta server describe
2+
3+
Shows details of a server
4+
5+
### Synopsis
6+
7+
Shows details of a server.
8+
9+
```
10+
stackit beta server describe [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Show details of a server with ID "xxx"
17+
$ stackit beta server describe xxx
18+
19+
Show detailed information of a server with ID "xxx"
20+
$ stackit beta server describe xxx --details
21+
22+
Show details of a server with ID "xxx" in JSON format
23+
$ stackit beta server describe xxx --output-format json
24+
```
25+
26+
### Options
27+
28+
```
29+
--details Show detailed information about server
30+
-h, --help Help for "stackit beta server describe"
31+
```
32+
33+
### Options inherited from parent commands
34+
35+
```
36+
-y, --assume-yes If set, skips all confirmation prompts
37+
--async If set, runs the command asynchronously
38+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
39+
-p, --project-id string Project ID
40+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
41+
```
42+
43+
### SEE ALSO
44+
45+
* [stackit beta server](./stackit_beta_server.md) - Provides functionality for Server
46+

docs/stackit_beta_server_list.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
## stackit beta server list
2+
3+
Lists all servers of a project
4+
5+
### Synopsis
6+
7+
Lists all servers of a project.
8+
9+
```
10+
stackit beta server list [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Lists all servers
17+
$ stackit beta server list
18+
19+
Lists all servers which contains the label xxx
20+
$ stackit beta server list --label-selector xxx
21+
22+
Lists all servers with detailed information
23+
$ stackit beta server list --details
24+
25+
Lists all servers in JSON format
26+
$ stackit beta server list --output-format json
27+
28+
Lists up to 10 servers
29+
$ stackit beta server list --limit 10
30+
```
31+
32+
### Options
33+
34+
```
35+
--details Show detailed information about server
36+
-h, --help Help for "stackit beta server list"
37+
--label-selector string Filter by label
38+
--limit int Maximum number of entries to list
39+
```
40+
41+
### Options inherited from parent commands
42+
43+
```
44+
-y, --assume-yes If set, skips all confirmation prompts
45+
--async If set, runs the command asynchronously
46+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
47+
-p, --project-id string Project ID
48+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
49+
```
50+
51+
### SEE ALSO
52+
53+
* [stackit beta server](./stackit_beta_server.md) - Provides functionality for Server
54+

docs/stackit_beta_server_update.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
## stackit beta server update
2+
3+
Updates a server
4+
5+
### Synopsis
6+
7+
Updates a server.
8+
9+
```
10+
stackit beta server update [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Update server with ID "xxx" with new name "server-1-new"
17+
$ stackit beta server update xxx --name server-1-new
18+
19+
Update server with ID "xxx" with new name "server-1-new" and label(s)
20+
$ stackit beta server update xxx --name server-1-new --labels key=value,foo=bar
21+
```
22+
23+
### Options
24+
25+
```
26+
-h, --help Help for "stackit beta server update"
27+
--labels stringToString Labels are key-value string pairs which can be attached to a server. E.g. '--labels key1=value1,key2=value2,...' (default [])
28+
-n, --name string Server name
29+
```
30+
31+
### Options inherited from parent commands
32+
33+
```
34+
-y, --assume-yes If set, skips all confirmation prompts
35+
--async If set, runs the command asynchronously
36+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
37+
-p, --project-id string Project ID
38+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
39+
```
40+
41+
### SEE ALSO
42+
43+
* [stackit beta server](./stackit_beta_server.md) - Provides functionality for Server
44+

0 commit comments

Comments
 (0)