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.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
vod:GetUploadDetails | get | *All Resources * |
| 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 parameters
Examples
Sample success responses
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 details",
"FileSize": 46
}
]
}
Error codes
For a list of error codes, visit the Service error codes.