-
Notifications
You must be signed in to change notification settings - Fork 26
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
Cloud API supplemental/how-to docs (control and data plane, overview) #411
Conversation
✅ Deploy Preview for redpanda-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
3bf0b50
to
4ba2f7e
Compare
modules/deploy/pages/deployment-option/cloud/api/cloud-api-overview.adoc
Outdated
Show resolved
Hide resolved
modules/deploy/pages/deployment-option/cloud/api/cloud-api-overview.adoc
Outdated
Show resolved
Hide resolved
|
||
The Redpanda Admin API is a REST API to manage aspects of a Redpanda cluster. You can use the Admin API to perform operations that are specific to the Redpanda platform and cannot be done using the standard Kafka API. | ||
|
||
Redpanda Cloud uses a control plane and data plane architecture. The *control plane* is where most cluster management, operations, and maintenance takes place. The control plane enforces rules in the data plane. The *data plane* is where your cloud cluster lives. The term _data plane_ is used interchangeably with _cluster_. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would remove the section header and start the paragraph here. And everything above should be in the "Please Note:" block
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@towfiqa want to add a note here to say we could do this, but also wanted to show another option. I'll push up some commits shortly so that we get an updated preview and then you can let us know which one you prefer!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@towfiqa I changed the section header to "Cloud API architecture", removed the info about the other APIs and moved them over to the API and SDK reference index page. What do you think of this flow? Anything you prefer to see?
modules/deploy/pages/deployment-option/cloud/api/cloud-api-overview.adoc
Outdated
Show resolved
Hide resolved
modules/deploy/pages/deployment-option/cloud/api/cloud-api-overview.adoc
Outdated
Show resolved
Hide resolved
modules/deploy/pages/deployment-option/cloud/api/cloud-api-overview.adoc
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@towfiqa Right now, the reference overview (preview) is sharing the same content as on this page.
I have a more condensed overview that I drafted here, plus instructions on making requests from the reference page here, and a tiny quickstart here. Do you prefer these to be displayed on the reference page, instead of the content we have in the cloud-api-overview.adoc and cloud-api-authentication.adoc files?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@towfiqa I actually went ahead and replaced it with the "condensed" content. Let me know what you think.
modules/deploy/pages/deployment-option/cloud/api/cloud-api-overview.adoc
Show resolved
Hide resolved
modules/deploy/pages/deployment-option/cloud/api/cloud-controlplane-api.adoc
Outdated
Show resolved
Hide resolved
modules/deploy/pages/deployment-option/cloud/api/cloud-controlplane-api.adoc
Show resolved
Hide resolved
@@ -0,0 +1,138 @@ | |||
= Manage Cluster Resources Using the Cloud API |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also need confirmation on whether this page title is okay, or if it should be reworded (is "cluster resources" accurate?)
e826e35
to
b9c2e8b
Compare
To be able 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:deploy:deployment-option/cloud/api/cloud-api-authentication.adoc[Cloud API Authentication] for steps to authenticate API requests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe rephrase this a bit, e.g. to explain that a token is always for a specific organization. if they want to switch to a different organization, they must acquire a new token (with a service account from the other org)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@birdayz Added in this commit; please let me know if the change doesn't address this!
}' -X POST https://api.redpanda.com/v1beta2/clusters | ||
---- | ||
|
||
The Create Cluster endpoint returns a <<long_running_operations,long-running operation>>. When the operation is completed, you can retrieve cluster details by calling xref:api:ROOT:cloud-api.adoc#get-/v1beta2/clusters/-id-[`GET /v1beta2/clusters/\{id}`], passing the cluster ID as a parameter. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In our regular docs, we use property instead of parameter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@micheleRP Ah, I think both property and parameter can be used in the API context, but parameter is the more common term for the "specific value you use in the API URL path" https://swagger.io/resources/articles/best-practices-in-api-design/
modules/deploy/pages/deployment-option/cloud/api/cloud-controlplane-api.adoc
Outdated
Show resolved
Hide resolved
|
||
Create a network by making a request to xref:api:ROOT:cloud-api.adoc#post-/v1beta2/networks[`POST /v1beta2/networks`]. | ||
|
||
Choose a CIDR range that does not overlap with your existing VPCs or your Redpanda network. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could consider adding a link for more info: https://deploy-preview-411--redpanda-docs-preview.netlify.app/current/deploy/deployment-option/cloud/cidr-ranges/
modules/deploy/pages/deployment-option/cloud/api/cloud-controlplane-api.adoc
Outdated
Show resolved
Hide resolved
modules/deploy/pages/deployment-option/cloud/api/cloud-controlplane-api.adoc
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,139 @@ | |||
= Manage Cluster Resources Using the Cloud API |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
= Manage Cluster Resources Using the Cloud API | |
= Use the Data Plane APIs |
@kbatuigas I have doubts about the page titles and descriptions: Manage Cluster Resources Using the Cloud API Suggest the following titles and descriptions instead: |
modules/deploy/pages/deployment-option/cloud/api/cloud-dataplane-api.adoc
Outdated
Show resolved
Hide resolved
modules/deploy/pages/deployment-option/cloud/api/cloud-dataplane-api.adoc
Outdated
Show resolved
Hide resolved
modules/deploy/pages/deployment-option/cloud/api/cloud-dataplane-api.adoc
Outdated
Show resolved
Hide resolved
modules/deploy/pages/deployment-option/cloud/api/cloud-dataplane-api.adoc
Outdated
Show resolved
Hide resolved
modules/deploy/pages/deployment-option/cloud/api/cloud-dataplane-api.adoc
Outdated
Show resolved
Hide resolved
modules/deploy/pages/deployment-option/cloud/api/cloud-dataplane-api.adoc
Outdated
Show resolved
Hide resolved
Co-authored-by: Michele Cyran <michele@redpanda.com>
modules/deploy/pages/deployment-option/cloud/api/cloud-api-overview.adoc
Outdated
Show resolved
Hide resolved
modules/deploy/pages/deployment-option/cloud/api/cloud-api-overview.adoc
Outdated
Show resolved
Hide resolved
modules/deploy/pages/deployment-option/cloud/api/cloud-api-authentication.adoc
Outdated
Show resolved
Hide resolved
- xref:deploy:deployment-option/cloud/dedicated/dedicated-tiers.adoc[Dedicated tiers and regions] | ||
- xref:deploy:deployment-option/cloud/byoc-tiers.adoc[BYOC tiers and regions] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should these now link to your tiers table in the API docs instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@micheleRP good call, I'll make that change. Currently I am only able to link to an "api-description" anchor in the API reference (and we have kept it to the original GCP vs AWS tables), maybe that can be tweaked later.
…oud-api-docs-combined
|
||
Create a network by making a request to xref:api:ROOT:cloud-api.adoc#post-/v1beta2/networks[`POST /v1beta2/networks`]. | ||
|
||
Choose a xref:deploy/deployment-option/cloud/cidr-ranges.adoc[CIDR range] that does not overlap with your existing VPCs or your Redpanda network. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choose a xref:deploy/deployment-option/cloud/cidr-ranges.adoc[CIDR range] that does not overlap with your existing VPCs or your Redpanda network. | |
Choose a xref:deploy:deployment-option/cloud/cidr-ranges.adoc[CIDR range] that does not overlap with your existing VPCs or your Redpanda network. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls fix the cidr link and review my other suggestions, then lgtm!
Co-authored-by: Michele Cyran <michele@redpanda.com>
…#411) Co-authored-by: JakeSCahill <jake@redpanda.com> Co-authored-by: Michele Cyran <michele@redpanda.com>
Add new Cloud API docs to the RP Cloud docs: https://docs.redpanda.com/current/deploy/deployment-option/cloud/. These are "supplemental" docs to the API reference (PR here) and aim to provide more detailed steps and explanations on using the Cloud API.
Review deadline: 16 May 2024
NOTE: Adding the cloud API reference (i.e. the specs) is done in #283 since that has to be merged in the
api
branch where our API reference pages live. This PR is against themain
branch, where our regular docs live and where we add non-reference (e.g. conceptual topics, or task-oriented docs) content.Cloud API subsection under Deploy > Cloud: index page
Cloud API overview
Cloud API Authentication
Control Plane API
Data Plane APIs