Queries the details of data flow tasks.
Operation description
Only CPFS 2.2.0 and later and CPFS for Lingjun 2.4.0 and later support querying data flow tasks. You can view the version information on the file system details page in the console.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nas:DescribeDataFlowTasks |
get |
*DataFlow
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| FileSystemId |
string |
Yes |
The file system ID.
|
bmcpfs-290w65p03ok64ya**** |
| Filters |
array<object> |
No |
The filter conditions. |
|
|
object |
No |
|||
| Key |
string |
No |
The name of the filter key. Valid values:
Valid values:
|
DataFlowIds |
| Value |
string |
No |
The value of the filter key. Wildcards are not supported.
|
df-194433a5be31**** |
| NextToken |
string |
No |
The pagination token that is used in the next request to retrieve a new page of results. If the return results are truncated, you can use NextToken to initiate a new request to retrieve the content after the current truncation point. |
TGlzdFJlc291cmNlU****mVzJjE1MTI2NjY4NzY5MTAzOTEmMiZORnI4NDhVeEtrUT0= |
| MaxResults |
integer |
No |
The number of results for each query. Valid values: 10 to 100. Default value: 20. |
20 |
| WithReports |
boolean |
No |
Specifies whether to query report information.
Note
|
True |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
2D69A58F-345C-4FDE-88E4-BF518948**** |
| NextToken |
string |
The pagination token that is used in the next request to retrieve a new page of results. If the return results are truncated, you can use NextToken to initiate a new request to retrieve the content after the current truncation point. |
TGlzdFJlc291cmNlU****mVzJjE1MTI2NjY4NzY5MTAzOTEmMiZORnI4NDhVeEtrUT0= |
| TaskInfo |
object |
||
| Task |
array<object> |
The collection of data flow task information. |
|
|
array<object> |
|||
| FilesystemId |
string |
The file system ID. |
bmcpfs-290w65p03ok64ya**** |
| DataFlowId |
string |
The data flow ID. |
df-194433a5be31**** |
| TaskId |
string |
The data flow task ID. |
task-38aa8e890f45**** |
| SourceStorage |
string |
The access address of the source storage. Format: Where:
Note
|
oss://178321033379****:bucket-01 |
| FileSystemPath |
string |
The path of the fileset in the CPFS file system. Limits:
Note
Only CPFS supports this parameter. |
/a/b/c/ |
| Originator |
string |
The initiator of the data flow task. Valid values:
Note
Only CPFS supports this parameter. |
User |
| TaskAction |
string |
The type of the data flow node. Valid values:
Note
StreamImport and StreamExport are supported only by CPFS for Lingjun 2.6.0 and later. |
Import |
| DataType |
string |
The data type of the data flow task. Valid values:
Note
CPFS for Lingjun supports only the MetaAndData type. |
MetaAndData |
| Progress |
integer |
The progress of the data flow task. The number of operations that have been performed by the current data flow task. |
50 |
| Status |
string |
The status of the data flow task. Valid values:
|
Failed |
ReportPath
deprecated
|
string |
The path where the data flow task report is stored in the CPFS file system.
|
/path_in_cpfs/reportfile.cvs |
| CreateTime |
string |
The time when the task was created. The time follows the ISO 8601 standard. Format: yyyy-MM-dd HH:mm:ss. |
2021-08-04 18:27:35 |
| StartTime |
string |
The time when the task started. The time follows the ISO 8601 standard. Format: yyyy-MM-dd HH:mm:ss. |
2021-08-04 18:27:35 |
| EndTime |
string |
The time when the task ended. The time follows the ISO 8601 standard. Format: yyyy-MM-dd HH:mm:ss. |
2021-08-04 18:27:35 |
| FsPath |
string |
The intelligent directory path. |
/aa/ |
| ConflictPolicy |
string |
The file name conflict policy.
Valid values:
|
KEEP_LATEST |
| Directory |
string |
The directory in which the data flow task is executed. |
/path_in_cpfs/ |
| DstDirectory |
string |
The destination directory to which the data flow task is mapped. |
/path_in_cpfs/ |
| ErrorMsg |
string |
The error message of the task. Note
If this field is not returned or is empty, no error occurred. |
{"ErrorKey":"PATH_NOT_ACCESSIBLE","ErrorDetail":"lstat /cpfs/370lx1ev9ss27o****/test/abcdfnotfound: no such file or directory"} |
| ProgressStats |
object |
The progress information of the data flow task. |
|
| FilesTotal |
integer |
The number of files scanned at the source. |
3 |
| FilesDone |
integer |
The number of files for which data flow is completed (including skipped files). |
3 |
| ActualFiles |
integer |
The number of files actually transferred. |
3 |
| BytesTotal |
integer |
The amount of data scanned at the source. Unit: bytes. |
131092971520 |
| BytesDone |
integer |
The amount of data for which data flow is completed (including skipped data). Unit: bytes. |
131092971520 |
| ActualBytes |
integer |
The amount of data actually transferred. Unit: bytes. |
131092971520 |
| RemainTime |
integer |
The estimated remaining time. Unit: seconds. |
437 |
| AverageSpeed |
integer |
The average transfer speed. Unit: bytes per second. |
342279299 |
| Reports |
object |
||
| Report |
array<object> |
The report list. Note
|
|
|
object |
|||
| Name |
string |
The report name.
|
TotalFilesReport |
| Path |
string |
The report link. |
https://a-hbr-temp-cn-hangzhou-staging.oss-cn-hangzhou.aliyuncs.com/temp/report/162319438359****/job-000bb6fwqficjbxk****/job-000bb6fwqficjbxk****_failed.zip?Expires=1721201422&OSSAccessKeyId=LTA****************&Signature=Fp%2BvauORTIVxooXY2tec6z0T%2Bp4%3D |
| Includes |
string |
The directories under the specified directory to filter. The content of the filtered directories is transferred. Note
Only CPFS for Lingjun supports this feature. |
["/test/","/test1/"] |
| TransferFileListPath |
string |
The specified OSS directory. Data is synchronized based on the content of the CSV files in the OSS directory. Note
Only CPFS for Lingjun supports this feature. |
/path_in_cpfs/ |
| EntryList |
string |
["/path_in_cpfs/file1", "/path_in_cpfs/file2"] |
Examples
Success response
JSON format
{
"RequestId": "2D69A58F-345C-4FDE-88E4-BF518948****",
"NextToken": "TGlzdFJlc291cmNlU****mVzJjE1MTI2NjY4NzY5MTAzOTEmMiZORnI4NDhVeEtrUT0=",
"TaskInfo": {
"Task": [
{
"FilesystemId": "bmcpfs-290w65p03ok64ya****",
"DataFlowId": "df-194433a5be31****",
"TaskId": "task-38aa8e890f45****",
"SourceStorage": "oss://178321033379****:bucket-01",
"FileSystemPath": "/a/b/c/",
"Originator": "User",
"TaskAction": "Import",
"DataType": "MetaAndData ",
"Progress": 50,
"Status": "Failed",
"ReportPath": "/path_in_cpfs/reportfile.cvs",
"CreateTime": "2021-08-04 18:27:35",
"StartTime": "2021-08-04 18:27:35",
"EndTime": "2021-08-04 18:27:35",
"FsPath": "/aa/",
"ConflictPolicy": "KEEP_LATEST",
"Directory": "/path_in_cpfs/",
"DstDirectory": "/path_in_cpfs/\n",
"ErrorMsg": "{\"ErrorKey\":\"PATH_NOT_ACCESSIBLE\",\"ErrorDetail\":\"lstat /cpfs/370lx1ev9ss27o****/test/abcdfnotfound: no such file or directory\"}",
"ProgressStats": {
"FilesTotal": 3,
"FilesDone": 3,
"ActualFiles": 3,
"BytesTotal": 131092971520,
"BytesDone": 131092971520,
"ActualBytes": 131092971520,
"RemainTime": 437,
"AverageSpeed": 342279299
},
"Reports": {
"Report": [
{
"Name": "TotalFilesReport",
"Path": "https://a-hbr-temp-cn-hangzhou-staging.oss-cn-hangzhou.aliyuncs.com/temp/report/162319438359****/job-000bb6fwqficjbxk****/job-000bb6fwqficjbxk****_failed.zip?Expires=1721201422&OSSAccessKeyId=LTA****************&Signature=Fp%2BvauORTIVxooXY2tec6z0T%2Bp4%3D"
}
]
},
"Includes": "[\"/test/\",\"/test1/\"]\n",
"TransferFileListPath": "/path_in_cpfs/\n",
"EntryList": "[\"/path_in_cpfs/file1\", \"/path_in_cpfs/file2\"]"
}
]
}
}
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 data flows. |
| 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 dataflow does not exist. |
| 404 | InvalidParameter.InvalidMaxResults | The specified MaxResults is invalid. | The specified MaxResults 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.