Queries protocol service information.
Operation description
This operation is applicable only to CPFS file systems.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nas:DescribeProtocolService |
list |
*FileSystem
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProtocolServiceIds |
string |
No |
The IDs of the protocol services.
|
ptc-197ed6a00f2b****,ptc-196ed6a00f2b**** |
| Status |
string |
No |
Filters protocol services by status. Format: CSV Valid values:
|
Running,Updating |
| NextToken |
string |
No |
The pagination token. If the response is truncated, you can use this token to initiate another request to retrieve the remaining results. |
aBcdg== |
| MaxResults |
integer |
No |
The maximum number of entries to return for a single request.
|
20 |
| FileSystemId |
string |
Yes |
The ID of the file system. |
cpfs-099394bd928c**** |
| Description |
string |
No |
Filters protocol services by description or a part of the description. Limits:
|
The description of this protocol service |
| 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 you must 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 of each API request may be different. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The ID of the request. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| NextToken |
string |
The pagination token that is used to query the remaining protocol services. |
aBcdeg== |
| ProtocolServices |
array<object> |
The list of protocol services. |
|
|
object |
The protocol service information. |
||
| FileSystemId |
string |
The ID of the file system. |
cpfs-099394bd928c**** |
| ProtocolServiceId |
string |
The ID of the protocol service. |
ptc-197ed6a00f2b**** |
| ProtocolSpec |
string |
The specifications of the protocol cluster.
|
General |
| ProtocolThroughput |
integer |
The throughput of the protocol service. Unit: MB/s. |
500 |
| InstanceRAM |
integer |
The memory cache size of the protocol node. Unit: GiB. |
0 |
| InstanceBaseThroughput |
integer |
The base throughput of the protocol node. Unit: MB/s. |
100 |
| InstanceBurstThroughput |
integer |
The burst throughput of the protocol node. Unit: MB/s. |
100 |
| MountTargetCount |
integer |
The total number of exported CPFS directories and filesets in the protocol service. |
5 |
| ProtocolType |
string |
The protocol type supported by the protocol service. Valid values:
|
NFS |
| Status |
string |
The status of the protocol service. Valid values:
|
Running |
| Description |
string |
The description of the protocol service. Limits:
|
The description of this protocol service |
| CreateTime |
string |
The time when the protocol service was created. The time is displayed in UTC. |
2018-12-12T07:28:38Z |
| ModifyTime |
string |
The time when the protocol service was modified. The time is displayed in UTC. |
2018-12-12T07:28:38Z |
| VpcId |
string |
The ID of the VPC associated with the protocol service. |
vpc-123xxx |
| VSwitchId |
string |
The ID of the vSwitch associated with the protocol service. |
vsw-123xxx |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"NextToken": "aBcdeg==",
"ProtocolServices": [
{
"FileSystemId": "cpfs-099394bd928c****",
"ProtocolServiceId": "ptc-197ed6a00f2b****",
"ProtocolSpec": "General",
"ProtocolThroughput": 500,
"InstanceRAM": 0,
"InstanceBaseThroughput": 100,
"InstanceBurstThroughput": 100,
"MountTargetCount": 5,
"ProtocolType": "NFS",
"Status": "Running",
"Description": "The description of this protocol service",
"CreateTime": "2018-12-12T07:28:38Z",
"ModifyTime": "2018-12-12T07:28:38Z",
"VpcId": "vpc-123xxx",
"VSwitchId": "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. |
| 400 | InvalidParam.TooManyProtocolServiceIds | Too many protocol service ids given. | The number of protocol service IDs specified in a single query exceeds the limit. |
| 403 | InvalidStatus.NotSupported | The specified protocol service status does not support. | The status of the specified protocol server cluster is not supported. |
| 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 parameter is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.