UpdateDocProcessQueue
) is used to update a file transcoding queue.PUT /docqueue/p8eb46b8cc1a94bc09512d16c5c4f4d3a HTTP/1.1Host: <BucketName-APPID>.ci.<Region>.myqcloud.comDate: <GMT Date>Authorization: <Auth String>Content-Length: <length>Content-Type: application/xml<body>
<Request><Name>Queue Name</Name><QueueID></QueueID><State></State><NotifyConfig><Type></Type><Url></Url><Event></Event></NotifyConfig></Request>
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><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>
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 | Container |
PUT /docqueue/p2505d57bdf4c4329804b58a6a5fb1572 HTTP/1.1Connection: keep-aliveAccept-Encoding: gzip, deflateAccept: */*User-Agent: cos-python-sdk-v5.3.2Host: examplebucket-1250000000.ci.ap-chongqing.myqcloud.comContent-Type: application/xmlContent-Length: 279Authorization: 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]
HTTP/1.1 200 OKDate: Mon, 27 Jul 2020 08:22:41 GMTContent-Type: application/xmlContent-Length: 641Connection: keep-aliveServer: tencent-cix-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>
Was this page helpful?