-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathopenapi_patch.yaml
More file actions
431 lines (431 loc) · 14.1 KB
/
openapi_patch.yaml
File metadata and controls
431 lines (431 loc) · 14.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
paths:
/project/{project}/service/{service_name}/quota/describe:
get:
summary: Get service quota configuration
description: |
Retrieves quota configuration for a specific service based on the following rules:
- When both user and client ID are specified: Returns quota for that specific combination
- When only user is specified: Returns ONLY the quota configured for this user without any client ID
- When only client ID is specified: Returns ONLY the quota configured for this client ID without any user
parameters:
- $ref: "#/components/parameters/project"
- $ref: "#/components/parameters/service_name"
- $ref: "#/components/parameters/service_kafka_quota_user"
- $ref: "#/components/parameters/service_kafka_quota_client_id"
/project/{project}/service/{service_name}/kafka/schema/config/{subject_name}:
get:
parameters:
- $ref: "#/components/parameters/project"
- $ref: "#/components/parameters/service_name"
- $ref: "#/components/parameters/subject_name"
- $ref: "#/components/parameters/global_default_fallback"
/v2/project/{project}/service/{service_name}/topic:
post:
summary: List Kafka topics V2
description: Retrieves a list of Kafka topics for a specific service. Experimental endpoint.
operationId: ServiceKafkaTopicListV2
parameters:
- $ref: "#/components/parameters/project"
- $ref: "#/components/parameters/service_name"
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/ServiceKafkaTopicListV2Request"
responses:
"200":
description: Successful response
content:
application/json:
schema:
$ref: "#/components/schemas/ServiceKafkaTopicListV2Response"
components:
schemas:
# Kafka Connect REST API expects all config values as strings, even for numeric/boolean values.
# The request body contains connector configuration with dynamic keys (connector-type specific).
# Only 2 fields are documented in OpenAPI spec (connector.class, name) but many more exist.
ServiceKafkaConnectCreateConnectorRequestBody:
additionalProperties:
type: string
ServiceKafkaConnectEditConnectorRequestBody:
additionalProperties:
type: string
ServiceKafkaConnectListResponse:
properties:
connectors:
items:
properties:
config:
additionalProperties:
type: string
ServiceKafkaConnectCreateConnectorResponse:
properties:
connector:
properties:
config:
additionalProperties:
type: string
ServiceKafkaConnectEditConnectorResponse:
properties:
connector:
properties:
config:
additionalProperties:
type: string
ServiceClickHousePasswordResetRequestBody:
properties:
password:
# When sent as null, the password is generated on the server side.
nullable: true
OrganizationVpcGetResponse:
properties:
peering_connections:
items:
properties:
state_info:
properties:
aws_vpc_peering_connection_id:
type: string
to_project_id:
type: string
to_vpc_network:
type: string
ServiceKafkaQuotaDescribeResponse:
properties:
quota:
required: []
ServiceDatabaseListResponse:
properties:
databases:
items:
properties:
lc_ctype:
type: string
lc_collate:
type: string
ServiceListResponse:
properties:
services:
items:
properties:
service_integrations:
items:
properties:
integration_type:
$ref: "#/components/schemas/ServiceCreateRequestBody/properties/service_integrations/items/properties/integration_type"
ServiceCreateResponse:
properties:
service:
properties:
service_integrations:
items:
properties:
integration_type:
$ref: "#/components/schemas/ServiceCreateRequestBody/properties/service_integrations/items/properties/integration_type"
ServiceUpdateResponse:
properties:
service:
properties:
service_integrations:
items:
properties:
integration_type:
$ref: "#/components/schemas/ServiceCreateRequestBody/properties/service_integrations/items/properties/integration_type"
ServiceUserCredentialsModifyResponse:
properties:
service:
properties:
service_integrations:
items:
properties:
integration_type:
$ref: "#/components/schemas/ServiceCreateRequestBody/properties/service_integrations/items/properties/integration_type"
ServiceUserCredentialsResetResponse:
properties:
service:
properties:
service_integrations:
items:
properties:
integration_type:
$ref: "#/components/schemas/ServiceCreateRequestBody/properties/service_integrations/items/properties/integration_type"
ServiceIntegrationCreateResponse:
properties:
service_integration:
properties:
integration_type:
$ref: "#/components/schemas/ServiceCreateRequestBody/properties/service_integrations/items/properties/integration_type"
ServiceIntegrationGetResponse:
properties:
service_integration:
properties:
integration_type:
$ref: "#/components/schemas/ServiceCreateRequestBody/properties/service_integrations/items/properties/integration_type"
ServiceIntegrationListResponse:
properties:
service_integrations:
items:
properties:
integration_type:
$ref: "#/components/schemas/ServiceCreateRequestBody/properties/service_integrations/items/properties/integration_type"
ServiceGetResponse:
properties:
service:
properties:
service_integrations:
items:
properties:
integration_type:
$ref: "#/components/schemas/ServiceCreateRequestBody/properties/service_integrations/items/properties/integration_type"
service_uri_params:
additionalProperties:
type: string
connection_info:
properties:
# M3DB aggregator (EOL)
m3aggregator:
items:
type: string
type: array
aggregator_http_uri:
type: string
# M3DB (EOL)
m3db:
items:
type: string
type: array
http_cluster_uri:
type: string
http_node_uri:
type: string
influxdb_uri:
type: string
prometheus_remote_read_uri:
type: string
prometheus_remote_write_uri:
type: string
# InfluxDB (EOL)
influxdb:
items:
type: string
type: array
influxdb_dbname:
type: string
influxdb_password:
type: string
influxdb_username:
type: string
# Cassandra
cassandra:
items:
type: string
type: array
# Clickhouse
clickhouse:
items:
type: string
type: array
# Flink
flink:
items:
type: string
type: array
# Grafana
grafana:
items:
type: string
type: array
# Kafka
kafka:
items:
type: string
type: array
kafka_access_key:
type: string
kafka_access_cert:
type: string
kafka_connect_uri:
type: string
kafka_rest_uri:
type: string
schema_registry_uri:
type: string
# Kafka Connect
kafka_connect:
items:
type: string
type: array
# Kafka MirrorMaker
kafka_mirrormaker:
items:
type: string
type: array
# MySQL
mysql:
items:
type: string
type: array
mysql_params:
type: array
items:
properties:
dbname:
type: string
host:
type: string
password:
type: string
port:
type: string
ssl-mode:
type: string
user:
type: string
type: object
required:
- dbname
- host
- password
- port
- ssl-mode
- user
mysql_replica_uri:
type: string
mysql_standby:
items:
type: string
type: array
# OpenSearch
opensearch:
items:
type: string
type: array
opensearch_dashboards_uri:
type: string
opensearch_password:
type: string
opensearch_username:
type: string
# PostgreSQL
pg:
items:
type: string
type: array
pg_params:
type: array
items:
properties:
dbname:
type: string
host:
type: string
password:
type: string
port:
type: string
sslmode:
type: string
user:
type: string
type: object
required:
- dbname
- host
- password
- port
- sslmode
- user
pg_replica_uri:
type: string
pg_standby:
items:
type: string
type: array
pg_syncing:
items:
type: string
type: array
# Thanos
thanos:
items:
type: string
type: array
query_frontend_uri:
type: string
query_uri:
type: string
receiver_remote_write_uri:
type: string
# Redis (EOL) + Dragonfly
redis:
items:
type: string
type: array
redis_password:
type: string
redis_replica_uri:
type: string
redis_slave:
items:
type: string
type: array
# Valkey
valkey:
items:
type: string
type: array
valkey_password:
type: string
valkey_replica_uri:
type: string
valkey_slave:
items:
type: string
type: array
ServiceCreateRequestBody:
properties:
project_vpc_id:
# When VPC is not specified, the service will be created in the existing VPC.
# We must send null to create a service in the public network.
nullable: true
ServiceUpdateRequestBody:
properties:
project_vpc_id:
nullable: true
ServiceKafkaTopicListV2Request:
type: object
required:
- topic_names
properties:
topic_names:
type: array
items:
type: string
ServiceKafkaTopicListV2Response:
type: object
properties:
topics:
type: array
items:
$ref: "#/components/schemas/ServiceKafkaTopicGetResponse/properties/topic"
parameters:
service_kafka_quota_user:
in: query
name: user
schema:
type: string
required: false
service_kafka_quota_client_id:
in: query
name: client-id
schema:
type: string
required: false
global_default_fallback:
in: query
name: global_default_fallback
description: This parameter is not documented in the API but we need it to support the backward compatibility with old API client
schema:
type: boolean
required: false