forked from scaleway/scaleway-cli
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest-all-usage-instance-server-update-usage.golden
More file actions
55 lines (45 loc) · 2.66 KB
/
test-all-usage-instance-server-update-usage.golden
File metadata and controls
55 lines (45 loc) · 2.66 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Update a server.
USAGE:
scw instance server update <server-id ...> [arg=value ...]
EXAMPLES:
Update the name of a given server
scw instance server update 11111111-1111-1111-1111-111111111111 name=foobar
Put a given instance in rescue mode (reboot is required to access rescue mode)
scw instance server update 11111111-1111-1111-1111-111111111111 boot-type=rescue
Overwrite tags of a given server
scw instance server update 11111111-1111-1111-1111-111111111111 tags.0=foo tags.1=bar
Enable IPv6 on a given server
scw instance server update 11111111-1111-1111-1111-111111111111 enable-ipv6=true
Apply the given security group to a given server
scw instance server update
Put a given server in the given placement group. Server must be off
scw instance server update
ARGS:
server-id UUID of the server
[name] Name of the server
[ip] IP that should be attached to the server (use ip=none to detach)
[cloud-init] The cloud-init script to use
[boot-type] (local | bootscript | rescue)
[tags.{index}] Tags of the server
[volumes.{key}.project] Project ID of the volume
[bootscript]
[dynamic-ip-required]
[enable-ipv6]
[protected]
[security-group-id]
[volume-ids.{index}] Will update ALL volume IDs at once, including the root volume of the server (use volume-ids=none to detach all volumes)
[placement-group-id] Placement group ID if server must be part of a placement group
[private-nics.{index}.id] The private NIC unique ID
[private-nics.{index}.server-id] The server the private NIC is attached to
[private-nics.{index}.private-network-id] The private network where the private NIC is attached
[private-nics.{index}.mac-address] The private NIC MAC address
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | nl-ams-1)
FLAGS:
-h, --help help for update
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