|
| 1 | +## stackit postgresflex user create |
| 2 | + |
| 3 | +Creates a PostgreSQL Flex user |
| 4 | + |
| 5 | +### Synopsis |
| 6 | + |
| 7 | +Creates a PostgreSQL Flex user. |
| 8 | +The password is only visible upon creation and cannot be retrieved later. |
| 9 | +Alternatively, you can reset the password and access the new one by running: |
| 10 | + $ stackit postgresflex user reset-password USER_ID --instance-id INSTANCE_ID |
| 11 | + |
| 12 | +``` |
| 13 | +stackit postgresflex user create [flags] |
| 14 | +``` |
| 15 | + |
| 16 | +### Examples |
| 17 | + |
| 18 | +``` |
| 19 | + Create a PostgreSQL Flex user for instance with ID "xxx" and specify the username |
| 20 | + $ stackit postgresflex user create --instance-id xxx --username johndoe --roles read |
| 21 | +
|
| 22 | + Create a PostgreSQL Flex user for instance with ID "xxx" with an automatically generated username |
| 23 | + $ stackit postgresflex user create --instance-id xxx --roles read |
| 24 | +``` |
| 25 | + |
| 26 | +### Options |
| 27 | + |
| 28 | +``` |
| 29 | + -h, --help Help for "stackit postgresflex user create" |
| 30 | + --instance-id string ID of the instance |
| 31 | + --roles strings Roles of the user, possible values are ["read" "readWrite"] (default [read]) |
| 32 | + --username string Username of the user. If not specified, a random username will be assigned |
| 33 | +``` |
| 34 | + |
| 35 | +### Options inherited from parent commands |
| 36 | + |
| 37 | +``` |
| 38 | + -y, --assume-yes If set, skips all confirmation prompts |
| 39 | + --async If set, runs the command asynchronously |
| 40 | + -o, --output-format string Output format, one of ["json" "pretty"] |
| 41 | + -p, --project-id string Project ID |
| 42 | +``` |
| 43 | + |
| 44 | +### SEE ALSO |
| 45 | + |
| 46 | +* [stackit postgresflex user](./stackit_postgresflex_user.md) - Provides functionality for PostgreSQL Flex users |
| 47 | + |
0 commit comments