Mengkueri subtugas streaming aliran data secara batch.
Deskripsi operasi
Hanya CPFS for Lingjun versi 2.6.0 dan yang lebih baru yang mendukung operasi ini. 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:DescribeDataFlowSubTasks |
list |
*DataFlow
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| FileSystemId |
string |
Yes |
ID sistem file. |
bmcpfs-370lx1ev9ss27o0**** |
| Filters |
array<object> |
No |
Kunci filter untuk mengkueri subtugas streaming aliran data. |
|
|
object |
No |
|||
| Key |
string |
No |
Nama kunci filter. Nilai valid:
|
DataFlowSubTaskIds |
| Value |
string |
No |
Nilai kunci filter. Parameter ini tidak mendukung wildcard.
|
subTaskId-370kyfmyknxcyzw**** |
| NextToken |
string |
No |
Token paginasi yang digunakan di permintaan berikutnya untuk mengambil halaman hasil baru. Jika hasil yang dikembalikan terpotong, Anda dapat menggunakan NextToken untuk memulai permintaan baru guna mengambil sisa hasil mulai dari titik pemotongan. |
iWk0AQAAAAAvY2FzZS8= |
| MaxResults |
integer |
No |
Jumlah maksimum hasil yang dikembalikan per kueri.
|
20 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
98696EF0-1607-4E9D-B01D-F20930B6**** |
| NextToken |
string |
Token paginasi yang digunakan di permintaan berikutnya untuk mengambil halaman hasil baru. Jika hasil yang dikembalikan terpotong, Anda dapat menggunakan NextToken untuk memulai permintaan baru guna mengambil sisa hasil mulai dari titik pemotongan. |
pUJaUwAAAABhdGUyNTk1MQ== |
| DataFlowSubTask |
object |
||
| DataFlowSubTask |
array<object> |
Kumpulan informasi subtugas streaming aliran data. |
|
|
array<object> |
|||
| FileSystemId |
string |
The ID of the file system. |
bmcpfs-370lx1ev9ss27o0**** |
| DataFlowId |
string |
The ID of the dataflow. |
df-194433a5be31**** |
| DataFlowTaskId |
string |
The ID of the dataflow task. |
task-38aa8e890f45**** |
| DataFlowSubTaskId |
string |
The ID of the data streaming task. |
subTaskId-370kyfmyknxcyzw**** |
| SrcFilePath |
string |
The path of the source file. Limits:
|
/test/file.png |
| DstFilePath |
string |
The path of the destination file. Limits:
|
/mnt/file.png |
| Status |
string |
The status of the data streaming task. The following information is displayed:
|
FAILED |
| Progress |
integer |
The progress of the data streaming task. Valid values: 0 to 10000. |
10000 |
| CreateTime |
string |
The time when the data streaming task was created. |
2024-07-01 19:59:29 |
| StartTime |
string |
The time when the data streaming task started. |
2024-07-03 10:43:16 |
| EndTime |
string |
The time when the data streaming task ended. |
2024-07-04 11:14:22 |
| ErrorMsg |
string |
The error message returned when the task failed. Catatan
If this parameter is not returned or the return value is empty, no error occurs. |
file does not exist |
| ProgressStats |
object |
The progress information about data streaming tasks. |
|
| BytesTotal |
integer |
The amount of data scanned on the source. Unit: bytes. |
68 |
| BytesDone |
integer |
The amount of data (including skipped data) for which the data flow task is complete. Unit: bytes. |
68 |
| ActualBytes |
integer |
The actual amount of data for which the data flow task is complete. Unit: bytes. |
68 |
| AverageSpeed |
integer |
The average flow velocity. Unit: bytes/s. |
34 |
| FileDetail |
object |
The information about the file. |
|
| ModifyTime |
integer |
The time when the file was modified. The value is a UNIX timestamp. Unit: ns. |
1725897600000000000 |
| Size |
integer |
The file size. Unit: bytes. |
68 |
| Checksum |
string |
The checksum. Format example: crc64:123456. |
crc64:850309505450944**** |
Contoh
Respons sukses
JSONformat
{
"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****"
}
}
]
}
}
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.