Deletes a rule from a permission group.
Description
You cannot delete rules from the following default permission groups: DEFAULT_VPC_GROUP_NAME and DEFAULT_CLASSIC_GROUP_NAME.
Debugging
OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | DeleteAccessRule |
The operation that you want to perform. Set the value to DeleteAccessRule. |
| AccessGroupName | String | Yes | classic-test |
The name of the permission group. |
| AccessRuleId | String | Yes | 1 |
The ID of the rule. |
| FileSystemType | String | No | standard |
The type of the file system. Valid values:
|
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | 5B4511A7-C99E-4071-AA8C-32E2529D**** |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DeleteAccessRule
&AccessGroupName=classic-test
&AccessRuleId=1
&<Common request parameters>
Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<?xml version="1.0" encoding="UTF-8"?>
<DeleteAccessRuleResponse>
<RequestId>5B4511A7-C99E-4071-AA8C-32E2529D****</RequestId>
</DeleteAccessRuleResponse>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "5B4511A7-C99E-4071-AA8C-32E2529D****"
}
Error codes
For a list of error codes, visit the API Error Center.