Skip to content

Commit f12b6eb

Browse files
hcsa73Henrique Santos
andauthored
Re-add postgresflex to main command (#81)
Co-authored-by: Henrique Santos <[email protected]>
1 parent 2a961df commit f12b6eb

17 files changed

+645
-0
lines changed

docs/stackit.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ stackit [flags]
3434
* [stackit mongodbflex](./stackit_mongodbflex.md) - Provides functionality for MongoDB Flex
3535
* [stackit opensearch](./stackit_opensearch.md) - Provides functionality for OpenSearch
3636
* [stackit organization](./stackit_organization.md) - Provides functionality regarding organizations
37+
* [stackit postgresflex](./stackit_postgresflex.md) - Provides functionality for PostgreSQL Flex
3738
* [stackit project](./stackit_project.md) - Provides functionality regarding projects
3839
* [stackit rabbitmq](./stackit_rabbitmq.md) - Provides functionality for RabbitMQ
3940
* [stackit redis](./stackit_redis.md) - Provides functionality for Redis

docs/stackit_postgresflex.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
## stackit postgresflex
2+
3+
Provides functionality for PostgreSQL Flex
4+
5+
### Synopsis
6+
7+
Provides functionality for PostgreSQL Flex.
8+
9+
```
10+
stackit postgresflex [flags]
11+
```
12+
13+
### Options
14+
15+
```
16+
-h, --help Help for "stackit postgresflex"
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"]
25+
-p, --project-id string Project ID
26+
```
27+
28+
### SEE ALSO
29+
30+
* [stackit](./stackit.md) - Manage STACKIT resources using the command line
31+
* [stackit postgresflex instance](./stackit_postgresflex_instance.md) - Provides functionality for PostgreSQL Flex instances
32+
* [stackit postgresflex options](./stackit_postgresflex_options.md) - Lists PostgreSQL Flex options
33+
* [stackit postgresflex user](./stackit_postgresflex_user.md) - Provides functionality for PostgreSQL Flex users
34+

docs/stackit_postgresflex_instance.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
## stackit postgresflex instance
2+
3+
Provides functionality for PostgreSQL Flex instances
4+
5+
### Synopsis
6+
7+
Provides functionality for PostgreSQL Flex instances.
8+
9+
```
10+
stackit postgresflex instance [flags]
11+
```
12+
13+
### Options
14+
15+
```
16+
-h, --help Help for "stackit postgresflex instance"
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"]
25+
-p, --project-id string Project ID
26+
```
27+
28+
### SEE ALSO
29+
30+
* [stackit postgresflex](./stackit_postgresflex.md) - Provides functionality for PostgreSQL Flex
31+
* [stackit postgresflex instance create](./stackit_postgresflex_instance_create.md) - Creates a PostgreSQL Flex instance
32+
* [stackit postgresflex instance delete](./stackit_postgresflex_instance_delete.md) - Deletes a PostgreSQL Flex instance
33+
* [stackit postgresflex instance describe](./stackit_postgresflex_instance_describe.md) - Shows details of a PostgreSQL Flex instance
34+
* [stackit postgresflex instance list](./stackit_postgresflex_instance_list.md) - Lists all PostgreSQL Flex instances
35+
* [stackit postgresflex instance update](./stackit_postgresflex_instance_update.md) - Updates a PostgreSQL Flex instance
36+
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
## stackit postgresflex instance create
2+
3+
Creates a PostgreSQL Flex instance
4+
5+
### Synopsis
6+
7+
Creates a PostgreSQL Flex instance.
8+
9+
```
10+
stackit postgresflex instance create [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Create a PostgreSQL Flex instance with name "my-instance", ACL 0.0.0.0/0 (open access) and specify flavor by CPU and RAM. Other parameters are set to default values
17+
$ stackit postgresflex instance create --name my-instance --cpu 1 --ram 4 --acl 0.0.0.0/0
18+
19+
Create a PostgreSQL Flex instance with name "my-instance", ACL 0.0.0.0/0 (open access) and specify flavor by ID. Other parameters are set to default values
20+
$ stackit postgresflex instance create --name my-instance --flavor-id xxx --acl 0.0.0.0/0
21+
22+
Create a PostgreSQL Flex instance with name "my-instance", allow access to a specific range of IP addresses, specify flavor by CPU and RAM and set storage size to 20 GB. Other parameters are set to default values
23+
$ stackit postgresflex instance create --name my-instance --cpu 1 --ram 4 --acl 1.2.3.0/24 --storage-size 20
24+
```
25+
26+
### Options
27+
28+
```
29+
--acl strings The access control list (ACL). Must contain at least one valid subnet, for instance '0.0.0.0/0' for open access (discouraged), '1.2.3.0/24 for a public IP range of an organization, '1.2.3.4/32' for a single IP range, etc. (default [])
30+
--backup-schedule string Backup schedule (default "0 0 * * *")
31+
--cpu int Number of CPUs
32+
--flavor-id string ID of the flavor
33+
-h, --help Help for "stackit postgresflex instance create"
34+
-n, --name string Instance name
35+
--ram int Amount of RAM (in GB)
36+
--storage-class string Storage class (default "premium-perf2-stackit")
37+
--storage-size int Storage size (in GB) (default 10)
38+
--type string Instance type, one of ["Replica" "Single"] (default "Replica")
39+
--version string PostgreSQL version. Defaults to the latest version available
40+
```
41+
42+
### Options inherited from parent commands
43+
44+
```
45+
-y, --assume-yes If set, skips all confirmation prompts
46+
--async If set, runs the command asynchronously
47+
-o, --output-format string Output format, one of ["json" "pretty"]
48+
-p, --project-id string Project ID
49+
```
50+
51+
### SEE ALSO
52+
53+
* [stackit postgresflex instance](./stackit_postgresflex_instance.md) - Provides functionality for PostgreSQL Flex instances
54+
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
## stackit postgresflex instance delete
2+
3+
Deletes a PostgreSQL Flex instance
4+
5+
### Synopsis
6+
7+
Deletes a PostgreSQL Flex instance.
8+
9+
```
10+
stackit postgresflex instance delete INSTANCE_ID [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Delete a PostgreSQL Flex instance with ID "xxx"
17+
$ stackit postgresflex instance delete xxx
18+
```
19+
20+
### Options
21+
22+
```
23+
-h, --help Help for "stackit postgresflex instance 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"]
32+
-p, --project-id string Project ID
33+
```
34+
35+
### SEE ALSO
36+
37+
* [stackit postgresflex instance](./stackit_postgresflex_instance.md) - Provides functionality for PostgreSQL Flex instances
38+
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
## stackit postgresflex instance describe
2+
3+
Shows details of a PostgreSQL Flex instance
4+
5+
### Synopsis
6+
7+
Shows details of a PostgreSQL Flex instance.
8+
9+
```
10+
stackit postgresflex instance describe INSTANCE_ID [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Get details of a PostgreSQL Flex instance with ID "xxx"
17+
$ stackit postgresflex instance describe xxx
18+
19+
Get details of a PostgreSQL Flex instance with ID "xxx" in a table format
20+
$ stackit postgresflex instance describe xxx --output-format pretty
21+
```
22+
23+
### Options
24+
25+
```
26+
-h, --help Help for "stackit postgresflex instance describe"
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"]
35+
-p, --project-id string Project ID
36+
```
37+
38+
### SEE ALSO
39+
40+
* [stackit postgresflex instance](./stackit_postgresflex_instance.md) - Provides functionality for PostgreSQL Flex instances
41+
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
## stackit postgresflex instance list
2+
3+
Lists all PostgreSQL Flex instances
4+
5+
### Synopsis
6+
7+
Lists all PostgreSQL Flex instances.
8+
9+
```
10+
stackit postgresflex instance list [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
List all PostgreSQL Flex instances
17+
$ stackit postgresflex instance list
18+
19+
List all PostgreSQL Flex instances in JSON format
20+
$ stackit postgresflex instance list --output-format json
21+
22+
List up to 10 PostgreSQL Flex instances
23+
$ stackit postgresflex instance list --limit 10
24+
```
25+
26+
### Options
27+
28+
```
29+
-h, --help Help for "stackit postgresflex instance list"
30+
--limit int Maximum number of entries 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"]
39+
-p, --project-id string Project ID
40+
```
41+
42+
### SEE ALSO
43+
44+
* [stackit postgresflex instance](./stackit_postgresflex_instance.md) - Provides functionality for PostgreSQL Flex instances
45+
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
## stackit postgresflex instance update
2+
3+
Updates a PostgreSQL Flex instance
4+
5+
### Synopsis
6+
7+
Updates a PostgreSQL Flex instance.
8+
9+
```
10+
stackit postgresflex instance update INSTANCE_ID [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Update the name of a PostgreSQL Flex instance
17+
$ stackit postgresflex instance update xxx --name my-new-name
18+
19+
Update the version of a PostgreSQL Flex instance
20+
$ stackit postgresflex instance update xxx --version 6.0
21+
```
22+
23+
### Options
24+
25+
```
26+
--acl strings List of IP networks in CIDR notation which are allowed to access this instance (default [])
27+
--backup-schedule string Backup schedule
28+
--cpu int Number of CPUs
29+
--flavor-id string ID of the flavor
30+
-h, --help Help for "stackit postgresflex instance update"
31+
-n, --name string Instance name
32+
--ram int Amount of RAM (in GB)
33+
--storage-class string Storage class
34+
--storage-size int Storage size (in GB)
35+
--type string Instance type, one of ["Replica" "Single"]
36+
--version string Version
37+
```
38+
39+
### Options inherited from parent commands
40+
41+
```
42+
-y, --assume-yes If set, skips all confirmation prompts
43+
--async If set, runs the command asynchronously
44+
-o, --output-format string Output format, one of ["json" "pretty"]
45+
-p, --project-id string Project ID
46+
```
47+
48+
### SEE ALSO
49+
50+
* [stackit postgresflex instance](./stackit_postgresflex_instance.md) - Provides functionality for PostgreSQL Flex instances
51+

docs/stackit_postgresflex_options.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
## stackit postgresflex options
2+
3+
Lists PostgreSQL Flex options
4+
5+
### Synopsis
6+
7+
Lists PostgreSQL Flex options (flavors, versions and storages for a given flavor)
8+
Pass one or more flags to filter what categories are shown.
9+
10+
```
11+
stackit postgresflex options [flags]
12+
```
13+
14+
### Examples
15+
16+
```
17+
List PostgreSQL Flex flavors options
18+
$ stackit postgresflex options --flavors
19+
20+
List PostgreSQL Flex available versions
21+
$ stackit postgresflex options --versions
22+
23+
List PostgreSQL Flex storage options for a given flavor. The flavor ID can be retrieved by running "$ stackit postgresflex options --flavors"
24+
$ stackit postgresflex options --storages --flavor-id <FLAVOR_ID>
25+
```
26+
27+
### Options
28+
29+
```
30+
--flavor-id string The flavor ID to show storages for. Only relevant when "--storages" is passed
31+
--flavors Lists supported flavors
32+
-h, --help Help for "stackit postgresflex options"
33+
--storages Lists supported storages for a given flavor
34+
--versions Lists supported versions
35+
```
36+
37+
### Options inherited from parent commands
38+
39+
```
40+
-y, --assume-yes If set, skips all confirmation prompts
41+
--async If set, runs the command asynchronously
42+
-o, --output-format string Output format, one of ["json" "pretty"]
43+
-p, --project-id string Project ID
44+
```
45+
46+
### SEE ALSO
47+
48+
* [stackit postgresflex](./stackit_postgresflex.md) - Provides functionality for PostgreSQL Flex
49+

0 commit comments

Comments
 (0)