Skip to content

Commit 81177a7

Browse files
kbatuigasKat Batuigas
andauthored
Apply suggestions from SKO session (#21)
* Apply suggestions from SKO session * Add links to endpoint for better UX * Apply suggestions from automated review * Force deploy preview * Minor edits --------- Co-authored-by: Kat Batuigas <kbauigas@gmail.com>
1 parent a6fca53 commit 81177a7

File tree

4 files changed

+82
-42
lines changed

4 files changed

+82
-42
lines changed

cloud-controlplane/cloud-controlplane.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3258,7 +3258,7 @@ components:
32583258
x-client-id: dQjapNIAHhF7EQqQToRla3yEII9sUSap
32593259
type: oauth2
32603260
info:
3261-
description: 'Use the Control Plane API to manage resources in your Redpanda Cloud organization such as clusters and networks.'
3261+
description: Use the Control Plane API to manage resources in your Redpanda Cloud organization such as clusters and networks.
32623262
title: Redpanda Cloud Control Plane API
32633263
version: v1
32643264
openapi: 3.0.3
@@ -5690,7 +5690,7 @@ tags:
56905690
name: Resource Groups
56915691
- description: Manage [Redpanda Serverless](https://docs.redpanda.com/redpanda-cloud/get-started/cloud-overview/#redpanda-cloud-cluster-types) clusters. For detailed steps, see [Use the Control Plane API with Serverless](https://docs.redpanda.com/redpanda-cloud/manage/api/cloud-serverless-controlplane-api/).
56925692
name: Serverless Clusters
5693-
- description: Manage Redpanda Serverless Private Links.
5693+
- description: Manage Redpanda Serverless private links.
56945694
name: Serverless Private Links
56955695
- description: See available Redpanda Serverless regions.
56965696
name: Serverless Regions

cloud-controlplane/x-topics/quickstart.md

Lines changed: 74 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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).
1+
The following steps describe how to authenticate with the Control Plane API and create a new Redpanda cluster.
22

33
> **Note:** Redpanda Cloud uses a control plane and data plane architecture.
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).
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). For more information on the Control Plane API, see the [Cloud API Overview](#topic-cloud-api-overview).
55

66
## Requirements
77

@@ -10,83 +10,122 @@ To use the Control Plane API:
1010
1. You must be a customer with an existing organization in Redpanda Cloud.
1111
2. You can only use one organization for authentication.
1212

13-
**BYOC only**: To create a BYOC cluster, [install or update `rpk`](https://docs.redpanda.com/redpanda-cloud/manage/rpk/rpk-install).
13+
**BYOC only**: BYOC clusters require running the `rpk cloud byoc` command to install and start the Redpanda Cloud agent service. See [Install or Update `rpk`](https://docs.redpanda.com/redpanda-cloud/manage/rpk/rpk-install).
1414

1515
### Authenticate to the API from API Explorer
1616

1717
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.
1818

1919
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.
2020

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.
21+
If you successfully retrieve an access token, it is valid for one hour.
2222

2323
> **Warning:** API requests from the API Explorer are executed against your actual environment and data, not a sandbox.
2424
2525
## Create a new cluster
2626

2727
### BYOC or Dedicated
2828

29-
1. In the subheader, open **API Explorer**.
29+
1. In the subheader of this page, open [**API Explorer**](/api/doc/cloud-controlplane/explorer).
3030

3131
1. In the **Choose an operation** dropdown, select **Create resource group**.
3232

3333
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.
3434

3535
1. Prepare your Create resource group request.
3636

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.
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.
3838

39-
1. Click **Send request**. If successful, the response returns a resource group ID. Pass this ID when you make a Create network request.
39+
1. In the request panel, click **Send request**. If successful, the response returns a resource group ID. Copy the ID and use it later when you make a Create network request.
4040

41-
1. In the dropdown, select **Create network**.
41+
```
42+
{
43+
"resource_group": {
44+
"id": "d61b4c7f-95da-4d62-a237-9fd9f20a0c19",
45+
"name": "test-resource-group",
46+
...
47+
}
48+
}
49+
```
50+
51+
1. In the operation dropdown, select **Create network**.
4252
4353
1. Prepare your Create network request.
4454
4555
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-
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-
50-
1. For BYOC, run `rpk cloud byoc` in the shell, passing the `metadata.cluster_id` from the Create cluster response as a flag:
51-
52-
**AWS:**
53-
```bash
54-
rpk cloud byoc aws apply --redpanda-id=<metadata.cluster_id>
55-
```
56-
**Azure:**
57-
```bash
58-
rpk cloud byoc azure apply --redpanda-id=<metadata.cluster_id> --subscription-id=<redpanda-cluster-azure-subscription-id>
59-
```
60-
**GCP:**
61-
```bash
62-
rpk cloud byoc gcp apply --redpanda-id=<metadata.cluster_id> --project-id=<gcp-project-id>
63-
```
56+
57+
1. Click **Send request**. Note that this endpoint returns a long-running operation. The response returns a network ID in `metadata.network_id`. Copy the ID and pass it later when you call the Create cluster endpoint. To check the operation state, make a [**Get operation**](/api/doc/cloud-controlplane/explorer/operation/operation-operationservice_getoperation) request with the `operation.id`.
58+
59+
60+
```
61+
{
62+
"operation": {
63+
"id": "d3505t2rmm68sqlgj4u0",
64+
"metadata": {
65+
"@type": "type.googleapis.com/redpanda.api.controlplane.v1.CreateNetworkMetadata",
66+
"network_id": "d3505ta2691o0l3484ng"
67+
},
68+
"state": "STATE_IN_PROGRESS",
69+
...
70+
}
71+
}
72+
```
73+
74+
1. When the Create network operation is complete, make a [Create cluster](/api/doc/cloud-controlplane/explorer/operation/operation-clusterservice_createcluster) request. Use the resource group and network IDs you just created. Note that this endpoint also returns a long-running operation.
75+
76+
1. For BYOC, run `rpk cloud byoc <cloud-provider> apply` in the shell, passing the `metadata.cluster_id` from the Create cluster response as a flag:
77+
78+
**AWS:**
79+
```bash
80+
rpk cloud byoc aws apply --redpanda-id=<metadata.cluster_id>
81+
```
82+
83+
**Azure:**
84+
```bash
85+
rpk cloud byoc azure apply --redpanda-id=<metadata.cluster_id> --subscription-id=<redpanda-cluster-azure-subscription-id>
86+
```
87+
88+
**GCP:**
89+
```bash
90+
rpk cloud byoc gcp apply --redpanda-id=<metadata.cluster_id> --project-id=<gcp-project-id>
91+
```
6492
6593
### Serverless
6694
67-
1. In the subheader, open **API Explorer**.
95+
1. In the subheader of this page, open [**API Explorer**](/api/doc/cloud-controlplane/explorer).
6896
6997
1. In the **Choose an operation** dropdown, select **Create resource group**.
7098
7199
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.
72100
73101
1. Prepare your Create resource group request.
74102
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.
103+
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.
104+
105+
1. In the request panel, click **Send request**. If successful, the response returns a resource group ID. Copy the ID and use it later when you make a Create Serverless cluster request.
77106
78-
1. In the dropdown, select **Create Serverless cluster**.
107+
```
108+
{
109+
"resource_group": {
110+
"id": "d61b4c7f-95da-4d62-a237-9fd9f20a0c19",
111+
"name": "test-resource-group",
112+
...
113+
}
114+
}
115+
```
79116
80-
1. Prepare your Create Serverless cluster request.
117+
1. In the operation dropdown, scroll to **Serverless Clusters** and select [**Create Serverless cluster**](/api/doc/cloud-controlplane/explorer/operation/operation-serverlessclusterservice_createserverlesscluster).
81118
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`.
119+
1. Prepare your Create Serverless cluster request.
120+
121+
1. In the request body, use the resource group ID and enter a [serverless region](https://docs.redpanda.com/redpanda-cloud/reference/tiers/serverless-regions/) (for example, `us-east-1`).
122+
123+
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**](/api/doc/cloud-controlplane/explorer/operation/operation-operationservice_getoperation) request with the `operation.id`.
85124
86125
## Next steps: try the Data Plane APIs
87126
88127
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.
89-
1. From the value of `dataplane_api.url` in the response body, save the subdomain (the part between ``https://` and `.cloud.redpanda.com`).
128+
1. From the value of `dataplane_api.url` in the response body, save the subdomain (the part between `https://` and `.cloud.redpanda.com`).
90129
1. From the **Redpanda APIs** selector, go to **Cloud Data Plane API**.
91130
1. Select an operation, for example **Create topic** or **List users**.
92131
1. In the URL field, add the data plane API URL. You can now make Data Plane API requests to your target cluster.

cloud-dataplane/cloud-dataplane.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2227,6 +2227,7 @@ components:
22272227
info:
22282228
title: Redpanda Cloud Data Plane API
22292229
version: v1
2230+
description: Use the Data Plane API to manage topics, ACLs, and connectors within each cluster.
22302231
openapi: 3.0.3
22312232
paths:
22322233
/v1/acls:

cloud-dataplane/x-topics/quickstart.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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](#topic-cloud-api-overview).
1+
The following steps describe how to authenticate with the Data Plane APIs and create a new topic.
22

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).
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). For more information on the Data Plane APIs, see the [Cloud API Overview](#topic-cloud-api-overview).
44
55
## Requirements
66

@@ -22,11 +22,11 @@ If you successfully retrieve an access token, it is valid for one hour. You can
2222
2323
## Create a topic
2424

25-
1. In the subheader, open **API Explorer**.
25+
1. In the subheader of this page, open [**API Explorer**](/api/doc/cloud-dataplane/explorer).
2626

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.
27+
1. If you don't already have the data plane API URL for your target cluster, make a [Get Cluster](/api/doc/cloud-controlplane/explorer/operation/operation-clusterservice_getcluster) (BYOC, Dedicated) or [Get Serverless Cluster](/api/doc/cloud-controlplane/explorer/operation/operation-serverlessclusterservice_getserverlesscluster) (Serverless) request with the Control Plane API. The response contains the data plane API URL.
2828

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.
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.
3030

3131
1. In the **Choose an operation** dropdown, select **Create topic**.
3232

0 commit comments

Comments
 (0)