Skip to content

Commit 749c8a4

Browse files
authored
Merge pull request #6082 from influxdata/fix-cleanup-enterprise-admin-token-endpoint
fix(ent3): Remove 'enterprise' from /api/v3/configure/token/admin end…
2 parents ccd9ab1 + b66e602 commit 749c8a4

File tree

3 files changed

+2
-31
lines changed

3 files changed

+2
-31
lines changed

content/influxdb3/enterprise/admin/tokens/admin/create.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ list_code_example: |
1616
```
1717
#### HTTP API
1818
```bash
19-
curl -X POST "http://{{< influxdb/host >}}/api/v3/enterprise/configure/token/admin" \
19+
curl -X POST "http://{{< influxdb/host >}}/api/v3/configure/token/admin" \
2020
--header 'Accept: application/json' \
2121
--header 'Content-Type: application/json'
2222
```

content/shared/influxdb3-admin/tokens/admin/create.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,12 @@ across sessions, assign the token string to the `INFLUXDB3_AUTH_TOKEN` environme
3535
{{% tab-content %}}
3636
Use the following endpoint to create an admin token:
3737

38-
{{% show-in "core" %}}
3938
{{% api-endpoint method="POST" endpoint="/api/v3/configure/token/admin" api-ref="/influxdb3/version/api/v3/#operation/PostCreateAdminToken" %}}
4039

4140
```bash
4241
curl -X POST "http://{{< influxdb/host >}}/api/v3/configure/token/admin" \
4342
--header 'Accept: application/json' \
4443
--header 'Content-Type: application/json'
4544
```
46-
{{% /show-in %}}
47-
{{% show-in "enterprise" %}}
48-
{{% api-endpoint method="POST" endpoint="/api/v3/enterprise/configure/token/admin" api-ref="/influxdb3/version/api/v3/#operation/PostCreateAdminToken" %}}
49-
50-
```bash
51-
curl -X POST "http://{{< influxdb/host >}}/api/v3/{{< product-key >}}/configure/token/admin" \
52-
--header 'Accept: application/json' \
53-
--header 'Content-Type: application/json'
54-
```
55-
{{% /show-in %}}
5645
{{% /tab-content %}}
5746
{{< /tabs-wrapper >}}

content/shared/influxdb3-admin/tokens/admin/regenerate.md

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -56,36 +56,18 @@ The output contains the new token string and InfluxDB deactivates the previous t
5656
<!----------------------------BEGIN HTTP API----------------------------------->
5757
Use the following HTTP API endpoint:
5858

59-
{{% show-in "core" %}}
6059
{{% api-endpoint method="POST" endpoint="/api/v3/configure/token/admin/regenerate" api-ref="/influxdb3/version/api/v3/configure/token/admin/regenerate" %}}
61-
{{% /show-in %}}
62-
63-
{{% show-in "enterprise" %}}
64-
{{% api-endpoint method="POST" endpoint="/api/v3/enterprise/configure/token/admin/regenerate" api-ref="/influxdb3/version/api/v3/enterprise/configure/token/admin" %}}
65-
{{% /show-in %}}
6660

6761
In your request, send an `Authorization` header with your current admin token string
6862
--for example:
6963

70-
{{% show-in "core" %}}
71-
{{% code-placeholders "ADMIN_TOKEN" %}}
72-
```bash
73-
curl -X POST "http://{{< influxdb/host >}}/api/v3/configure/token/admin" \
74-
--header "Authorization: Bearer ADMIN_TOKEN" \
75-
--header "Accept: application/json"
76-
```
77-
{{% /code-placeholders %}}
78-
{{% /show-in %}}
79-
80-
{{% show-in "enterprise" %}}
8164
{{% code-placeholders "ADMIN_TOKEN" %}}
8265
```bash
83-
curl -X POST "http://{{< influxdb/host >}}/api/v3/enterprise/configure/token/admin" \
66+
curl -X POST "http://{{< influxdb/host >}}/api/v3/configure/token/admin/regenerate" \
8467
--header "Authorization: Bearer ADMIN_TOKEN" \
8568
--header "Accept: application/json"
8669
```
8770
{{% /code-placeholders %}}
88-
{{% /show-in %}}
8971

9072
In your command, replace {{% code-placeholder-key %}}`ADMIN_TOKEN`{{% /code-placeholder-key %}} with the current token string.
9173

0 commit comments

Comments
 (0)