All Products
Search
Document Center

File Storage NAS:DescribeAccessGroups

更新時間:Dec 19, 2024

Queries permission groups.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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.
OperationAccess levelResource typeCondition keyAssociated operation
nas:DescribeAccessGroupslist
*AccessGroup
acs:nas:{#regionId}:{#accountId}:accessgroup/{#accessgroupName}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
AccessGroupNamestringNo

The name of the permission group.

Limits:

  • The name must be 3 to 64 characters in length.
  • The name must start with a letter and can contain letters, digits, underscores (_), and hyphens (-).
DEFAULT_VPC_GROUP_NAME
PageSizeintegerNo

The number of entries per page.

Valid values: 1 to 100.

Default value: 10.

2
PageNumberintegerNo

The page number.

Pages start from page 1. Default value: 1.

1
UseUTCDateTimebooleanNo

Specifies whether to display the creation time of the permission group in UTC.

Valid values:

  • true (default): The time is displayed in UTC.
  • false: The time is not displayed in UTC.
true
FileSystemTypestringNo

The type of the file system.

Valid values:

  • standard (default): General-purpose NAS file system
  • extreme: Extreme NAS file system
  • cpfs: Cloud Parallel File Storage (CPFS) file system
Note CPFS file systems are available only on the China site (aliyun.com).
standard

Response parameters

ParameterTypeDescriptionExample
object
AccessGroupsarray<object>

The queried permission groups.

AccessGroupobject
AccessGroupNamestring

The name of the permission group.

DEFAULT_VPC_GROUP_NAME
Descriptionstring

The description of the permission group.

This is a test access group.
CreateTimestring

The time when the permission group was created.

2020-01-05T16:00:00Z
AccessGroupTypestring

The network type of the permission group. Valid value: Vpc.

Vpc
RuleCountinteger

The total number of rules in the permission group.

0
MountTargetCountinteger

The number of mount targets to which the permission group is attached.

0
FileSystemTypestring

The type of the file system.

Valid values:

  • standard: General-purpose File Storage NAS (NAS) file system
  • extreme: Extreme NAS file system
  • cpfs: Cloud Parallel File Storage (CPFS) file system
Note CPFS file systems are available only on the China site (aliyun.com).
standard
RegionIdstring

The region ID.

cn-hangzhou
TotalCountinteger

The total number of permission groups.

1
RequestIdstring

The request ID.

2514F97E-FFF0-4A1F-BF04-729CEAC6****
PageSizeinteger

The number of permission groups returned per page.

2
PageNumberinteger

The page number.

1

Examples

Sample success responses

JSONformat

{
  "AccessGroups": {
    "AccessGroup": [
      {
        "AccessGroupName": "DEFAULT_VPC_GROUP_NAME",
        "Description": "This is a test access group.",
        "CreateTime": "2020-01-05T16:00:00Z",
        "AccessGroupType": "Vpc",
        "RuleCount": 0,
        "MountTargetCount": 0,
        "FileSystemType": "standard",
        "RegionId": "cn-hangzhou"
      }
    ]
  },
  "TotalCount": 1,
  "RequestId": "2514F97E-FFF0-4A1F-BF04-729CEAC6****",
  "PageSize": 2,
  "PageNumber": 1
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-02-26The Error code has changed. The response structure of the API has changedView Change Details
2023-11-03The Error code has changedView Change Details