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 | Type | Required |
Request | None | Request container | Container | Yes |
Request
has the following sub-nodes:Node Name (Keyword) | Parent Node | Description | Type | Required | Constraints |
Name | Request | Queue name | String | Yes | Length limit: 100 characters |
QueueID | Request | Queue ID | String | Yes | None |
State | Request | Queue status | String | Yes | 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 | Yes | Third-party callback URL |
NotifyConfig
has the following sub-nodes:Node Name (Keyword) | Parent Node | Description | Type | Required | Constraints |
Url | Request.NotifyConfig | Callback configuration | String | No | Length limit: 100 characters |
Type | Request.NotifyConfig | Callback type. General 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` or `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>
문제 해결에 도움이 되었나요?