Skip to content

Commit c367e5b

Browse files
auto-docs: Update Cloud API spec (#11)
* auto-docs: Update Cloud API spec * Apply suggestions from code review --------- Co-authored-by: Kat Batuigas <[email protected]>
1 parent 0e58fc4 commit c367e5b

File tree

3 files changed

+2074
-105
lines changed

3 files changed

+2074
-105
lines changed

cloud-controlplane/cloud-controlplane.yaml

Lines changed: 75 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -315,12 +315,6 @@ components:
315315
id:
316316
description: ID of the cluster. ID is an output from the Create Cluster endpoint and cannot be set by the caller.
317317
type: string
318-
internet_gateways:
319-
description: InternetGateway information of the cluster.
320-
items:
321-
type: string
322-
readOnly: true
323-
type: array
324318
kafka_api:
325319
$ref: '#/components/schemas/Cluster.KafkaAPI'
326320
kafka_connect:
@@ -331,6 +325,12 @@ components:
331325
description: Unique name of the cluster.
332326
example: development-cluster
333327
type: string
328+
nat_gateways:
329+
description: NAT gateway information for the cluster.
330+
items:
331+
type: string
332+
readOnly: true
333+
type: array
334334
network_id:
335335
description: Network ID where cluster is placed.
336336
example: cjcuq79c4vs94fcufc2g
@@ -2096,13 +2096,20 @@ components:
20962096
id:
20972097
title: internal id of the organization
20982098
type: string
2099+
mfa_enforced:
2100+
type: boolean
20992101
name:
21002102
title: display name of the organization
21012103
type: string
21022104
welcome_cluster_id:
21032105
nullable: true
21042106
type: string
21052107
type: object
2108+
OrganizationUpdate:
2109+
properties:
2110+
mfa_enforced:
2111+
type: boolean
2112+
type: object
21062113
Placement:
21072114
description: Information about creation of new serverless clusters on the serverless region.
21082115
properties:
@@ -2656,6 +2663,17 @@ components:
26562663
description: The unique name of the service_account.
26572664
example: billing_admin
26582665
type: string
2666+
role_bindings:
2667+
items:
2668+
$ref: '#/components/schemas/ServiceAccountCreate.RoleBinding'
2669+
type: array
2670+
type: object
2671+
ServiceAccountCreate.RoleBinding:
2672+
properties:
2673+
role_name:
2674+
type: string
2675+
scope:
2676+
$ref: '#/components/schemas/Scope'
26592677
type: object
26602678
ServiceAccountCredentials:
26612679
properties:
@@ -2791,6 +2809,11 @@ components:
27912809
enum:
27922810
- UPDATE_CLUSTER_TYPE_CUSTOMER_CONFIG
27932811
type: string
2812+
UpdateOrganizationResponse:
2813+
properties:
2814+
organization:
2815+
$ref: '#/components/schemas/Organization'
2816+
type: object
27942817
UpdateResourceGroupBody:
27952818
properties:
27962819
resource_group:
@@ -3309,7 +3332,6 @@ paths:
33093332
sasl: null
33103333
url: https://pandaproxy-aa0000l0.cjd3r21c4vs870t0ku30.fmc.prd.cloud.redpanda.com:9092
33113334
id: cjd3r21c4vs870t0ku30
3312-
internet_gateways: []
33133335
kafka_api:
33143336
all_seed_brokers: null
33153337
mtls: null
@@ -3319,6 +3341,7 @@ paths:
33193341
kafka_connect: null
33203342
maintenance_window_config: null
33213343
name: my-new-cluster
3344+
nat_gateways: []
33223345
network_id: cjb69k1c4vs45df9bee0
33233346
prometheus:
33243347
url: https://console-aa0000l0.cjd3r21c4vs870t0ku30.fmc.prd.cloud.redpanda.com/api/cloud/prometheus/public_metrics
@@ -3360,7 +3383,7 @@ paths:
33603383
tags:
33613384
- Clusters
33623385
post:
3363-
description: Create a Redpanda cluster. Returns a long-running operation. See [Use the Control Plane API](https://docs.redpanda.com/redpanda-cloud/manage/api/controlplane/) for more information. Call `GET /v1/operations/{id}` to check operation state. Refer to [Regions](https://docs.redpanda.com/api/doc/cloud-controlplane/topic/topic-regions-and-usage-tiers) for the list of available regions, zones, and tiers combinations for each cloud provider. For BYOC clusters, follow additional steps to [create a BYOC cluster](https://docs.redpanda.com/redpanda-cloud/manage/api/cloud-byoc-controlplane-api/#additional-steps-to-create-a-byoc-cluster).
3386+
description: Create a Redpanda cluster. Returns a long-running operation. For more information, see [Use the Control Plane API](https://docs.redpanda.com/redpanda-cloud/manage/api/controlplane/). To check operation state, call `GET /v1/operations/{id}`. Refer to [Regions](https://docs.redpanda.com/api/doc/cloud-controlplane/topic/topic-regions-and-usage-tiers) for the list of available regions, zones, and tiers combinations for each cloud provider. For BYOC clusters, follow additional steps to [create a BYOC cluster](https://docs.redpanda.com/redpanda-cloud/manage/api/cloud-byoc-controlplane-api/#additional-steps-to-create-a-byoc-cluster).
33643387
operationId: ClusterService_CreateCluster
33653388
requestBody:
33663389
content:
@@ -3568,7 +3591,7 @@ paths:
35683591
- Clusters
35693592
/v1/clusters/{id}:
35703593
delete:
3571-
description: Delete a Redpanda Cluster. Returns a long-running operation. See [Use the Control Plane API](https://docs.redpanda.com/redpanda-cloud/manage/api/controlplane/) for more information. Call `GET /v1/operations/{id}` to check operation state.
3594+
description: Delete a Redpanda Cluster. Returns a long-running operation. For more information, see [Use the Control Plane API](https://docs.redpanda.com/redpanda-cloud/manage/api/controlplane/). To check operation state, call `GET /v1/operations/{id}`.
35723595
operationId: ClusterService_DeleteCluster
35733596
parameters:
35743597
- in: path
@@ -3644,7 +3667,6 @@ paths:
36443667
sasl: null
36453668
url: https://pandaproxy-aa0000l0.cjd3r21c4vs870t0ku30.fmc.prd.cloud.redpanda.com:9092
36463669
id: cjd3r21c4vs870t0ku30
3647-
internet_gateways: []
36483670
kafka_api:
36493671
all_seed_brokers: null
36503672
mtls: null
@@ -3654,6 +3676,7 @@ paths:
36543676
kafka_connect: null
36553677
maintenance_window_config: null
36563678
name: my-new-cluster
3679+
nat_gateways: []
36573680
network_id: cjb69k1c4vs45df9bee0
36583681
prometheus:
36593682
url: https://console-aa0000l0.cjd3r21c4vs870t0ku30.fmc.prd.cloud.redpanda.com/api/cloud/prometheus/public_metrics
@@ -3701,7 +3724,7 @@ paths:
37013724
- Clusters
37023725
/v1/networks:
37033726
get:
3704-
description: List Redpanda Networks.
3727+
description: List Redpanda networks.
37053728
operationId: NetworkService_ListNetworks
37063729
parameters:
37073730
- description: Resource group ID.
@@ -3773,7 +3796,7 @@ paths:
37733796
tags:
37743797
- Networks
37753798
post:
3776-
description: Create a Redpanda network. Returns a long-running operation. See [Use the Control Plane API](https://docs.redpanda.com/redpanda-cloud/manage/api/controlplane/) for more information. Call `GET /v1/operations/{id}` to check operation state.
3799+
description: Create a Redpanda network. Returns a long-running operation. For more information, see [Use the Control Plane API](https://docs.redpanda.com/redpanda-cloud/manage/api/controlplane/). To check operation state, call `GET /v1/operations/{id}`.
37773800
operationId: NetworkService_CreateNetwork
37783801
requestBody:
37793802
content:
@@ -4039,7 +4062,6 @@ paths:
40394062
sasl: null
40404063
url: https://pandaproxy-aa0000l0.cjb69h1c4vs42pca89s0.fmc.prd.cloud.redpanda.com:9092
40414064
id: cjb69h1c4vs42pca89s0
4042-
internet_gateways: []
40434065
kafka_api:
40444066
all_seed_brokers: null
40454067
mtls: null
@@ -4049,6 +4071,7 @@ paths:
40494071
kafka_connect: null
40504072
maintenance_window_config: null
40514073
name: my-new-cluster
4074+
nat_gateways: []
40524075
network_id: cjb69k1c4vs45df9bee0
40534076
prometheus:
40544077
url: https://console-aa0000l0.cjb69h1c4vs42pca89s0.fmc.prd.cloud.redpanda.com/api/cloud/prometheus/public_metrics
@@ -4164,7 +4187,6 @@ paths:
41644187
sasl: null
41654188
url: https://pandaproxy-aa0000l0.cjb69h1c4vs42pca89s0.fmc.prd.cloud.redpanda.com:9092
41664189
id: cjb69h1c4vs42pca89s0
4167-
internet_gateways: []
41684190
kafka_api:
41694191
all_seed_brokers: null
41704192
mtls: null
@@ -4174,6 +4196,7 @@ paths:
41744196
kafka_connect: null
41754197
maintenance_window_config: null
41764198
name: my-new-cluster
4199+
nat_gateways: []
41774200
network_id: cjb69k1c4vs45df9bee0
41784201
prometheus:
41794202
url: https://console-aa0000l0.cjb69h1c4vs42pca89s0.fmc.prd.cloud.redpanda.com/api/cloud/prometheus/public_metrics
@@ -4263,7 +4286,7 @@ paths:
42634286
- Organization
42644287
/v1/organizations/current:
42654288
get:
4266-
description: Get current organizarion information
4289+
description: Get information about the current organization.
42674290
operationId: OrganizationService_GetCurrentOrganization
42684291
responses:
42694292
"200":
@@ -4287,9 +4310,41 @@ paths:
42874310
summary: Get current organization
42884311
tags:
42894312
- Organization
4313+
patch:
4314+
description: Update properties of the current organization.
4315+
operationId: OrganizationService_UpdateOrganization
4316+
requestBody:
4317+
content:
4318+
application/json:
4319+
schema:
4320+
$ref: '#/components/schemas/OrganizationUpdate'
4321+
required: true
4322+
x-originalParamName: organization
4323+
responses:
4324+
"200":
4325+
content:
4326+
application/json:
4327+
schema:
4328+
$ref: '#/components/schemas/UpdateOrganizationResponse'
4329+
description: OK
4330+
"500":
4331+
content:
4332+
application/json:
4333+
schema:
4334+
$ref: '#/components/schemas/rpc.Status'
4335+
description: Internal Server Error. Please reach out to support.
4336+
default:
4337+
content:
4338+
application/json:
4339+
schema:
4340+
$ref: '#/components/schemas/rpc.Status'
4341+
description: An unexpected error response.
4342+
summary: Update organization
4343+
tags:
4344+
- Organization
42904345
/v1/regions/{cloud_provider}:
42914346
get:
4292-
description: List available regions on the different cloud providers
4347+
description: List available regions on the different cloud providers.
42934348
operationId: RegionService_ListRegions
42944349
parameters:
42954350
- in: path
@@ -4437,7 +4492,7 @@ paths:
44374492
tags:
44384493
- Resource Groups
44394494
post:
4440-
description: Create a Redpanda Resource Group.
4495+
description: Create a Redpanda resource group.
44414496
operationId: ResourceGroupService_CreateResourceGroup
44424497
requestBody:
44434498
content:
@@ -4838,7 +4893,7 @@ paths:
48384893
tags:
48394894
- Serverless Clusters
48404895
post:
4841-
description: Create a Redpanda Serverless cluster. Returns a long-running operation. For more information, see [Use the Control Plane API with Serverless](https://docs.redpanda.com/redpanda-cloud/manage/api/cloud-serverless-controlplane-api/). To check operation state, call `GET /v1/operations/{id}`.
4896+
description: Create a Redpanda Serverless cluster. Returns a long-running operation. For more information, see [Use the Control Plane API](https://docs.redpanda.com/redpanda-cloud/manage/api/cloud-serverless-controlplane-api/). To check operation state, call `GET /v1/operations/{id}`.
48424897
operationId: ServerlessClusterService_CreateServerlessCluster
48434898
requestBody:
48444899
content:
@@ -4884,7 +4939,7 @@ paths:
48844939
- Serverless Clusters
48854940
/v1/serverless/clusters/{id}:
48864941
delete:
4887-
description: Delete Redpanda Serverless cluster. Returns a long-running operation. For more information, see [Use the Control Plane API with Serverless](https://docs.redpanda.com/redpanda-cloud/manage/api/cloud-serverless-controlplane-api/). To check operation state, call `GET /v1/operations/{id}`.
4942+
description: Delete Redpanda Serverless cluster. Returns a long-running operation. For more information, see [Use the Control Plane API](https://docs.redpanda.com/redpanda-cloud/manage/api/cloud-serverless-controlplane-api/). To check operation state, call `GET /v1/operations/{id}`.
48884943
operationId: ServerlessClusterService_DeleteServerlessCluster
48894944
parameters:
48904945
- description: ID of Serverless cluster.
@@ -5617,7 +5672,7 @@ servers:
56175672
- description: Control Plane API
56185673
url: https://api.redpanda.com
56195674
tags:
5620-
- description: Check the state of long-running operations. See [Use the Control Plane API](https://docs.redpanda.com/redpanda-cloud/manage/api/controlplane/) for more information.
5675+
- description: Check the state of long-running operations.
56215676
name: Operations
56225677
- description: Manage Redpanda Cloud clusters. For detailed steps and information, see [Use the Control Plane API](https://docs.redpanda.com/redpanda-cloud/manage/api/controlplane/).
56235678
name: Clusters

0 commit comments

Comments
 (0)