Skip to content

Commit

Permalink
Release influxctl v2.6.0 (influxdata#5370)
Browse files Browse the repository at this point in the history
* Release influxctl v2.6.0

* Update change log

* Apply suggestions from code review

* Add 'influxctl management' commands (influxdata#5364) (influxdata#5371)

* adds influxctl management commands to cloud-dedicated

* updated verbiage for revoking a management token

* Apply suggestions from code review



* port influxctl management commands to clustered, update format verbiage

---------

Co-authored-by: Jason Stirnaman <[email protected]>

---------

Co-authored-by: Scott Anderson <[email protected]>
Co-authored-by: Jason Stirnaman <[email protected]>
  • Loading branch information
3 people authored Mar 18, 2024
1 parent 30f9fa0 commit 96515a9
Show file tree
Hide file tree
Showing 31 changed files with 625 additions and 71 deletions.
21 changes: 11 additions & 10 deletions content/influxdb/cloud-dedicated/reference/cli/influxctl/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,17 @@ influxctl [flags] [command]

## Commands

| Command | Description |
| :---------------------------------------------------------------------- | :------------------------------------- |
| [cluster](/influxdb/cloud-dedicated/reference/cli/influxctl/cluster/) | List InfluxDB v3 cluster information |
| [database](/influxdb/cloud-dedicated/reference/cli/influxctl/database/) | Manage InfluxDB v3 databases |
| [help](/influxdb/cloud-dedicated/reference/cli/influxctl/help/) | Output `influxctl` help information |
| [query](/influxdb/cloud-dedicated/reference/cli/influxctl/query/) | Query data from InfluxDB v3 |
| [token](/influxdb/cloud-dedicated/reference/cli/influxctl/token/) | Manage InfluxDB v3 database tokens |
| [user](/influxdb/cloud-dedicated/reference/cli/influxctl/user/) | Manage InfluxDB v3 cluster users |
| [version](/influxdb/cloud-dedicated/reference/cli/influxctl/version/) | Output the current `influxctl` version |
| [write](/influxdb/cloud-dedicated/reference/cli/influxctl/write/) | Write line protocol to InfluxDB v3 |
| Command | Description |
| :-------------------------------------------------------------------------- | :------------------------------------- |
| [cluster](/influxdb/cloud-dedicated/reference/cli/influxctl/cluster/) | List InfluxDB v3 cluster information |
| [database](/influxdb/cloud-dedicated/reference/cli/influxctl/database/) | Manage InfluxDB v3 databases |
| [help](/influxdb/cloud-dedicated/reference/cli/influxctl/help/) | Output `influxctl` help information |
| [management](/influxdb/cloud-dedicated/reference/cli/influxctl/management/) | Manage InfluxDB v3 management tokens |
| [query](/influxdb/cloud-dedicated/reference/cli/influxctl/query/) | Query data from InfluxDB v3 |
| [token](/influxdb/cloud-dedicated/reference/cli/influxctl/token/) | Manage InfluxDB v3 database tokens |
| [user](/influxdb/cloud-dedicated/reference/cli/influxctl/user/) | Manage InfluxDB v3 cluster users |
| [version](/influxdb/cloud-dedicated/reference/cli/influxctl/version/) | Output the current `influxctl` version |
| [write](/influxdb/cloud-dedicated/reference/cli/influxctl/write/) | Write line protocol to InfluxDB v3 |

## Global flags

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ weight: 301
The `influxctl cluster get` command returns information about an InfluxDB
Cloud Dedicated cluster.

The `--format` option lets you print the output in other formats.
By default, the 'table' format is used, but the 'json' format is
available for programmatic parsing by other tooling.
The `--format` flag lets you print the output in other formats.
The `json` format is available for programmatic parsing by other tooling.
Default: `table`.

## Usage

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ weight: 301
The `influxctl cluster list` command returns information about all InfluxDB
Cloud Dedicated clusters associated with your account ID.

The `--format` option lets you print the output in other formats.
By default, the 'table' format is used, but the 'json' format is
available for programmatic parsing by other tooling.
The `--format` flag lets you print the output in other formats.
The `json` format is available for programmatic parsing by other tooling.
Default: `table`.

## Usage

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ weight: 301
The `influxctl database list` command lists all databases in an InfluxDB Cloud
Dedicated cluster.

The `--format` option lets you print the output in other formats.
By default, the 'table' format is used, but the 'json' format is
available for programmatic parsing by other tooling.
The `--format` flag lets you print the output in other formats.
The `json` format is available for programmatic parsing by other tooling.
Default: `table`.

## Usage

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
title: influxctl management
description: >
The `influxctl management` command and its subcommands manage management
tokens in an InfluxDB Cloud Dedicated cluster.
menu:
influxdb_cloud_dedicated:
parent: influxctl
weight: 201
---

The `influxctl management` command and its subcommands manage management tokens
in an {{< product-name omit=" Clustered" >}} cluster.

Management tokens allow the user to perform administrative tasks on the
InfluxDB instance. This includes creating and deleting databases, managing
users, and other administrative tasks.

Management tokens do not provide access to databases or data in databases.
Only _database tokens_ with "read" or "write" permissions can access data in
databases.

## Usage

```sh
influxctl management [subcommand] [flags]
```

## Subcommands

| Subcommand | Description |
| :----------------------------------------------------------------------------- | :------------------------------ |
| [create](/influxdb/cloud-dedicated/reference/cli/influxctl/management/create/) | Create a management token |
| [list](/influxdb/cloud-dedicated/reference/cli/influxctl/management/list/) | List all management tokens |
| [revoke](/influxdb/cloud-dedicated/reference/cli/influxctl/management/revoke/) | Revoke a management token by ID |
| help, h | Output command help |

## Flags

| Flag | | Description |
| :--- | :------- | :------------------ |
| `-h` | `--help` | Output command help |
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
---
title: influxctl management create
description: >
The `influxctl management create` command creates a management token used to
perform administrative tasks in an InfluxDB Cloud Dedicated cluster.
menu:
influxdb_cloud_dedicated:
parent: influxctl management
weight: 301
---

The `influxctl management create` command creates a management token to be used
with an {{< product-name omit=" Clustered" >}} cluster.
Management tokens authorize a user to perform administrative tasks on the
InfluxDB instance such as creating and deleting databases, managing users, and
other administrative tasks.

{{% note %}}
Management tokens do not provide access to databases or data in databases.
Only _database tokens_ with "read" or "write" permissions can access data in
databases.
{{% /note %}}

The optional `--expires-at` flag defines the token expiration date and time.
Provide an RFC3999 date string--for example: `{{< datetime/current-date offset=1 >}}`.
If not set, the token does not expire until revoked.

The `--format` flag lets you print the output in other formats.
The `json` format is available for programmatic parsing by other tooling.
Default: `table`.

{{% note %}}
#### Store secure tokens in a secret store

Management token strings are returned _only_ on token creation.
We recommend storing management tokens in a **secure secret store**.
{{% /note %}}

## Usage

```sh
influxctl management create [flags]
```

## Flags

| Flag | | Description |
| :--- | :-------------- | :-------------------------------------------- |
| | `--description` | Management token description |
| | `--expires-at` | Token expiration date |
| | `--format` | Output format (`table` _(default)_ or `json`) |
| `-h` | `--help` | Output command help |

{{% caption %}}
_Also see [`influxctl` global flags](/influxdb/cloud-dedicated/reference/cli/influxctl/#global-flags)._
{{% /caption %}}

## Examples

- [Create a management token with no expiration](#create-a-management-token-with-no-expiration)
- [Create a management token with an expiration and description](#create-a-management-token-with-an-expiration-and-description)

### Create a management token with no expiration

```sh
influxctl management create
```

### Create a management token with an expiration and description

{{% code-placeholders "RFC3339_EXPIRATION|TOKEN_DESCRIPTION" %}}
```sh
influxctl management create \
--expire-at RFC3339_EXPIRATION \
--description TOKEN_DESCRIPTION
```
{{% /code-placeholders %}}

Replace the following:

- {{% code-placeholder-key %}}`RFC3339_EXPIRATION`{{% /code-placeholder-key %}}:
An RFC3339 date string to expire the token at--for example:
`{{< datetime/current-date offset=1 >}}`.
- {{% code-placeholder-key %}}`TOKEN_DESCRIPTION`{{% /code-placeholder-key %}}:
Management token description.
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
title: influxctl management list
description: >
The `influxctl management list` command lists all management tokens used to
perform administrative tasks in an InfluxDB Cloud Dedicated cluster.
menu:
influxdb_cloud_dedicated:
parent: influxctl management
weight: 301
---

The `influxctl management list` command lists all management tokens used to
perform administrative tasks in an {{< product-name omit=" Clustered" >}} cluster.
It returns the token description and other relevant information.

{{% note %}}
#### Management token strings are not retrievable

The actual management token string is not printed and is only returned when
creating the token.

#### Revoked tokens are included in output

Revoked tokens still appear when listing management tokens, but they are no
longer valid for any operations.
{{% /note %}}

The `--format` flag lets you print the output in other formats.
The `json` format is available for programmatic parsing by other tooling.
Default: `table`.

## Usage

```sh
influxctl management list [--format=table|json]
```

## Flags

| Flag | | Description |
| :--- | :--------- | :-------------------------------------------- |
| | `--format` | Output format (`table` _(default)_ or `json`) |
| `-h` | `--help` | Output command help |

{{% caption %}}
_Also see [`influxctl` global flags](/influxdb/cloud-dedicated/reference/cli/influxctl/#global-flags)._
{{% /caption %}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
---
title: influxctl management revoke
description: >
The `influxctl management revoke` command revokes management token access
to your InfluxDB Cloud Dedicated cluster.
menu:
influxdb_cloud_dedicated:
parent: influxctl management
weight: 301
---

The `influxctl management revoke` command revokes management token access
to your {{< product-name omit=" Clustered" >}} cluster.
**This operation cannot be undone**.

{{% note %}}
#### Revoked tokens are included when listing tokens

Revoked tokens still appear when
[listing management tokens](/influxdb/cloud-dedicated/reference/cli/influxctl/management/list/),
but they are no longer valid for any operations.
{{% /note %}}

## Usage

```sh
influxctl management revoke [flags] <TOKEN_ID>[ ... TOKEN_ID_N]
```

## Arguments

| Argument | Description |
| :----------- | :--------------------------------------------------------- |
| **TOKEN_ID** | Token ID(s) to revoke access from (space-delimit multiple IDs) |

## Flags

| Flag | | Description |
| :--- | :-------- | :--------------------------------------- |
| | `--force` | Do not prompt for confirmation to revoke |
| `-h` | `--help` | Output command help |

{{% caption %}}
_Also see [`influxctl` global flags](/influxdb/cloud-dedicated/reference/cli/influxctl/#global-flags)._
{{% /caption %}}

## Examples

- [Revoke access from a management token](#revoke-access-from-a-management-token)
- [Revoke access from multiple management tokens](#revoke-access-from-multiple-management-tokens)
- [Revoke access from a token and skip confirmation](#revoke-access-from-a-token-and-skip-confirmation)

In the examples below, replace the following:

- {{% code-placeholder-key %}}`TOKEN_ID*`{{% /code-placeholder-key %}}:
Token ID to revoke access from.

{{% code-placeholders "TOKEN_ID(_[1-2])?" %}}

### Revoke access from a management token

```sh
influxctl management revoke TOKEN_ID
```

### Revoke access from multiple management tokens

```sh
influxctl management revoke TOKEN_ID_1 TOKEN_ID_2
```

### Revoke access from a token and skip confirmation

```sh
influxctl management revoke --force TOKEN_ID
```

{{% /code-placeholder-key %}}
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ Command line flags override settings in the connection profile.

### Output format

The `--format` option lets you print the output in other formats.
Default is 'table' format, but the 'json' format is
available for programmatic parsing by other tooling.
The `--format` flag lets you print the output in other formats.
The `json` format is available for programmatic parsing by other tooling.
Default: `table`.

## Usage

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ weight: 201
---

The `influxctl token` command and its subcommands manage database tokens in an
InfluxDB Cloud Dedicated cluster.
{{< product-name omit=" Clustered" >}} cluster.

## Usage

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ The `influxctl token create` command creates a database token with specified
permissions to resources in an InfluxDB Cloud Dedicated cluster and outputs
the token string.

The `--format` option lets you print the output in other formats.
By default, the 'table' format is used, but the 'json' format is
available for programmatic parsing by other tooling.
The `--format` flag lets you print the output in other formats.
The `json` format is available for programmatic parsing by other tooling.
Default: `table`.

{{% note %}}
#### Store secure tokens in a secret store
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ weight: 301
The `influxctl token get` command returns information about a database token
in an InfluxDB Cloud Dedicated cluster.

The `--format` option lets you print the output in other formats.
By default, the 'table' format is used, but the 'json' format is
available for programmatic parsing by other tooling.
The `--format` flag lets you print the output in other formats.
The `json` format is available for programmatic parsing by other tooling.
Default: `table`.

## Usage

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ weight: 301
The `influxctl token list` command lists all database tokens in an InfluxDB Cloud
Dedicated cluster.

The `--format` option lets you print the output in other formats.
By default, the 'table' format is used, but the 'json' format is
available for programmatic parsing by other tooling.
The `--format` flag lets you print the output in other formats.
The `json` format is available for programmatic parsing by other tooling.
Default: `table`.

## Usage

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ weight: 301
The `influxctl user list` command lists all users associated with your InfluxDB
Cloud Dedicated account ID.

The `--format` option lets you print the output in other formats.
By default, the 'table' format is used, but the 'json' format is
available for programmatic parsing by other tooling.
The `--format` flag lets you print the output in other formats.
The `json` format is available for programmatic parsing by other tooling.
Default: `table`.

## Usage

Expand Down
Loading

0 comments on commit 96515a9

Please sign in to comment.