Queries the data flow information of a CPFS file system.
Operation description
Data flows are supported only by CPFS 2.2.0 and later, and CPFS for Lingjun 2.4.0 and later. You can view the version information on the file system details page in the console.
Among the filter keys in Filters, FsetIds, DataFlowIds, SourceStorage, ThroughputList, and Status require exact match, while FileSystemPath, Description, and SourceStoragePath support fuzzy match.
Combined queries are supported.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nas:DescribeDataFlows |
list |
*DataFlow
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| FileSystemId |
string |
Yes |
The file system ID.
|
cpfs-099394bd928c**** |
| Filters |
array<object> |
No |
The filter keys used to query data flows. |
|
|
object |
No |
|||
| Key |
string |
No |
The name of the filter key. Valid values:
Valid values:
|
FsetIds |
| Value |
string |
No |
The value of the filter key. This parameter does not support wildcards.
|
FsetIds |
| NextToken |
string |
No |
When the returned results of a request are truncated, you can use NextToken to initiate another request and obtain the remaining results. |
TGlzdFJlc291cmNlU****mVzJjE1MTI2NjY4NzY5MTAzOTEmMiZORnI4NDhVeEtrUT0= |
| MaxResults |
integer |
No |
The maximum number of entries to return for a single request. Valid values: 10 to 100. Default value: 20. |
20 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| DataFlowInfo |
object |
||
| DataFlow |
array<object> |
The collection of data flow information. |
|
|
array<object> |
|||
| AutoRefresh |
object |
||
| AutoRefresh |
array<object> |
The collection of auto-refresh policy information. Note
Supported only by CPFS. |
|
|
object |
|||
| RefreshPath |
string |
The auto-refresh directory. CPFS automatically checks whether the source data in this directory is updated and automatically imports the updated data. Limits:
Note
The directory must be an existing directory in CPFS and must be located in a Fileset for which data flow is enabled. |
/prefix1/prefix2/ |
| AutoRefreshInterval |
integer |
The auto-refresh interval. CPFS checks whether data in the directory is updated at this interval. If data is updated, an auto-refresh task is started. Unit: minutes. Valid values: 5 to 526600. Default value: 10. Note
Supported only by CPFS. |
10 |
| AutoRefreshPolicy |
string |
The auto-refresh policy. This policy determines how data updates are imported to CPFS after the source data is updated. Valid values:
Note
Supported only by CPFS. |
None |
| CreateTime |
string |
The time when the Fileset was created. The time follows the ISO 8601 standard in the Note
Supported only by CPFS. |
2021-09-30T10:08:08Z |
| DataFlowId |
string |
The data flow ID. |
df-194433a5be31**** |
| Description |
string |
The description of the data flow. Limits:
|
Bucket01 data flow |
| ErrorMessage |
string |
The error message. Valid values:
|
SourceStorageUnreachable |
| FileSystemId |
string |
The file system ID. |
cpfs-099394bd928c**** |
| FileSystemPath |
string |
The path of the Fileset in the CPFS file system. Limits:
Note
Supported only by CPFS. |
/a/b/c/ |
| FsetDescription |
string |
The description of the auto-refresh. Note
Supported only by CPFS. |
Auto-refresh 01 |
| FsetId |
string |
The Fileset ID. Note
Supported only by CPFS. |
fset-1902718ea0ae**** |
| SourceSecurityType |
string |
The security protection type of the source storage. If the source storage must be accessed through security protection, specify the security protection type. Valid values:
|
SSL |
| SourceStorage |
string |
The access path of the source storage. Format: where:
Note
|
oss://178321033379****:bucket-01 |
| SourceStoragePath |
string |
The access path in the source storage bucket. Note
Supported only by CPFS for Lingjun. |
/prefix/ |
| Status |
string |
The data flow status. Valid values:
|
Running |
| Throughput |
integer |
The maximum transmission bandwidth of the data flow. Unit: MB/s. Valid values:
Note
|
600 |
| UpdateTime |
string |
The last time the Fileset was updated. The time follows the ISO 8601 standard in the Note
Supported only by CPFS. |
2021-09-30T10:08:08Z |
| NextToken |
string |
When the returned results of a request are truncated, you can use NextToken to initiate another request and obtain the remaining results. |
TGlzdFJlc291cmNlU****mVzJjE1MTI2NjY4NzY5MTAzOTEmMiZORnI4NDhVeEtrUT0= |
| RequestId |
string |
The request ID. |
2D69A58F-345C-4FDE-88E4-BF518948**** |
Examples
Success response
JSON format
{
"DataFlowInfo": {
"DataFlow": [
{
"AutoRefresh": {
"AutoRefresh": [
{
"RefreshPath": "/prefix1/prefix2/"
}
]
},
"AutoRefreshInterval": 10,
"AutoRefreshPolicy": "None",
"CreateTime": "2021-09-30T10:08:08Z",
"DataFlowId": "df-194433a5be31****",
"Description": "Bucket01 data flow",
"ErrorMessage": "SourceStorageUnreachable",
"FileSystemId": "cpfs-099394bd928c****",
"FileSystemPath": "/a/b/c/",
"FsetDescription": "Auto-refresh 01",
"FsetId": "fset-1902718ea0ae****",
"SourceSecurityType": "SSL",
"SourceStorage": "oss://178321033379****:bucket-01",
"SourceStoragePath": "/prefix/\n",
"Status": "Running",
"Throughput": 600,
"UpdateTime": "2021-09-30T10:08:08Z"
}
]
},
"NextToken": "TGlzdFJlc291cmNlU****mVzJjE1MTI2NjY4NzY5MTAzOTEmMiZORnI4NDhVeEtrUT0=",
"RequestId": "2D69A58F-345C-4FDE-88E4-BF518948****"
}
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 | InvalidFilterValue | The specified parameter Filter.1.Value is invalid. | |
| 404 | InvalidFileSystem.NotFound | The specified file system does not exist. | The specified file system does not exist. |
| 404 | InvalidFilterParam | The specified Filter.N.Key is invalid. | The specified Filter.N.Key parameter is invalid. |
| 404 | InvalidParameter.InvalidMaxResults | The specified MaxResults is invalid. | The specified MaxResults parameter is invalid. |
| 404 | InvalidParameter.InvalidNextToken | The specified NextToken is invalid. | The specified NextToken parameter is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.