Modifies a rule in a permission group.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyAccessRule |
The operation that you want to perform. Set the value to ModifyAccessRule. |
AccessGroupName | String | Yes | classic-test |
The name of the permission group. |
AccessRuleId | String | Yes | 1 |
The ID of the rule. |
SourceCidrIp | String | Yes | 192.1.1.1 |
The IP address or CIDR block of the authorized object. You can specify only one IP address or CIDR block for this parameter. Note If the permission group resides in the classic network, you can specify only one IP
address for this parameter.
|
RWAccessType | String | No | RDWR |
Grants access permissions on the file system to the authorized object. Valid values:
|
UserAccessType | String | No | all_squash |
The access permissions for different types of users in the authorized object. Valid values:
The nobody user has the least permissions in Linux and can access only the public content of the file system. This ensures the security of the file system. |
Priority | Integer | No | 1 |
The priority of the rule. Valid values: 1 to 100. Default value: 1, which indicates the highest priority. |
FileSystemType | String | No | standard |
The type of the file system. Valid values:
|
Ipv6SourceCidrIp | String | No | 2001:250:6000::*** |
The IPv6 address or IPv6 CIDR block of the authorized object. You can specify only one IPv6 address or IPv6 CIDR block for this parameter. Note
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 6299428C-3861-435D-AE54-9B330A00**** |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=ModifyAccessRule
&AccessGroupName=classic-test
&AccessRuleId=1
&SourceCidrIp=192.1.1.1
&<Common request parameters>
Sample success responses
XML
format
<ModifyAccessRuleResponse>
<RequestId>6299428C-3861-435D-AE54-9B330A00****</RequestId>
</ModifyAccessRuleResponse>
JSON
format
{
"RequestId": "6299428C-3861-435D-AE54-9B330A00****"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | InvalidParam.Ipv6SourceCidrIp | IPv6 address verification failed. | The error message returned because IPv6 address verification has failed. |
400 | InvalidParam.SourceCidrIp | IPv4 address verification failed. | The error message returned because IPv4 address verification has failed. |
400 | InvalidParam.IPv4AndIPv6MutuallyExclusive | You cannot configure IPv4 and IPv6 at the same time. | The error message returned because IPv4 and IPv6 cannot be specified at the same time. |
400 | InvalidAccessGroup.NotsupportedIPv6 | The access group does not support IPv6. | The error message returned because the permission group does not support IPv6. |
For a list of error codes, visit the API Error Center.