All Products
Search
Document Center

Cloud Parallel File Storage:DescribeProtocolService

Last Updated:Jan 26, 2026

Queries the information about protocol services.

Operation description

This operation is available only to Cloud Parallel File Storage (CPFS) file systems.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
nas:DescribeProtocolServicelist
*FileSystem
acs:nas:{#regionId}:{#accountId}:filesystem/{#FileSystemId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ProtocolServiceIdsstringNo

The ID of the protocol service.

  • Format: CSV.
  • Limit: You can specify a maximum of 10 protocol service IDs.
ptc-197ed6a00f2b****,ptc-196ed6a00f2b****
StatusstringNo

The status of the protocol service.

Format: CSV.

Valid values:

  • Creating: The protocol service is being created.
  • Starting: The protocol service is being started.
  • Running: The protocol service is running.
  • Updating: The protocol service is being updated.
  • Deleting: The protocol service is being deleted.
  • Stopping: The protocol service is being stopped.
  • Stopped: The protocol service is stopped.
Running,Updating
NextTokenstringNo

The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken.

aBcdg==
MaxResultslongNo

The number of results for each query.

  • Maximum value: 100.
  • Minimum value: 10.
  • Default value: 20.
20
FileSystemIdstringYes

The ID of the file system.

cpfs-099394bd928c****
DescriptionstringNo

The description or a part of the description of the protocol service.

Limits:

  • The description must be 2 to 128 characters in length.
  • The description must start with a letter and cannot start with http:// or https://.
  • The description can contain letters, digits, colons (:), underscores (_), and hyphens (-).
test
ClientTokenstringNo

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 do I ensure the idempotence?

Note If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request.
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The request ID.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E
NextTokenstring

A pagination token. It can be used in the next request to retrieve a new page of results.

aBcdeg==
ProtocolServicesarray<object>

The information about protocol service list.

protocolServiceobject

The information about the protocol service.

FileSystemIdstring

The ID of the file system.

cpfs-099394bd928c****
ProtocolServiceIdstring

The ID of the protocol service.

ptc-197ed6a00f2b****
ProtocolSpecstring

The specification of the protocol service.

  • Valid value: General.
  • Default value: General.
General
ProtocolThroughputinteger

The throughput of the protocol service. Unit: MB/s.

500
InstanceRAMinteger

The memory cache size of the protocol service. Unit: GiB.

0
InstanceBaseThroughputinteger

The base throughput of the protocol service. Unit: MB/s.

100
InstanceBurstThroughputinteger

The burst throughput of the protocol service. Unit: MB/s.

100
MountTargetCountinteger

The total number of CPFS directories and filesets exported in the protocol service.

5
ProtocolTypestring

The protocol type supported by the protocol service.

Valid values:

  • NFS: The protocol service supports access over the Network File System (NFS) protocol.
NFS
Statusstring

The status of the protocol service.

Valid values:

  • Creating: The protocol service is being created.
  • Starting: The protocol service is being started.
  • Running: The protocol service is running.
  • Updating: The protocol service is being updated.
  • Deleting: The protocol service is being deleted.
  • Stopping: The protocol service is being stopped.
  • Stopped: The protocol service is stopped.
Running
Descriptionstring

The description of the protocol service.

Limits:

  • The description must be 2 to 128 characters in length.
  • The description must start with a letter and cannot start with http:// or https://.
  • The description can contain letters, digits, colons (:), underscores (_), and hyphens (-).
test
CreateTimestring

The time when the protocol service was created. The time is displayed in UTC.

2018-12-12T07:28:38Z
ModifyTimestring

The time when the protocol service was modified. The time is displayed in UTC.

2018-12-12T07:28:38Z
VpcIdstring

The VPC ID associated with the protocol service.

vpc-123xxx
VSwitchIdstring

The VSW ID associated with the protocol service.

vsw-123xxx

Examples

Sample success responses

JSONformat

{
  "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": "test",
      "CreateTime": "2018-12-12T07:28:38Z",
      "ModifyTime": "2018-12-12T07:28:38Z",
      "VpcId": "vpc-123xxx",
      "VSwitchId": "vsw-123xxx"
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
400MissingFileSystemIdFileSystemId is mandatory for this action.-
400InvalidParam.TooManyProtocolServiceIdsToo many protocol service ids given.-
403InvalidStatus.NotSupportedThe specified protocol service status does not support.-
404InvalidFileSystem.NotFoundThe specified file system does not exist.The specified file system does not exist.
404InvalidParameter.InvalidNextTokenThe specified NextToken is invaild.-
404InvalidParameter.InvalidMaxResultsThe specified MaxResults is invalid.-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2025-12-22The Error code has changed. The response structure of the API has changedView Change Details