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
@@ -1,6 +1,6 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Create a new Private Network. Once created, you can attach Scaleway resources in the same Availability Zone.
Create a new Private Network. Once created, you can attach Scaleway resources which are in the same region.

USAGE:
scw vpc private-network create [arg=value ...]
Expand All @@ -10,7 +10,8 @@ ARGS:
[project-id] Project ID to use. If none is passed the default project ID will be used
[tags.{index}] Tags for the Private Network
[subnets.{index}] Private Network subnets CIDR
[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)
[vpc-id] VPC in which to create the Private Network
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
-h, --help help for create
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ USAGE:

ARGS:
private-network-id Private Network 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)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
-h, --help help for delete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ USAGE:

ARGS:
private-network-id Private Network 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)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
-h, --help help for get
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
List existing Private Networks in a specified Availability Zone. By default, the Private Networks returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field.
List existing Private Networks in the specified region. By default, the Private Networks returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field.

USAGE:
scw vpc private-network list [arg=value ...]
Expand All @@ -11,9 +11,10 @@ ARGS:
[tags.{index}] Tags to filter for. Only Private Networks with one or more matching tags will be returned
[project-id] Project ID to filter for. Only Private Networks belonging to this Project will be returned
[private-network-ids.{index}] Private Network IDs to filter for. Only Private Networks with one of these IDs will be returned
[include-regional] Defines whether to include regional Private Networks in the response
[vpc-id] VPC ID to filter for. Only Private Networks belonging to this VPC will be returned
[dhcp-enabled] DHCP status to filter for. When true, only Private Networks with managed DHCP enabled will be returned
[organization-id] Organization ID to filter for. Only Private Networks belonging to this Organization will be returned
[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 | all)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw | all)

FLAGS:
-h, --help help for list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@ USAGE:

ARGS:
private-network-id Private Network ID
[name] Name of the private network
[name] Name for the Private Network
[tags.{index}] Tags for the Private Network
[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)

DEPRECATED ARGS:
[subnets.{index}] Private Network subnets CIDR (deprecated)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
-h, --help help for update
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
A Private Network allows you to interconnect your Scaleway resources in an
isolated and private network. Network reachability is limited
to resources that are on the same Private Network. Note that a resource can
be part of multiple Private Networks.
A Private Network allows you to interconnect your Scaleway resources
in an isolated and private network. Network reachability is limited
to resources that are on the same Private Network. Note that a
resource can be a part of multiple private networks.

USAGE:
scw vpc private-network <command>
Expand Down
15 changes: 15 additions & 0 deletions cmd/scw/testdata/test-all-usage-vpc-subnet-usage.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
CIDR Subnet

USAGE:
scw vpc subnet

FLAGS:
-h, --help help for subnet

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
2 changes: 2 additions & 0 deletions cmd/scw/testdata/test-all-usage-vpc-usage.golden
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ USAGE:

AVAILABLE COMMANDS:
private-network Private network management command
subnet Subnet management command
vpc VPC management command

FLAGS:
-h, --help help for vpc
Expand Down
21 changes: 21 additions & 0 deletions cmd/scw/testdata/test-all-usage-vpc-vpc-create-usage.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Create a new VPC in the specified region.

USAGE:
scw vpc vpc create [arg=value ...]

ARGS:
name=<generated> Name for the VPC
[project-id] Project ID to use. If none is passed the default project ID will be used
[tags.{index}] Tags for the VPC
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
-h, --help help for create

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
19 changes: 19 additions & 0 deletions cmd/scw/testdata/test-all-usage-vpc-vpc-delete-usage.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Delete a VPC specified by its VPC ID.

USAGE:
scw vpc vpc delete <vpc-id ...> [arg=value ...]

ARGS:
vpc-id VPC ID
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
-h, --help help for delete

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
19 changes: 19 additions & 0 deletions cmd/scw/testdata/test-all-usage-vpc-vpc-get-usage.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Retrieve details of an existing VPC, specified by its VPC ID.

USAGE:
scw vpc vpc get <vpc-id ...> [arg=value ...]

ARGS:
vpc-id VPC ID
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
-h, --help help for get

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
24 changes: 24 additions & 0 deletions cmd/scw/testdata/test-all-usage-vpc-vpc-list-usage.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
List existing VPCs in the specified region.

USAGE:
scw vpc vpc list [arg=value ...]

ARGS:
[order-by] Sort order of the returned VPCs (created_at_asc | created_at_desc | name_asc | name_desc)
[name] Name to filter for. Only VPCs with names containing this string will be returned
[tags.{index}] Tags to filter for. Only VPCs with one more more matching tags will be returned
[project-id] Project ID to filter for. Only VPCs belonging to this Project will be returned
[is-default] Defines whether to filter only for VPCs which are the default one for their Project
[organization-id] Organization ID to filter for. Only VPCs belonging to this Organization will be returned
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw | all)

FLAGS:
-h, --help help for list

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
21 changes: 21 additions & 0 deletions cmd/scw/testdata/test-all-usage-vpc-vpc-update-usage.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Update parameters including name and tags of the specified VPC.

USAGE:
scw vpc vpc update <vpc-id ...> [arg=value ...]

ARGS:
vpc-id VPC ID
[name] Name for the VPC
[tags.{index}] Tags for the VPC
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

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
26 changes: 26 additions & 0 deletions cmd/scw/testdata/test-all-usage-vpc-vpc-usage.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
A Virtual Private Cloud (VPC) allows you to group your regional
Private Networks together. Note that a Private Network can be a
part of only one VPC.

USAGE:
scw vpc vpc <command>

AVAILABLE COMMANDS:
create Create a VPC
delete Delete a VPC
get Get a VPC
list List VPCs
update Update VPC

FLAGS:
-h, --help help for vpc

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

Use "scw vpc vpc [command] --help" for more information about a command.
Loading