File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
internal/cmd/server/machine-type/list Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,12 @@ stackit server machine-type list [flags]
1616 Get list of all machine types
1717 $ stackit server machine-type list
1818
19+ Get list of all machine types in JSON format
20+ $ stackit server machine-type list --output-format json
21+
22+ List the first 10 machine types
23+ $ stackit server machine-type list --limit=10
24+
1925 Filter for machines with at least 8 vCPUs and 16GB RAM
2026 $ stackit server machine-type list --min-vcpu 8 --min-ram 16
2127```
Original file line number Diff line number Diff line change @@ -45,6 +45,14 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
4545 `Get list of all machine types` ,
4646 "$ stackit server machine-type list" ,
4747 ),
48+ examples .NewExample (
49+ `Get list of all machine types in JSON format` ,
50+ "$ stackit server machine-type list --output-format json" ,
51+ ),
52+ examples .NewExample (
53+ `List the first 10 machine types` ,
54+ `$ stackit server machine-type list --limit=10` ,
55+ ),
4856 examples .NewExample (
4957 `Filter for machines with at least 8 vCPUs and 16GB RAM` ,
5058 "$ stackit server machine-type list --min-vcpu 8 --min-ram 16" ,
You can’t perform that action at this time.
0 commit comments