Queries the export directory information of a protocol service.
Operation description
Queries the export directory information of a protocol service.
Before you begin
Before you call this operation, make sure that each dependent resource in the following three-layer resource model already exists:
-
File system (FileSystem): Call DescribeFileSystems to obtain the FileSystemId.
-
Protocol service (ProtocolService): Call DescribeProtocolService to obtain the ProtocolServiceId, or call CreateProtocolService to create one.
-
Export directory (ProtocolMountTarget): Call CreateProtocolMountTarget to create an export directory and obtain the ExportId, or call DescribeProtocolMountTarget to query the ExportId.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nas:GetProtocolMountTarget |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| NextToken |
string |
No |
If the response is truncated, you can use NextToken to send a subsequent request to retrieve the content after the current truncation point. |
M18xMA== |
| MaxResults |
integer |
No |
The maximum number of results to return per query. Valid values: 10 to 100. Default value: 20. |
20 |
| FileSystemId |
string |
Yes |
The file system ID.
|
cpfs-099394bd928c**** |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence. Note
If you do not specify this parameter, the system automatically uses the RequestId of the API request as the ClientToken. The RequestId may vary for each API request. |
123e4567-e89b-12d3-a456-42665544**** |
| ProtocolServiceId |
string |
Yes |
The protocol service ID. Required. How to obtain: Call the DescribeProtocolService operation to query the list of protocol services and obtain the ProtocolServiceId from the response. |
ptc-197ed6a00f2b**** |
| ExportId |
string |
Yes |
The export directory ID of the protocol service. Required. How to obtain:
|
exp-19abf5beab8d**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
6299428C-3861-435D-AE54-9B330A00**** |
| NextToken |
string |
If the response is truncated, you can use NextToken to send a subsequent request to retrieve the content after the current truncation point. |
M18xMA== |
| ProtocolMountTarget |
object |
The export directory information of the protocol service. |
|
| ExportId |
string |
The export directory ID. |
exp-19abf5beab8d**** |
| ProtocolMountTargetDomain |
string |
The domain name of the protocol service export directory. |
cpfs-0229cb80bcc0****-x******.cn-*****.cpfs.aliyuncs.com |
| ProtocolType |
string |
The protocol type of the file system. Valid values:
|
NFS |
| VpcId |
string |
The virtual private cloud (VPC) ID of the protocol service export. |
vpc-bp1h5mxoqfuo3xurf**** |
| VSwitchId |
string |
The vSwitch ID of the protocol service export. |
vsw-8vb2qjnxs6hiobzve**** |
| VSwitchIds |
array |
The list of vSwitch IDs of the protocol service export. |
|
|
string |
The vSwitch ID of the protocol service export. |
vsw-bp1q3ro8erikjjrb2**** |
|
| FsetId |
string |
Fileset ID。 |
fset-299b4ca04de8**** |
| Path |
string |
The path of the queried CPFS directory. Format:
|
/ |
| AccessGroupName |
string |
The permission group name. Default permission group: DEFAULT_VPC_GROUP_NAME. |
DEFAULT_VPC_GROUP_NAME |
| CreateTime |
string |
The creation time. Format: yyyy-MM-dd HH:mm:ss |
2025-12-22 17:49:25 |
| Status |
string |
The status of the protocol service export directory. Valid values:
|
AVAILABLE |
| Description |
string |
The description of the protocol service export. |
Description of this protocol service export |
Examples
Success response
JSON format
{
"RequestId": "6299428C-3861-435D-AE54-9B330A00****",
"NextToken": "M18xMA==",
"ProtocolMountTarget": {
"ExportId": "exp-19abf5beab8d****",
"ProtocolMountTargetDomain": "cpfs-0229cb80bcc0****-x******.cn-*****.cpfs.aliyuncs.com",
"ProtocolType": "NFS",
"VpcId": "vpc-bp1h5mxoqfuo3xurf****",
"VSwitchId": "vsw-8vb2qjnxs6hiobzve****",
"VSwitchIds": [
"vsw-bp1q3ro8erikjjrb2****"
],
"FsetId": "fset-299b4ca04de8****",
"Path": "/",
"AccessGroupName": "DEFAULT_VPC_GROUP_NAME",
"CreateTime": "2025-12-22 17:49:25",
"Status": "AVAILABLE",
"Description": "此协议服务导出的描述。"
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingFileSystemId | FileSystemId is mandatory for this action. | The FileSystemId parameter is not specified. |
| 400 | MissingExportId | ExportId is mandatory for this action. | The ExportId parameter is not specified. |
| 404 | InvalidFileSystem.NotFound | The specified file system does not exist. | The specified file system does not exist. |
| 404 | Resource.NotFound | The specified resource does not exist. | The specified resource does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.