Skip to content

Commit 454fcaa

Browse files
authored
fix(instance): fix documentation on server update (#1527)
1 parent 3e0a8fb commit 454fcaa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cmd/scw/testdata/test-all-usage-instance-server-update-usage.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ EXAMPLES:
1919
scw instance server update 11111111-1111-1111-1111-111111111111 enable-ipv6=true
2020

2121
Apply the given security group to a given server
22-
scw instance server update
22+
scw instance server update 11111111-1111-1111-1111-111111111111 security-group-id=11111111-1111-1111-1111-111111111111
2323

2424
Put a given server in the given placement group. Server must be off
25-
scw instance server update
25+
scw instance server update 11111111-1111-1111-1111-111111111111 placement-group=11111111-1111-1111-1111-111111111111
2626

2727
ARGS:
2828
server-id UUID of the server

internal/namespaces/instance/v1/instance_cli.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -688,11 +688,11 @@ func instanceServerUpdate() *core.Command {
688688
},
689689
{
690690
Short: "Apply the given security group to a given server",
691-
ArgsJSON: `null`,
691+
ArgsJSON: `{"security_group_id":"11111111-1111-1111-1111-111111111111","server_id":"11111111-1111-1111-1111-111111111111"}`,
692692
},
693693
{
694694
Short: "Put a given server in the given placement group. Server must be off",
695-
ArgsJSON: `null`,
695+
ArgsJSON: `{"placement_group":"11111111-1111-1111-1111-111111111111","server_id":"11111111-1111-1111-1111-111111111111"}`,
696696
},
697697
},
698698
}

0 commit comments

Comments
 (0)