Submits a DNA job.
Operation description
-
This is an asynchronous API. After you submit a job, the system returns a job ID and queues the job for asynchronous execution in the background. You receive the final result in a callback notification. You can also call the ListDNAJobs operation to query the job status.
-
This operation is available in the following regions: China (Beijing), China (Hangzhou), and China (Shanghai).
-
Text-based DNA jobs are 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 |
*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 media ID or OSS file url of the input file. 1. 2. In these formats, |
1b1b9cd148034739af413150fded**** |
| PipelineId |
string |
No |
The pipeline ID. |
5246b8d12a62433ab77845074039**** |
| Config |
string |
No |
The DNA configuration in JSON format. If specified, these settings override the corresponding template parameters. |
{"SaveType": "save","MediaType":"video"} |
| TemplateId |
string |
No |
The template ID. |
S00000101-100060 |
| UserData |
string |
No |
The user-defined data. The maximum length is 128 bytes. |
userData |
| PrimaryKey |
string |
Yes |
The unique primary key for the video. You are responsible for ensuring its uniqueness. |
3ca84a39a9024f19853b21be9cf9**** |
| DBId |
string |
Yes |
The DNA library ID. To create a DNA library, see CreateDNADB. |
2288c6ca184c0e47098a5b665e2a12**** |
The Config parameter includes the SaveType and MediaType fields.
SaveType specifies the storage policy. Valid values include:
nosave: Searches for duplicates in the DNA library but does not add the input file.
save: Adds the input file to the DNA library only if no duplicates are found.
forcesave: Adds the input file to the DNA library regardless of whether duplicates exist.
onlysave: Adds the input file to the DNA library without searching for duplicates.
MediaType specifies the media type of the input file. Valid values include:
video: Video.
audio: Audio.
image: Image.
text: Long text.
asr: ASR-recognized text.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
25818875-5F78-4A13-BEF6-D7393642CA58 |
| JobId |
string |
The ID of the DNA job. Save this ID for subsequent API calls. |
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.