hotfix: updated cli retention flag, resolves #793
parent
9a3753acba
commit
0cb63c525d
|
@ -31,14 +31,14 @@ to create a bucket.
|
|||
Use the [`influx bucket create` command](/v2.0/reference/cli/influx/bucket/create)
|
||||
to create a new bucket. A bucket requires the following:
|
||||
|
||||
- A name
|
||||
- The name or ID of the organization the bucket belongs to
|
||||
- A retention period in nanoseconds
|
||||
- bucket name
|
||||
- organization name or ID
|
||||
- retention period duration (`ns`, `us`, `ms`, `s`, or `h`)
|
||||
|
||||
```sh
|
||||
# Syntax
|
||||
influx bucket create -n <bucket-name> -o <org-name> -r <retention period in nanoseconds>
|
||||
influx bucket create -n <bucket-name> -o <org-name> -r <retention-period-duration>
|
||||
|
||||
# Example
|
||||
influx bucket create -n my-bucket -o my-org -r 604800000000000
|
||||
influx bucket create -n my-bucket -o my-org -r 72h
|
||||
```
|
||||
|
|
|
@ -16,12 +16,12 @@ influx bucket create [flags]
|
|||
```
|
||||
|
||||
## Flags
|
||||
| Flag | Description | Input type | {{< cli/mapped >}} |
|
||||
|:---- |:----------- |:----------: |:------------------ |
|
||||
| `-h`, `--help` | Help for the `create` command | | |
|
||||
| `-n`, `--name` | Bucket name | string | `INFLUX_BUCKET_NAME` |
|
||||
| `-o`, `--org` | Organization name | string | `INFLUX_ORG` |
|
||||
| `--org-id` | Organization ID | string | `INFLUX_ORG_ID` |
|
||||
| `-r`, `--retention` | Duration in nanoseconds bucket will retain data | duration | |
|
||||
| Flag | Description | Input type | {{< cli/mapped >}} |
|
||||
|:---- |:----------- |:----------: |:------------------ |
|
||||
| `-h`, `--help` | Help for the `create` command | | |
|
||||
| `-n`, `--name` | Bucket name | string | `INFLUX_BUCKET_NAME` |
|
||||
| `-o`, `--org` | Organization name | string | `INFLUX_ORG` |
|
||||
| `--org-id` | Organization ID | string | `INFLUX_ORG_ID` |
|
||||
| `-r`, `--retention` | Duration bucket will retain data | duration | |
|
||||
|
||||
{{% cli/influx-global-flags %}}
|
||||
|
|
Loading…
Reference in New Issue