Retrieves information about URL-based upload jobs.
Operation description
You can query information about URL-based upload jobs, including the job status, UserData, creation time, and completion time, using the JobId or the source URL.
This operation queries data only for upload jobs created within the last year.
The endpoints for this operation are available only in the following regions: China (Shanghai) and Singapore.
After you upload a media file to ApsaraVideo VOD by calling the UploadMediaByURL operation, you can call this operation to query the upload information using the upload job ID (
JobIds) or the source file URL (UploadURLs).When you call this operation, specify either
JobIdsorUploadURLs. If you specify both, onlyJobIdsis processed.If a media asset fails to upload, call this operation to view the error code and error message. If the upload is successful, call this operation to view the media ID.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:GetURLUploadInfos |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| JobIds |
string |
No |
A list of upload job IDs. A JobId is the value of the JobId parameter returned when you call the UploadMediaByURL operation.
Note
You must specify either JobIds or UploadURLs. If you specify both, only JobIds is processed. |
86c1925fba0****,7afb201e7fa****,2cc4997378**** |
| UploadURLs |
string |
No |
A list of source video file URLs. Separate multiple URLs with commas (,). You can specify up to 10 URLs. Note
|
http://****.mp4 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
25818875-5F78-4AF6-D7393642CA58**** |
| NonExists |
array |
A list of IDs of URL-based upload jobs or URLs that do not exist. |
|
|
string |
A list of IDs of URL-based upload jobs or URLs that do not exist. |
["****1", "****2"] |
|
| URLUploadInfoList |
array<object> |
A list of URL upload job details. For more information, see URLUploadInfo. |
|
|
object |
The details of the URL-based upload job. |
||
| CreationTime |
string |
The time when the job was created. The time is in the yyyy-MM-ddTHH:mm:ssZ format in UTC. |
2019-01-01T01:01:01Z |
| Status |
string |
The status of the URL-based upload job. For more information about the valid values, see Status. |
SUCCESS |
| ErrorMessage |
string |
The error message. |
error_message |
| ErrorCode |
string |
The error code. |
200 |
| CompleteTime |
string |
The time when the job was completed. The time is in the yyyy-MM-ddTHH:mm:ssZ format in UTC. |
2019-01-01T01:11:01Z |
| JobId |
string |
The ID of the upload job. |
86c1925fba0**** |
| UserData |
string |
Custom settings. This is a JSON string. For more information, see UserData. |
{"MessageCallback":"{"CallbackURL":"http://example.aliyundoc.com"}", "Extend":"{"localId":"***", "test":"www"}"} |
| UploadURL |
string |
The URL of the source video file. Note
A maximum of 100 records are returned. |
http://****.mp4 |
| MediaId |
string |
The media ID. |
93ab850b4f6f54b6e91d24d81d4**** |
| FileSize |
string |
The file size. Unit: bytes. |
24 |
| RegisteredMediaId |
string |
93ab850b4f654b6e91d24d81d44**** |
Examples
Success response
JSON format
{
"RequestId": "25818875-5F78-4AF6-D7393642CA58****",
"NonExists": [
"[\"****1\", \"****2\"]"
],
"URLUploadInfoList": [
{
"CreationTime": "2019-01-01T01:01:01Z",
"Status": "SUCCESS",
"ErrorMessage": "error_message",
"ErrorCode": "200",
"CompleteTime": "2019-01-01T01:11:01Z",
"JobId": "86c1925fba0****",
"UserData": "{\"MessageCallback\":\"{\"CallbackURL\":\"http://example.aliyundoc.com\"}\", \"Extend\":\"{\"localId\":\"***\", \"test\":\"www\"}\"}",
"UploadURL": "http://****.mp4",
"MediaId": "93ab850b4f6f54b6e91d24d81d4****",
"FileSize": "24",
"RegisteredMediaId": "93ab850b4f654b6e91d24d81d44****"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.