Deletes an access control list (ACL).
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DeleteAcl |
The operation that you want to perform. Set the value to DeleteAcl. |
AclOperationType | String | Yes | Write |
The type of operation allowed by the ACL. Valid values:
|
AclResourceName | String | Yes | demo |
The name of the resource.
|
AclResourcePatternType | String | Yes | LITERAL |
The matching mode. Valid values:
|
AclResourceType | String | Yes | Topic |
The type of the resource.
|
InstanceId | String | Yes | alikafka_pre-cn-v0h1cng0**** |
The ID of the Message Queue for Apache Kafka instance from which you want to delete the ACL. |
RegionId | String | Yes | cn-hangzhou |
The ID of the region where the instance is located. |
Username | String | Yes | test12**** |
The name of the user. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | Integer | 200 |
The response code. The HTTP 200 code indicates that the request was successful. |
Message | String | operation success |
The response message. |
RequestId | String | B0740227-AA9A-4E14-8E9F-36ED6652*** |
The ID of the request. |
Success | Boolean | true |
Indicates whether the request was successful. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=DeleteAcl
&AclOperationType=Write
&AclResourceName=demo
&AclResourcePatternType=LITERAL
&AclResourceType=Topic
&InstanceId=alikafka_pre-cn-v0h1cng0****
&RegionId=cn-hangzhou
&Username=test12****
&<Common request parameters>
Sample success responses
XML
format
<DeleteAclResponse>
<RequestId>B0740227-AA9A-4E14-8E9F-36ED6652***</RequestId>
<Message>operation success</Message>
<Code>200</Code>
<Success>true</Success>
</DeleteAclResponse>
JSON
format
{
"RequestId": "B0740227-AA9A-4E14-8E9F-36ED6652***",
"Message": "operation success",
"Code": 200,
"Success": true
}
Error codes
For a list of error codes, visit the API Error Center.