Queries the batch subtasks of a data flow.
Operation description
Supported only by CPFS for Lingjun 2.6.0 and later. You can view the version information on the file system details page in the console.
Before you begin
Before you call this operation to query data flow subtasks, you must create resources and start tasks in the following order:
-
Create a bmcpfs file system: You must create a CPFS for Lingjun file system in the console and wait until its status changes to Running.
-
Create a data flow rule: Call the CreateDataFlow operation on the file system to establish a data flow channel.
-
Start a data flow task: Call the CreateDataFlowTask operation to create and start a data flow task. The task status must be Running.
-
Query the subtask list: Subtasks are automatically generated during the execution of a data flow task. Call the DescribeDataFlowSubTasks operation to query the list of these subtasks.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nas:DescribeDataFlowSubTasks |
list |
*DataFlow
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| FileSystemId |
string |
Yes |
The ID of the file system. Only CPFS for Lingjun file systems are supported. The ID must start with |
bmcpfs-370lx1ev9ss27o0**** |
| Filters |
array<object> |
No |
The filter keys used to query streaming tasks of a data flow. |
|
|
object |
No |
|||
| Key |
string |
No |
The name of the filter key. Valid values:
Valid values:
|
DataFlowSubTaskIds |
| Value |
string |
No |
The value of the filter key. This parameter does not support wildcards.
|
subTaskId-370kyfmyknxcyzw**** |
| NextToken |
string |
No |
The token that is used to retrieve the next page of results when the returned results are truncated. You can use NextToken to initiate another request to retrieve the results after the current truncation point. |
iWk0AQAAAAAvY2FzZS8= |
| MaxResults |
integer |
No |
The maximum number of entries to return for a single request. Valid values: 20 to 100. Default value: 20. |
20 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
98696EF0-1607-4E9D-B01D-F20930B6**** |
| NextToken |
string |
The token that is used to retrieve the next page of results when the returned results are truncated. You can use NextToken to initiate another request to retrieve the results after the current truncation point. |
pUJaUwAAAABhdGUyNTk1MQ== |
| DataFlowSubTask |
object |
||
| DataFlowSubTask |
array<object> |
The collection of data flow streaming task information. |
|
|
array<object> |
|||
| FileSystemId |
string |
The ID of the file system. |
bmcpfs-370lx1ev9ss27o0**** |
| DataFlowId |
string |
The ID of the data flow. |
df-194433a5be31**** |
| DataFlowTaskId |
string |
The ID of the data flow task. |
task-38aa8e890f45**** |
| DataFlowSubTaskId |
string |
The ID of the data flow streaming task. |
subTaskId-370kyfmyknxcyzw**** |
| SrcFilePath |
string |
The source file path. Limits:
|
/test/file.png |
| DstFilePath |
string |
The destination file path. Limits:
|
/mnt/file.png |
| Status |
string |
The current status of the data flow streaming task. Valid values:
|
FAILED |
| Progress |
integer |
The execution progress of the data flow streaming task. Valid values: 0 to 10000. |
10000 |
| CreateTime |
string |
The time when the streaming task was created. The time follows the ISO 8601 standard in the yyyy-MM-dd HH:mm:ss format. |
2024-07-01 19:59:29 |
| StartTime |
string |
The time when the streaming task started to run. The time follows the ISO 8601 standard in the yyyy-MM-dd HH:mm:ss format. |
2024-07-03 10:43:16 |
| EndTime |
string |
The time when the streaming task ended. The time follows the ISO 8601 standard in the yyyy-MM-dd HH:mm:ss format. |
2024-07-04 11:14:22 |
| ErrorMsg |
string |
The error message returned when the task fails. Note
If this field is not returned or is empty, no error message is available. |
file does not exist |
| ProgressStats |
object |
The progress statistics of the data flow streaming task. |
|
| BytesTotal |
integer |
The amount of data scanned at the source. Unit: bytes. |
68 |
| BytesDone |
integer |
The amount of data for which the data flow is completed, including skipped data. Unit: bytes. |
68 |
| ActualBytes |
integer |
The actual amount of data transferred. Unit: bytes. |
68 |
| AverageSpeed |
integer |
The average data transfer speed. Unit: bytes/s. |
34 |
| FileDetail |
object |
The file details. |
|
| ModifyTime |
integer |
The time when the file was last modified. The value is a UNIX timestamp in nanoseconds. |
1725897600000000000 |
| Size |
integer |
The size of the file. Unit: bytes. |
68 |
| Checksum |
string |
The checksum of the file. Example format: crc64:123456. |
crc64:850309505450944**** |
Examples
Success response
JSON format
{
"RequestId": "98696EF0-1607-4E9D-B01D-F20930B6****",
"NextToken": "pUJaUwAAAABhdGUyNTk1MQ==",
"DataFlowSubTask": {
"DataFlowSubTask": [
{
"FileSystemId": "bmcpfs-370lx1ev9ss27o0****\n",
"DataFlowId": "df-194433a5be31****\n",
"DataFlowTaskId": "task-38aa8e890f45****",
"DataFlowSubTaskId": "subTaskId-370kyfmyknxcyzw****\n",
"SrcFilePath": "/test/file.png\n",
"DstFilePath": "/mnt/file.png\n",
"Status": "FAILED",
"Progress": 10000,
"CreateTime": "2024-07-01 19:59:29",
"StartTime": "2024-07-03 10:43:16",
"EndTime": "2024-07-04 11:14:22",
"ErrorMsg": "file does not exist",
"ProgressStats": {
"BytesTotal": 68,
"BytesDone": 68,
"ActualBytes": 68,
"AverageSpeed": 34
},
"FileDetail": {
"ModifyTime": 1725897600000000000,
"Size": 68,
"Checksum": "crc64:850309505450944****"
}
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalCharacters | The parameter contains illegal characters. | The parameter contains illegal characters. |
| 400 | MissingFileSystemId | FileSystemId is mandatory for this action. | The FileSystemId parameter is not specified. |
| 400 | InvalidFilesystemVersion.NotSupport | This Api does not support this fileSystem version. | This Api does not support this fileSystem version. |
| 403 | OperationDenied.DataFlowNotSupported | The operation is not supported. | The file system does not support dataflow. |
| 404 | InvalidParameter.InvalidNextToken | The specified NextToken is invaild. | |
| 404 | InvalidFileSystem.NotFound | The specified file system does not exist. | The specified file system does not exist. |
| 404 | InvalidDataFlow.NotFound | The specified data flow does not exist. | The specified data flow does not exist. |
| 404 | InvalidParameter.InvalidMaxResults | The specified MaxResults is invalid. | The specified MaxResults value 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.