forked from scaleway/scaleway-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-all-usage-instance-server-action-usage.golden
More file actions
40 lines (31 loc) · 1.42 KB
/
test-all-usage-instance-server-action-usage.golden
File metadata and controls
40 lines (31 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Perform a raw API action on a server
USAGE:
scw instance server action <server-id ...> [arg=value ...]
EXAMPLES:
Start a server in the default zone with a given id
scw instance server action 11111111-1111-1111-1111-111111111111 action=poweron
ARGS:
action The raw API action to perform, as listed with 'scw instance server list-actions'
server-id ID of the server affected by the action.
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | fr-par-3 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3 | it-mil-1)
FLAGS:
-h, --help help for action
--list-sub-commands List all subcommands
-w, --wait wait until the server is ready
GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
--web open console page for the current resource
SEE ALSO:
# List available actions for a server
scw instance server list-actions
# Perform reboot action
scw instance server reboot
# Perform start action
scw instance server start
# Perform stop action
scw instance server stop