|
| 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 | + |
0 commit comments