Skip to content

Influx export all: misleading message when using token with limited rights #22247

Open
@tomklapka

Description

@tomklapka

Steps to reproduce:

  1. Create Dashboard, Variables, Telegraf config etc.
  2. Using Influx cmd tool try to export only selected items based on assigned label/tag as documented: https://docs.influxdata.com/influxdb/v2.0/reference/cli/influx/export/all/#export-all-resources-associated-with-label-foo
    It fails with: Error: Kind=Package field=resources reason="at least 1 kind must be provided".
  3. Using Influx cmd tool try to export only selected items based on assigned label/tag and with specific Kind as documented: https://docs.influxdata.com/influxdb/v2.0/reference/cli/influx/export/all/#export-all-bucket-resources-and-with-label-foo
    It fails with: Error: Kind=Package field=resources reason="at least 1 kind must be provided".

Expected behavior:
a message informing about Insufficient rights

Actual behavior:
Error: Kind=Package field=resources reason="at least 1 kind must be provided".

Environment info:

Influx CLI 2.0.8 (git: e91d418) build_date: 2021-08-13T18:22:30Z

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions