Tüm Ürünler
Search
Belge Merkezi

:ModifyAccessRule

Son Güncelleme:Oct 02, 2026

Bir izin grubundaki izin kuralını değiştirir.

Operation description

Varsayılan izin grubundaki (DEFAULT_VPC_GROUP_NAME) kurallar değiştirilemez.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

nas:ModifyAccessRule

update

*AccessGroup

acs:nas:{#regionId}:{#accountId}:accessgroup/{#accessgroupName}

None None

Request parameters

Parameter

Type

Required

Description

Example

AccessGroupName

string

Yes

İzin grubunun adı.

vpc-test

AccessRuleId

string

Yes

İzin kuralı kimliği.

1

SourceCidrIp

string

No

IP adresi veya CIDR bloğu.

Değer, tek bir IP adresi veya bir CIDR bloğu olmalıdır.

Not

SourceCidrIp veya Ipv6SourceCidrIp parametrelerinden birini belirtmeniz gerekir. Her iki parametreyi de boş bırakamazsınız ve her iki parametreyi aynı anda belirtemezsiniz.

192.0.**.**

RWAccessType

string

No

Yetkilendirilen nesnenin dosya sistemi üzerindeki okuma ve yazma izinleri.

Geçerli değerler:

  • RDWR (varsayılan): okuma ve yazma.

  • RDONLY: salt okunur.

Valid values:

  • RDWR :

    Okuma ve yazma.

  • RDONLY :

    Salt okunur.

RDWR

UserAccessType

string

No

Yetkilendirilen nesnenin sistem kullanıcısının dosya sistemi üzerindeki yetkisi.

Geçerli değerler:

  • no_squash: dosya sistemine root kullanıcısı olarak erişime izin verir.

  • root_squash: root kullanıcısı dosya sistemine eriştiğinde root kullanıcısını nobody kullanıcısına eşler.

  • all_squash: dosya sistemine erişmek için kullanılan kullanıcı kimliğinden bağımsız olarak tüm kullanıcıları nobody kullanıcısına eşler.

nobody kullanıcısı Linux'ta varsayılan bir kullanıcıdır. Bu kullanıcı sunucudaki yalnızca genel içeriğe erişebilir, düşük yetkilere sahiptir ve güvenlik düzeyi yüksektir.

Valid values:

  • all_squash :

    Dosya sistemine erişmek için kullanılan kullanıcı kimliğinden bağımsız olarak tüm kullanıcıları nobody kullanıcısına eşler.

  • no_squash :

    Dosya sistemine root kullanıcısı olarak erişime izin verir.

  • root_squash :

    Root kullanıcısı dosya sistemine eriştiğinde root kullanıcısını nobody kullanıcısına eşler.

all_squash

Priority

integer

No

İzin kuralının önceliği.

Geçerli değerler: 1 ile 100 arası.

Varsayılan değer: 1 (en yüksek öncelik).

1

FileSystemType

string

No

Dosya sisteminin türü.

Geçerli değerler:

  • standard (varsayılan): Genel amaçlı NAS.

  • extreme: Extreme NAS.

Valid values:

  • standard :

    Genel amaçlı NAS.

  • extreme :

    Extreme NAS.

standard

Ipv6SourceCidrIp

string

No

Kaynak IPv6 CIDR bloğu.

IPv6 adresleri ve CIDR blokları desteklenir.

Not
  • Yalnızca Çin (Hohhot) bölgesindeki Extreme NAS dosya sistemleri IPv6 CIDR bloklarını destekler.

  • Yalnızca VPC'ler desteklenir.

  • IPv4 ve IPv6 birbirini dışlar. İki tür arasında dönüşüm yapamazsınız.

  • SourceCidrIp veya Ipv6SourceCidrIp parametrelerinden birini belirtmeniz gerekir. Her iki parametreyi de boş bırakamazsınız ve her iki parametreyi aynı anda belirtemezsiniz.

fe80::3d4a:80fd:f05d:****

Response elements

Element

Type

Description

Example

object

RequestId

string

İstek kimliği.

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.
400 InvalidParam.SourceCidrIp IPv4 address verification failed.
400 InvalidParam.IPv4AndIPv6MutuallyExclusive You cannot configure IPv4 and IPv6 at the same time.
400 InvalidAccessGroup.NotsupportedIPv6 The access group does not support IPv6.
400 InvalidParam.IPAddressIsBlank The IP address cannot be empty.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.