Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ ARGS:
[order] Define the order of the returned servers (creation_date_desc | creation_date_asc | modification_date_desc | modification_date_asc)
[private-networks.{index}] List Instances from the given Private Networks (use commas to separate them)
[private-nic-mac-address] List Instances associated with the given private NIC MAC address
[servers.{index}] List Instances from these server ids (use commas to separate them)
[organization-id] List only Instances of this Organization ID
[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 | all)

Expand Down
1 change: 1 addition & 0 deletions docs/commands/instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -1979,6 +1979,7 @@ scw instance server list [arg=value ...]
| order | One of: `creation_date_desc`, `creation_date_asc`, `modification_date_desc`, `modification_date_asc` | Define the order of the returned servers |
| private-networks.{index} | | List Instances from the given Private Networks (use commas to separate them) |
| private-nic-mac-address | | List Instances associated with the given private NIC MAC address |
| servers.{index} | | List Instances from these server ids (use commas to separate them) |
| organization-id | | List only Instances of this Organization ID |
| zone | Default: `fr-par-1`<br />One of: `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`, `all` | Zone to target. If none is passed will use default zone from the config |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ ARGS:
[order] Define the order of the returned servers (creation_date_desc | creation_date_asc | modification_date_desc | modification_date_asc)
[private-networks.{index}] List Instances from the given Private Networks (use commas to separate them)
[private-nic-mac-address] List Instances associated with the given private NIC MAC address
[servers.{index}] List Instances from these server ids (use commas to separate them)
[organization-id] List only Instances of this Organization ID
[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 | all)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ ARGS:
[order] Define the order of the returned servers (creation_date_desc | creation_date_asc | modification_date_desc | modification_date_asc)
[private-networks.{index}] List Instances from the given Private Networks (use commas to separate them)
[private-nic-mac-address] List Instances associated with the given private NIC MAC address
[servers.{index}] List Instances from these server ids (use commas to separate them)
[organization-id] List only Instances of this Organization ID
[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 | all)

Expand Down
7 changes: 7 additions & 0 deletions internal/namespaces/instance/v1/instance_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,13 @@ func instanceServerList() *core.Command {
Deprecated: false,
Positional: false,
},
{
Name: "servers.{index}",
Short: `List Instances from these server ids (use commas to separate them)`,
Required: false,
Deprecated: false,
Positional: false,
},
{
Name: "organization",
Short: `List only Instances of this Organization ID`,
Expand Down