Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
671e146
initial setup for the load balancer (#252)
GokceGK Apr 26, 2024
e7fc0fe
Merge branch 'main' of https://github.com/stackitcloud/stackit-cli in…
vicentepinto98 Apr 29, 2024
48010fe
Onboard Load Balancer generate-payload command (#250)
GokceGK Apr 29, 2024
a194f87
LoadBalancer Describe, List and Quota commands (#254)
vicentepinto98 Apr 29, 2024
a386b39
Add config key (#261)
vicentepinto98 Apr 29, 2024
d30ce0a
Fix LB describe (#262)
vicentepinto98 Apr 29, 2024
24ee07a
Fixes to lb list and describe (#265)
vicentepinto98 Apr 30, 2024
46a3123
Merge changes from main (#269)
joaopalet Apr 30, 2024
ff0bd22
Load balancer delete command (#270)
vicentepinto98 May 2, 2024
58a5a99
Onboard load balancer create & update commands (#268)
GokceGK May 3, 2024
4b952de
LoadBalancer observability-credentials commands (#264)
vicentepinto98 May 3, 2024
138786b
Nil checks on lb describe (#273)
vicentepinto98 May 3, 2024
c26ebd7
Fix examples (#275)
vicentepinto98 May 3, 2024
98583b0
Implement `lb target-pool add-target` command (#281)
joaopalet May 6, 2024
a472713
Implement `lb target-pool remove-target` command (#283)
joaopalet May 7, 2024
f8fa502
Load balancer target pool commands improvements (#294)
joaopalet May 7, 2024
96f39fe
Onboard load-balancer target-pool describe (#292)
DiogoFerrao May 7, 2024
735b36a
Merge branch 'main' into jp/merge-main-updates-lb
May 8, 2024
f71a2c3
Tidy go.mod
May 8, 2024
23f3473
Merge pull request #295 from stackitcloud/jp/merge-main-updates-lb
joaopalet May 8, 2024
b8a0dcf
Make pretty the default output for LB describe commands
May 8, 2024
c2ec861
Prompt for password when adding credentials before prompt for confirm…
May 8, 2024
3b05226
Fix capitalization in example
May 8, 2024
f63756b
Merge pull request #296 from stackitcloud/jp/pretty-default-describe-lb
joaopalet May 8, 2024
87be18b
Add middleware to LB client if verbosity is debug
May 8, 2024
56ac1ba
Merge pull request #297 from stackitcloud/jp/add-middleware-lb-client
joaopalet May 8, 2024
3279748
change flag name in the example
GokceGK May 8, 2024
c3783a6
update docs
GokceGK May 8, 2024
80c71ec
Merge pull request #300 from stackitcloud/feature/gg/fix-example-flag
joaopalet May 8, 2024
a093a76
Move password prompt before confirmation prompt in credentials update
May 8, 2024
8540650
Make IP an argument in add-target and remove-target
May 8, 2024
b10fa01
Support reading password from flag in add and update observablity cre…
May 8, 2024
2a0fe13
Add error description to LB describe table
May 8, 2024
7fd2a0f
Update docs
May 8, 2024
ece7b30
Merge pull request #302 from stackitcloud/jp/lb-adjustments-after-demo
joaopalet May 8, 2024
9d8b6b7
Improve examples of LB observability credentials commands
May 8, 2024
faddd3c
Extend example
May 8, 2024
b18bfb5
Merge pull request #303 from stackitcloud/jp/improve-lb-credentials-e…
joaopalet May 8, 2024
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
1 change: 1 addition & 0 deletions docs/stackit.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ stackit [flags]
* [stackit config](./stackit_config.md) - Provides functionality for CLI configuration options
* [stackit curl](./stackit_curl.md) - Executes an authenticated HTTP request to an endpoint
* [stackit dns](./stackit_dns.md) - Provides functionality for DNS
* [stackit load-balancer](./stackit_load-balancer.md) - Provides functionality for Load Balancer
* [stackit logme](./stackit_logme.md) - Provides functionality for LogMe
* [stackit mariadb](./stackit_mariadb.md) - Provides functionality for MariaDB
* [stackit mongodbflex](./stackit_mongodbflex.md) - Provides functionality for MongoDB Flex
Expand Down
1 change: 1 addition & 0 deletions docs/stackit_config_set.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ stackit config set [flags]
--authorization-custom-endpoint string Authorization API base URL, used in calls to this API
--dns-custom-endpoint string DNS API base URL, used in calls to this API
-h, --help Help for "stackit config set"
--load-balancer-custom-endpoint string Load Balancer API base URL, used in calls to this API
--logme-custom-endpoint string LogMe API base URL, used in calls to this API
--mariadb-custom-endpoint string MariaDB API base URL, used in calls to this API
--mongodbflex-custom-endpoint string MongoDB Flex API base URL, used in calls to this API
Expand Down
1 change: 1 addition & 0 deletions docs/stackit_config_unset.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ stackit config unset [flags]
--authorization-custom-endpoint Authorization API base URL. If unset, uses the default base URL
--dns-custom-endpoint DNS API base URL. If unset, uses the default base URL
-h, --help Help for "stackit config unset"
--load-balancer-custom-endpoint Load Balancer API base URL. If unset, uses the default base URL
--logme-custom-endpoint LogMe API base URL. If unset, uses the default base URL
--mariadb-custom-endpoint MariaDB API base URL. If unset, uses the default base URL
--mongodbflex-custom-endpoint MongoDB Flex API base URL. If unset, uses the default base URL
Expand Down
41 changes: 41 additions & 0 deletions docs/stackit_load-balancer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
## stackit load-balancer

Provides functionality for Load Balancer

### Synopsis

Provides functionality for Load Balancer.

```
stackit load-balancer [flags]
```

### Options

```
-h, --help Help for "stackit load-balancer"
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none"]
-p, --project-id string Project ID
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit](./stackit.md) - Manage STACKIT resources using the command line
* [stackit load-balancer create](./stackit_load-balancer_create.md) - Creates a Load Balancer
* [stackit load-balancer delete](./stackit_load-balancer_delete.md) - Deletes a Load Balancer
* [stackit load-balancer describe](./stackit_load-balancer_describe.md) - Shows details of a Load Balancer
* [stackit load-balancer generate-payload](./stackit_load-balancer_generate-payload.md) - Generates a payload to create/update a Load Balancer
* [stackit load-balancer list](./stackit_load-balancer_list.md) - Lists all Load Balancers
* [stackit load-balancer observability-credentials](./stackit_load-balancer_observability-credentials.md) - Provides functionality for Load Balancer observability credentials
* [stackit load-balancer quota](./stackit_load-balancer_quota.md) - Shows the configured Load Balancer quota
* [stackit load-balancer target-pool](./stackit_load-balancer_target-pool.md) - Provides functionality for target pools
* [stackit load-balancer update](./stackit_load-balancer_update.md) - Updates a Load Balancer

50 changes: 50 additions & 0 deletions docs/stackit_load-balancer_create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
## stackit load-balancer create

Creates a Load Balancer

### Synopsis

Creates a Load Balancer.
The payload can be provided as a JSON string or a file path prefixed with "@".
See https://docs.api.stackit.cloud/documentation/load-balancer/version/v1#tag/Load-Balancer/operation/APIService_CreateLoadBalancer for information regarding the payload structure.

```
stackit load-balancer create [flags]
```

### Examples

```
Create a load balancer using an API payload sourced from the file "./payload.json"
$ stackit load-balancer create --payload @./payload.json

Create a load balancer using an API payload provided as a JSON string
$ stackit load-balancer create --payload "{...}"

Generate a payload with default values, and adapt it with custom values for the different configuration options
$ stackit load-balancer generate-payload > ./payload.json
<Modify payload in file>
$ stackit load-balancer create --payload @./payload.json
```

### Options

```
-h, --help Help for "stackit load-balancer create"
--payload string Request payload (JSON). Can be a string or a file path, if prefixed with "@" (example: @./payload.json).
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none"]
-p, --project-id string Project ID
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit load-balancer](./stackit_load-balancer.md) - Provides functionality for Load Balancer

39 changes: 39 additions & 0 deletions docs/stackit_load-balancer_delete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
## stackit load-balancer delete

Deletes a Load Balancer

### Synopsis

Deletes a Load Balancer.

```
stackit load-balancer delete LOAD_BALANCER_NAME [flags]
```

### Examples

```
Deletes a load balancer with name "my-load-balancer"
$ stackit load-balancer delete my-load-balancer
```

### Options

```
-h, --help Help for "stackit load-balancer delete"
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none"]
-p, --project-id string Project ID
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit load-balancer](./stackit_load-balancer.md) - Provides functionality for Load Balancer

42 changes: 42 additions & 0 deletions docs/stackit_load-balancer_describe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
## stackit load-balancer describe

Shows details of a Load Balancer

### Synopsis

Shows details of a Load Balancer.

```
stackit load-balancer describe LOAD_BALANCER_NAME [flags]
```

### Examples

```
Get details of a load balancer with name "my-load-balancer"
$ stackit load-balancer describe my-load-balancer

Get details of a load-balancer with name "my-load-balancer" in a JSON format
$ stackit load-balancer describe my-load-balancer --output-format json
```

### Options

```
-h, --help Help for "stackit load-balancer describe"
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none"]
-p, --project-id string Project ID
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit load-balancer](./stackit_load-balancer.md) - Provides functionality for Load Balancer

48 changes: 48 additions & 0 deletions docs/stackit_load-balancer_generate-payload.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
## stackit load-balancer generate-payload

Generates a payload to create/update a Load Balancer

### Synopsis

Generates a JSON payload with values to be used as --payload input for load balancer creation or update.
See https://docs.api.stackit.cloud/documentation/load-balancer/version/v1#tag/Load-Balancer/operation/APIService_CreateLoadBalancer for information regarding the payload structure.

```
stackit load-balancer generate-payload [flags]
```

### Examples

```
Generate a payload, and adapt it with custom values for the different configuration options
$ stackit load-balancer generate-payload > ./payload.json
<Modify payload in file, if needed>
$ stackit load-balancer create --payload @./payload.json

Generate a payload with values of an existing load balancer, and adapt it with custom values for the different configuration options
$ stackit load-balancer generate-payload --lb-name xxx > ./payload.json
<Modify payload in file>
$ stackit load-balancer update xxx --payload @./payload.json
```

### Options

```
-h, --help Help for "stackit load-balancer generate-payload"
-n, --lb-name string If set, generates the payload with the current values of the given load balancer. If unset, generates the payload with empty values
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none"]
-p, --project-id string Project ID
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit load-balancer](./stackit_load-balancer.md) - Provides functionality for Load Balancer

46 changes: 46 additions & 0 deletions docs/stackit_load-balancer_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
## stackit load-balancer list

Lists all Load Balancers

### Synopsis

Lists all Load Balancers.

```
stackit load-balancer list [flags]
```

### Examples

```
List all load balancers
$ stackit load-balancer list

List all loadbalancers in JSON format
$ stackit load-balancer list --output-format json

List up to 10 load balancers
$ stackit load-balancer list --limit 10
```

### Options

```
-h, --help Help for "stackit load-balancer list"
--limit int Maximum number of entries to list
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none"]
-p, --project-id string Project ID
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit load-balancer](./stackit_load-balancer.md) - Provides functionality for Load Balancer

37 changes: 37 additions & 0 deletions docs/stackit_load-balancer_observability-credentials.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
## stackit load-balancer observability-credentials

Provides functionality for Load Balancer observability credentials

### Synopsis

Provides functionality for Load Balancer observability credentials. These commands can be used to store and update existing credentials, which are valid to be used for Load Balancer observability. This means, e.g. when using Argus, first of all these credentials must be created for that Argus instance (by using "stackit argus credentials create") and then can be managed for a Load Balancer by using the commands in this group.

```
stackit load-balancer observability-credentials [flags]
```

### Options

```
-h, --help Help for "stackit load-balancer observability-credentials"
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none"]
-p, --project-id string Project ID
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit load-balancer](./stackit_load-balancer.md) - Provides functionality for Load Balancer
* [stackit load-balancer observability-credentials add](./stackit_load-balancer_observability-credentials_add.md) - Adds observability credentials to Load Balancer
* [stackit load-balancer observability-credentials delete](./stackit_load-balancer_observability-credentials_delete.md) - Deletes observability credentials for Load Balancer
* [stackit load-balancer observability-credentials describe](./stackit_load-balancer_observability-credentials_describe.md) - Shows details of observability credentials for Load Balancer
* [stackit load-balancer observability-credentials list](./stackit_load-balancer_observability-credentials_list.md) - Lists all observability credentials for Load Balancer
* [stackit load-balancer observability-credentials update](./stackit_load-balancer_observability-credentials_update.md) - Updates observability credentials for Load Balancer

45 changes: 45 additions & 0 deletions docs/stackit_load-balancer_observability-credentials_add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
## stackit load-balancer observability-credentials add

Adds observability credentials to Load Balancer

### Synopsis

Adds existing observability credentials (username and password) to Load Balancer. The credentials can be for Argus or another monitoring tool.

```
stackit load-balancer observability-credentials add [flags]
```

### Examples

```
Add observability credentials to a load balancer with username "xxx" and display name "yyy". The password is entered using the terminal
$ stackit load-balancer observability-credentials add --username xxx --display-name yyy

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
$ stackit load-balancer observability-credentials add --username xxx --password @./password.txt --display-name yyy
```

### Options

```
--display-name string Credentials display name
-h, --help Help for "stackit load-balancer observability-credentials add"
--password string Password. Can be a string or a file path, if prefixed with "@" (example: @./password.txt).
--username string Username
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none"]
-p, --project-id string Project ID
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit load-balancer observability-credentials](./stackit_load-balancer_observability-credentials.md) - Provides functionality for Load Balancer observability credentials

Loading