...
1// CreateACLsRequest creates acls. Creating acls can be done as a batch; each
2// "creation" will be an acl entry.
3//
4// See the DescribeACLsRequest documentation for more descriptions of what
5// valid values for the fields in this request are.
6CreateACLsRequest => key 30, max version 3, flexible v2+
7 Creations: [=>]
8 // ResourceType is the type of resource this acl entry will be on.
9 // It is invalid to use UNKNOWN or ANY.
10 ResourceType: enum-ACLResourceType
11 // ResourceName is the name of the resource this acl entry will be on.
12 // For CLUSTER, this must be "kafka-cluster".
13 ResourceName: string
14 // ResourcePatternType is the pattern type to use for the resource name.
15 // This cannot be UNKNOWN or MATCH (i.e. this must be LITERAL or PREFIXED).
16 // The default for pre-Kafka 2.0.0 is effectively LITERAL.
17 ResourcePatternType: enum-ACLResourcePatternType(3) // v1+
18 // Principal is the user to apply this acl for. With the Kafka simple
19 // authorizer, this must begin with "User:".
20 Principal: string
21 // Host is the host address to use for this acl. Each host to allow
22 // the principal access from must be specified as a new creation. KIP-252
23 // might solve this someday. The special wildcard host "*" allows all hosts.
24 Host: string
25 // Operation is the operation this acl is for. This must not be UNKNOWN or
26 // ANY.
27 Operation: enum-ACLOperation
28 // PermissionType is the permission of this acl. This must be either ALLOW
29 // or DENY.
30 PermissionType: enum-ACLPermissionType
31
32// CreateACLsResponse is a response for a CreateACLsRequest.
33CreateACLsResponse =>
34 ThrottleMillis(1)
35 // Results contains responses to each creation request.
36 Results: [=>]
37 // ErrorCode is an error for this particular creation (index wise).
38 ErrorCode: int16
39 // ErrorMessage is a message for this error.
40 ErrorMessage: nullable-string
View as plain text