fix(ent3): Remove 'enterprise' from /api/v3/configure/token/admin endpoint

pull/6082/head
Jason Stirnaman 2025-05-20 11:10:38 -05:00
parent e90e513f47
commit b79269b11a
3 changed files with 2 additions and 31 deletions

View File

@ -16,7 +16,7 @@ list_code_example: |
``` ```
#### HTTP API #### HTTP API
```bash ```bash
curl -X POST "http://{{< influxdb/host >}}/api/v3/enterprise/configure/token/admin" \ curl -X POST "http://{{< influxdb/host >}}/api/v3/configure/token/admin" \
--header 'Accept: application/json' \ --header 'Accept: application/json' \
--header 'Content-Type: application/json' --header 'Content-Type: application/json'
``` ```

View File

@ -35,7 +35,6 @@ across sessions, assign the token string to the `INFLUXDB3_AUTH_TOKEN` environme
{{% tab-content %}} {{% tab-content %}}
Use the following endpoint to create an admin token: Use the following endpoint to create an admin token:
{{% show-in "core" %}}
{{% api-endpoint method="POST" endpoint="/api/v3/configure/token/admin" api-ref="/influxdb3/version/api/v3/#operation/PostCreateAdminToken" %}} {{% api-endpoint method="POST" endpoint="/api/v3/configure/token/admin" api-ref="/influxdb3/version/api/v3/#operation/PostCreateAdminToken" %}}
```bash ```bash
@ -43,15 +42,5 @@ curl -X POST "http://{{< influxdb/host >}}/api/v3/configure/token/admin" \
--header 'Accept: application/json' \ --header 'Accept: application/json' \
--header 'Content-Type: application/json' --header 'Content-Type: application/json'
``` ```
{{% /show-in %}}
{{% show-in "enterprise" %}}
{{% api-endpoint method="POST" endpoint="/api/v3/enterprise/configure/token/admin" api-ref="/influxdb3/version/api/v3/#operation/PostCreateAdminToken" %}}
```bash
curl -X POST "http://{{< influxdb/host >}}/api/v3/{{< product-key >}}/configure/token/admin" \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'
```
{{% /show-in %}}
{{% /tab-content %}} {{% /tab-content %}}
{{< /tabs-wrapper >}} {{< /tabs-wrapper >}}

View File

@ -56,36 +56,18 @@ The output contains the new token string and InfluxDB deactivates the previous t
<!----------------------------BEGIN HTTP API-----------------------------------> <!----------------------------BEGIN HTTP API----------------------------------->
Use the following HTTP API endpoint: Use the following HTTP API endpoint:
{{% show-in "core" %}}
{{% api-endpoint method="POST" endpoint="/api/v3/configure/token/admin/regenerate" api-ref="/influxdb3/version/api/v3/configure/token/admin/regenerate" %}} {{% api-endpoint method="POST" endpoint="/api/v3/configure/token/admin/regenerate" api-ref="/influxdb3/version/api/v3/configure/token/admin/regenerate" %}}
{{% /show-in %}}
{{% show-in "enterprise" %}}
{{% api-endpoint method="POST" endpoint="/api/v3/enterprise/configure/token/admin/regenerate" api-ref="/influxdb3/version/api/v3/enterprise/configure/token/admin" %}}
{{% /show-in %}}
In your request, send an `Authorization` header with your current admin token string In your request, send an `Authorization` header with your current admin token string
--for example: --for example:
{{% show-in "core" %}}
{{% code-placeholders "ADMIN_TOKEN" %}} {{% code-placeholders "ADMIN_TOKEN" %}}
```bash ```bash
curl -X POST "http://{{< influxdb/host >}}/api/v3/configure/token/admin" \ curl -X POST "http://{{< influxdb/host >}}/api/v3/configure/token/admin/regenerate" \
--header "Authorization: Bearer ADMIN_TOKEN" \ --header "Authorization: Bearer ADMIN_TOKEN" \
--header "Accept: application/json" --header "Accept: application/json"
``` ```
{{% /code-placeholders %}} {{% /code-placeholders %}}
{{% /show-in %}}
{{% show-in "enterprise" %}}
{{% code-placeholders "ADMIN_TOKEN" %}}
```bash
curl -X POST "http://{{< influxdb/host >}}/api/v3/enterprise/configure/token/admin" \
--header "Authorization: Bearer ADMIN_TOKEN" \
--header "Accept: application/json"
```
{{% /code-placeholders %}}
{{% /show-in %}}
In your command, replace {{% code-placeholder-key %}}`ADMIN_TOKEN`{{% /code-placeholder-key %}} with the current token string. In your command, replace {{% code-placeholder-key %}}`ADMIN_TOKEN`{{% /code-placeholder-key %}} with the current token string.