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 Redpanda Cloud API Overview.
Note: Redpanda Cloud uses a control plane and data plane architecture. 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.
To use the Control Plane API:
- You must be a customer with an existing organization in Redpanda Cloud.
- You can only use one organization for authentication.
You can issue requests against the Control Plane API from your browser when viewing the API Explorer:
- In the Redpanda Cloud UI, create a service account (client). Save the client ID and secret.
- Go to the "Get access token" endpoint and click Run in API Explorer.
- In the request body:
- For
grant_type, selectclient_credentials. - Enter the
client_idandclient_secretvalues you generated using the service account. - For
audience, selectcloudv2-production.redpanda.cloud. - Click Send Request on the code example to the right.
The Response block should populate with an
access_tokenvalue. Copy the string value without the quotes. To make your next request to a different endpoint in the API Explorer, add the access token in the Authentication field.
Warning: API requests from this page are executed against your actual environment and data, not a sandbox.
-
Create a resource group by making a Create Resource Group request. The response returns a resource group ID. Pass this ID later when you call the Create Cluster endpoint.
-
Create a network by making a Create Network request. Note that this endpoint returns a long-running operation. The response returns a network ID in
resource_id. Pass this ID when you call the Create Cluster endpoint. -
When the Create Network operation is complete, create a cluster by making a Create Cluster request. Note that this endpoint returns a long-running operation.
-
For BYOC, run
rpk cloud byocin the shell, passing themetadata.cluster_idfrom the Create Cluster response as a flag:AWS:
rpk cloud byoc aws apply --redpanda-id=<metadata.cluster_id>
Azure:
rpk cloud byoc azure apply --redpanda-id=<metadata.cluster_id> --subscription-id=<redpanda-cluster-azure-subscription-id>
GCP:
rpk cloud byoc gcp apply --redpanda-id=<metadata.cluster_id> --project-id=<gcp-project-id>
- Make a Get Resource Group request to retrieve the default resource group ID. Pass this ID later when you call the Create Serverless Cluster endpoint.
- Make a Get Serverless Regions request to see available regions.
- Create a cluster by making a Create Serverless Cluster request, passing in the default resource group ID and desired cloud region in the request.