Skip to content

Commit 59fa566

Browse files
GokceGKDiogoFerraojoaopalet
authored
Add IaaS endpoint to config set unset (#435)
* Onboard IaaS network-area `create` and `update` commands (#422) * create command * improve create command, update command * update GetOrganizationName docs * address PR comment * add network area id to create output * Onboard IaaS network `list` and `describe` commands (#425) * improve create command, update command * update GetOrganizationName docs * address PR comment * delete command * describe and initial list * list and describe * remove delete command * address PR comments * Onboard the IaaS network `delete` command and extend `project create` (#426) * improve create command, update command * update GetOrganizationName docs * address PR comment * delete command * describe and initial list * list and describe * add flag to project create * update main network area * remove duplicate calls * improve docs, address PR comments * Onboard `network-ranges delete` and `network-ranges create` commands (#427) * create network range * ranges delete command * improve help * address PR comments * Onboard `network-ranges list` and `network-ranges describe` commands (#429) * list and describe commands * small fixes * improve describe output * improve descriptions * address PR comments * address PR comments * Onboard `routes create` and `routes delete` command (#431) * create command * delete command * generate docs * document the lack of waiters in create command * move functions to utils, improve outputs * Onboard `routes list` and `routes describe` commands (#432) * delete command * move functions to utils, improve outputs * list command * describe command * Update internal/cmd/beta/network-area/routes/describe/describe.go * change flag order * Update internal/cmd/beta/network-area/routes/describe/describe_test.go * Update internal/cmd/beta/network-area/routes/describe/describe_test.go * Update internal/cmd/beta/network-area/routes/describe/describe_test.go * Update internal/cmd/beta/network-area/routes/describe/describe_test.go * Update internal/cmd/beta/network-area/routes/list/list.go --------- Co-authored-by: GokceGK <[email protected]> Co-authored-by: Gökçe Gök Klingel <[email protected]> * add iaas custom endpoint to config * add iaas command to read me * update docs * Update internal/pkg/services/iaas/client/client.go Co-authored-by: João Palet <[email protected]> --------- Co-authored-by: Diogo Ferrão <[email protected]> Co-authored-by: João Palet <[email protected]>
1 parent 1fe4a90 commit 59fa566

File tree

65 files changed

+6667
-31
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+6667
-31
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ Help is available for any command by specifying the special flag `--help` (or si
6666
Below you can find a list of the STACKIT services already available in the CLI (along with their respective command names) and the ones that are currently planned to be integrated.
6767

6868
| Service | CLI Commands | Status |
69-
| ---------------------------------- | ------------------------- | ------------------------- |
69+
| ---------------------------------- |---------------------------|---------------------------|
7070
| Argus | `argus` | :white_check_mark: |
71-
| Infrastructure as a Service (IaaS) | | Will be integrated soon |
71+
| Infrastructure as a Service (IaaS) | `beta network-area` | :white_check_mark: (beta) |
7272
| Authorization | `project`, `organization` | :white_check_mark: |
7373
| DNS | `dns` | :white_check_mark: |
7474
| Kubernetes Engine (SKE) | `ske` | :white_check_mark: |

docs/stackit_beta.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ stackit beta [flags]
4040
### SEE ALSO
4141

4242
* [stackit](./stackit.md) - Manage STACKIT resources using the command line
43+
* [stackit beta network-area](./stackit_beta_network-area.md) - Provides functionality for STACKIT Network Area (SNA)
4344
* [stackit beta server](./stackit_beta_server.md) - Provides functionality for Server
4445
* [stackit beta sqlserverflex](./stackit_beta_sqlserverflex.md) - Provides functionality for SQLServer Flex
4546

docs/stackit_beta_network-area.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
## stackit beta network-area
2+
3+
Provides functionality for STACKIT Network Area (SNA)
4+
5+
### Synopsis
6+
7+
Provides functionality for STACKIT Network Area (SNA).
8+
9+
```
10+
stackit beta network-area [flags]
11+
```
12+
13+
### Options
14+
15+
```
16+
-h, --help Help for "stackit beta network-area"
17+
```
18+
19+
### Options inherited from parent commands
20+
21+
```
22+
-y, --assume-yes If set, skips all confirmation prompts
23+
--async If set, runs the command asynchronously
24+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
25+
-p, --project-id string Project ID
26+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
27+
```
28+
29+
### SEE ALSO
30+
31+
* [stackit beta](./stackit_beta.md) - Contains beta STACKIT CLI commands
32+
* [stackit beta network-area create](./stackit_beta_network-area_create.md) - Creates a STACKIT Network Area (SNA)
33+
* [stackit beta network-area delete](./stackit_beta_network-area_delete.md) - Deletes a STACKIT Network Area (SNA)
34+
* [stackit beta network-area describe](./stackit_beta_network-area_describe.md) - Shows details of a STACKIT Network Area
35+
* [stackit beta network-area list](./stackit_beta_network-area_list.md) - Lists all STACKIT Network Areas (SNA) of an organization
36+
* [stackit beta network-area network-ranges](./stackit_beta_network-area_network-ranges.md) - Provides functionality for network ranges in STACKIT Network Areas
37+
* [stackit beta network-area routes](./stackit_beta_network-area_routes.md) - Provides functionality for static routes in STACKIT Network Areas
38+
* [stackit beta network-area update](./stackit_beta_network-area_update.md) - Updates a STACKIT Network Area (SNA)
39+
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
## stackit beta network-area create
2+
3+
Creates a STACKIT Network Area (SNA)
4+
5+
### Synopsis
6+
7+
Creates a STACKIT Network Area (SNA) in an organization.
8+
9+
```
10+
stackit beta network-area create [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Create a network area with name "network-area-1" in organization with ID "xxx" with network ranges and a transfer network
17+
$ stackit beta network-area create --name network-area-1 --organization-id xxx --network-ranges "1.1.1.0/24,192.123.1.0/24" --transfer-network "192.160.0.0/24"
18+
19+
Create a network area with name "network-area-2" in organization with ID "xxx" with network ranges, transfer network and DNS name server
20+
$ stackit beta network-area create --name network-area-2 --organization-id xxx --network-ranges "1.1.1.0/24,192.123.1.0/24" --transfer-network "192.160.0.0/24" --dns-name-servers "1.1.1.1"
21+
22+
Create a network area with name "network-area-3" in organization with ID "xxx" with network ranges, transfer network and additional options
23+
$ stackit beta network-area create --name network-area-3 --organization-id xxx --network-ranges "1.1.1.0/24,192.123.1.0/24" --transfer-network "192.160.0.0/24" --default-prefix-length 25 --max-prefix-length 29 --min-prefix-length 24
24+
```
25+
26+
### Options
27+
28+
```
29+
--default-prefix-length int The default prefix length for networks in the network area
30+
--dns-name-servers strings List of DNS name server IPs
31+
-h, --help Help for "stackit beta network-area create"
32+
--max-prefix-length int The maximum prefix length for networks in the network area
33+
--min-prefix-length int The minimum prefix length for networks in the network area
34+
-n, --name string Network area name
35+
--network-ranges strings List of network ranges (default [])
36+
--organization-id string Organization ID
37+
--transfer-network string Transfer network in CIDR notation
38+
```
39+
40+
### Options inherited from parent commands
41+
42+
```
43+
-y, --assume-yes If set, skips all confirmation prompts
44+
--async If set, runs the command asynchronously
45+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
46+
-p, --project-id string Project ID
47+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
48+
```
49+
50+
### SEE ALSO
51+
52+
* [stackit beta network-area](./stackit_beta_network-area.md) - Provides functionality for STACKIT Network Area (SNA)
53+
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
## stackit beta network-area delete
2+
3+
Deletes a STACKIT Network Area (SNA)
4+
5+
### Synopsis
6+
7+
Deletes a STACKIT Network Area (SNA) in an organization.
8+
If the SNA is attached to any projects, the deletion will fail
9+
10+
11+
```
12+
stackit beta network-area delete [flags]
13+
```
14+
15+
### Examples
16+
17+
```
18+
Delete network area with ID "xxx" in organization with ID "yyy"
19+
$ stackit beta network-area delete xxx --organization-id yyy
20+
```
21+
22+
### Options
23+
24+
```
25+
-h, --help Help for "stackit beta network-area delete"
26+
--organization-id string Organization ID
27+
```
28+
29+
### Options inherited from parent commands
30+
31+
```
32+
-y, --assume-yes If set, skips all confirmation prompts
33+
--async If set, runs the command asynchronously
34+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
35+
-p, --project-id string Project ID
36+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
37+
```
38+
39+
### SEE ALSO
40+
41+
* [stackit beta network-area](./stackit_beta_network-area.md) - Provides functionality for STACKIT Network Area (SNA)
42+
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
## stackit beta network-area describe
2+
3+
Shows details of a STACKIT Network Area
4+
5+
### Synopsis
6+
7+
Shows details of a STACKIT Network Area in an organization.
8+
9+
```
10+
stackit beta network-area describe [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Show details of a network area with ID "xxx" in organization with ID "yyy"
17+
$ stackit beta network-area describe xxx --organization-id yyy
18+
19+
Show details of a network area with ID "xxx" in organization with ID "yyy" and show attached projects
20+
$ stackit beta network-area describe xxx --organization-id yyy --show-attached-projects
21+
22+
Show details of a network area with ID "xxx" in organization with ID "yyy" in JSON format
23+
$ stackit beta network-area describe xxx --organization-id yyy --output-format json
24+
```
25+
26+
### Options
27+
28+
```
29+
-h, --help Help for "stackit beta network-area describe"
30+
--organization-id string Organization ID
31+
--show-attached-projects Whether to show attached projects. If a network area has several attached projects, their retrieval may take some time and the output may be extensive.
32+
```
33+
34+
### Options inherited from parent commands
35+
36+
```
37+
-y, --assume-yes If set, skips all confirmation prompts
38+
--async If set, runs the command asynchronously
39+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
40+
-p, --project-id string Project ID
41+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
42+
```
43+
44+
### SEE ALSO
45+
46+
* [stackit beta network-area](./stackit_beta_network-area.md) - Provides functionality for STACKIT Network Area (SNA)
47+
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
## stackit beta network-area list
2+
3+
Lists all STACKIT Network Areas (SNA) of an organization
4+
5+
### Synopsis
6+
7+
Lists all STACKIT Network Areas (SNA) of an organization.
8+
9+
```
10+
stackit beta network-area list [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Lists all network areas of organization "xxx"
17+
$ stackit beta network-area list --organization-id xxx
18+
19+
Lists all network areas of organization "xxx" in JSON format
20+
$ stackit beta network-area list --organization-id xxx --output-format json
21+
22+
Lists up to 10 network areas of organization "xxx"
23+
$ stackit beta network-area list --organization-id xxx --limit 10
24+
```
25+
26+
### Options
27+
28+
```
29+
-h, --help Help for "stackit beta network-area list"
30+
--limit int Maximum number of entries to list
31+
--organization-id string Organization ID
32+
```
33+
34+
### Options inherited from parent commands
35+
36+
```
37+
-y, --assume-yes If set, skips all confirmation prompts
38+
--async If set, runs the command asynchronously
39+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
40+
-p, --project-id string Project ID
41+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
42+
```
43+
44+
### SEE ALSO
45+
46+
* [stackit beta network-area](./stackit_beta_network-area.md) - Provides functionality for STACKIT Network Area (SNA)
47+
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
## stackit beta network-area network-ranges
2+
3+
Provides functionality for network ranges in STACKIT Network Areas
4+
5+
### Synopsis
6+
7+
Provides functionality for network ranges in STACKIT Network Areas.
8+
9+
```
10+
stackit beta network-area network-ranges [flags]
11+
```
12+
13+
### Options
14+
15+
```
16+
-h, --help Help for "stackit beta network-area network-ranges"
17+
```
18+
19+
### Options inherited from parent commands
20+
21+
```
22+
-y, --assume-yes If set, skips all confirmation prompts
23+
--async If set, runs the command asynchronously
24+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
25+
-p, --project-id string Project ID
26+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
27+
```
28+
29+
### SEE ALSO
30+
31+
* [stackit beta network-area](./stackit_beta_network-area.md) - Provides functionality for STACKIT Network Area (SNA)
32+
* [stackit beta network-area network-ranges create](./stackit_beta_network-area_network-ranges_create.md) - Creates a network range in a STACKIT Network Area (SNA)
33+
* [stackit beta network-area network-ranges delete](./stackit_beta_network-area_network-ranges_delete.md) - Deletes a network range in a STACKIT Network Area (SNA)
34+
* [stackit beta network-area network-ranges describe](./stackit_beta_network-area_network-ranges_describe.md) - Shows details of a network range in a STACKIT Network Area (SNA)
35+
* [stackit beta network-area network-ranges list](./stackit_beta_network-area_network-ranges_list.md) - Lists all network ranges in a STACKIT Network Area (SNA)
36+
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
## stackit beta network-area network-ranges create
2+
3+
Creates a network range in a STACKIT Network Area (SNA)
4+
5+
### Synopsis
6+
7+
Creates a network range in a STACKIT Network Area (SNA).
8+
9+
```
10+
stackit beta network-area network-ranges create [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Create a network range in a STACKIT Network Area with ID "xxx" in organization with ID "yyy"
17+
$ stackit beta network-area network-ranges create --network-area-id xxx --organization-id yyy --network-range "1.1.1.0/24"
18+
```
19+
20+
### Options
21+
22+
```
23+
-h, --help Help for "stackit beta network-area network-ranges create"
24+
--network-area-id string STACKIT Network Area (SNA) ID
25+
--network-range string Network range to create in CIDR notation
26+
--organization-id string Organization ID
27+
```
28+
29+
### Options inherited from parent commands
30+
31+
```
32+
-y, --assume-yes If set, skips all confirmation prompts
33+
--async If set, runs the command asynchronously
34+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
35+
-p, --project-id string Project ID
36+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
37+
```
38+
39+
### SEE ALSO
40+
41+
* [stackit beta network-area network-ranges](./stackit_beta_network-area_network-ranges.md) - Provides functionality for network ranges in STACKIT Network Areas
42+
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
## stackit beta network-area network-ranges delete
2+
3+
Deletes a network range in a STACKIT Network Area (SNA)
4+
5+
### Synopsis
6+
7+
Deletes a network range in a STACKIT Network Area (SNA).
8+
9+
```
10+
stackit beta network-area network-ranges delete [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Delete network range with id "xxx" in a STACKIT Network Area with ID "yyy" in organization with ID "zzz"
17+
$ stackit beta network-area network-ranges delete xxx --network-area-id yyy --organization-id zzz
18+
```
19+
20+
### Options
21+
22+
```
23+
-h, --help Help for "stackit beta network-area network-ranges delete"
24+
--network-area-id string STACKIT Network Area (SNA) ID
25+
--organization-id string Organization ID
26+
```
27+
28+
### Options inherited from parent commands
29+
30+
```
31+
-y, --assume-yes If set, skips all confirmation prompts
32+
--async If set, runs the command asynchronously
33+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
34+
-p, --project-id string Project ID
35+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
36+
```
37+
38+
### SEE ALSO
39+
40+
* [stackit beta network-area network-ranges](./stackit_beta_network-area_network-ranges.md) - Provides functionality for network ranges in STACKIT Network Areas
41+

0 commit comments

Comments
 (0)