Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split cloud API reference #929

Open
wants to merge 15 commits into
base: api
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

4,672 changes: 4,672 additions & 0 deletions modules/ROOT/attachments/cloud-dataplane-api.yaml

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions modules/ROOT/pages/cloud-api.adoc

This file was deleted.

4 changes: 4 additions & 0 deletions modules/ROOT/pages/cloud-controlplane-api.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
= Control Plane API
:page-api-spec-url: api:ROOT:attachment$cloud-controlplane-api.yaml
:page-layout: swagger
:page-try-it: true
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
:page-layout: api-partial

. To <<try-the-cloud-api,issue requests to the Cloud API from this page>>, click *Get Token*.
. To issue requests to the Control Plane API from this page, click *Get Token*.
. If successful, the text “1 API key applied” displays under the *Authentication* header. The token is valid for one hour.
. Make sure to choose the correct <<servers,API server>> before making requests.

See xref:redpanda-cloud:manage:api/cloud-api-authentication.adoc[Cloud API Authentication] for more information.
30 changes: 30 additions & 0 deletions modules/ROOT/pages/cloud-controlplane/overview/overview.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
:page-layout: api-partial

The Redpanda Cloud API is a collection of REST APIs that allow you to interact with different parts of Redpanda Cloud. The Control Plane API enables you to programmatically manage your clusters, networks, and resource groups.

To familiarize yourself with Redpanda Cloud API basics, see the xref:redpanda-cloud:manage:api/cloud-api-overview.adoc[Redpanda Cloud API Overview]. To get started using the API, try the xref:redpanda-cloud:manage:api/cloud-api-quickstart.adoc[Quickstart].

NOTE: To see the available endpoints for managing resources within your clusters, such as topics, users, access control lists (ACLs), and connectors, see the link:https://docs.redpanda.com/api/cloud-dataplane-api.html[Data Plane API Reference].

== Requirements

To use the Cloud API:

* You must be a customer with an existing organization in Redpanda Cloud.
* You can only use one organization for authentication. See xref:redpanda-cloud:manage:api/cloud-api-authentication.adoc[Cloud API Authentication] for steps to authenticate API requests.

== Control Plane API URL

The xref:redpanda-cloud:manage:api/cloud-api-overview.adoc#control-plane-api-url[*base URL*] of the Control Plane API for all organizations is:

```
https://api.redpanda.com
```

== See also

* xref:redpanda-cloud:manage:api/cloud-api-quickstart.adoc[Cloud API Quickstart]
* xref:redpanda-cloud:manage:api/cloud-api-errors.adoc[Cloud API Error and Status Codes]
* link:https://docs.redpanda.com/api/cloud-dataplane-api.html[Data Plane API Reference]


4 changes: 4 additions & 0 deletions modules/ROOT/pages/cloud-dataplane-api.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
= Data Plane APIs
:page-api-spec-url: api:ROOT:attachment$cloud-dataplane-api.yaml
:page-layout: swagger
:page-try-it: true
2 changes: 2 additions & 0 deletions modules/ROOT/pages/cloud-dataplane-api/oauth-receiver.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
= OAuth Receiver
:page-layout: oauth
7 changes: 7 additions & 0 deletions modules/ROOT/pages/cloud-dataplane/auth/auth.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
:page-layout: api-partial

. To issue requests to the Data Plane APIs from this page, click *Get Token*.
. If successful, the text “1 API key applied” displays under the *Authentication* header. The token is valid for one hour.
. Make sure you have set the correct <<servers,API server>> value based on your <<data-plane-api-url,Data Plane API URL>>.

See xref:redpanda-cloud:manage:api/cloud-api-authentication.adoc[Cloud API Authentication] for more information.
25 changes: 25 additions & 0 deletions modules/ROOT/pages/cloud-dataplane/overview/overview.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
:page-layout: api-partial

The Redpanda Cloud Data Plane APIs enable you to programmatically manage the resources within your clusters, including topics, users, access control lists (ACLs), and connectors.

To familiarize yourself with Redpanda Cloud API basics, see the xref:redpanda-cloud:manage:api/cloud-api-overview.adoc[Redpanda Cloud API Overview]. To get started using the API, try the xref:redpanda-cloud:manage:api/cloud-api-quickstart.adoc[Quickstart].

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 link:https://docs.redpanda.com/api/cloud-controlplane-api.html[Control Plane API Reference].
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JakeSCahill I wasn't sure if I was supposed to use the .adoc extension for this link, so I kept it to .html just in case. Let me know if that should be changed


== Requirements

To use the Data Plane APIs:

* You must be a customer with an existing organization in Redpanda Cloud.
* You can only use one organization for authentication. See xref:redpanda-cloud:manage:api/cloud-api-authentication.adoc[Cloud API Authentication] for steps to authenticate API requests.

== Data Plane API URL

The xref:redpanda-cloud:manage:api/cloud-api-overview.adoc#data-plane-apis-url[*base URL*] of the Data Plane APIs is unique to every cluster. You can retrieve this value by making a link:https://docs.redpanda.com/api/cloud-controlplane-api.html#get-/v1beta2/clusters/-id-[Get Cluster] request to your target cluster. Use the `dataplane_api.url` from the response body as the base URL when calling the Data Plane API endpoints.

== See also

* xref:redpanda-cloud:manage:api/cloud-api-quickstart.adoc[Cloud API Quickstart]
* xref:redpanda-cloud:manage:api/cloud-api-errors.adoc[Cloud API Error and Status Codes]
* link:https://docs.redpanda.com/api/cloud-controlplane-api.html[Control Plane API Reference]

37 changes: 0 additions & 37 deletions modules/ROOT/pages/cloud/overview/overview.adoc

This file was deleted.