On this page

DescribeUploadTasks

POST

https://cloud-player-api.zego.im/

This API can be used to obtain details of one or more upload tasks.

Note
  • If none of the following parameters are passed, it means querying detailed information of all upload tasks, and the return result contains detailed information of up to 50 tasks.
  • If only UploadTaskId is passed, it means querying the detailed information of the corresponding upload task.
  • When both UploadTaskId and Status are passed, if Status does not match the actual status of the upload task, the return result will be empty.
Note
Call frequency limit: 20 times/second

Request

Query Parameters

    Action stringrequired

    Possible values: [DescribeUploadTasks]

    API prototype parameter

    https://cloud-player-api.zego.im?Action=DescribeUploadTasks

    AppId uint32required

    💡Common parameter. Application Id, a unique user credential assigned by ZEGOCLOUD. Can be obtained from ZEGOCLOUD Console.

    SignatureNonce stringrequired

    💡Common parameter. 16-digit hexadecimal random string (hex encoding of 8-byte random number). For the generation algorithm, please refer to Signature Example.

    Timestamp int64required

    💡Common parameter. Current Unix timestamp, unit is seconds. For the generation algorithm, please refer to Signature Example, a maximum error of 10 minutes is allowed.

    SignatureVersion stringrequired

    Possible values: [2.0]

    Default value: 2.0

    💡Common parameter. Signature version number.

    Signature stringrequired

    💡Common parameter. Signature, used to verify the legitimacy of the request. Please refer to Signature Mechanism for generation.

Body

    UploadTaskId string

    Upload task ID to be queried. When this parameter is passed, PageSize is invalid.

    Status number

    Possible values: [0, 1, 2, 3, 4, 5, 6, 7]

    Query upload tasks in a specific status. Supports the following values:

    • 0: Default value, meaningless.
    • 1: Waiting.
    • 2: Uploading.
    • 3: Waiting for retry.
    • 4: Upload successful.
    • 5: Upload failed.
    • 6: Cancelled.
    • 7: Expired.
    PageSize number

    Upper limit of data returned by the current request. Value range is (0, 50], default is 50 when empty.

    PageToken string

    Pagination pull flag.

    No need to set this parameter for the first query. When NextPageToken in the return parameter is not empty, it indicates that subsequent query results have not been fully obtained. When calling this API again to continue the query, fill in the value of that NextPageToken for this parameter.

Responses​

OK
Schema
    Code number

    Return code.

    The following only lists the return codes related to the API business logic. For the complete return codes, please refer to Global Return Codes.

    Return CodeDescriptionHandling Suggestion
    0Success.-
    100000004Signature expired.Please regenerate the signature.
    100000005Signature error.Please confirm whether the parameters for generating the signature are correct.
    350006001API request frequency exceeds the limit.Please confirm the QPS limit of the corresponding API and reduce the request frequency.
    350006002Gateway verification failed.Please contact ZEGOCLOUD Technical Support for assistance.
    350006003Invalid input parameter.Please adjust the value of the corresponding parameter according to the Message prompt.
    350006006Service not activated.Please contact ZEGOCLOUD Technical Support to activate the service permission.
    350010000System error.Please contact ZEGOCLOUD Technical Support for assistance.
    Message string

    Operation result description.

    RequestId string

    Request ID.

    Data object
    Returned specific information.
    TotalSize number

    Total number of query results.

    NextPageToken string

    Pagination pull flag.

    • When not empty, it indicates that there are still unreturned result information, and this value needs to be set to the PageToken in the request parameters to call this API again to obtain the remaining result information.
    • When empty, it indicates that all result information has been returned.

    Note

    Except for the above description, this field has no association with the list information. Please do not base any other logic on this.

    UploadTasks object[]
    Query result details.
  • Array[
  • UploadTaskId string

    Upload task ID.

    StreamUrl string

    Address of the media resource.

    Title string

    File title.

    Status number

    Possible values: [1, 2, 3, 4, 5, 6, 7]

    Upload status, values are as follows:

    • 1: Waiting
    • 2: Uploading
    • 3: Waiting for retry
    • 4: Upload successful
    • 5: Upload failed
    • 6: Cancelled
    • 7: Expired
    RetryCount number

    Number of upload retries.

    ExpiresAt number

    File expiration Unix timestamp, unit is seconds.

    CreateTime number

    Unix timestamp when the upload task was successfully created, unit is seconds.

    UploadStreamUrl string

    Public network URL of the file after successful upload.

    InternalUploadStreamUrl string

    ZEGOCLOUD internal network URL of the file after successful upload.

    Note

    It is recommended to use it as StreamUrl when Create a cloud player.

  • ]

Previous

Cancel an upload task

Next

Authenticating server-to-server callbacks

On this page

Back to top