Mengkueri detail tugas alur kerja data.
Deskripsi operasi
Hanya CPFS 2.2.0 dan versi lebih baru, serta CPFS for AI computing edition 2.4.0 dan versi lebih baru yang mendukung pengkuerian Tugas alur kerja data. Anda dapat Tampilan informasi versi pada halaman detail sistem file di Konsol.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nas:DescribeDataFlowTasks |
get |
*DataFlow
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| FileSystemId |
string |
Yes |
ID sistem file.
|
bmcpfs-290w65p03ok64ya**** |
| Filters |
array<object> |
No |
Kumpulan informasi kunci filter. |
|
|
object |
No |
|||
| Key |
string |
No |
Nama kunci filter. Nilai valid:
|
DataFlowIds |
| Value |
string |
No |
Nilai kunci filter. Parameter ini tidak mendukung karakter wildcard.
|
df-194433a5be31**** |
| NextToken |
string |
No |
Ketika hasil yang dikembalikan terpotong, Anda dapat menggunakan NextToken untuk membuat permintaan lain guna memperoleh konten setelah posisi pemotongan saat ini. |
TGlzdFJlc291cmNlU****mVzJjE1MTI2NjY4NzY5MTAzOTEmMiZORnI4NDhVeEtrUT0= |
| MaxResults |
integer |
No |
Jumlah hasil per kueri. Nilai valid: 10 hingga 100. Nilai default: 20. |
20 |
| WithReports |
boolean |
No |
Apakah akan mengkueri informasi laporan.
Catatan
|
True |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
2D69A58F-345C-4FDE-88E4-BF518948**** |
| NextToken |
string |
Ketika hasil yang dikembalikan terpotong, Anda dapat menggunakan NextToken untuk membuat permintaan lain guna memperoleh konten setelah posisi pemotongan saat ini. |
TGlzdFJlc291cmNlU****mVzJjE1MTI2NjY4NzY5MTAzOTEmMiZORnI4NDhVeEtrUT0= |
| TaskInfo |
object |
||
| Task |
array<object> |
Kumpulan informasi Tugas alur kerja data. |
|
|
array<object> |
|||
| FilesystemId |
string |
The ID of the file system. |
bmcpfs-290w65p03ok64ya**** |
| DataFlowId |
string |
The ID of the dataflow. |
df-194433a5be31**** |
| TaskId |
string |
The ID of the dataflow task. |
task-38aa8e890f45**** |
| SourceStorage |
string |
The access path of the source storage. Format: Among them:
Catatan
|
oss://178321033379****:bucket-01 |
| FileSystemPath |
string |
The directory of the fileset in the CPFS file system. Limits:
Catatan
Only CPFS supports this parameter. |
/a/b/c/ |
| Originator |
string |
The initiator of the dataflow task. The following information is displayed:
Catatan
Only CPFS supports this parameter. |
User |
| TaskAction |
string |
The type of the dataflow task. The following information is displayed:
Catatan
Only CPFS for Lingjun V2.6.0 and later support StreamImport and StreamExport. |
Import |
| DataType |
string |
The type of data on which operations are performed by the dataflow task. The following information is displayed:
Catatan
CPFS for Lingjun supports only the MetaAndData type. |
MetaAndData |
| Progress |
integer |
The progress of the dataflow task. The number of operations that have been performed by the dataflow task. |
50 |
| Status |
string |
The status of the dataflow task. The following information is displayed:
|
Failed |
ReportPath
deprecated
|
string |
The save path of dataflow task reports in the CPFS file system.
|
/path_in_cpfs/reportfile.cvs |
| CreateTime |
string |
The time when the task was created. |
2021-08-04 18:27:35 |
| StartTime |
string |
The start time of the task. |
2021-08-04 18:27:35 |
| EndTime |
string |
The end time of the task. |
2021-08-04 18:27:35 |
| FsPath |
string |
The path of the smart directory. |
/aa/ |
| ConflictPolicy |
string |
The conflict policy for files with the same name. Valid values:
|
KEEP_LATEST |
| Directory |
string |
The directory in which the dataflow task is executed. |
/path_in_cpfs/ |
| DstDirectory |
string |
The directory mapped to the dataflow task. |
/path_in_cpfs/ |
| ErrorMsg |
string |
The cause of the task exception. Catatan
If this parameter is not returned or the return value is empty, no error occurs. |
{"ErrorKey":"PATH_NOT_ACCESSIBLE","ErrorDetail":"lstat /cpfs/370lx1ev9ss27o****/test/abcdfnotfound: no such file or directory"} |
| ProgressStats |
object |
The progress of the dataflow task. |
|
| FilesTotal |
integer |
The number of files scanned on the source. |
3 |
| FilesDone |
integer |
The number of files (including skipped files) for which the dataflow task is complete. |
3 |
| ActualFiles |
integer |
The actual number of files for which the dataflow task is complete. |
3 |
| BytesTotal |
integer |
The amount of data scanned on the source. Unit: bytes. |
131092971520 |
| BytesDone |
integer |
The amount of data (including skipped data) for which the dataflow task is complete. Unit: bytes. |
131092971520 |
| ActualBytes |
integer |
The actual amount of data for which the dataflow task is complete. Unit: bytes. |
131092971520 |
| RemainTime |
integer |
The estimated remaining execution time. Unit: seconds. |
437 |
| AverageSpeed |
integer |
The average flow velocity. Unit: bytes/s. |
342279299 |
| Reports |
object |
||
| Report |
array<object> |
The reports. Catatan
|
|
|
object |
|||
| Name |
string |
The name of the report.
|
TotalFilesReport |
| Path |
string |
The report URL. |
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 |
Filters subdirectories and transfers their contents. Catatan
Only CPFS for Lingjun supports this operation. |
["/test/","/test1/"] |
| TransferFileListPath |
string |
Specify the OSS directory and synchronize data based on the content of the CSV file in the OSS directory. Catatan
Only CPFS for Lingjun supports this operation. |
/path_in_cpfs/ |
Contoh
Respons sukses
JSONformat
{
"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"
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalCharacters | The parameter contains illegal characters. | |
| 400 | MissingFileSystemId | FileSystemId is mandatory for this action. | |
| 400 | InvalidFilesystemVersion.NotSupport | This Api does not support this fileSystem version. | |
| 403 | OperationDenied.DataFlowNotSupported | The operation is not supported. | |
| 404 | InvalidParameter.InvalidNextToken | The specified NextToken is invaild. | |
| 404 | InvalidFileSystem.NotFound | The specified file system does not exist. | |
| 404 | InvalidDataFlow.NotFound | The specified data flow does not exist. | |
| 404 | InvalidParameter.InvalidMaxResults | The specified MaxResults is invalid. | |
| 404 | InvalidFilterParam | The specified Filter.N.Key is invalid. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.