Body
Required
-
The name of the principal, for example, User:alice or RedpandaRole:admin. Use "*" to represent a wildcard.
-
The name of the resource. Use "*" to represent a wildcard.
-
The type of resource being secured.
Values are
REGISTRY
orSUBJECT
. -
Pattern match type for the resource. Only applies when
resource_type
is SUBJECT.Values are
LITERAL
orPREFIXED
. -
Originating host for which this rule applies. Use "*" to represent a wildcard.
-
The operation to allow or deny.
Values are
ALL
,READ
,WRITE
,DELETE
,DESCRIBE
,DESCRIBE_CONFIGS
, orALTER_CONFIGS
. -
Specifies whether the operation is allowed or denied.
Values are
ALLOW
orDENY
.
POST
/security/acls
curl \
--request POST 'http://localhost:8081/security/acls' \
--header "Content-Type: application/json" \
--data '[{"principal":"string","resource":"string","resource_type":"REGISTRY","pattern_type":"LITERAL","host":"string","operation":"ALL","permission":"ALLOW"}]'
Request examples
[
{
"principal": "string",
"resource": "string",
"resource_type": "REGISTRY",
"pattern_type": "LITERAL",
"host": "string",
"operation": "ALL",
"permission": "ALLOW"
}
]
Response examples (400)
{
"error_code": 42,
"message": "string"
}
Response examples (401)
{
"error_code": 42,
"message": "string"
}
Response examples (403)
{
"error_code": 42,
"message": "string"
}
Response examples (500)
{
"error_code": 42,
"message": "string"
}