You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/r2/api/tokens.mdx
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,14 +5,16 @@ sidebar:
5
5
order: 2
6
6
---
7
7
8
+
import { DashButton } from"~/components";
9
+
8
10
You can generate an API token to serve as the Access Key for usage with existing S3-compatible SDKs or XML APIs.
9
11
10
12
You must purchase R2 before you can generate an API token.
11
13
12
14
To create an API token:
13
15
14
-
1.In **Account Home**, select **R2**.
15
-
2.Under the **API** dropdown, select [**Manage API tokens**](https://dash.cloudflare.com/?to=/:account/r2/api-tokens).
16
+
1.<DashButtonurl="/?to=/:account/r2/overview" />
17
+
2.Select **Manage API tokens**.
16
18
3. Choose to create either:
17
19
-**Create Account API token** - These tokens are tied to the Cloudflare account itself and can be used by any authorized system or user. Only users with the Super Administrator role can view or create them. These tokens remain valid until manually revoked.
18
20
-**Create User API token** - These tokens are tied to your individual Cloudflare user. They inherit your personal permissions and become inactive if your user is removed from the account.
When you run this command, take note of the "Warehouse" and "Catalog URI". You will need these later.
79
+
When you run this command, take note of the "Warehouse" and "Catalog URI". You will need these later.
79
80
80
81
</TabItem>
81
82
<TabItemlabel='Dashboard'>
82
83
83
84
<Steps>
84
-
1.From the Cloudflare dashboard, select **R2 Object Storage** from the sidebar.
85
+
1.<DashButtonurl="/?to=/:account/r2/overview" />
85
86
2. Select the bucket: r2-data-catalog-tutorial.
86
87
3. Switch to the **Settings** tab, scroll down to **R2 Data Catalog**, and select **Enable**.
87
88
4. Once enabled, note the **Catalog URI** and **Warehouse name**.
@@ -94,7 +95,7 @@ When you run this command, take note of the "Warehouse" and "Catalog URI". You w
94
95
Iceberg clients (including [PyIceberg](https://py.iceberg.apache.org/)) must authenticate to the catalog with a [Cloudflare API token](/fundamentals/api/get-started/create-token/) that has both R2 and catalog permissions.
95
96
96
97
<Steps>
97
-
1.From the Cloudflare dashboard, select **R2 Object Storage** from the sidebar.
98
+
1.<DashButtonurl="/?to=/:account/r2/overview" />
98
99
99
100
2. Expand the **API** dropdown and select **Manage API tokens**.
0 commit comments