All Products
Search
Document Center

File Storage NAS:DescribeFileSystems

最終更新日:Dec 19, 2024

Queries file systems.

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:DescribeFileSystemsget
*FileSystem
acs:nas:{#regionId}:{#accountId}:filesystem/{#FileSystemId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
FileSystemIdstringNo

The ID of the file system.

  • Sample ID of a General-purpose NAS file system: 31a8e4****.
  • The IDs of Extreme NAS file systems must start with extreme-, for example, extreme-0015****.
  • The IDs of Cloud Parallel File Storage (CPFS) file systems must start with cpfs-, for example, cpfs-125487****.
Note CPFS file systems are available only on the China site (aliyun.com).
31a8e4****
FileSystemTypestringNo

The type of the file system.

Valid values:

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

The ID of the virtual private cloud (VPC).

If you want to mount the file system on an Elastic Compute Service (ECS) instance, the file system and the ECS instance must reside in the same VPC.

vpc-bp1sevsgtqvk5gxbl****
PageSizeintegerNo

The number of entries per page.

Valid values: 1 to 100.

Default value: 10.

10
PageNumberintegerNo

The page number.

Pages start from page 1. Default value: 1.

1
Tagarray<object>No

The details about the tags.

objectNo
KeystringNo

The key of tag N to add to the resource.

Limits:

  • Valid values of N: 1 to 20.
  • The tag key must be 1 to 128 characters in length.
  • The tag key cannot start with aliyun or acs:.
  • The tag key cannot contain http:// or https://.
test
ValuestringNo

The value of tag N to add to the resource.

Limits:

  • Valid values of N: 1 to 20.
  • The tag value must be 1 to 128 characters in length.
  • The tag value cannot start with aliyun or acs:.
  • The tag value cannot contain http:// or https://.
test-value
ResourceGroupIdstringNo

The resource group ID.

You can log on to the Resource Management console to view resource group IDs.

rg-acfmwavnfdf****

Response parameters

ParameterTypeDescriptionExample
object
FileSystemsarray<object>

The queried file systems.

FileSystemobject
Statusstring

The status of the file system. Valid values:

  • Pending: The file system is being created or modified.
  • Running: The file system is available. Before you create a mount target for the file system, make sure that the file system is in the Running state.
  • Stopped: The file system is unavailable.
  • Extending: The file system is being scaled up.
  • Stopping: The file system is being stopped.
  • Deleting: The file system is being deleted.
Pending
MeteredIASizelong

The storage usage of the Infrequent Access (IA) storage medium.

Unit: bytes.

362832
Capacitylong

The capacity of the file system.

Unit: GiB.

100
CreateTimestring

The time when the file system was created.

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

The billing method.

Valid values:

  • Subscription: The subscription billing method is used.
  • PayAsYouGo: The pay-as-you-go billing method is used.
  • Package: A storage plan is attached to the file system.
PayAsYouGo
Tagsarray<object>

The tags that are attached to the file system.

Tagobject
Keystring

The tag key.

test
Valuestring

The tag value.

test-value
StorageTypestring

The storage type.

Valid values:

  • Valid values for General-purpose NAS file systems: Capacity,Premium and Performance.
  • Valid values for Extreme NAS file systems: standard and advance.
  • Valid values for CPFS file systems: advance_100 (100 MB/s/TiB baseline) and advance_200 (200 MB/s/TiB baseline).
Note CPFS file systems are available only on the China site (aliyun.com).
Performance
MeteredSizelong

The storage usage of the file system.

The value of this parameter is the maximum storage usage of the file system over the last hour. Unit: bytes.

1611661312
Descriptionstring

The description of the file system.

test
Bandwidthlong

The bandwidth of the file system.

Unit: MB/s. This parameter is unavailable for General-purpose NAS file systems.

150
SupportedFeaturesarray

The features that are supported by the file system.

SupportedFeaturestring

The feature that is supported by the file system.

Valid values:

  • Lifecycle: lifecycle management
  • ACL: access control list (ACL)
  • Ipv6: IPv6
Note Only Extreme NAS file systems that reside in the Chinese mainland support IPv6.
Lifecycle
Versionstring

The version number of the file system.

This parameter is available only for Extreme NAS file systems and CPFS file systems.

2.3.4
ProtocolTypestring

The protocol type of the file system.

Valid values:

  • NFS: Network File System (NFS)
  • SMB: Server Message Block (SMB)
  • cpfs: the protocol type supported by the CPFS file system
Note CPFS file systems are available only on the China site (aliyun.com).
NFS
MountTargetsarray<object>

The information about mount targets.

MountTargetobject
VpcIdstring

The ID of the VPC.

vpc-bp1sevsgtqvk5gxbl****
Statusstring

The status of the mount target.

Valid values:

  • Active: The mount target is available.
  • Inactive: The mount target is unavailable.
  • Pending: The mount target is being processed.
  • Deleting: The mount target is being deleted.
  • Hibernating: The mount target is being hibernated.
  • Hibernated: The mount target is hibernated.
Active
ClientMasterNodesarray<object>

The information about client management nodes.

This parameter is available only for CPFS file systems.

ClientMasterNodeobject
EcsIdstring

The ID of the ECS instance on the client management node.

i-hp3i3odi5ory1buo****
DefaultPasswdstring

The default logon password of the ECS instance on the client management node.

123456
EcsIpstring

The IP address of the ECS instance on the client management node.

192.168.1.0
MountTargetDomainstring

The domain name of the mount target.

109c042666-w****.cn-hangzhou.nas.aliyuncs.com
AccessGroupNamestring

The name of the permission group that is attached to the mount target.

test-001
DualStackMountTargetDomainstring

The dual-stack (IPv4 and IPv6) domain name of the mount target.

Note Only Extreme NAS file systems that reside in the Chinese mainland support IPv6.
174494b666-x****.dualstack.cn-hangzhou.nas.aliyuncs.com
VswIdstring

The ID of the vSwitch.

vsw-bp1omfzsszekkvaxn****
Tagsarray<object>

The tags that are attached to the mount target.

Tagobject
Keystring

The tag key.

test
Valuestring

The tag value.

test-value
NetworkTypestring

The network type. Valid value: vpc.

vpc
KMSKeyIdstring

The ID of the key that is managed by Key Management Service (KMS).

0e478b7a-4262-4802-b8cb-00d3fb40****
AutoSnapshotPolicyIdstring

The ID of the automatic snapshot policy.

sp-extreme-233e6****
RegionIdstring

The region ID.

cn-hangzhou
FileSystemTypestring

The type of the file system.

Valid values:

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

The ID of the file system.

109c04****
EncryptTypeinteger

The encryption type.

Valid values:

  • 0: The data in the file system is not encrypted.
  • 1: A NAS-managed key is used to encrypt the data in the file system.
  • 2: A KMS-managed key is used to encrypt the data in the file system.
1
Ldapobject

The Lightweight Directory Access Protocol (LDAP) configurations.

This parameter is available only for CPFS file systems.

BindDNstring

An LDAP entry.

cn=alibaba,dc=com
SearchBasestring

An LDAP search base.

dc=example
URIstring

An LDAP URI.

ldap://ldap.example.example
ExpiredTimestring

The time when the file system expires.

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

The ID of the zone where the file system resides.

cn-hangzhou-b
VpcIdstring

The ID of the virtual private cloud (VPC).

vpc-bp1cbv1ljve4j5hlw****
VswIdsarray

A collection of vSwitch IDs.

VswIdstring

The ID of the vSwitch.

vsw-2ze37k6jh8ums2fw2****
Packagesarray<object>

The information about storage plans.

Packageobject

The information about storage plans.

StartTimestring

The start time of the validity period for the storage plan.

2019-12-05T01:40:56Z
ExpiredTimestring

The end time of the validity period for the storage plan.

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

The capacity of the storage plan. Unit: bytes.

107374182400
PackageIdstring

The ID of the storage plan.

naspackage-0be9c4b624-37****
PackageTypestring

The type of the storage plan.

Valid values:

  • ssd: the storage plan for Performance NAS file systems.
  • hybrid: the storage plan for Capacity NAS file systems.
hybrid
AccessPointCountstring

Number of access points.

1
ResourceGroupIdstring

The resource group ID.

You can log on to the Resource Management console to view resource group IDs.

rg-acfmwavnfdf****
MeteredArchiveSizelong

Archive storage usage.

Unit: Byte.

1611661312
Optionsobject

The options.

EnableOplockboolean

Specifies whether to enable the oplock feature. Valid values:

  • true: enables the feature.
  • false: disables the feature.
Note Only Server Message Block (SMB) file systems support this feature.
true
QuorumVswIdstring

The ID of the vSwitch.

vsw-2ze37k6jh8ums2fw2****
TotalCountinteger

The total number of file systems.

1
RequestIdstring

The request ID.

035B3A3A-E514-4B41-B906-5D906CFB****
PageSizeinteger

The number of entries per page.

1
PageNumberinteger

The page number.

1

Examples

Sample success responses

JSONformat

{
  "FileSystems": {
    "FileSystem": [
      {
        "Status": "Pending",
        "MeteredIASize": 362832,
        "Capacity": 100,
        "CreateTime": "2020-01-05T16:00:00Z",
        "ChargeType": "PayAsYouGo",
        "Tags": {
          "Tag": [
            {
              "Key": "test",
              "Value": "test-value"
            }
          ]
        },
        "StorageType": "Performance",
        "MeteredSize": 1611661312,
        "Description": "test",
        "Bandwidth": 150,
        "SupportedFeatures": {
          "SupportedFeature": [
            "Lifecycle"
          ]
        },
        "Version": "2.3.4",
        "ProtocolType": "NFS",
        "MountTargets": {
          "MountTarget": [
            {
              "VpcId": "vpc-bp1sevsgtqvk5gxbl****",
              "Status": "Active",
              "ClientMasterNodes": {
                "ClientMasterNode": [
                  {
                    "EcsId": "i-hp3i3odi5ory1buo****",
                    "DefaultPasswd": "123456",
                    "EcsIp": "192.168.1.0"
                  }
                ]
              },
              "MountTargetDomain": "109c042666-w****.cn-hangzhou.nas.aliyuncs.com",
              "AccessGroupName": "test-001",
              "DualStackMountTargetDomain": "174494b666-x****.dualstack.cn-hangzhou.nas.aliyuncs.com",
              "VswId": "vsw-bp1omfzsszekkvaxn****",
              "Tags": {
                "Tag": [
                  {
                    "Key": "test",
                    "Value": "test-value"
                  }
                ]
              },
              "NetworkType": "vpc"
            }
          ]
        },
        "KMSKeyId": "0e478b7a-4262-4802-b8cb-00d3fb40****",
        "AutoSnapshotPolicyId": "sp-extreme-233e6****\n",
        "RegionId": "cn-hangzhou",
        "FileSystemType": "standard",
        "FileSystemId": "109c04****",
        "EncryptType": 1,
        "Ldap": {
          "BindDN": "cn=alibaba,dc=com",
          "SearchBase": "dc=example",
          "URI": "ldap://ldap.example.example"
        },
        "ExpiredTime": "2020-01-05T16:00:00Z",
        "ZoneId": "cn-hangzhou-b",
        "VpcId": "vpc-bp1cbv1ljve4j5hlw****\n",
        "VswIds": {
          "VswId": [
            "vsw-2ze37k6jh8ums2fw2****\n"
          ]
        },
        "Packages": {
          "Package": [
            {
              "StartTime": "2019-12-05T01:40:56Z",
              "ExpiredTime": "2020-01-05T16:00:00Z",
              "Size": 107374182400,
              "PackageId": "naspackage-0be9c4b624-37****",
              "PackageType": "hybrid"
            }
          ]
        },
        "AccessPointCount": "1",
        "ResourceGroupId": "rg-acfmwavnfdf****\n",
        "MeteredArchiveSize": 1611661312,
        "Options": {
          "EnableOplock": true
        },
        "QuorumVswId": "vsw-2ze37k6jh8ums2fw2****\n"
      }
    ]
  },
  "TotalCount": 1,
  "RequestId": "035B3A3A-E514-4B41-B906-5D906CFB****",
  "PageSize": 1,
  "PageNumber": 1
}

Error codes

HTTP status codeError codeError messageDescription
400Region.NotSupportedThe specified Region is not supported for this API now.The current region does not support this function.
404InvalidFileSystem.NotFoundThe specified file system does not exist.The specified file system does not exist.

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

Change history

Change timeSummary of changesOperation
2024-10-17The Error code has changed. The response structure of the API has changedView Change Details
2024-10-08The Error code has changedView Change Details
2024-07-08The Error code has changed. The response structure of the API has changedView Change Details
2024-03-25The Error code has changed. The response structure of the API has changedView Change Details
2023-12-26The Error code has changed. The request parameters of the API has changed. The response structure of the API has changedView Change Details
2023-11-03The Error code has changedView Change Details
2023-10-05The Error code has changedView Change Details
2023-04-29The Error code has changedView Change Details
2022-07-29The Error code has changed. The response structure of the API has changedView Change Details