All Products
Search
Document Center

Apsara File Storage NAS:ModifyAccessRule

Last Updated:Mar 14, 2024

Modifies a rule in a permission group.

Operation description

The rules in the default permission group (DEFAULT_VPC_GROUP_NAME) cannot be modified.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
AccessGroupNamestringYes

The name of the permission group.

vpc-test
AccessRuleIdstringYes

The rule ID.

1
SourceCidrIpstringYes

The IP address or CIDR block of the authorized object.

You must set this parameter to an IP address or CIDR block.

192.0.**.**
RWAccessTypestringNo

The access permissions of the authorized object on the file system.

Valid values:

  • RDWR (default): the read and write permissions
  • RDONLY: the read-only permissions
RDWR
UserAccessTypestringNo

The access permissions for different types of users in the authorized object.

Valid values:

  • no_squash: allows access from root users to the file system.
  • root_squash: grants root users the least permissions as the nobody user.
  • all_squash: grants all users the least permissions as the nobody user.

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
PriorityintegerNo

The priority of the rule.

Valid values: 1 to 100.

Default value: 1, which indicates the highest priority.

1
FileSystemTypestringNo

The type of the file system.

Valid values:

  • standard (default): General-purpose NAS file system
  • extreme: Extreme NAS file system
standard
Ipv6SourceCidrIpstringNo

The IPv6 address or CIDR block of the authorized object.

You must set this parameter to an IPv6 IP address or CIDR block.

Note
  • Only Extreme NAS file systems that reside in the China (Hohhot) region support IPv6.
  • Only permission groups that reside in virtual private clouds (VPCs) support IPv6.
  • This parameter is unavailable if you specify the SourceCidrIp parameter.
  • fe80::3d4a:80fd:f05d:****

    Response parameters

    ParameterTypeDescriptionExample
    object
    RequestIdstring

    The request ID.

    6299428C-3861-435D-AE54-9B330A00****

    Examples

    Sample success responses

    JSONformat

    {
      "RequestId": "6299428C-3861-435D-AE54-9B330A00****"
    }

    Error codes

    HTTP status codeError codeError messageDescription
    400InvalidParam.Ipv6SourceCidrIpIPv6 address verification failed.IPv6 address verification failed.
    400InvalidParam.SourceCidrIpIPv4 address verification failed.IPv4 address verification failed.
    400InvalidParam.IPv4AndIPv6MutuallyExclusiveYou cannot configure IPv4 and IPv6 at the same time.You cannot configure IPv4 and IPv6 at the same time.
    400InvalidAccessGroup.NotsupportedIPv6The 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 timeSummary of changesOperation
    No change history