Mengkueri detail tugas alur kerja data.
Deskripsi operasi
Hanya CPFS versi 2.2.0 dan yang lebih baru serta CPFS for Lingjun versi 2.4.0 dan yang lebih baru yang mendukung pengkuerian tugas alur kerja data. Anda dapat melihat 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 |
Kondisi filter. |
|
|
object |
No |
|||
| Key |
string |
No |
Nama kunci filter. Valid values:
|
DataFlowIds |
| Value |
string |
No |
Nilai kunci filter. Karakter wildcard tidak didukung. |
df-194433a5be31**** |
| NextToken |
string |
No |
Token paginasi yang digunakan dalam permintaan berikutnya untuk mengambil halaman hasil baru. Jika hasil yang dikembalikan terpotong, Anda dapat menggunakan NextToken untuk memulai permintaan baru guna mengambil konten setelah titik pemotongan saat ini. |
TGlzdFJlc291cmNlU****mVzJjE1MTI2NjY4NzY5MTAzOTEmMiZORnI4NDhVeEtrUT0= |
| MaxResults |
integer |
No |
Jumlah hasil untuk setiap kueri. |
20 |
| WithReports |
boolean |
No |
Apakah akan mengkueri informasi laporan. |
True |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
2D69A58F-345C-4FDE-88E4-BF518948**** |
| NextToken |
string |
Token paginasi yang digunakan dalam permintaan berikutnya untuk mengambil halaman hasil baru. Jika hasil yang dikembalikan terpotong, Anda dapat menggunakan NextToken untuk memulai permintaan baru guna mengambil konten setelah titik pemotongan saat ini. |
TGlzdFJlc291cmNlU****mVzJjE1MTI2NjY4NzY5MTAzOTEmMiZORnI4NDhVeEtrUT0= |
| TaskInfo |
object |
||
| Task |
array<object> |
Koleksi informasi tugas alur kerja data. |
|
|
array<object> |
|||
| FilesystemId |
string |
ID sistem file. |
bmcpfs-290w65p03ok64ya**** |
| DataFlowId |
string |
ID alur kerja data. |
df-194433a5be31**** |
| TaskId |
string |
ID tugas alur kerja data. |
task-38aa8e890f45**** |
| SourceStorage |
string |
Alamat akses penyimpanan sumber. Format: Di mana:
Catatan
|
oss://178321033379****:bucket-01 |
| FileSystemPath |
string |
Jalur fileset dalam sistem file CPFS. Batasan:
Catatan
Hanya CPFS yang mendukung parameter ini. |
/a/b/c/ |
| Originator |
string |
Penginisiasi tugas alur kerja data. Nilai valid:
Catatan
Hanya CPFS yang mendukung parameter ini. |
User. |
| TaskAction |
string |
Jenis node alur kerja data. Nilai valid:
Catatan
StreamImport dan StreamExport hanya didukung oleh CPFS for Lingjun versi 2.6.0 dan yang lebih baru. |
Import. |
| DataType |
string |
Tipe data tugas alur kerja data. Nilai valid:
Catatan
CPFS for Lingjun hanya mendukung tipe MetaAndData. |
MetaAndData. |
| Progress |
integer |
Progres tugas alur kerja data. Jumlah operasi yang telah dilakukan oleh tugas alur kerja data saat ini. |
50 |
| Status |
string |
Status tugas alur kerja data. Nilai valid:
|
Failed. |
ReportPath
deprecated
|
string |
Jalur tempat laporan tugas alur kerja data disimpan dalam sistem file CPFS.
|
/path_in_cpfs/reportfile.cvs. |
| CreateTime |
string |
Waktu ketika tugas dibuat. Waktu mengikuti standar ISO 8601. Format: yyyy-MM-dd HH:mm:ss. |
2021-08-04 18:27:35 |
| StartTime |
string |
Waktu ketika tugas dimulai. Waktu mengikuti standar ISO 8601. Format: yyyy-MM-dd HH:mm:ss. |
2021-08-04 18:27:35 |
| EndTime |
string |
Waktu ketika tugas berakhir. Waktu mengikuti standar ISO 8601. Format: yyyy-MM-dd HH:mm:ss. |
2021-08-04 18:27:35 |
| FsPath |
string |
Jalur direktori cerdas. |
/aa/ |
| ConflictPolicy |
string |
Kebijakan konflik nama file.
Valid values:
|
KEEP_LATEST. |
| Directory |
string |
Direktori tempat tugas alur kerja data dieksekusi. |
/path_in_cpfs/ |
| DstDirectory |
string |
Direktori tujuan tempat tugas alur kerja data dipetakan. |
/path_in_cpfs/ |
| ErrorMsg |
string |
Paket error tugas. Catatan
Jika bidang ini tidak dikembalikan atau kosong, tidak terjadi error. |
{"ErrorKey":"PATH_NOT_ACCESSIBLE","ErrorDetail":"lstat /cpfs/370lx1ev9ss27o****/test/abcdfnotfound: no such file or directory"} |
| ProgressStats |
object |
Informasi progres tugas alur kerja data. |
|
| FilesTotal |
integer |
Jumlah file yang discan di sumber. |
3 |
| FilesDone |
integer |
Jumlah file yang alur kerja datanya selesai (termasuk file yang dilewati). |
3 |
| ActualFiles |
integer |
Jumlah file yang sebenarnya ditransfer. |
3 |
| BytesTotal |
integer |
Jumlah data yang discan di sumber. Unit: byte. |
131092971520 |
| BytesDone |
integer |
Jumlah data yang alur kerja datanya selesai (termasuk data yang dilewati). Unit: byte. |
131092971520 |
| ActualBytes |
integer |
Jumlah data yang sebenarnya ditransfer. Unit: byte. |
131092971520 |
| RemainTime |
integer |
Perkiraan sisa waktu. Unit: detik. |
437 |
| AverageSpeed |
integer |
Kecepatan transfer rata-rata. Unit: byte per detik. |
342279299 |
| Reports |
object |
||
| Report |
array<object> |
Daftar laporan. Catatan
|
|
|
object |
|||
| Name |
string |
Nama laporan.
|
TotalFilesReport. |
| Path |
string |
Tautan laporan. |
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 |
Direktori di bawah direktori tertentu untuk difilter. Konten dari direktori yang difilter ditransfer. Catatan
Hanya CPFS for Lingjun yang mendukung fitur ini. |
["/test/","/test1/"] |
| TransferFileListPath |
string |
Direktori OSS tertentu. Data disinkronkan berdasarkan konten file CSV di direktori OSS. Catatan
Hanya CPFS for Lingjun yang mendukung fitur ini. |
/path_in_cpfs/ |
| EntryList |
string |
["/path_in_cpfs/file1", "/path_in_cpfs/file2"] |
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/",
"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/\"]",
"TransferFileListPath": "/path_in_cpfs/",
"EntryList": "[\"/path_in_cpfs/file1\", \"/path_in_cpfs/file2\"]"
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalCharacters | The parameter contains illegal characters. | Parameter tidak valid. |
| 400 | MissingFileSystemId | FileSystemId is mandatory for this action. | Parameter FileSystemId tidak ditentukan. |
| 400 | InvalidFilesystemVersion.NotSupport | This Api does not support this fileSystem version. | Operasi saat ini tidak mendukung versi sistem file ini. |
| 403 | OperationDenied.DataFlowNotSupported | The operation is not supported. | Sistem file tidak mendukung alur data. |
| 404 | InvalidParameter.InvalidNextToken | The specified NextToken is invaild. | |
| 404 | InvalidFileSystem.NotFound | The specified file system does not exist. | Sistem file yang ditentukan tidak ada. |
| 404 | InvalidDataFlow.NotFound | The specified data flow does not exist. | Alur data yang ditentukan tidak ada. |
| 404 | InvalidParameter.InvalidMaxResults | The specified MaxResults is invalid. | MaxResults yang ditentukan tidak valid. |
| 404 | InvalidFilterParam | The specified Filter.N.Key is invalid. | Parameter Filter.N.Key yang ditentukan tidak valid. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.