tencent cloud

Feedback

Updating File Transcoding Queue

Last updated: 2024-02-19 16:02:57

    Overview

    This API (UpdateDocProcessQueue) is used to update a file transcoding queue.

    Request

    Sample request

    PUT /docqueue/p8eb46b8cc1a94bc09512d16c5c4f4d3a HTTP/1.1
    Host: <BucketName-APPID>.ci.<Region>.myqcloud.com
    Date: <GMT Date>
    Authorization: <Auth String>
    Content-Length: <length>
    Content-Type: application/xml
    
    <body>
    Note:
    Authorization: Auth String (See Request Signature for details.)
    When this feature is used by a sub-account, relevant permissions must be granted as instructed in Authorization Granularity Details.

    Request headers

    This API only uses Common Request Headers.

    Request body

    This request requires the following request body:
    <Request>
    <Name>Queue Name</Name>
    <QueueID></QueueID>
    <State></State>
    <NotifyConfig>
    <Type></Type>
    <Url></Url>
    <Event></Event>
    </NotifyConfig>
    </Request>
    The nodes are described as follows:
    Node Name (Keyword)
    Parent Node
    Description
    API Type
    Required
    Request
    N/A
    Request container
    Container
    Supported
    
    Request has the following sub-nodes:
    Node Name (Keyword)
    Parent Node
    Description
    API Type
    Required
    Constraints
    Name
    Request
    Queue Name
    String
    Supported
    Length limit: 100 characters
    QueueID
    Request
    Queue ID
    String
    Supported
    N/A
    State
    Request
    Queue status
    String
    Supported
    1. Active: Jobs in the queue will be scheduled and executed by the file preview service.
    2. Paused: The queue is paused, and jobs in it will no longer be scheduled and executed. All jobs in the queue will remain in the `Submitted` status, while jobs being executed will continue without being affected.
    NotifyConfig
    Request
    Notification channel
    Container
    Supported
    Third-party callback URL
    
    NotifyConfig has the following sub-nodes:
    Node Name (Keyword)
    Parent Node
    Description
    API Type
    Required
    Constraints
    Url
    Request.NotifyConfig
    Callback configuration
    String
    No
    Length limit: 100 characters
    Type
    Request.NotifyConfig
    Callback type, normal callback: URL
    String
    No
    Length limit: 100 characters
    Event
    Request.NotifyConfig
    Callback event: The file preview job is completed.
    String
    No
    Length limit: 100 characters
    State
    Request.NotifyConfig
    Callback switch: Off, On
    String
    No
    Length limit: 100 characters
    

    Response

    Response headers

    This API only returns Common Response Headers.

    Response body

    The response body returns application/xml data. The following contains all the nodes:
    <Response>
    <RequestId>NTk0MjdmODlfMjQ4OGY3XzYzYzhf****</RequestId>
    <Queue>
    <QueueId></QueueId>
    <Name></Name>
    <State>Active</State>
    <NotifyConfig>
    <Url>mts-topic-1</Url>
    <Type></Type>
    <Event></Event>
    </NotifyConfig>
    <CreateTime></CreateTime>
    <UpdateTime></UpdateTime>
    </Queue>
    </Response>
    The nodes are described as follows:
    Node Name (Keyword)
    Parent Node
    Description
    Type
    Response
    None
    Result storage container
    Container
    Response has the following sub-nodes:
    Node Name (Keyword)
    Parent Node
    Description
    Type
    RequestId
    Response
    Unique ID of the request
    String
    Queue
    Response
    Queue information. For more information, see Response.QueueList in DescribeDocProcessQueues.
    Container

    Error codes

    No special error message will be returned for this request. For the common error messages, please see Error Codes.

    Examples

    Request

    PUT /docqueue/p2505d57bdf4c4329804b58a6a5fb1572 HTTP/1.1
    Connection: keep-alive
    Accept-Encoding: gzip, deflate
    Accept: */*
    User-Agent: cos-python-sdk-v5.3.2
    Host: examplebucket-1250000000.ci.ap-chongqing.myqcloud.com
    Content-Type: application/xml
    Content-Length: 279
    Authorization: Authorization
    
    <?xml version="1.0" encoding="UTF-8" ?>
    <Request>
    <QueueId>p2505d57bdf4c4329804b58a6a5fb1572</QueueId>
    <State>Active</State>
    <Name>markjrzhang4</Name>
    <NotifyConfig>
    <Url>http://google.com/</Url>
    <State>On</State>
    <Type>Url</Type>
    <Event>TransCodingFinish</Event>
    </NotifyConfig>
    </Request>[!http]

    Response

    HTTP/1.1 200 OK
    Date: Mon, 27 Jul 2020 08:22:41 GMT
    Content-Type: application/xml
    Content-Length: 641
    Connection: keep-alive
    Server: tencent-ci
    x-ci-request-id: NWYxZThlZDBfYzc2OTQzNjRfMzUxYV8x****
    
    <?xml version="1.0" encoding="utf-8"?>
    <Response>
    <RequestId>NWYxZThlZDBfYzc2OTQzNjRfMzUxYV8x****</RequestId>
    <Queue>
    <QueueId>p2505d57bdf4c4329804b58a6a5fb1572</QueueId>
    <Name>markjrzhang4</Name>
    <State>Active</State>
    <NotifyConfig>
    <Url>http://example.com/</Url>
    <Event>TransCodingFinish</Event>
    <Type>Url</Type>
    <State>On</State>
    </NotifyConfig>
    <MaxSize>10000</MaxSize>
    <MaxConcurrent>10</MaxConcurrent>
    <CreateTime>2020-07-24T22:42:27+0800</CreateTime>
    <UpdateTime>2020-07-27T16:22:40+0800</UpdateTime>
    <BucketId>test007-1251704708</BucketId>
    <Category>DocProcessing</Category>
    </Queue>
    </Response>