|
| 1 | +## stackit beta logs access-token create |
| 2 | + |
| 3 | +Creates a log access token |
| 4 | + |
| 5 | +### Synopsis |
| 6 | + |
| 7 | +Creates a log access token. |
| 8 | + |
| 9 | +``` |
| 10 | +stackit beta logs access-token create [flags] |
| 11 | +``` |
| 12 | + |
| 13 | +### Examples |
| 14 | + |
| 15 | +``` |
| 16 | + Create a access token with the display name "access-token-1" for the instance "xxx" with read and write permissions |
| 17 | + $ stackit logs access-token create --display-name access-token-1 --instance-id xxx --permissions read,write |
| 18 | +
|
| 19 | + Create a write only access token with a description |
| 20 | + $ stackit logs access-token create --display-name access-token-2 --instance-id xxx --permissions write --description "Access token for service" |
| 21 | +
|
| 22 | + Create a read only access token which expires in 30 days |
| 23 | + $ stackit logs access-token create --display-name access-token-3 --instance-id xxx --permissions read --lifetime 30 |
| 24 | +``` |
| 25 | + |
| 26 | +### Options |
| 27 | + |
| 28 | +``` |
| 29 | + --description string Description of the access token |
| 30 | + --display-name string Display name for the access token |
| 31 | + -h, --help Help for "stackit beta logs access-token create" |
| 32 | + --instance-id string ID of the logs instance |
| 33 | + --lifetime int Lifetime of the access token in days [1 - 180] |
| 34 | + --permissions strings Permissions of the access token ["read" "write"] |
| 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" "none" "yaml"] |
| 43 | + -p, --project-id string Project ID |
| 44 | + --region string Target region for region-specific requests |
| 45 | + --verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info") |
| 46 | +``` |
| 47 | + |
| 48 | +### SEE ALSO |
| 49 | + |
| 50 | +* [stackit beta logs access-token](./stackit_beta_logs_access-token.md) - Provides functionality for Logs access-tokens |
| 51 | + |
0 commit comments