Skip to content

Commit 32ab274

Browse files
committed
add new streaming rest endpoint for single tenant
1 parent dcf5066 commit 32ab274

File tree

2 files changed

+177
-11
lines changed

2 files changed

+177
-11
lines changed

astra-streaming/astra-streaming.gen.go

Lines changed: 137 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

streaming-swagger.yaml

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1354,7 +1354,44 @@ paths:
13541354
$ref: "#/components/schemas/errorResponse"
13551355
tags:
13561356
- get-tenant-limit-usage
1357-
/v2/streaming/tenants/{tenantName}:
1357+
/v2/streaming/tenants/{tenant}:
1358+
get:
1359+
tags:
1360+
- tenants
1361+
description: Returns 200 if the tenant details were retrieved successfully
1362+
operationId: getStreamingTenant
1363+
parameters:
1364+
- name: Authorization
1365+
in: header
1366+
description: Astra token (https://docs.datastax.com/en/streaming/astra-streaming/operations/astream-token-gen.html#astra-token)
1367+
required: true
1368+
schema:
1369+
type: string
1370+
- name: X-DataStax-Pulsar-Cluster
1371+
in: header
1372+
description: The name of the Pulsar cluster on which the tenant resides.
1373+
required: true
1374+
schema:
1375+
type: string
1376+
- name: tenant
1377+
in: path
1378+
description: Name of the Pulsar streaming tenant
1379+
required: true
1380+
schema:
1381+
type: string
1382+
responses:
1383+
"200":
1384+
description: Successful response containing tenant data.
1385+
content:
1386+
'*/*':
1387+
schema:
1388+
$ref: '#/components/schemas/TenantClusterPlanResponse'
1389+
"401":
1390+
description: Authentication failure
1391+
content: {}
1392+
"404":
1393+
description: Tenant not found
1394+
content: {}
13581395
head:
13591396
summary: "Returns 200 if the tenant is reserved under the specified query
13601397
parameters"
@@ -1363,9 +1400,9 @@ paths:
13631400
parameters
13641401
operationId: getTeneantLimitUsage
13651402
parameters:
1366-
- name: tenantName
1403+
- name: tenant
13671404
in: path
1368-
description: tenantName
1405+
description: Name of the streaming tenant
13691406
required: true
13701407
schema:
13711408
type: string

0 commit comments

Comments
 (0)