Body
Required
-
The host address to use for this ACL. To allow a principal access from multiple hosts, you must create an ACL for each host.
-
The operation that is allowed or denied (e.g. READ).
Values are
OPERATION_ANY
,OPERATION_ALL
,OPERATION_READ
,OPERATION_WRITE
,OPERATION_CREATE
,OPERATION_DELETE
,OPERATION_ALTER
,OPERATION_DESCRIBE
,OPERATION_CLUSTER_ACTION
,OPERATION_DESCRIBE_CONFIGS
,OPERATION_ALTER_CONFIGS
,OPERATION_IDEMPOTENT_WRITE
,OPERATION_CREATE_TOKENS
, orOPERATION_DESCRIBE_TOKENS
. -
Whether the operation should be allowed or denied.
Values are
PERMISSION_TYPE_ANY
,PERMISSION_TYPE_DENY
, orPERMISSION_TYPE_ALLOW
. -
The user for whom this ACL applies. With the Kafka simple authorizer, you must include the prefix "User:" with the user name.
-
The name of the resource this ACL targets. For requests with resource_type CLUSTER, this will default to "kafka-cluster".
-
The pattern to use for matching the specified resource_name (any, exact match, literal, or prefixed).
Values are
RESOURCE_PATTERN_TYPE_ANY
,RESOURCE_PATTERN_TYPE_MATCH
,RESOURCE_PATTERN_TYPE_LITERAL
, orRESOURCE_PATTERN_TYPE_PREFIXED
. -
The type of resource (topic, consumer group, etc.) this ACL targets.
Values are
RESOURCE_TYPE_ANY
,RESOURCE_TYPE_TOPIC
,RESOURCE_TYPE_GROUP
,RESOURCE_TYPE_CLUSTER
,RESOURCE_TYPE_TRANSACTIONAL_ID
,RESOURCE_TYPE_DELEGATION_TOKEN
, orRESOURCE_TYPE_USER
.
curl \
--request POST 'https://{dataplane_api_subdomain}.cloud.redpanda.com/v1/acls' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"host":"string","operation":"OPERATION_ANY","permission_type":"PERMISSION_TYPE_ANY","principal":"string","resource_name":"string","resource_pattern_type":"RESOURCE_PATTERN_TYPE_ANY","resource_type":"RESOURCE_TYPE_ANY"}'
{
"host": "string",
"operation": "OPERATION_ANY",
"permission_type": "PERMISSION_TYPE_ANY",
"principal": "string",
"resource_name": "string",
"resource_pattern_type": "RESOURCE_PATTERN_TYPE_ANY",
"resource_type": "RESOURCE_TYPE_ANY"
}
{}
{
"code": "OK",
"details": [
{
"@type": "type.googleapis.com/google.rpc.BadRequest",
"field_violations": [
{
"description": "string",
"field": "string"
}
]
}
],
"message": "string"
}
{
"code": "OK",
"details": [
{
"@type": "type.googleapis.com/google.rpc.BadRequest",
"field_violations": [
{
"description": "string",
"field": "string"
}
]
}
],
"message": "string"
}
{
"code": "OK",
"details": [
{
"@type": "type.googleapis.com/google.rpc.BadRequest",
"field_violations": [
{
"description": "string",
"field": "string"
}
]
}
],
"message": "string"
}