Queries the upload details, such as the upload time, upload ratio, and upload source, about one or more media files based on the media IDs.
Operation description
-
You can call this operation to obtain the upload details only about audio and video files.
- If you use the ApsaraVideo VOD console to upload audio and video files, you can call this operation to query information such as the upload ratio. If you use an upload SDK to upload audio and video files, make sure that the version of the upload SDK meets one of the following requirements:
-
The version of the upload SDK for Java is 1.4.4 or later.
-
The version of the upload SDK for C++ is 1.0.0 or later.
-
The version of the upload SDK for PHP is 1.0.2 or later.
-
The version of the upload SDK for Python is 1.3.0 or later.
-
The version of the upload SDK for JavaScript is 1.4.0 or later.
-
The version of the upload SDK for Android is 1.5.0 or later.
-
The version of the upload SDK for iOS is 1.5.0 or later.
-
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:GetUploadDetails |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| MediaIds |
string |
Yes |
The ID of the media file, namely, the audio or video ID. You can specify a maximum of 20 IDs. Separate multiple IDs with commas (,). You can use one of the following methods to obtain the audio or video ID:
|
61ccbdb06fa83012be4d8083f6****,7d2fbc380b0e08e55f**** |
| MediaType |
string |
No |
The type of the media file. Set the value to video, which indicates audio and video files. |
video |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| RequestId |
string |
The ID of the request. |
9E290613-04F4-47F4-795D30732077**** |
| ForbiddenMediaIds |
array |
The IDs of the media files that cannot be accessed. |
|
|
string |
The IDs of the media files that cannot be accessed. |
7d2fbc380b0e08e55f**** |
|
| NonExistMediaIds |
array |
The IDs of the media files that do not exist. |
|
|
string |
The IDs of the media files that do not exist. |
dfsg**** |
|
| UploadDetails |
array<object> |
The upload details. |
|
|
object |
The upload details. |
||
| Status |
string |
The status of the video. For more information about the valid values and value description of the parameter, see the "Status: the status of a video" section of the Basic structures topic. |
Uploading |
| CreationTime |
string |
The time when the upload job was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2019-04-28T09:42:07Z |
| UploadSource |
string |
The method that is used to upload the media file. |
WebSDK |
| UploadIP |
string |
The IP address of the server that uploads the media file. |
192.168.0.1 |
| DeviceModel |
string |
The device model. |
Chrome |
| ModificationTime |
string |
The time when the information about the media file was updated. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2019-04-28T09:43:12Z |
| CompletionTime |
string |
The time when the upload job was complete. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2019-04-28T09:45:07Z |
| MediaId |
string |
The ID of the uploaded audio or video. |
61ccbdb06fa83012be4d8083f6**** |
| UploadSize |
integer |
The upload size. Unit: byte. |
346 |
| UploadRatio |
number |
The upload ratio. |
0.038 |
| UploadStatus |
string |
The status of the upload job. For more information about the valid values and value description of the parameter, see the "Status: the status of a URL-based upload job" section of the Basic structures topic. |
Uploading |
| Title |
string |
The title of the media file. |
Test details |
| FileSize |
integer |
The size of the uploaded file. Unit: byte. |
46 |
Examples
Success response
JSON format
{
"RequestId": "9E290613-04F4-47F4-795D30732077****",
"ForbiddenMediaIds": [
"7d2fbc380b0e08e55f****"
],
"NonExistMediaIds": [
"dfsg****"
],
"UploadDetails": [
{
"Status": "Uploading",
"CreationTime": "2019-04-28T09:42:07Z",
"UploadSource": "WebSDK",
"UploadIP": "192.168.0.1",
"DeviceModel": "Chrome",
"ModificationTime": "2019-04-28T09:43:12Z",
"CompletionTime": "2019-04-28T09:45:07Z",
"MediaId": "61ccbdb06fa83012be4d8083f6****",
"UploadSize": 346,
"UploadRatio": 0.038,
"UploadStatus": "Uploading",
"Title": "Test file upload details",
"FileSize": 46
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.