Creates a task to process data in PolarFS based on a specified template and write it to a PolarDB database.
Try it now
Test
RAM authorization
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The ID of the region where the task resides. |
cn-hangzhou |
| Description |
string |
No |
The description of the data processing task. |
Image data processing task |
| SourceType |
string |
Yes |
The type of the data source. Only PolarFS is supported. |
PolarFS |
| SourceId |
string |
Yes |
The ID of the PolarFS instance that serves as the data source. |
pfs-123456 |
| SourcePath |
string |
Yes |
The source data path in PolarFS. An empty string indicates the default path. |
/images |
| SourceConfig |
string |
No |
The additional configuration for the data source in JSON string format. This parameter can be left empty. |
{} |
| DestinationType |
string |
Yes |
The type of the destination. Only PolarDB is supported. |
PolarDB |
| DestinationId |
string |
Yes |
The ID of the destination PolarDB cluster. |
pc-test123456 |
| DestinationPath |
string |
Yes |
The name of the destination database. |
testdb |
| DestinationConfig |
string |
No |
The JSON string for the destination database connection configuration, including Account and Password. |
{"Account":"example_user","Password":"example_password"} |
| TemplateId |
string |
Yes |
The ID of the task template used to process data. |
tpl-123456 |
| ModelName |
string |
No |
The name of the model used for feature extraction. |
model-v1 |
| ProcessingMode |
string |
Yes |
The processing mode. Valid values: Full, Incremental, and Both. |
Full |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
2921D843-433A-5FB3-A03B-4EC093B219F8 |
| JobId |
string |
The ID of the created data processing task. |
job-123456 |
Examples
Success response
JSON format
{
"RequestId": "2921D843-433A-5FB3-A03B-4EC093B219F8",
"JobId": "job-123456"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.