@@ -299,6 +299,16 @@ func serverStartCommand() *core.Command {
299299 Run : getRunServerAction (instance .ServerActionPoweron ),
300300 WaitFunc : waitForServerFunc (),
301301 ArgSpecs : serverActionArgSpecs ,
302+ Examples : []* core.Example {
303+ {
304+ Short : "Start a server in the default zone with a given id" ,
305+ Request : `{"server_id": "11111111-1111-1111-1111-111111111111"}` ,
306+ },
307+ {
308+ Short : "Start a server in fr-par-1 zone with a given id" ,
309+ Request : `{"zone":"fr-par-1", "server_id": "11111111-1111-1111-1111-111111111111"}` ,
310+ },
311+ },
302312 }
303313}
304314
@@ -312,6 +322,16 @@ func serverStopCommand() *core.Command {
312322 Run : getRunServerAction (instance .ServerActionPoweroff ),
313323 WaitFunc : waitForServerFunc (),
314324 ArgSpecs : serverActionArgSpecs ,
325+ Examples : []* core.Example {
326+ {
327+ Short : "Stop a server in the default zone with a given id" ,
328+ Request : `{"server_id": "11111111-1111-1111-1111-111111111111"}` ,
329+ },
330+ {
331+ Short : "Stop a server in fr-par-1 zone with a given id" ,
332+ Request : `{"zone":"fr-par-1", "server_id": "11111111-1111-1111-1111-111111111111"}` ,
333+ },
334+ },
315335 }
316336}
317337
@@ -325,6 +345,16 @@ func serverStandbyCommand() *core.Command {
325345 Run : getRunServerAction (instance .ServerActionStopInPlace ),
326346 WaitFunc : waitForServerFunc (),
327347 ArgSpecs : serverActionArgSpecs ,
348+ Examples : []* core.Example {
349+ {
350+ Short : "Put in standby a server in the default zone with a given id" ,
351+ Request : `{"server_id": "11111111-1111-1111-1111-111111111111"}` ,
352+ },
353+ {
354+ Short : "Put in standby a server in fr-par-1 zone with a given id" ,
355+ Request : `{"zone":"fr-par-1", "server_id": "11111111-1111-1111-1111-111111111111"}` ,
356+ },
357+ },
328358 }
329359}
330360
@@ -338,6 +368,16 @@ func serverRebootCommand() *core.Command {
338368 Run : getRunServerAction (instance .ServerActionReboot ),
339369 WaitFunc : waitForServerFunc (),
340370 ArgSpecs : serverActionArgSpecs ,
371+ Examples : []* core.Example {
372+ {
373+ Short : "Reboot a server in the default zone with a given id" ,
374+ Request : `{"server_id": "11111111-1111-1111-1111-111111111111"}` ,
375+ },
376+ {
377+ Short : "Reboot a server in fr-par-1 zone with a given id" ,
378+ Request : `{"zone":"fr-par-1", "server_id": "11111111-1111-1111-1111-111111111111"}` ,
379+ },
380+ },
341381 }
342382}
343383
@@ -402,6 +442,16 @@ func serverDeleteCommand() *core.Command {
402442 Short : "Force shutdown of the instance server before deleting it" ,
403443 },
404444 },
445+ Examples : []* core.Example {
446+ {
447+ Short : "Delete a server in the default zone with a given id" ,
448+ Request : `{"server_id": "11111111-1111-1111-1111-111111111111"}` ,
449+ },
450+ {
451+ Short : "Delete a server in fr-par-1 zone with a given id" ,
452+ Request : `{"zone":"fr-par-1", "server_id": "11111111-1111-1111-1111-111111111111"}` ,
453+ },
454+ },
405455 SeeAlsos : []* core.SeeAlso {
406456 {
407457 Command : "scw instance server stop" ,
0 commit comments