Queries the export directories of a protocol service.
Operation description
This operation applies only to Cloud Parallel File Storage (CPFS) file systems.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nas:DescribeProtocolMountTarget |
list |
*FileSystem
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| NextToken |
string |
No |
The token used to initiate the next request when the response is truncated. You can use this token to retrieve the remaining results from where the truncation occurred. |
aBcdg== |
| MaxResults |
integer |
No |
The maximum number of results to return per query.
|
20 |
| FileSystemId |
string |
Yes |
The file system ID. |
cpfs-099394bd928c**** |
| Filters |
array<object> |
No |
The filter keys for querying protocol service export directories. |
|
|
object |
No |
The filter keys for querying protocol service export directories. |
||
| Key |
string |
No |
The name of the filter key.
|
ExportIds |
| Value |
string |
No |
The value of the filter key. Wildcards are not supported.
|
exp-19abf5beab8d****, exp-19acf6beaf7d**** |
| ClientToken |
string |
No |
Ensures the idempotence of the request. Generate a unique parameter value from your client to ensure that the value is unique among different requests. ClientToken supports 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 uses the RequestId of the API request as the ClientToken. The RequestId may vary for each API request. |
123e4567-e89b-12d3-a456-42665544**** |
| ProtocolServiceIds |
string |
No |
The list of protocol service IDs. |
ptc-123xxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0**** |
| NextToken |
string |
The marker used to retrieve the remaining export directories in subsequent queries. |
aBcdeg== |
| ProtocolMountTargets |
array<object> |
The collection of protocol service export directories. |
|
|
object |
The protocol service export directory. |
||
| ExportId |
string |
The ID of the protocol service export directory. |
exp-19abf5beab8d**** |
| ProtocolMountTargetDomain |
string |
The domain name of the protocol service export directory. |
cpfs-123****.cn-hangzhou.cpfs.aliyuncs.com |
| ProtocolType |
string |
The protocol type supported by the protocol service. |
NFS |
| VpcId |
string |
The VPC ID of the protocol service export directory. |
vpc-2vct297b8157bth9z**** |
| VSwitchId |
string |
The vSwitch ID of the protocol service export directory. |
vsw-2vc3c2lybvdllxyq4**** |
| FsetId |
string |
The fileset ID of the protocol service export directory. |
fset-1902718ea0ae**** |
| Path |
string |
The exported directory of the protocol service. |
/path/ |
| AccessGroupName |
string |
The permission group associated with the protocol service export directory. |
DEFAULT_VPC_GROUP_NAME |
| CreateTime |
string |
The time when the protocol service export directory was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. |
2018-12-12T07:28:38Z |
| Status |
string |
The mount target status. |
CREATING |
| ProtocolServiceId |
string |
The protocol service ID. |
ptc-123**** |
| Description |
string |
The description of the protocol service export directory. |
此协议服务导出目录的描述。 |
| VSwitchIds |
array |
The list of zone-redundant vSwitch IDs. |
|
|
string |
The list of zone-redundant vSwitch IDs. |
vsw-123xxx |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0****",
"NextToken": "aBcdeg==",
"ProtocolMountTargets": [
{
"ExportId": "exp-19abf5beab8d****",
"ProtocolMountTargetDomain": "cpfs-123****.cn-hangzhou.cpfs.aliyuncs.com",
"ProtocolType": "NFS",
"VpcId": "vpc-2vct297b8157bth9z****",
"VSwitchId": "vsw-2vc3c2lybvdllxyq4****",
"FsetId": "fset-1902718ea0ae****",
"Path": "/path/",
"AccessGroupName": "DEFAULT_VPC_GROUP_NAME",
"CreateTime": "2018-12-12T07:28:38Z",
"Status": "CREATING",
"ProtocolServiceId": "ptc-123****",
"Description": "此协议服务导出目录的描述。",
"VSwitchIds": [
"vsw-123xxx"
]
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingFileSystemId | FileSystemId is mandatory for this action. | The FileSystemId parameter is not specified. |
| 404 | InvalidFileSystem.NotFound | The specified file system does not exist. | The specified file system does not exist. |
| 404 | InvalidParameter.InvalidNextToken | The specified NextToken is invaild. | |
| 404 | InvalidParameter.InvalidMaxResults | The specified MaxResults is invalid. | The specified MaxResults is invalid. |
| 404 | InvalidFilterValue | The specified Filter.N.Value is invalid. | The specified Filter.N.Value parameter is invalid. |
| 404 | InvalidFilterParam | The specified Filter.N.Key is invalid. | The specified Filter.N.Key parameter is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.