SubmitDNAJob
Submits a DNA job.
Operation description
-
This operation is an asynchronous operation. After you submit a task, a task ID is returned. The task is not completed at this time and enters the background queue for asynchronous execution. The final result is notified through a callback. You can also call the List DNA jobs operation to query the task status.
-
This operation is currently supported in the China (Beijing), China (Hangzhou), and China (Shanghai) regions.
-
Submitting text DNA jobs is currently supported only in the China (Shanghai) region.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:SubmitDNAJob |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Input |
object |
Yes |
The input DNA file. |
|
| Type |
string |
Yes |
The type of the input file. Valid values:
|
Media |
| Media |
string |
Yes |
The information about the input file. OSS URLs and media asset IDs are supported. OSS URL formats:
In the URLs, bucket is the name of the OSS bucket that resides in the same region as the current project, and object is the file path. |
1b1b9cd148034739af413150fded**** |
| PipelineId |
string |
No |
The ID of the pipeline. |
5246b8d12a62433ab77845074039**** |
| Config |
string |
No |
The DNA configuration, which is a JSON object. If you specify this parameter, it overwrites the template parameters. |
{"SaveType": "save","MediaType":"video"} |
| TemplateId |
string |
No |
The ID of the template. |
S00000101-100060 |
| UserData |
string |
No |
The custom user data. The maximum length is 128 bytes. |
userData |
| PrimaryKey |
string |
Yes |
The unique primary key of the video. You must ensure its uniqueness. |
3ca84a39a9024f19853b21be9cf9**** |
| DBId |
string |
Yes |
The ID of the DNA library. To create a DNA library, see CreateDNADB - Create a DNA library. |
2288c6ca184c0e47098a5b665e2a12**** |
The Config parameter for the DNA configuration includes the SaveType and MediaType fields.
SaveType specifies the storage type. Valid values:
nosave: searches only and does not add the file to the library.
save: deduplicates and adds the file to the library.
forcesave: forcibly adds the file to the library.
onlysave: adds the file to the library only and does not search.
MediaType specifies the media type of the input file. Valid values:
video: video.
audio: audio.
image: image.
text: long text.
asr: ASR-recognized text.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
25818875-5F78-4A13-BEF6-D7393642CA58 |
| JobId |
string |
The ID of the video DNA job. Save this ID for subsequent calls to other related operations. |
88c6ca184c0e47098a5b665e2**** |
Examples
Success response
JSON format
{
"RequestId": "25818875-5F78-4A13-BEF6-D7393642CA58",
"JobId": "88c6ca184c0e47098a5b665e2****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.