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
* Clarify server variable usage for data plane API
* Use overlays to more clearly describe authentication flows
* Apply suggestions from automated review
* Visual indicator of variable
* 'Sign up for emails' is no longer relevant after API GA
* Apply suggestions from code review
Co-authored-by: Michele Cyran <[email protected]>
* Merge commits from review in origin branch
* Unwanted file
* Fix links
* Fix links to other APIs
* Minor edits
* Minor edits
* Accept suggestions from automated review
---------
Co-authored-by: Michele Cyran <[email protected]>
Copy file name to clipboardExpand all lines: cloud-controlplane/x-topics/quickstart.md
+41-22Lines changed: 41 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
-
The following steps describe how to authenticate with the Control API and create a new Redpanda cluster. For more information on the Control Plane API, see the Cloud API Overview.
1
+
The following steps describe how to authenticate with the Control Plane API and create a new Redpanda cluster. For more information on the Control Plane API, see the [Cloud API Overview](#topic-cloud-api-overview).
2
2
3
3
> **Note:** Redpanda Cloud uses a control plane and data plane architecture.
4
-
To see the available endpoints for managing resources within your clusters, such as topics, users, access control lists (ACLs), and connectors, see the Data Plane API Reference.
4
+
To view the available endpoints for managing resources within your clusters, such as topics, users, access control lists (ACLs), and connectors, see the [Data Plane API Reference](/api/doc/cloud-dataplane).
5
5
6
6
## Requirements
7
7
@@ -14,27 +14,39 @@ To use the Control Plane API:
14
14
15
15
### Authenticate to the API from API Explorer
16
16
17
-
To make API requests in your browser, you must obtain an access token. You can do so by clicking **Get token** on the API endpoint you want to call.
17
+
The API Explorer lets you interact with the API directly from the documentation. You can quickly explore available endpoints and try requests without setting up your own test environment.
18
18
19
-
If you successfully retrieve an access token, it is valid for one hour. You can use the same token in requests to both Control Plane and Data Plane API endpoints, for as long as the token is valid.
19
+
To make Cloud API requests in your browser, you must obtain an access token. You can do so by clicking **Get token** on the API endpoint you want to call.
20
20
21
-
## Create a new cluster
21
+
If you successfully retrieve an access token, it is valid for one hour. You can use the same token in requests to both Control Plane and Data Plane API endpoints, for as long as the token is valid.
22
22
23
23
> **Warning:** API requests from the API Explorer are executed against your actual environment and data, not a sandbox.
24
24
25
+
## Create a new cluster
26
+
25
27
### BYOC or Dedicated
26
28
27
-
1. In the page header, click **API Explorer**.
28
-
1. On the **Choose an operation** dropdown, select **Create resource group**.
29
+
1. In the subheader, open **API Explorer**.
30
+
31
+
1. In the **Choose an operation** dropdown, select **Create resource group**.
32
+
29
33
1. Click **Get token**. You may be prompted to log in to the Redpanda Cloud UI. After you log in, the browser automatically redirects you back to the Create resource group endpoint in the API Explorer.
34
+
30
35
1. Prepare your Create resource group request.
31
-
1. Under **Body**, click **+ Add** and provide a name for your resource group. A resource group is a container to organize your Redpanda Cloud resources, such as clusters and networks.
32
-
1. Click **Send request**. If successful, the response returns a resource group ID. Pass this ID when you make a Create network request.
33
-
1. On the dropdown, select **Create network**.
36
+
37
+
1. Under **Body**, click **+ Add** and provide a name for your resource group. A resource group is a container to organize your Redpanda Cloud resources, such as clusters and networks.
38
+
39
+
1. Click **Send request**. If successful, the response returns a resource group ID. Pass this ID when you make a Create network request.
40
+
41
+
1. In the dropdown, select **Create network**.
42
+
34
43
1. Prepare your Create network request.
35
-
1. Include the ID of the resource group you created in the previous step.
36
-
1. Click **Send request**. Note that this endpoint returns a long-running operation. The response returns a network ID in `metadata.network_id`. Pass this ID when you call the Create Cluster endpoint.To check the operation state, make a **Get operation** request with the `operation.id`.
44
+
45
+
1. Include the ID of the resource group you created in the previous step.
46
+
1. Click **Send request**. Note that this endpoint returns a long-running operation. The response returns a network ID in `metadata.network_id`. Pass this ID when you call the Create Cluster endpoint. To check the operation state, make a **Get operation** request with the `operation.id`.
47
+
37
48
1. When the Create network operation is complete, make a Create cluster request. Use the resource group and network IDs you just created. Note that this endpoint also returns a long-running operation.
49
+
38
50
1. For BYOC, run `rpk cloud byoc` in the shell, passing the `metadata.cluster_id` from the Create cluster response as a flag:
39
51
40
52
**AWS:**
@@ -52,27 +64,34 @@ If you successfully retrieve an access token, it is valid for one hour. You can
52
64
53
65
### Serverless
54
66
55
-
1. In the page header, click **API Explorer**.
56
-
1. On the **Choose an operation** dropdown, select **Create resource group**.
67
+
1. In the subheader, open **API Explorer**.
68
+
69
+
1. In the **Choose an operation** dropdown, select **Create resource group**.
70
+
57
71
1. Click **Get token**. You may be prompted to log in to the Redpanda Cloud UI. After you log in, the browser automatically redirects you back to the Create resource group endpoint in the API Explorer.
72
+
58
73
1. Prepare your Create resource group request.
59
-
1. Under **Body**, click **+ Add** and provide a name for your resource group. A resource group is a container to organize your Redpanda Cloud resources, such as clusters and networks.
60
-
1. Click **Send request**. If successful, the response returns a resource group ID. Pass this ID later when you make a Create Serverless cluster request.
61
-
1. On the dropdown, select **Create Serverless cluster**.
74
+
75
+
1. Under **Body**, click **+ Add** and provide a name for your resource group. A resource group is a container to organize your Redpanda Cloud resources, such as clusters and networks.
76
+
1. Click **Send request**. If successful, the response returns a resource group ID. Pass this ID later when you make a Create Serverless cluster request.
77
+
78
+
1. In the dropdown, select **Create Serverless cluster**.
79
+
62
80
1. Prepare your Create Serverless cluster request.
63
-
1. Make a Get Serverless Regions request to see available regions.
64
-
1. In the request body, use the resource group ID and desired cloud region.
65
-
1. Click **Send request**. Note that this endpoint returns a long-running operation. The response returns a Serverless cluster ID in `metadata.cluster_id`. To check the operation state, make a **Get operation** request with the `operation.id`.
81
+
82
+
1. Make a Get Serverless Regions request to see available regions.
83
+
1. In the request body, use the resource group ID and desired cloud region.
84
+
1. Click **Send request**. Note that this endpoint returns a long-running operation. The response returns a Serverless cluster ID in `metadata.cluster_id`. To check the operation state, make a **Get operation** request with the `operation.id`.
66
85
67
86
## Next steps: try the Data Plane APIs
68
87
69
88
1. Retrieve your cluster's data plane API URL by making a **Get cluster** (BYOC, Dedicated) or **Get Serverless cluster** (Serverless) request in the API Explorer.
70
-
1.Save the value of `dataplane_api.url`from the response body.
89
+
1.From the value of `dataplane_api.url`in the response body, save the subdomain (the part between ``https://` and `.cloud.redpanda.com`).
71
90
1. From the **Redpanda APIs** selector, go to **Cloud Data Plane API**.
72
91
1. Select an operation, for example **Create topic** or **List users**.
73
92
1. In the URL field, add the data plane API URL. You can now make Data Plane API requests to your target cluster.
74
93
75
-
See also: [Data Plane API Quickstart](https://docs.redpanda.com/api/doc/cloud-dataplane/topic/topic-quickstart)
94
+
See also: [Data Plane API Quickstart](/cloud-dataplane/topic/topic-quickstart)
Find the Data Plane API base URL of a cluster by calling the Get Cluster endpoint of the Control Plane API. The dataplane_api.url field is returned in the response body.<br><br>
4985
-
Example (Dedicated): "https://api-a4cb21.ck09mi9c4vs17hng9gig.fmc.prd.cloud.redpanda.com"<br>
4984
+
Find the Data Plane API base URL of a cluster by calling the Get Cluster endpoint of the Control Plane API. The dataplane_api.url field is returned in the response body.
4985
+
4986
4986
Example (BYOC): "https://api-a4cb21.ck09mi9c4vs17hng9gig.byoc.prd.cloud.redpanda.com"
4987
+
Example (Dedicated): "https://api-a4cb21.ck09mi9c4vs17hng9gig.fmc.prd.cloud.redpanda.com"
4987
4988
tags:
4988
4989
- description: Manage Redpanda access control lists (ACLs). See [Redpanda Cloud Authorization](https://docs.redpanda.com/redpanda-cloud/security/authorization/cloud-authorization/) for more information.
From the `dataplane_api.url` value in the Control Plane API response, extract the subdomain (the part between `https://` and `.cloud.redpanda.com`). Enter this value in the Data Plane API URL field.
19
+
20
+
Example: If the URL is `https://api-a4cb21.ck09mi9c4vs17hng9gig.fmc.prd.cloud.redpanda.com`, enter `api-a4cb21.ck09mi9c4vs17hng9gig.fmc.prd`.
Copy file name to clipboardExpand all lines: cloud-dataplane/x-topics/quickstart.md
+18-9Lines changed: 18 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
The following steps describe how to authenticate with the Data Plane APIs and create a new topic. For more information on the Data Plane APIs, see the Cloud API Overview.
1
+
The following steps describe how to authenticate with the Data Plane APIs and create a new topic. For more information on the Data Plane APIs, see the [Cloud API Overview](#topic-cloud-api-overview).
2
2
3
-
> **Note:** Redpanda Cloud uses a control plane and data plane architecture. To see the available endpoints for managing your clusters, networks, and resource groups, see the Control Plane API Reference.
3
+
> **Note:** Redpanda Cloud uses a control plane and data plane architecture. To view the available endpoints for managing your clusters, networks, and resource groups, see the [Control Plane API Reference](/api/doc/cloud-controlplane).
4
4
5
5
## Requirements
6
6
@@ -12,24 +12,33 @@ To use the Data Plane APIs:
12
12
13
13
### Authenticate to the API from API Explorer
14
14
15
-
To make API requests in your browser, you must obtain an access token. You can do so by clicking **Get token** on the API endpoint you want to call.
15
+
The API Explorer lets you interact with the API directly from the documentation. You can quickly explore available endpoints and try requests without setting up your own test environment.
16
+
17
+
To make Cloud API requests in your browser, you must obtain an access token. You can do so by clicking **Get token** on the API endpoint you want to call.
16
18
17
19
If you successfully retrieve an access token, it is valid for one hour. You can use the same token in requests to both Control Plane and Data Plane API endpoints, for as long as the token is valid.
18
20
21
+
> **Warning:** API requests from the API Explorer are executed against your actual environment and data, not a sandbox.
22
+
19
23
## Create a topic
20
24
21
-
> **Warning:** API requests from this page are executed against your actual environment and data, not a sandbox.
25
+
1. In the subheader, open **API Explorer**.
26
+
27
+
1. If you don't already have the data plane API URL for your target cluster, make a Get Cluster (BYOC, Dedicated) or Get Serverless Cluster (Serverless) request with the Control Plane API. The response contains the data plane API URL.
28
+
29
+
From the `dataplane_api.url` value in the response, extract only the subdomain (the part between `https://` and `.cloud.redpanda.com`). Enter this value in the Data Plane API URL field.
30
+
31
+
1. In the **Choose an operation** dropdown, select **Create topic**.
32
+
33
+
1. If you need a valid access token, click **Get token**. You may be prompted to log in to the Redpanda Cloud UI. After you log in, the browser automatically redirects you back to the Create topic endpoint in the API Explorer.
22
34
23
-
1. In the page header, click **API Explorer**.
24
-
1. If you don't already have the data plane API URL for your target cluster, make a Get Cluster (BYOC, Dedicated) or Get Serverless Cluster (Serverless) request with the Control Plane API. The response contains the data plane API URL. Copy the value of `dataplane_api.url` from the response body, and enter it in the URL field.
25
-
1. On the **Choose an operation** dropdown, select **Create topic**.
26
-
1. Click **Get token**. You may be prompted to log in to the Redpanda Cloud UI. After you log in, the browser automatically redirects you back to the Create resource group endpoint in the API Explorer.
27
35
1. Enter a name for your topic and click **Send request**.
36
+
28
37
1. Confirm that your topic is successfully created by making a List topics request.
29
38
30
39
## Next steps
31
40
32
-
The quickest ways to produce to and consume from the topic are to use [`rpk`](https://docs.redpanda.com/redpanda-cloud/manage/rpk/rpk-install/) or the [Redpanda HTTP Proxy](https://docs.redpanda.com/api/doc/http-proxy) (BYOC and Dedicated clusters only).
41
+
The quickest ways to produce to and consume from the topic are to use [`rpk`](https://docs.redpanda.com/redpanda-cloud/manage/rpk/rpk-install/) or the [Redpanda HTTP Proxy](/api/doc/http-proxy) (BYOC and Dedicated clusters only).
33
42
34
43
For example, to use `rpk` to produce to a topic named `test-topic`, run:
Copy file name to clipboardExpand all lines: shared/overlays/update-securityschemes-for-authentication.yaml
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,4 +7,11 @@ info:
7
7
actions:
8
8
- target: $.components.securitySchemes.auth0
9
9
update:
10
-
description: The Cloud APIs use OAuth 2.0 for authentication. You must create a service account in the Cloud UI in order to request an access token. You can use the same access token to authenticate requests to both the Control Plane and Data Plane APIs.
10
+
description: |-
11
+
The Cloud APIs use OAuth 2.0 for authentication.
12
+
13
+
**For API Explorer (browser):** Authentication is handled automatically. Click "Get token" on any endpoint to authenticate with your Redpanda Cloud account and include a bearer token for requests made in API Explorer.
14
+
15
+
**For programmatic access (CLI, SDKs, scripts):** You must create a service account in the Redpanda Cloud UI and use the OAuth 2.0 client credentials flow to obtain an access token. See the Authentication topic for detailed instructions.
16
+
17
+
The same access token can be used for both Control Plane and Data Plane API requests for as long as the token is valid (one hour).
Copy file name to clipboardExpand all lines: shared/x-topics/about-authentication.md
+20-6Lines changed: 20 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,30 @@
1
-
The Cloud API uses the Client Credentials Flow as defined in [Auth 2.0 RFC 6749, section 4.4](https://datatracker.ietf.org/doc/html/rfc6749#section-4.4O). In Redpanda Cloud, you must first create a **service account** through which you can authenticate requests to the Cloud API. The service account is associated with your Redpanda Cloud organization. The service account acts as an OAuth 2.0 client that provides its credentials (client ID and client secret) to the API authentication server. The authentication server grants an access token in return. You can then include the access token in each request to the API.
2
-
3
-
The access token granted to you is associated with a specific Redpanda Cloud organization. If you want to use the API for a different organization, you must acquire a new token through a service account with that organization.
1
+
The Redpanda Cloud API uses OAuth 2.0 for authentication. The authentication method depends on whether you access the API in the browser using the API Explorer or programmatically.
4
2
5
3
You only need to authenticate once to the Cloud API. That is, after you obtain an access token, you can use the same token in requests to both Control Plane and Data Plane API endpoints, for as long as the token is valid.
6
4
7
-
## Request an access token
5
+
## Authenticate in API Explorer
6
+
7
+
When using the API Explorer in your browser, Redpanda Cloud uses the [OAuth 2.0 Implicit Flow](https://datatracker.ietf.org/doc/html/rfc6749#section-4.2):
8
+
9
+
1. Click **Get token** on any API endpoint.
10
+
2. Log in with your Redpanda Cloud credentials if prompted. After you log in, you are redirected back to the API Explorer.
11
+
3. The token is automatically applied to your API requests.
12
+
13
+
## Authenticate programmatic requests
14
+
15
+
For programmatic access (using a CLI, SDKs, and applications), the Cloud API uses the Client Credentials Flow, as defined in [OAuth 2.0 RFC 6749, section 4.4](https://datatracker.ietf.org/doc/html/rfc6749#section-4.4).
16
+
17
+
You must first create a **service account** through which you can authenticate requests to the Cloud API. The service account is associated with your Redpanda Cloud organization. The service account acts as an OAuth 2.0 client that provides its credentials (client ID and client secret) to the API authentication server. The authentication server grants an access token in return. You can then include the access token in each request to the API.
18
+
19
+
The access token granted to you is associated with a specific Redpanda Cloud organization. If you want to use the API for a different organization, you must acquire a new token through a service account with that organization.
20
+
21
+
### Request an access token
8
22
9
23
Users with administrative privileges in a Redpanda Cloud organization can create a service account.
10
24
11
25
> **Note:** Service accounts have administrative privileges by default. Cloud user roles are not applied for the API.
12
26
13
-
1.On the [Service account](https://cloud.redpanda.com/organization-iam?tab=service-accounts) tab in the Organization IAM page of the Redpanda Cloud UI, click **Create service account**. Enter a name and description.
27
+
1.In the Redpanda Cloud UI, go to [Organization IAM](https://cloud.redpanda.com/organization-iam), and select the **Service account** tab. Click **Create service account** and enter a name and description.
14
28
15
29
2. Copy and store the Client ID and Client Secret. These credentials cannot be viewed again after you close the dialog.
16
30
@@ -26,7 +40,7 @@ Users with administrative privileges in a Redpanda Cloud organization can create
26
40
27
41
The request response provides an access token that remains valid for one hour.
28
42
29
-
## Authenticate API requests
43
+
### Use the access token in API requests
30
44
31
45
You must pass the access token in the authorization header of each API request:
Copy file name to clipboardExpand all lines: shared/x-topics/cloud-api-deprecation-policy.md
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,6 @@ Redpanda communicates deprecation notices through the following:
48
48
* Updates to Cloud API documentation
49
49
*[What's New in Redpanda Cloud](https://docs.redpanda.com/redpanda-cloud/get-started/whats-new-cloud)
50
50
* Announcements in the #cloudapi [Community Slack](https://redpandacommunity.slack.com/) channel and in individual customer channels
51
-
* Emails to "Sign up for updates" recipients (sign up on the [Control Plane API](/api/ROOT/cloud-controlplane-api) and [Data Plane APIs](/api/ROOT/cloud-dataplane-api) reference documentation)
0 commit comments