Creates a rule for a permission group.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
AccessGroupName | string | Yes | The name of the permission group. | vpc-test |
SourceCidrIp | string | No | The IP address or CIDR block of the authorized object. You must set this parameter to an IP address or CIDR block. Note
If the permission group resides in the classic network, you must set this parameter to an IP address.
| 192.0.2.0/16 |
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. | no_squash |
Priority | integer | No | The priority of the rule. The rule with the highest priority takes effect if multiple rules are attached to the authorized object. Valid values: 1 to 100. The value 1 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 address or CIDR block. Note
| 2001:250:6000::*** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "A323836B-5BC6-45A6-8048-60675C23****",
"AccessRuleId": "1"
}
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.