All Products
Search
Document Center

Message Queue for Apache Kafka:DeleteAcl

Last Updated:Nov 18, 2022

Deletes an access control list (ACL).

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID of the instance.

cn-hangzhou
InstanceIdstringYes

The ID of the instance.

alikafka_pre-cn-v0h1cng0****
UsernamestringYes

The name of the Simple Authentication and Security Layer (SASL) user.

test12****
AclResourceTypestringYes

The type of the resource.

  • Topic
  • Group
Topic
Enumeration value:
- Group: Group
- Topic: Topic
AclResourceNamestringYes

The name of the resource.

  • The value can be the name of a topic or a consumer group.
  • You can use an asterisk (*) to represent the names of all topics or consumer groups.
demo
AclResourcePatternTypestringYes

The mode that is used to match resources. Valid values:

  • LITERAL: full-name match
  • PREFIXED: prefix match
LITERAL
AclOperationTypestringYes

The type of operation allowed by the ACL. Valid values:

  • Write
  • Read
Write

Response parameters

ParameterTypeDescriptionExample
object
Codeinteger

The HTTP status code returned. The HTTP status code 200 indicates that the request is successful.

200
Messagestring

The returned message.

operation success
RequestIdstring

The ID of the request.

B0740227-AA9A-4E14-8E9F-36ED665****
Successboolean

Indicates whether the request is successful.

true

Example

Normal return example

JSONFormat

{
  "Code": 200,
  "Message": "operation success",
  "RequestId": "B0740227-AA9A-4E14-8E9F-36ED665****",
  "Success": true
}

Error codes

For a list of error codes, visit the API error center.