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)
|
Use the [`influx bucket create` command](/v2.0/reference/cli/influx/bucket/create)
|
||||||
to create a new bucket. A bucket requires the following:
|
to create a new bucket. A bucket requires the following:
|
||||||
|
|
||||||
- A name
|
- bucket name
|
||||||
- The name or ID of the organization the bucket belongs to
|
- organization name or ID
|
||||||
- A retention period in nanoseconds
|
- retention period duration (`ns`, `us`, `ms`, `s`, or `h`)
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# Syntax
|
# 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
|
# Example
|
||||||
influx bucket create -n my-bucket -o my-org -r 604800000000000
|
influx bucket create -n my-bucket -o my-org -r 72h
|
||||||
```
|
```
|
||||||
|
|
|
@ -22,6 +22,6 @@ influx bucket create [flags]
|
||||||
| `-n`, `--name` | Bucket name | string | `INFLUX_BUCKET_NAME` |
|
| `-n`, `--name` | Bucket name | string | `INFLUX_BUCKET_NAME` |
|
||||||
| `-o`, `--org` | Organization name | string | `INFLUX_ORG` |
|
| `-o`, `--org` | Organization name | string | `INFLUX_ORG` |
|
||||||
| `--org-id` | Organization ID | string | `INFLUX_ORG_ID` |
|
| `--org-id` | Organization ID | string | `INFLUX_ORG_ID` |
|
||||||
| `-r`, `--retention` | Duration in nanoseconds bucket will retain data | duration | |
|
| `-r`, `--retention` | Duration bucket will retain data | duration | |
|
||||||
|
|
||||||
{{% cli/influx-global-flags %}}
|
{{% cli/influx-global-flags %}}
|
||||||
|
|
Loading…
Reference in New Issue