All Products
Search
Document Center

ApsaraVideo VOD:GetUploadDetails

Last Updated:Jul 19, 2024

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

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
MediaIdsstringYes

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:

  • Log on to the ApsaraVideo VOD console. In the left-side navigation pane, choose Media Files > Audio/Video. On the Video and Audio page, you can view the audio or video ID. Use this method if the audio or video file is uploaded by using the ApsaraVideo VOD console.
  • View the value of the VideoId parameter returned by the CreateUploadVideo operation that you called to obtain an upload URL and credential.
  • View the value of the VideoId parameter returned by the SearchMedia operation that you called to query media information after the audio or video file is uploaded.
61ccbdb06fa83012be4d8083f6****,7d2fbc380b0e08e55f****
MediaTypestringNo

The type of the media file. Set the value to video, which indicates audio and video files.

video

Response parameters

ParameterTypeDescriptionExample
object

The returned data.

RequestIdstring

The ID of the request.

9E290613-04F4-47F4-795D30732077****
ForbiddenMediaIdsarray

The IDs of the media files that cannot be accessed.

string

The IDs of the media files that cannot be accessed.

7d2fbc380b0e08e55f****
NonExistMediaIdsarray

The IDs of the media files that do not exist.

string

The IDs of the media files that do not exist.

dfsg****
UploadDetailsarray<object>

The upload details.

object

The upload details.

Statusstring

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
CreationTimestring

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
UploadSourcestring

The method that is used to upload the media file.

WebSDK
UploadIPstring

The IP address of the server that uploads the media file.

192.168.0.1
DeviceModelstring

The device model.

Chrome
ModificationTimestring

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
CompletionTimestring

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
MediaIdstring

The ID of the uploaded audio or video.

61ccbdb06fa83012be4d8083f6****
UploadSizelong

The upload size. Unit: byte.

346
UploadRatiofloat

The upload ratio.

0.038
UploadStatusstring

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
Titlestring

The title of the media file.

Test details
FileSizelong

The size of the uploaded file. Unit: byte.

46

Examples

Sample success responses

JSONformat

{
  "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.

Common errors

The following table describes the common errors that this operation can return.

Error codeError messageHTTP status codeDescription
LimitExceeded.MediaIdsThe input parameter 'MediaIds' Exceed the limit.400The error message returned because the number of media IDs exceeds 20.