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.

  • Maximum value: 100.
  • Default value: 10.
PageNumber Integer No 1

The number of the page to return.

  • Pages start from page 1.
  • Default value: 1.

Response parameters

Parameter Type Example Description
MountTargets Array

The information of mount targets.

MountTarget
AccessGroup String DEFAULT_VPC_GROUP_NAME

The name of the permission group that applies to the mount target.

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

The domain name of the mount target.

NetworkType String Vpc

The network type of the mount target.

Status String Active

The status of the mount target. Valid values: Active and Inactive. Before you mount a file system, make sure that the mount target is in the Active state.

VpcId String vpc-2zesj9afh3y518k9o****

The ID of the VPC where the mount target resides. This parameter is returned if the network type of the mount target is VPC.

VswId String vsw-2zevmwkwyztjuoffg****

The ID of the VSwitch in the VPC where the mount target resides.

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-2B963510A0EF

The ID of the request.

TotalCount Integer 1

The total number of mount targets.

Examples

Sample requests

GET https://nas.cn-hangzhou.aliyuncs.com/?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-2B963510A0EF</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>
        </MountTarget>
    </MountTargets>
</DescribeMountTargetsResponse>

JSON format

{
  "TotalCount": 1,
  "PageSize": 1,
  "RequestId": "3BAB90FD-B4A0-48DA-9F09-2B963510A0EF",
  "PageNumber": 1,
  "MountTargets": {
    "MountTarget": [
      {
        "Status": "Active",
        "VswId": "vsw-2zevmwkwyztjuoffg****",
        "VpcId": "vpc-2zesj9afh3y518k9o****",
        "MountTargetDomain": "1ca404a666-w****.cn-hangzhou.nas.aliyuncs.com",
        "NetworkType": "Vpc",
        "AccessGroup": "DEFAULT_VPC_GROUP_NAME"
      }
    ]
  }
}

Error codes

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