Modifies a permission rule in a permission group.
Operation description
Rules in the default permission group (DEFAULT_VPC_GROUP_NAME) cannot be modified.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nas:ModifyAccessRule |
update |
*AccessGroup
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AccessGroupName |
string |
Yes |
The name of the permission group. |
vpc-test |
| AccessRuleId |
string |
Yes |
The ID of the permission rule. |
1 |
| SourceCidrIp |
string |
No |
The IP address or CIDR block. The value must be a single IP address or a CIDR block. Note
You must specify either SourceCidrIp or Ipv6SourceCidrIp. You cannot leave both parameters empty, and you cannot specify both parameters at the same time. |
192.0.**.** |
| RWAccessType |
string |
No |
The read and write permissions of the authorized object on the file system. Valid values:
Valid values:
|
RDWR |
| UserAccessType |
string |
No |
The authorization of the system user of the authorized object on the file system. Valid values:
The nobody user is a default user in Linux. This user can access only public content on the server and has low privileges and high security. Valid values:
|
all_squash |
| Priority |
integer |
No |
The priority of the permission rule. Valid values: 1 to 100. Default value: 1 (highest priority). |
1 |
| FileSystemType |
string |
No |
The type of the file system. Valid values:
Valid values:
|
standard |
| Ipv6SourceCidrIp |
string |
No |
The source IPv6 CIDR block. IPv6 addresses and CIDR blocks are supported. Note
|
fe80::3d4a:80fd:f05d:**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
6299428C-3861-435D-AE54-9B330A00**** |
Examples
Success response
JSON format
{
"RequestId": "6299428C-3861-435D-AE54-9B330A00****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParam.Ipv6SourceCidrIp | IPv6 address verification failed. | IPv6 address verification failed. |
| 400 | InvalidParam.SourceCidrIp | IPv4 address verification failed. | IPv4 address verification failed. |
| 400 | InvalidParam.IPv4AndIPv6MutuallyExclusive | You cannot configure IPv4 and IPv6 at the same time. | You cannot configure IPv4 and IPv6 at the same time. |
| 400 | InvalidAccessGroup.NotsupportedIPv6 | The access group does not support IPv6. | The access group does not support IPv6. |
| 400 | InvalidParam.IPAddressIsBlank | The IP address cannot be empty. | The IP address cannot be empty. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.