All Products
Search
Document Center

ApsaraVideo Media Processing:QueryTraceAbJob

Last Updated:Oct 13, 2026

Invoke this API to query video tracing watermark AB stream jobs.

Operation description

Currently, digital watermarking-related APIs are only supported in the China (Shanghai) and China (Beijing) regions.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

mts:QueryTraceAbJob

none

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

JobId

string

No

Job ID. You can obtain it from the response parameters of the submitted video tracing watermark AB stream job.

31fa3c9ca8134fb4b0b0f7878301****

MediaId

string

No

Media ID.

3e6149d5a8c944c09b1a8d2dc3e4****

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

Id of the request

338CA33A-AE83-5DF4-B6F2-C6D3ED8143F5

Message

string

Return message

ok

Data

array<object>

Returned data.

object

Returned data.

Callback

string

Callback URL

http://callbacktest.com/callback

GmtCreate

integer

Creation Time

1627357322

GmtModified

integer

Updated At

1627357325

Input

string

Watermarked video input

{"Bucket":"ivison-test","Location":"oss-cn-shanghai","Object":"test.mp4"}

JobId

string

Job ID

bfb786c639894f4d80648792021e****

Level

integer

Watermark strength

2

MediaId

string

Media ID

437bd2b516ffda105d07b12a9a82****

Output

string

Watermarked video output

{"Bucket":"ivison-test","Location":"oss-cn-shanghai","Object":"out.mp4"}

Status

string

Status

success

UserData

string

User Data

123

UserId

integer

User ID

13466****

Result

string

Task Result

{"Code":"success","Message":"ok"}

StatusCode

integer

Status code

200

Examples

Success response

JSON format

{
  "RequestId": "338CA33A-AE83-5DF4-B6F2-C6D3ED8143F5",
  "Message": "ok",
  "Data": [
    {
      "Callback": "http://callbacktest.com/callback",
      "GmtCreate": 1627357322,
      "GmtModified": 1627357325,
      "Input": "{\"Bucket\":\"ivison-test\",\"Location\":\"oss-cn-shanghai\",\"Object\":\"test.mp4\"}",
      "JobId": "bfb786c639894f4d80648792021e****",
      "Level": 2,
      "MediaId": "437bd2b516ffda105d07b12a9a82****",
      "Output": "{\"Bucket\":\"ivison-test\",\"Location\":\"oss-cn-shanghai\",\"Object\":\"out.mp4\"}",
      "Status": "success",
      "UserData": "123",
      "UserId": 0,
      "Result": "{\"Code\":\"success\",\"Message\":\"ok\"}"
    }
  ],
  "StatusCode": 200
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.