Modifies a rule in a permission group.
Operation description
The rules in the default permission group (DEFAULT_VPC_GROUP_NAME) cannot be modified.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
nas:ModifyAccessRule | update | *AccessGroup acs:nas:{#regionId}:{#accountId}:accessgroup/{#accessgroupName} |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
AccessGroupName | string | Yes | The name of the permission group. | vpc-test |
AccessRuleId | string | Yes | The rule ID. | 1 |
SourceCidrIp | string | Yes | The IP address or CIDR block of the authorized object. You must set this parameter to an IP address or CIDR block. | 192.0.**.** |
RWAccessType | string | No | The access permissions of the authorized object on the file system. Valid values:
| RDWR |
UserAccessType | string | No | 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. | all_squash |
Priority | integer | No | The priority of the rule. Valid values: 1 to 100. Default value: 1, which indicates the highest priority. | 1 |
FileSystemType | string | No | The type of the file system. Valid values:
| standard |
Ipv6SourceCidrIp | string | No | The IPv6 address or CIDR block of the authorized object. You must set this parameter to an IPv6 IP address or CIDR block. Note
| fe80::3d4a:80fd:f05d:**** |
Response parameters
Examples
Sample success responses
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. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-09-05 | API Description Update. The Error code has changed | View Change Details |