Querying a Clipping Task
Function
Queries the execution status, creation, and end time of a clipping task.
Calling Method
For details, see Calling APIs.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, the following identity policy-based permissions are required.
Action
Access Level
Resource Type (*: required)
Condition Key
Alias
Dependencies
mpc:editingTask:view
List
-
-
-
-
URI
GET /v2/{project_id}/editing/jobs
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID. For details about how to obtain the project ID, see Obtaining a Project ID. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| job_id | Yes | Array of strings | Task ID. Max. 10 at a time. |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | No | String | User token The token can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token. |
| Authorization | No | String | Authentication information. This parameter is mandatory when AK/SK-based authentication is used. |
| X-Project_Id | No | String | Project ID. This parameter is mandatory when AK/SK-based authentication is used. It is same as the project ID in path parameters. |
| X-Sdk-Date | No | String | Time when the request is sent. This parameter is mandatory when AK/SK-based authentication is used. |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| X-Request-Id | String | This field indicates the unique request identifier used for tracing task process. Format: request_id(uuid)-timestamp-hostname |
| Parameter | Type | Description |
|---|---|---|
| job_array | Array of QueryEditingJob objects | Tasks |
| Parameter | Type | Description |
|---|---|---|
| job_id | String | Task ID |
| status | String | Task execution status. The options include: |
| progress | Integer | Indicates the task execution progress, in percentage. The value ranges from 0 to 100. |
| create_time | String | Editing task creation time. The format is yyyyMMddHHmmss. The value must be a timezone-agnostic UTC time. |
| start_time | String | Editing task start time. The format is yyyyMMddHHmmss. The value must be a timezone-agnostic UTC time. |
| end_time | String | Editing task end time. The format is yyyyMMddHHmmss. The value must be a timezone-agnostic UTC time. |
| metadata | Array of FileMetaData objects | Metadata of the output file. |
| output | ObsObjInfo object | Output address. |
| editing_output | EditingOutputFileInfo object | Meta information of the task output. |
| Parameter | Type | Description |
|---|---|---|
| name | String | Metadata name. |
| value | String | Metadata value. |
| Parameter | Type | Description |
|---|---|---|
| duration | Long | Output file duration. Unit: second. |
| duration_ms | Long | Output duration, in milliseconds. |
| format | String | Output packaging format. |
| size | Long | Media file size, in KB |
| size_byte | Long | Media file size, in Byte |
| md5 | String | MD5 value of the video. NOTE: This field is returned only by the transcoding and parsing APIs. By default, this field is disabled. You need to submit a service ticket to enable it. |
| video_info | EditingVideoInfo object | Video information |
| audio_info | Array of EditingAudioInfo objects | Audio information |
| Parameter | Type | Description |
|---|---|---|
| width | Integer | Video width |
| height | Integer | Video height |
| bitrate | Integer | Video bitrate, in kbit/s |
| bitrate_bps | Long | Video bitrate, in bit/s |
| frame_rate | Integer | Output frame rate. |
| codec | String | Video encoding format |
| dynamic_range | String | Source dynamic range. The value can be HDR or SDR. |
| duration | String | Video stream duration, in seconds. |
| duration_ms | String | Video stream duration, in milliseconds |
| rotate | Float | Video shooting angle, in degrees. |
| Parameter | Type | Description |
|---|---|---|
| codec | String | Audio encoding format |
| sample | Integer | Audio sampling rate |
| channels | Integer | Audio signaling channel |
| bitrate | Integer | Audio bitrate, in kbit/s |
| bitrate_bps | Long | Audio bitrate, in bit/s |
| duration | String | Audio stream duration, in seconds. |
| duration_ms | String | Audio stream duration, in milliseconds. |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| X-Request-Id | String | This field indicates the unique request identifier used for tracing task process. Format: request_id(uuid)-timestamp-hostname |
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code |
| error_msg | String | Error description |
Status code: 500
| Parameter | Type | Description |
|---|---|---|
| X-Request-Id | String | This field indicates the unique request identifier used for tracing task process. Format: request_id(uuid)-timestamp-hostname |
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code |
| error_msg | String | Error description |
Example Requests
GET https://{endpoint}/v2/{project_id}/editing/jobs?job_id=30647 Example Responses
None
Status Codes
| Status Code | Description |
|---|---|
| 200 | The clipping task has been queried. |
| 400 | Query the clipping task failed or request the parameter verification failed. |
| 500 | Internal server error. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot