Back to Influxdb

Update

content/shared/influxdb-v2/reference/cli/influx/v1/dbrp/update.md

latest2.6 KB
Original Source

The influx v1 dbrp update command updates a DBRP mapping in the InfluxDB 1.x compatibility API.

Usage

influx v1 dbrp update [flags]

Flags

FlagDescriptionInput type{{< cli/mapped >}}
-c--active-configConfig name to use for commandstringINFLUX_ACTIVE_CONFIG
--configs-pathPath to the influx CLI configurations (default: ~/.influxdbv2/configs)stringINFLUX_CONFIGS_PATH
--defaultSet DBRP mapping's retention policy as default
-h--helpHelp for the update command
--hide-headersHide the table headers (default: false)INFLUX_HIDE_HEADERS
--hostHTTP address of InfluxDBstringINFLUX_HOST
--id({{< req >}}) DBRP IDstring
--jsonOutput data as JSON (default: false)INFLUX_OUTPUT_JSON
-o--orgOrganization name (mutually exclusive with --org-id)stringINFLUX_ORG
--org-idOrganization ID (mutually exclusive with --org)stringINFLUX_ORG_ID
-r--rpInfluxDB v1 retention policy to map from
--skip-verifySkip TLS certificate verificationINFLUX_SKIP_VERIFY
-t--tokenAPI tokenstringINFLUX_TOKEN

Examples

{{< cli/influx-creds-note >}}

Set a DBRP mapping as default
sh
influx v1 dbrp update \
  --id 12ab34cd56ef78 \
  --default
Update the retention policy of a DBRP mapping
sh
influx v1 dbrp update \
  --id 12ab34cd56ef78 \
  --rp new-rp-name