-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathadmin-v2.yaml
More file actions
3476 lines (3379 loc) · 123 KB
/
Copy pathadmin-v2.yaml
File metadata and controls
3476 lines (3379 loc) · 123 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
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
components:
schemas:
connect-protocol-version:
const: 1
description: Define the version of the Connect protocol
enum:
- 1
title: Connect-Protocol-Version
type: number
connect-timeout-header:
description: Define the timeout, in ms
title: Connect-Timeout-Ms
type: number
connect.error:
additionalProperties: true
description: "Error type returned by Connect: https://connectrpc.com/docs/go/errors/#http-representation"
properties:
code:
description: The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
enum:
- canceled
- unknown
- invalid_argument
- deadline_exceeded
- not_found
- already_exists
- permission_denied
- resource_exhausted
- failed_precondition
- aborted
- out_of_range
- unimplemented
- internal
- unavailable
- data_loss
- unauthenticated
examples:
- not_found
type: string
details:
description: A list of messages that carry the error details. There is no limit on the number of messages.
items:
$ref: "#/components/schemas/connect.error_details.Any"
type: array
message:
description: A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
type: string
title: Connect Error
type: object
connect.error_details.Any:
additionalProperties: true
description: Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details.
properties:
debug:
description: Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic.
discriminator:
propertyName: type
oneOf:
- additionalProperties: true
description: Detailed error information.
title: Any
type: object
title: Debug
type:
description: "A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field."
type: string
value:
description: The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field.
format: binary
type: string
type: object
google.protobuf.Duration:
description: |-
A Duration represents a signed, fixed-length span of time represented
as a count of seconds and fractions of seconds at nanosecond
resolution. It is independent of any calendar and concepts like "day"
or "month". It is related to Timestamp in that the difference between
two Timestamp values is a Duration and it can be added or subtracted
from a Timestamp. Range is approximately +-10,000 years.
# Examples
Example 1: Compute Duration from two Timestamps in pseudo code.
Timestamp start = ...;
Timestamp end = ...;
Duration duration = ...;
duration.seconds = end.seconds - start.seconds;
duration.nanos = end.nanos - start.nanos;
if (duration.seconds < 0 && duration.nanos > 0) {
duration.seconds += 1;
duration.nanos -= 1000000000;
} else if (duration.seconds > 0 && duration.nanos < 0) {
duration.seconds -= 1;
duration.nanos += 1000000000;
}
Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.
Timestamp start = ...;
Duration duration = ...;
Timestamp end = ...;
end.seconds = start.seconds + duration.seconds;
end.nanos = start.nanos + duration.nanos;
if (end.nanos < 0) {
end.seconds -= 1;
end.nanos += 1000000000;
} else if (end.nanos >= 1000000000) {
end.seconds += 1;
end.nanos -= 1000000000;
}
Example 3: Compute Duration from datetime.timedelta in Python.
td = datetime.timedelta(days=3, minutes=10)
duration = Duration()
duration.FromTimedelta(td)
# JSON Mapping
In JSON format, the Duration type is encoded as a string rather than an
object, where the string ends in the suffix "s" (indicating seconds) and
is preceded by the number of seconds, with nanoseconds expressed as
fractional seconds. For example, 3 seconds with 0 nanoseconds should be
encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should
be expressed in JSON format as "3.000000001s", and 3 seconds and 1
microsecond should be expressed in JSON format as "3.000001s".
format: duration
type: string
google.protobuf.FieldMask:
description: |-
`FieldMask` represents a set of symbolic field paths, for example:
paths: "f.a"
paths: "f.b.d"
Here `f` represents a field in some root message, `a` and `b`
fields in the message found in `f`, and `d` a field found in the
message in `f.b`.
Field masks are used to specify a subset of fields that should be
returned by a get operation or modified by an update operation.
Field masks also have a custom JSON encoding (see below).
# Field Masks in Projections
When used in the context of a projection, a response message or
sub-message is filtered by the API to only contain those fields as
specified in the mask. For example, if the mask in the previous
example is applied to a response message as follows:
f {
a : 22
b {
d : 1
x : 2
}
y : 13
}
z: 8
The result will not contain specific values for fields x,y and z
(their value will be set to the default, and omitted in proto text
output):
f {
a : 22
b {
d : 1
}
}
A repeated field is not allowed except at the last position of a
paths string.
If a FieldMask object is not present in a get operation, the
operation applies to all fields (as if a FieldMask of all fields
had been specified).
Note that a field mask does not necessarily apply to the
top-level response message. In case of a REST get operation, the
field mask applies directly to the response, but in case of a REST
list operation, the mask instead applies to each individual message
in the returned resource list. In case of a REST custom method,
other definitions may be used. Where the mask applies will be
clearly documented together with its declaration in the API. In
any case, the effect on the returned resource/resources is required
behavior for APIs.
# Field Masks in Update Operations
A field mask in update operations specifies which fields of the
targeted resource are going to be updated. The API is required
to only change the values of the fields as specified in the mask
and leave the others untouched. If a resource is passed in to
describe the updated values, the API ignores the values of all
fields not covered by the mask.
If a repeated field is specified for an update operation, new values will
be appended to the existing repeated field in the target resource. Note that
a repeated field is only allowed in the last position of a `paths` string.
If a sub-message is specified in the last position of the field mask for an
update operation, then new value will be merged into the existing sub-message
in the target resource.
For example, given the target message:
f {
b {
d: 1
x: 2
}
c: [1]
}
And an update message:
f {
b {
d: 10
}
c: [2]
}
then if the field mask is:
paths: ["f.b", "f.c"]
then the result will be:
f {
b {
d: 10
x: 2
}
c: [1, 2]
}
An implementation may provide options to override this default behavior for
repeated and message fields.
In order to reset a field's value to the default, the field must
be in the mask and set to the default value in the provided resource.
Hence, in order to reset all fields of a resource, provide a default
instance of the resource and set all fields in the mask, or do
not provide a mask as described below.
If a field mask is not present on update, the operation applies to
all fields (as if a field mask of all fields has been specified).
Note that in the presence of schema evolution, this may mean that
fields the client does not know and has therefore not filled into
the request will be reset to their default. If this is unwanted
behavior, a specific service may require a client to always specify
a field mask, producing an error if not.
As with get operations, the location of the resource which
describes the updated values in the request message depends on the
operation kind. In any case, the effect of the field mask is
required to be honored by the API.
## Considerations for HTTP REST
The HTTP kind of an update operation which uses a field mask must
be set to PATCH instead of PUT in order to satisfy HTTP semantics
(PUT must only be used for full updates).
# JSON Encoding of Field Masks
In JSON, a field mask is encoded as a single string where paths are
separated by a comma. Fields name in each path are converted
to/from lower-camel naming conventions.
As an example, consider the following message declarations:
message Profile {
User user = 1;
Photo photo = 2;
}
message User {
string display_name = 1;
string address = 2;
}
In proto a field mask for `Profile` may look as such:
mask {
paths: "user.display_name"
paths: "photo"
}
In JSON, the same mask is represented as below:
{
mask: "user.displayName,photo"
}
# Field Masks and Oneof Fields
Field masks treat fields in oneofs just as regular fields. Consider the
following message:
message SampleMessage {
oneof test_oneof {
string name = 4;
SubMessage sub_message = 9;
}
}
The field mask can be:
mask {
paths: "name"
}
Or:
mask {
paths: "sub_message"
}
Note that oneof type names ("test_oneof" in this case) cannot be used in
paths.
## Field Mask Verification
The implementation of any API method which has a FieldMask type field in the
request should verify the included field paths, and return an
`INVALID_ARGUMENT` error if any path is unmappable.
type: string
google.protobuf.Timestamp:
description: |-
A Timestamp represents a point in time independent of any time zone or local
calendar, encoded as a count of seconds and fractions of seconds at
nanosecond resolution. The count is relative to an epoch at UTC midnight on
January 1, 1970, in the proleptic Gregorian calendar which extends the
Gregorian calendar backwards to year one.
All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
second table is needed for interpretation, using a [24-hour linear
smear](https://developers.google.com/time/smear).
The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
restricting to that range, we ensure that we can convert to and from [RFC
3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
# Examples
Example 1: Compute Timestamp from POSIX `time()`.
Timestamp timestamp;
timestamp.set_seconds(time(NULL));
timestamp.set_nanos(0);
Example 2: Compute Timestamp from POSIX `gettimeofday()`.
struct timeval tv;
gettimeofday(&tv, NULL);
Timestamp timestamp;
timestamp.set_seconds(tv.tv_sec);
timestamp.set_nanos(tv.tv_usec * 1000);
Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
FILETIME ft;
GetSystemTimeAsFileTime(&ft);
UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
// A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
// is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
Timestamp timestamp;
timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
long millis = System.currentTimeMillis();
Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
.setNanos((int) ((millis % 1000) * 1000000)).build();
Example 5: Compute Timestamp from Java `Instant.now()`.
Instant now = Instant.now();
Timestamp timestamp =
Timestamp.newBuilder().setSeconds(now.getEpochSecond())
.setNanos(now.getNano()).build();
Example 6: Compute Timestamp from current time in Python.
timestamp = Timestamp()
timestamp.GetCurrentTime()
# JSON Mapping
In JSON format, the Timestamp type is encoded as a string in the
[RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
where {year} is always expressed using four digits while {month}, {day},
{hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
is required. A proto3 JSON serializer should always use UTC (as indicated by
"Z") when printing the Timestamp type and a proto3 JSON parser should be
able to accept both UTC and other timezones (as indicated by an offset).
For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
01:30 UTC on January 15, 2017.
In JavaScript, one can convert a Date object to this format using the
standard
[toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
method. In Python, a standard `datetime.datetime` object can be converted
to this format using
[`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
the Joda Time's [`ISODateTimeFormat.dateTime()`](
http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
) to obtain a formatter capable of generating timestamps in this format.
examples:
- 2023-01-15T01:30:15.01Z
- 2024-12-25T12:00:00Z
format: date-time
type: string
redpanda.core.admin.v2.ACLAccessFilter:
additionalProperties: false
description: Filter an ACL based on its access
properties:
host:
description: |-
The host to match. If not set, will default to match all hosts
with the specified `operation` and `permission_type`. Note that
the asterisk `*` is literal and matches hosts that are set to `*`
title: host
type: string
operation:
allOf:
- $ref: "#/components/schemas/redpanda.core.common.v1.ACLOperation"
description: The ACL operation to match
title: operation
permissionType:
allOf:
- $ref: "#/components/schemas/redpanda.core.common.v1.ACLPermissionType"
description: The permission type
title: permission_type
principal:
description: |-
The name of the principal, if not set will default to match
all principals with the specified `operation` and `permission_type`
title: principal
type: string
title: ACLAccessFilter
type: object
redpanda.core.admin.v2.ACLFilter:
additionalProperties: false
description: A filter for ACLs
properties:
accessFilter:
allOf:
- $ref: "#/components/schemas/redpanda.core.admin.v2.ACLAccessFilter"
description: The access filter
title: access_filter
resourceFilter:
allOf:
- $ref: "#/components/schemas/redpanda.core.admin.v2.ACLResourceFilter"
description: The resource filter
title: resource_filter
title: ACLFilter
type: object
redpanda.core.admin.v2.ACLResourceFilter:
additionalProperties: false
description: A filter to match ACLs for resources
properties:
name:
description: |-
Name, if not given will default to match all items in `resource_type`.
Note that asterisk `*` is literal and matches resource ACLs
that are named `*`
title: name
type: string
patternType:
allOf:
- $ref: "#/components/schemas/redpanda.core.common.v1.ACLPattern"
description: The pattern to apply to name
title: pattern_type
resourceType:
allOf:
- $ref: "#/components/schemas/redpanda.core.common.v1.ACLResource"
description: The ACL resource type to match
title: resource_type
title: ACLResourceFilter
type: object
redpanda.core.admin.v2.AddRoleMembersRequest:
additionalProperties: false
description: AddRoleMembersRequest is the request for the AddRoleMembers RPC.
properties:
members:
description: |-
The members to add to the Role. If any members are already part of the
role, they are ignored.
items:
$ref: "#/components/schemas/redpanda.core.admin.v2.RoleMember"
title: members
type: array
roleName:
description: The name of the Role to add members to.
title: role_name
type: string
required:
- roleName
- members
title: AddRoleMembersRequest
type: object
redpanda.core.admin.v2.AddRoleMembersResponse:
additionalProperties: false
description: AddRoleMembersResponse is the response from the AddRoleMembers RPC.
properties:
role:
allOf:
- $ref: "#/components/schemas/redpanda.core.admin.v2.Role"
description: The updated Role.
title: role
title: AddRoleMembersResponse
type: object
redpanda.core.admin.v2.AdminServer:
additionalProperties: false
description: AdminServer has information about the admin server within the broker.
properties:
routes:
description: All of the ConnectRPC routes available on this admin server.
items:
$ref: "#/components/schemas/redpanda.core.admin.v2.RPCRoute"
title: routes
type: array
title: AdminServer
type: object
redpanda.core.admin.v2.AuthenticationConfiguration:
additionalProperties: false
description: |-
Authentication config. Supports:
* SASL/SCRAM
* SASL/PLAIN
oneOf:
- properties:
plainConfiguration:
allOf:
- $ref: "#/components/schemas/redpanda.core.admin.v2.PlainConfig"
description: SASL/PLAIN configuration
title: plain_configuration
required:
- plainConfiguration
title: plain_configuration
- properties:
scramConfiguration:
allOf:
- $ref: "#/components/schemas/redpanda.core.admin.v2.ScramConfig"
description: SASL/SCRAM configuration
title: scram_configuration
required:
- scramConfiguration
title: scram_configuration
title: AuthenticationConfiguration
type: object
redpanda.core.admin.v2.AuthenticationInfo:
additionalProperties: false
description: Other Messages
properties:
mechanism:
allOf:
- $ref: "#/components/schemas/redpanda.core.admin.v2.AuthenticationMechanism"
description: Authentication mechanism
title: mechanism
state:
allOf:
- $ref: "#/components/schemas/redpanda.core.admin.v2.AuthenticationState"
description: Authentication state
title: state
userPrincipal:
description: Authenticated user principal
title: user_principal
type: string
title: AuthenticationInfo
type: object
redpanda.core.admin.v2.AuthenticationMechanism:
enum:
- AUTHENTICATION_MECHANISM_UNSPECIFIED
- AUTHENTICATION_MECHANISM_MTLS
- AUTHENTICATION_MECHANISM_SASL_SCRAM
- AUTHENTICATION_MECHANISM_SASL_OAUTHBEARER
- AUTHENTICATION_MECHANISM_SASL_PLAIN
- AUTHENTICATION_MECHANISM_SASL_GSSAPI
title: AuthenticationMechanism
type: string
redpanda.core.admin.v2.AuthenticationState:
enum:
- AUTHENTICATION_STATE_UNSPECIFIED
- AUTHENTICATION_STATE_UNAUTHENTICATED
- AUTHENTICATION_STATE_SUCCESS
- AUTHENTICATION_STATE_FAILURE
title: AuthenticationState
type: string
redpanda.core.admin.v2.Broker:
additionalProperties: false
description: The resource for an individual broker within the Kafka Cluster.
properties:
adminServer:
allOf:
- $ref: "#/components/schemas/redpanda.core.admin.v2.AdminServer"
description: |-
The admin server information.
Only populated for `GetBroker` RPCs
nullable: true
title: admin_server
buildInfo:
allOf:
- $ref: "#/components/schemas/redpanda.core.admin.v2.BuildInfo"
description: |-
The build this broker is running.
Only populated for `GetBroker` RPCs
nullable: true
title: build_info
nodeId:
description: This broker's node ID.
format: int32
title: node_id
type: integer
title: Broker
type: object
redpanda.core.admin.v2.BuildInfo:
additionalProperties: false
description: BuildInfo contains information about the Redpanda build.
properties:
buildSha:
description: The git commit SHA of the build.
title: build_sha
type: string
version:
description: A version string of Redpanda like "v25.2.1"
title: version
type: string
title: BuildInfo
type: object
redpanda.core.admin.v2.ConsumerOffsetSyncOptions:
additionalProperties: false
description: Options for syncing consumer offsets
properties:
effectiveInterval:
allOf:
- $ref: "#/components/schemas/google.protobuf.Duration"
description: The effective interval for the task
readOnly: true
title: effective_interval
groupFilters:
description: The filters
items:
$ref: "#/components/schemas/redpanda.core.admin.v2.NameFilter"
title: group_filters
type: array
interval:
allOf:
- $ref: "#/components/schemas/google.protobuf.Duration"
description: |-
Sync interval
If 0 provided, defaults to 30 seconds
title: interval
paused:
description: |-
Allows user to pause the consumer offset sync task. If paused, then
the task will enter the 'paused' state and not sync consumer offsets from
the source cluster
title: paused
type: boolean
title: ConsumerOffsetSyncOptions
type: object
redpanda.core.admin.v2.CreateRoleRequest:
additionalProperties: false
description: CreateRoleRequest is the request for the CreateRole RPC.
properties:
role:
allOf:
- $ref: "#/components/schemas/redpanda.core.admin.v2.Role"
description: The Role to create.
title: role
required:
- role
title: CreateRoleRequest
type: object
redpanda.core.admin.v2.CreateRoleResponse:
additionalProperties: false
description: CreateRoleResponse is the response from the CreateRole RPC.
properties:
role:
allOf:
- $ref: "#/components/schemas/redpanda.core.admin.v2.Role"
description: The created Role.
title: role
title: CreateRoleResponse
type: object
redpanda.core.admin.v2.CreateScramCredentialRequest:
additionalProperties: false
description: |-
CreateScramCredentialRequest is the request for the CreateScramCredential
RPC.
properties:
scramCredential:
allOf:
- $ref: "#/components/schemas/redpanda.core.admin.v2.ScramCredential"
description: The SCRAM credential to create.
title: scram_credential
required:
- scramCredential
title: CreateScramCredentialRequest
type: object
redpanda.core.admin.v2.CreateScramCredentialResponse:
additionalProperties: false
description: |-
CreateScramCredentialResponse is the response from the CreateScramCredential
RPC.
properties:
scramCredential:
allOf:
- $ref: "#/components/schemas/redpanda.core.admin.v2.ScramCredential"
description: The created SCRAM credential.
title: scram_credential
title: CreateScramCredentialResponse
type: object
redpanda.core.admin.v2.CreateShadowLinkRequest:
additionalProperties: false
description: Create a new shadow link
properties:
shadowLink:
allOf:
- $ref: "#/components/schemas/redpanda.core.admin.v2.ShadowLink"
description: The shadow link to create
title: shadow_link
title: CreateShadowLinkRequest
type: object
redpanda.core.admin.v2.CreateShadowLinkResponse:
additionalProperties: false
description: Response to creating a shadow link
properties:
shadowLink:
allOf:
- $ref: "#/components/schemas/redpanda.core.admin.v2.ShadowLink"
description: The shadow link that was created
title: shadow_link
title: CreateShadowLinkResponse
type: object
redpanda.core.admin.v2.DeleteRoleRequest:
additionalProperties: false
description: DeleteRoleRequest is the request for the DeleteRole RPC.
properties:
deleteAcls:
description: Whether to also delete any ACLs associated with this role.
title: delete_acls
type: boolean
name:
description: The name of the Role to delete.
title: name
type: string
required:
- name
title: DeleteRoleRequest
type: object
redpanda.core.admin.v2.DeleteRoleResponse:
additionalProperties: false
description: DeleteRoleResponse is the response from the DeleteRole RPC.
title: DeleteRoleResponse
type: object
redpanda.core.admin.v2.DeleteScramCredentialRequest:
additionalProperties: false
description: |-
DeleteScramCredentialRequest is the request for the DeleteScramCredential
RPC.
properties:
name:
description: The name of the SCRAM credential to delete.
title: name
type: string
required:
- name
title: DeleteScramCredentialRequest
type: object
redpanda.core.admin.v2.DeleteScramCredentialResponse:
additionalProperties: false
description: |-
DeleteScramCredentialResponse is the response from the DeleteScramCredential
RPC.
title: DeleteScramCredentialResponse
type: object
redpanda.core.admin.v2.DeleteShadowLinkRequest:
additionalProperties: false
description: Request to delete a shadow link
properties:
force:
description: |-
By default, DeleteShadowLink will fail if there are any active Shadow
Topics. Set this flag to 'true' if you wish to delete the link while
there are active shadow topics.
title: force
type: boolean
name:
description: The name of the link to delete
title: name
type: string
required:
- name
title: DeleteShadowLinkRequest
type: object
redpanda.core.admin.v2.DeleteShadowLinkResponse:
additionalProperties: false
description: Response to deleting a shadow link
title: DeleteShadowLinkResponse
type: object
redpanda.core.admin.v2.FailOverRequest:
additionalProperties: false
description: Request to fail over a shadow link or a single shadow topic
properties:
name:
description: The name of the shadow link to fail over
title: name
type: string
shadowTopicName:
description: |-
(OPTIONAL) The name of the shadow topic to fail over, if not set will fail over
the entire shadow link
title: shadow_topic_name
type: string
required:
- name
title: FailOverRequest
type: object
redpanda.core.admin.v2.FailOverResponse:
additionalProperties: false
description: The response to the FailOverRequest
properties:
shadowLink:
allOf:
- $ref: "#/components/schemas/redpanda.core.admin.v2.ShadowLink"
description: The shadow link that was failed over
title: shadow_link
title: FailOverResponse
type: object
redpanda.core.admin.v2.FilterType:
description: What type of filter this is, include or exclude
enum:
- FILTER_TYPE_UNSPECIFIED
- FILTER_TYPE_INCLUDE
- FILTER_TYPE_EXCLUDE
title: FilterType
type: string
redpanda.core.admin.v2.GetBrokerRequest:
additionalProperties: false
description: GetBrokerRequest returns information about a single broker in the cluster
properties:
nodeId:
description: |-
The node ID for the broker. If unset, the broker handling the RPC
request returns information about itself.
format: int32
nullable: true
title: node_id
type: integer
title: GetBrokerRequest
type: object
redpanda.core.admin.v2.GetBrokerResponse:
additionalProperties: false
description: GetBrokerResponse is the response from the GetBroker RPC.
properties:
broker:
allOf:
- $ref: "#/components/schemas/redpanda.core.admin.v2.Broker"
description: The specified broker and it's information.
title: broker
title: GetBrokerResponse
type: object
redpanda.core.admin.v2.GetRoleRequest:
additionalProperties: false
description: GetRoleRequest is the request for the GetRole RPC.
properties:
name:
description: The name of the Role to retrieve.
title: name
type: string
required:
- name
title: GetRoleRequest
type: object
redpanda.core.admin.v2.GetRoleResponse:
additionalProperties: false
description: GetRoleResponse is the response from the GetRole RPC.
properties:
role:
allOf:
- $ref: "#/components/schemas/redpanda.core.admin.v2.Role"
description: The requested Role.
title: role
title: GetRoleResponse
type: object
redpanda.core.admin.v2.GetScramCredentialRequest:
additionalProperties: false
description: GetScramCredentialRequest is the request for the GetScramCredential RPC.
properties:
name:
description: The name of the SCRAM credential to retrieve.
title: name
type: string
required:
- name
title: GetScramCredentialRequest
type: object
redpanda.core.admin.v2.GetScramCredentialResponse:
additionalProperties: false
description: GetScramCredentialResponse is the response from the GetScramCredential RPC.
properties:
scramCredential:
allOf:
- $ref: "#/components/schemas/redpanda.core.admin.v2.ScramCredential"
description: The requested SCRAM credential.
title: scram_credential
title: GetScramCredentialResponse
type: object
redpanda.core.admin.v2.GetShadowLinkRequest:
additionalProperties: false
description: Request to get the information about a shadow link
properties:
name:
description: The name of the shadow link to get
title: name
type: string
required:
- name
title: GetShadowLinkRequest
type: object
redpanda.core.admin.v2.GetShadowLinkResponse:
additionalProperties: false
description: Response to getting a shadow link
properties:
shadowLink:
allOf:
- $ref: "#/components/schemas/redpanda.core.admin.v2.ShadowLink"
description: The shadow link that was retrieved
title: shadow_link
title: GetShadowLinkResponse
type: object
redpanda.core.admin.v2.GetShadowTopicRequest:
additionalProperties: false
description: Request to get a shadow topic
properties:
name:
description: The name of the shadow topic to get
title: name
type: string
shadowLinkName:
description: The name of the shadow link the topic is contained in
title: shadow_link_name
type: string
required:
- shadowLinkName
- name
title: GetShadowTopicRequest
type: object
redpanda.core.admin.v2.GetShadowTopicResponse:
additionalProperties: false
description: Response of to getting a shadow topic
properties:
shadowTopic:
allOf:
- $ref: "#/components/schemas/redpanda.core.admin.v2.ShadowTopic"
title: shadow_topic
title: GetShadowTopicResponse
type: object
redpanda.core.admin.v2.InFlightRequests:
additionalProperties: false
properties:
hasMoreRequests:
description: |-
Whether there are more in-flight requests than those in
`sampled_in_flight_requests`.
title: has_more_requests
type: boolean
sampledInFlightRequests:
description: A sample (e.g., the 5 latest) of the currently in-flight requests
items:
$ref: "#/components/schemas/redpanda.core.admin.v2.InFlightRequests.Request"
title: sampled_in_flight_requests
type: array
title: InFlightRequests
type: object
redpanda.core.admin.v2.InFlightRequests.Request:
additionalProperties: false