All Products
Search
Document Center

Elastic High Performance Computing:ListCpfsFileSystems

Last Updated:Apr 09, 2024

Queries the information about Cloud Paralleled File System (CPFS) and its mount targets.

Debugging

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

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
ehpc:ListCpfsFileSystemsREAD
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
FileSystemIdstringNo

The ID of the file system.

By default, the information about all CPFSs and their mount targets within your account are queried.

096751****
PageNumberintegerNo

The page number of the page to return.

Pages start from page 1.

Default value: 1.

1
PageSizeintegerNo

The number of entries to return on each page. Valid values: 1 to 50.

Default value: 10.

10

Response parameters

ParameterTypeDescriptionExample
object
PageSizeinteger

The number of entries returned on the current page.

10
RequestIdstring

The ID of the request.

2B900AFE-C938-4551-86E9-97E231BBC876
PageNumberinteger

The page number of the returned page.

1
TotalCountinteger

The total number of returned entries.

10
FileSystemListobject []

The list of file systems.

FileSystemIdstring

The ID of the file system.

096751****
Capacitystring

The capacity of the file system. Unit: GiB.

5120
CreateTimestring

The time when the file system was created.

2018-07-26 16:36:27
ZoneIdstring

The zone ID.

cn-hangzhou-b
ProtocolTypestring

The protocol type that is applied to the mounted file system. Valid values:

  • NFS
  • SMB
NFS
Destriptionstring

The description of the file system.

FilsDestription
RegionIdstring

The region ID.

cn-hangzhou
MountTargetListobject []

The mount targets.

VpcIdstring

The ID of the virtual private cloud (VPC).

vpc-8vbvb34rtyh6xb3zrehs1****
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 mounted.
  • Deleting: The mount target is being deleted.
Active
VswIdstring

The vSwitch ID of the instance.

vsw-8vb34rtyh6xb3zrehs1****
NetworkTypestring

The network type.

VPC
MountTargetDomainstring

The domain where the mount target resides.

c0967****.cn-hangzhou.cpfs.nas.aliyuncs.com

Examples

Sample success responses

JSONformat

{
  "PageSize": 10,
  "RequestId": "2B900AFE-C938-4551-86E9-97E231BBC876",
  "PageNumber": 1,
  "TotalCount": 10,
  "FileSystemList": {
    "FileSystems": [
      {
        "FileSystemId": "096751****",
        "Capacity": "5120",
        "CreateTime": "2018-07-26 16:36:27",
        "ZoneId": "cn-hangzhou-b",
        "ProtocolType": "NFS",
        "Destription": "FilsDestription",
        "RegionId": "cn-hangzhou",
        "MountTargetList": {
          "MountTargets": [
            {
              "VpcId": "vpc-8vbvb34rtyh6xb3zrehs1****",
              "Status": "Active",
              "VswId": "vsw-8vb34rtyh6xb3zrehs1****",
              "NetworkType": "VPC",
              "MountTargetDomain": "c0967****.cn-hangzhou.cpfs.nas.aliyuncs.com"
            }
          ]
        }
      }
    ]
  }
}

Error codes

HTTP status codeError codeError messageDescription
406NasErrorFailed to request the NAS interface.
406DbErrorDatabase request failed.
407NotAuthorizedThe request is not authorized by RAM.
500UnknownErrorAn unknown error occurred.
503ServiceUnavailableThe request has failed due to a temporary failure of the serverThe request has failed due to a temporary failure of the server.

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