Skip to content

Commit 0eebe64

Browse files
authored
Feat/stackitcli 184 onboarding alb credentials (#696)
* feat(credentials): list command * feat(credentials): commands working * feat(credentials): corrected chaining of commands * feat(credentials): fixed linter issues * feat(credentials): command implementation * feat(credentials): code cleanup * feat(credentials): updated documentation * feat(credentials): bug fixes * feat(credentials): updated docs * feat(credentials): fixed testcases * feat(credentials): code cleanup * Feat/stackitcli 183 onboarding alb project api (#700) * feat(credentials) * feat(credentials): code cleanup * feat(credentials): updated documentation * feat(credentials): bug fixes * feat(credentials): updated docs * feat(credentials): fixed testcases * feat(credentials): code cleanup * feat(alb project): support for quota and plans * feat(alb project): updated documentation * feat(alb project): review findings * feat(credentials): Integrated review findings * feat(credentials): more review findings
1 parent 4080d5a commit 0eebe64

28 files changed

+2896
-1
lines changed

docs/stackit_beta_alb.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ stackit beta alb [flags]
3434
* [stackit beta alb delete](./stackit_beta_alb_delete.md) - Deletes an application loadbalancer
3535
* [stackit beta alb describe](./stackit_beta_alb_describe.md) - Describes an application loadbalancer
3636
* [stackit beta alb list](./stackit_beta_alb_list.md) - Lists albs
37+
* [stackit beta alb observability-credentials](./stackit_beta_alb_observability-credentials.md) - Provides functionality for application loadbalancer credentials
38+
* [stackit beta alb plans](./stackit_beta_alb_plans.md) - Lists the application load balancer plans
3739
* [stackit beta alb pool](./stackit_beta_alb_pool.md) - Manages target pools for application loadbalancers
40+
* [stackit beta alb quotas](./stackit_beta_alb_quotas.md) - Shows the application load balancer quotas
3841
* [stackit beta alb template](./stackit_beta_alb_template.md) - creates configuration templates to use for resource creation
3942
* [stackit beta alb update](./stackit_beta_alb_update.md) - Updates an application loadbalancer
4043

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
## stackit beta alb observability-credentials
2+
3+
Provides functionality for application loadbalancer credentials
4+
5+
### Synopsis
6+
7+
Provides functionality for application loadbalancer credentials
8+
9+
```
10+
stackit beta alb observability-credentials [flags]
11+
```
12+
13+
### Options
14+
15+
```
16+
-h, --help Help for "stackit beta alb observability-credentials"
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+
--region string Target region for region-specific requests
27+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
28+
```
29+
30+
### SEE ALSO
31+
32+
* [stackit beta alb](./stackit_beta_alb.md) - Manages application loadbalancers
33+
* [stackit beta alb observability-credentials add](./stackit_beta_alb_observability-credentials_add.md) - Adds observability credentials to an application load balancer
34+
* [stackit beta alb observability-credentials delete](./stackit_beta_alb_observability-credentials_delete.md) - Deletes credentials
35+
* [stackit beta alb observability-credentials describe](./stackit_beta_alb_observability-credentials_describe.md) - Describes observability credentials for the Application Load Balancer
36+
* [stackit beta alb observability-credentials list](./stackit_beta_alb_observability-credentials_list.md) - Lists all credentials
37+
* [stackit beta alb observability-credentials update](./stackit_beta_alb_observability-credentials_update.md) - Update credentials
38+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
## stackit beta alb observability-credentials add
2+
3+
Adds observability credentials to an application load balancer
4+
5+
### Synopsis
6+
7+
Adds observability credentials (username and password) to an application load balancer. The credentials can be for Observability or another monitoring tool.
8+
9+
```
10+
stackit beta alb observability-credentials add [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Add observability credentials to a load balancer with username "xxx" and display name "yyy", providing the path to a file with the password as flag
17+
$ stackit beta alb observability-credentials add --username xxx --password @./password.txt --display-name yyy
18+
```
19+
20+
### Options
21+
22+
```
23+
-d, --displayname string Displayname for the credentials
24+
-h, --help Help for "stackit beta alb observability-credentials add"
25+
--password string Password. Can be a string or a file path, if prefixed with "@" (example: @./password.txt).
26+
-u, --username string Username for the credentials
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+
--region string Target region for region-specific requests
37+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
38+
```
39+
40+
### SEE ALSO
41+
42+
* [stackit beta alb observability-credentials](./stackit_beta_alb_observability-credentials.md) - Provides functionality for application loadbalancer credentials
43+
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
## stackit beta alb observability-credentials delete
2+
3+
Deletes credentials
4+
5+
### Synopsis
6+
7+
Deletes credentials.
8+
9+
```
10+
stackit beta alb observability-credentials delete CREDENTIAL_REF [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Delete credential with name "credential-12345"
17+
$ stackit beta alb observability-credentials delete credential-12345
18+
```
19+
20+
### Options
21+
22+
```
23+
-h, --help Help for "stackit beta alb observability-credentials delete"
24+
```
25+
26+
### Options inherited from parent commands
27+
28+
```
29+
-y, --assume-yes If set, skips all confirmation prompts
30+
--async If set, runs the command asynchronously
31+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
32+
-p, --project-id string Project ID
33+
--region string Target region for region-specific requests
34+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
35+
```
36+
37+
### SEE ALSO
38+
39+
* [stackit beta alb observability-credentials](./stackit_beta_alb_observability-credentials.md) - Provides functionality for application loadbalancer credentials
40+
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
## stackit beta alb observability-credentials describe
2+
3+
Describes observability credentials for the Application Load Balancer
4+
5+
### Synopsis
6+
7+
Describes observability credentials for the Application Load Balancer.
8+
9+
```
10+
stackit beta alb observability-credentials describe CREDENTIAL_REF [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Get details about credentials with name "credential-12345"
17+
$ stackit beta alb observability-credentials describe credential-12345
18+
```
19+
20+
### Options
21+
22+
```
23+
-h, --help Help for "stackit beta alb observability-credentials describe"
24+
```
25+
26+
### Options inherited from parent commands
27+
28+
```
29+
-y, --assume-yes If set, skips all confirmation prompts
30+
--async If set, runs the command asynchronously
31+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
32+
-p, --project-id string Project ID
33+
--region string Target region for region-specific requests
34+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
35+
```
36+
37+
### SEE ALSO
38+
39+
* [stackit beta alb observability-credentials](./stackit_beta_alb_observability-credentials.md) - Provides functionality for application loadbalancer credentials
40+
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
## stackit beta alb observability-credentials list
2+
3+
Lists all credentials
4+
5+
### Synopsis
6+
7+
Lists all credentials.
8+
9+
```
10+
stackit beta alb observability-credentials list [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Lists all credentials
17+
$ stackit beta alb observability-credentials list
18+
19+
Lists all credentials in JSON format
20+
$ stackit beta alb observability-credentials list --output-format json
21+
22+
Lists up to 10 credentials
23+
$ stackit beta alb observability-credentials list --limit 10
24+
```
25+
26+
### Options
27+
28+
```
29+
-h, --help Help for "stackit beta alb observability-credentials list"
30+
--limit int Number of credentials to list
31+
```
32+
33+
### Options inherited from parent commands
34+
35+
```
36+
-y, --assume-yes If set, skips all confirmation prompts
37+
--async If set, runs the command asynchronously
38+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
39+
-p, --project-id string Project ID
40+
--region string Target region for region-specific requests
41+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
42+
```
43+
44+
### SEE ALSO
45+
46+
* [stackit beta alb observability-credentials](./stackit_beta_alb_observability-credentials.md) - Provides functionality for application loadbalancer credentials
47+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
## stackit beta alb observability-credentials update
2+
3+
Update credentials
4+
5+
### Synopsis
6+
7+
Update credentials.
8+
9+
```
10+
stackit beta alb observability-credentials update CREDENTIAL_REF_ARG [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Update the password of observability credentials of Application Load Balancer with credentials reference "credentials-xxx", by providing the path to a file with the new password as flag
17+
$ stackit beta alb observability-credentials update credentials-xxx --username user1 --displayname user1 --password @./new-password.txt
18+
```
19+
20+
### Options
21+
22+
```
23+
-d, --displayname string Displayname for the credentials
24+
-h, --help Help for "stackit beta alb observability-credentials update"
25+
--password string Password. Can be a string or a file path, if prefixed with "@" (example: @./password.txt).
26+
-u, --username string Username for the credentials
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+
--region string Target region for region-specific requests
37+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
38+
```
39+
40+
### SEE ALSO
41+
42+
* [stackit beta alb observability-credentials](./stackit_beta_alb_observability-credentials.md) - Provides functionality for application loadbalancer credentials
43+

docs/stackit_beta_alb_plans.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
## stackit beta alb plans
2+
3+
Lists the application load balancer plans
4+
5+
### Synopsis
6+
7+
Lists the available application load balancer plans.
8+
9+
```
10+
stackit beta alb plans [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
List all application load balancer plans
17+
$ stackit beta alb plans
18+
```
19+
20+
### Options
21+
22+
```
23+
-h, --help Help for "stackit beta alb plans"
24+
```
25+
26+
### Options inherited from parent commands
27+
28+
```
29+
-y, --assume-yes If set, skips all confirmation prompts
30+
--async If set, runs the command asynchronously
31+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
32+
-p, --project-id string Project ID
33+
--region string Target region for region-specific requests
34+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
35+
```
36+
37+
### SEE ALSO
38+
39+
* [stackit beta alb](./stackit_beta_alb.md) - Manages application loadbalancers
40+

docs/stackit_beta_alb_quotas.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
## stackit beta alb quotas
2+
3+
Shows the application load balancer quotas
4+
5+
### Synopsis
6+
7+
Shows the application load balancer quotas for the application load balancers.
8+
9+
```
10+
stackit beta alb quotas [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
List all application load balancer quotas
17+
$ stackit beta alb quotas
18+
```
19+
20+
### Options
21+
22+
```
23+
-h, --help Help for "stackit beta alb quotas"
24+
```
25+
26+
### Options inherited from parent commands
27+
28+
```
29+
-y, --assume-yes If set, skips all confirmation prompts
30+
--async If set, runs the command asynchronously
31+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
32+
-p, --project-id string Project ID
33+
--region string Target region for region-specific requests
34+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
35+
```
36+
37+
### SEE ALSO
38+
39+
* [stackit beta alb](./stackit_beta_alb.md) - Manages application loadbalancers
40+

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ require (
1616
github.com/spf13/pflag v1.0.6
1717
github.com/spf13/viper v1.20.1
1818
github.com/stackitcloud/stackit-sdk-go/core v0.17.1
19+
github.com/stackitcloud/stackit-sdk-go/services/alb v0.2.1
1920
github.com/stackitcloud/stackit-sdk-go/services/authorization v0.6.1
2021
github.com/stackitcloud/stackit-sdk-go/services/dns v0.13.1
2122
github.com/stackitcloud/stackit-sdk-go/services/iaas v0.22.0
@@ -52,7 +53,6 @@ require (
5253
github.com/go-viper/mapstructure/v2 v2.2.1 // indirect
5354
github.com/mattn/go-isatty v0.0.20 // indirect
5455
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
55-
github.com/stackitcloud/stackit-sdk-go/services/alb v0.2.1 // indirect
5656
github.com/x448/float16 v0.8.4 // indirect
5757
)
5858

0 commit comments

Comments
 (0)