Queries the information of mount targets.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeMountTargets

The operation that you want to perform.

Set the value to DescribeMountTargets.

FileSystemId String Yes 1ca404****

The ID of the file system.

MountTargetDomain String No 1ca404a666-x****.cn-hangzhou.nas.aliyuncs.com

The domain name of the mount target.

PageSize Integer No 1

The number of entries to return on each page.

Valid values: 1 to 100.

Default value: 10.

PageNumber Integer No 1

The number of the page to return.

Minimum value: 1. Default value: 1.

DualStackMountTargetDomain String No 174494b666-x****.dualstack.cn-hangzhou.nas.aliyuncs.com

The dual-stack domain name of the mount target.

Response parameters

Parameter Type Example Description
MountTargets Array of MountTarget

The list of mount targets.

MountTarget
AccessGroup String DEFAULT_VPC_GROUP_NAME

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

ClientMasterNodes Array of ClientMasterNode

The list of clients in the management node.

ClientMasterNode
DefaultPasswd String 12****

The default logon password of the ECS instance in the management node.

EcsId String i-hp3i3odi5ory1buo****

The ID of the ECS instance in the management node.

EcsIp String 192.168.1.0

The IP address of the ECS instance in the management node.

DualStackMountTargetDomain String 174494b666-x****.dualstack.cn-hangzhou.nas.aliyuncs.com

The dual-stack domain name of the mount target.

MountTargetDomain String 1ca404a666-w****.cn-hangzhou.nas.aliyuncs.com

The IPv4 domain name of the mount target.

NetworkType String Vpc

The network type of the mount target.

Valid values:

  • Vpc: the virtual private cloud (VPC) network.
  • Classic: the classic network.
Status String Active

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 created or modified.
  • Deleting: The mount target is being deleted.
Note You can mount a file system only if the mount target of the file system is in the Active state.
VpcId String vpc-2zesj9afh3y518k9o****

The ID of the VPC.

VswId String vsw-2zevmwkwyztjuoffg****

The ID of the vSwitch.

PageNumber Integer 1

The page number of the returned page.

PageSize Integer 1

The number of entries returned per page.

RequestId String 3BAB90FD-B4A0-48DA-9F09-2B963510****

The ID of the request.

TotalCount Integer 1

The total number of mount targets.

Examples

Sample requests

http(s)://[Endpoint]/? Action=DescribeMountTargets
&FileSystemId=1ca404****
&<Common request parameters>

Sample success responses

XML format

<DescribeMountTargetsResponse>
      <PageNumber>1</PageNumber>
      <TotalCount>1</TotalCount>
      <PageSize>1</PageSize>
      <RequestId>3BAB90FD-B4A0-48DA-9F09-2B963510****</RequestId>
      <MountTargets>
            <MountTarget>
                  <Status>Active</Status>
                  <NetworkType>Vpc</NetworkType>
                  <VswId>vsw-2zevmwkwyztjuoffg****</VswId>
                  <VpcId>vpc-2zesj9afh3y518k9o****</VpcId>
                  <MountTargetDomain>1ca404a666-w****.cn-hangzhou.nas.aliyuncs.com</MountTargetDomain>
                  <AccessGroup>DEFAULT_VPC_GROUP_NAME</AccessGroup>
          	      <ClientMasterNodes>
                      <ClientMasterNode>
                          <EcsIp>192.168.1.36</EcsIp>
                          <EcsId>vpc-2zeolds5v62nux63*****</EcsId>
                          <DefaultPasswd>PWD-34ff7bbc68B*****</DefaultPasswd>
                      </ClientMasterNode>
                      <ClientMasterNode>
                          <EcsIp>192.168.1.37</EcsIp>
                          <EcsId>vpc-2zeolds5v62nux63*****</EcsId>
                          <DefaultPasswd>PWD-34ff7bbc68B*****</DefaultPasswd>
                      </ClientMasterNode>
                      <ClientMasterNode>
                          <EcsIp>192.168.1.35</EcsIp>
                          <EcsId>vpc-2zeolds5v62nux63*****</EcsId>
                          <DefaultPasswd>PWD-34ff7bbc68B*****</DefaultPasswd>
                      </ClientMasterNode>
                  </ClientMasterNodes>
                  <Tags>
                      <Tag>
              </Tag>
                  </Tags>
            </MountTarget>
      </MountTargets>
</DescribeMountTargetsResponse>

JSON format

{
    "DescribeMountTargetsResponse": {
        "PageNumber": 1,
        "TotalCount": 1,
        "PageSize": 1,
        "RequestId": "3BAB90FD-B4A0-48DA-9F09-2B963510****",
        "MountTargets": {
            "MountTarget": {
                "Status": "Active",
                "NetworkType": "Vpc",
                "VswId": "vsw-2zevmwkwyztjuoffg****",
                "VpcId": "vpc-2zesj9afh3y518k9o****",
                "MountTargetDomain": "1ca404a666-w****.cn-hangzhou.nas.aliyuncs.com",
                "AccessGroup": "DEFAULT_VPC_GROUP_NAME",
                "ClientMasterNodes": {
                    "ClientMasterNode": [
                        {
                            "EcsIp": "192.168.1.36",
                            "EcsId": "vpc-2zeolds5v62nux63*****",
                            "DefaultPasswd": "PWD-34ff7bbc68B*****"
                        },
                        {
                            "EcsIp": "192.168.1.37",
                            "EcsId": "vpc-2zeolds5v62nux63*****",
                            "DefaultPasswd": "PWD-34ff7bbc68B*****"
                        },
                        {
                            "EcsIp": "192.168.1.35",
                            "EcsId": "vpc-2zeolds5v62nux63*****",
                            "DefaultPasswd": "PWD-34ff7bbc68B*****"
                        }
                    ]
                },
                "Tags": {
                    "Tag": ""
                }
            }
        }
    }
}

Error codes

HttpCode Error code Error message Description
400 InvalidFileSystem.NotsupportedIPv6 The file system does not support IPv6. The error message returned because the file system does not support IPv6.
404 InvalidMountTarget.NotFound The specified mount target does not exist. The error message returned because the specified mount target does not exist.
404 InvalidFileSystem.NotFound The specified file system does not exist. The error message returned because the specified file system does not exist.

For a list of error codes, visit the API Error Center.