tencent cloud

Cloud Infinite

Release Notes and Announcements
Release Notes
Announcements
Product Introduction
Product Overview
Product Strengths
Use Cases
Feature Overview
Regions and Domains
Specifications and Limits
Billing
Billing Overview
Billing Mode
Billable Items
Free Tier
Payment Overdue
Viewing Bill Details
FAQs
Getting Started
Registering and Logging In
Bind Bucket
Uploading and Processing File
Downloading and Deleting Images
Unbinding Buckets
Using CI via COS
Features
Image Processing
Media Processing
Content Moderation
AI Content Recognition
File Processing
Smart Voice
File processing
User Guide
Overview
Bucket Management
Smart Toolbox
Job and Workflow
Data Monitoring
Usage statistics
Use Cases
Copyright Protection Solutions
Image Processing Practices
Working with API Authorization Policies
Workflow Practices
API Documentation
API Overview
Structure
Common Request Headers
Common Response Headers
Activate Vast Service
Image Processing
AI-Based Content Recognition
Smart Audio
Media Processing
Content Moderation
Document Processing
File Processing
Job and Workflow
Cloud Virus Detection
Error Codes
Request Signature
SDK Documentation
SDK Overview
Android SDK
iOS SDK
COS Android SDK
C SDK
C++ SDK
.NET(C#) SDK
Go SDK
COS iOS SDK
Java SDK
JavaScript SDK
Node.js SDK
PHP SDK
Python SDK
Mini Program SDK
Personal Information Protection Policy for SDK
Security and Compliance
Permission ‍Management
FAQs
Basic Settings
Document Processing
Media Processing
Content Recognition
Smart Audio
Agreements
Service Level Agreement
Contact Us
Glossary

Updating Image Processing (Async) Queue

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2025-09-08 16:56:50

Feature Description

This API is used to refresh the image processing (async) queue.

Authorization Description

When using a sub-account, you need to grant the ci:UpdatePicProcessQueue permission in the action of the authorization policy. For all supported API operations in Cloud Infinite (CI), see action.

Service Activation

To use this feature, you need to bind a bucket in advance and enable Cloud Infinite service.
To use this feature, you need to enable the image asynchronous processing service in advance via the console or API.
Note:
Note: After binding Cloud Infinite (CI), if you manually perform the unbind operation on a bucket, you will not be able to continue using this function.

Use Limits

When using this API, please confirm the related use limits. For details, see Usage Limits.


Request

Request sample

PUT /picqueue/<queueId> 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. For details, see the Signature Request document.
queueId: The ID of the Image Processing queue. You can query it via the console or API.

Request header

This API only uses common request headers. For details, see Common Request Headers documentation.

Request body

The implementation of the request operation requires the following request body.
<Request>
<Name>My-Queue-pic</Name>
<State>Active</State>
<NotifyConfig>
<State>On</State>
<Url>http://callback.demo.com</Url>
<Type>Url</Type>
<Event>TaskFinish</Event>
<ResultFormat>JSON</ResultFormat>
</NotifyConfig>
</Request>
The data are as follows:
Node Name (Keyword)
Parent Node
Description
Type
Required or Not
Default Value
Limit
Request
None.
Container for saving results
Container
Yes
None.
None.
Container node Request content:
Node Name (Keyword)
Parent Node
Description
Type
Default Value
Required or Not
Name
Request
Queue name: Only Chinese, English, digits, _, -, and * are supported, with a length not exceeding 128.
String
None.
Yes
State
Request
Active: Indicates that jobs in the queue will be scheduled for execution.
Paused means the queue is suspended, jobs will no longer be scheduled for execution, all jobs in the queue remain in paused state, and executing tasks are unaffected.
String
None.
Yes
NotifyConfig
Request
callback configuration
Container
None.
Yes
Content of the NotifyConfig in the Container node.
Node Name (Keyword)
Parent Node
Description
Type
Default Value
Required or Not
State
Request.NotifyConfig
callback switch
Off
On
String
Off
No
Event
Request.NotifyConfig
callback event
TaskFinish: task complete
String
None.
When State = On, required
ResultFormat
Request.NotifyConfig
callback format
XML
JSON
String
XML
No
Type
Request.NotifyConfig
callback type
Url
TDMQ
String
None.
When State = On, required
Url
Request.NotifyConfig
The callback URL cannot be a private network address.
String
None.
When State = On and Type = Url, required
MqMode
Request.NotifyConfig
TDMQ usage mode
Topic subscription
Queue service
String
None.
When State = On and Type = TDMQ, required
MqRegion
Request.NotifyConfig
TDMQ belonging to park, currently supports parks sh (Shanghai), bj (Beijing), gz (Guangzhou), cd (Chengdu), hk (Hong Kong (China))
String
None.
When State = On and Type = TDMQ, required
MqName
Request.NotifyConfig
TDMQ topic name
String
None.
When State = On and Type = TDMQ, required

Response

Response Headers

This API only returns the public response header. For details, see Common Response Headers documentation.

Response Body

The response body is returned as application/xml. An example including the complete node data is shown below:
<Response>
<RequestId>NjJmNDczY2RfOTBmYTUwNjRfNTA4ZV85</RequestId>
<Queue>
<QueueId>p4a17eeea29334bf499b7e20e2fbfd99d</QueueId>
<Name>My-Queue-pic</Name>
<State>Active</State>
<NotifyConfig>
<Url>http://callback.demo.com</Url>
<Event>TaskFinish</Event>
<Type>Url</Type>
<State>On</State>
<ResultFormat>JSON</ResultFormat>
<MqMode/>
            <MqName/>
            <MqRegion/>
</NotifyConfig>
<MaxSize>10000</MaxSize>
<MaxConcurrent>10</MaxConcurrent>
<Category>PicProcessing</Category>
<UpdateTime>2022-08-09T16:23:11+0800</UpdateTime>
<CreateTime>2022-08-09T16:13:05+0800</CreateTime>
</Queue>
</Response>
The data are as follows:
Node Name (Keyword)
Parent Node
Description
Type
Response
None.
Container for saving results
Container
Container node Response content:
Node Name (Keyword)
Parent Node
Description
Type
RequestId
Response
unique request ID
String
Queue
Response
queue information
Container
Container node Queue content:
Node Name (Keyword)
Parent Node
Description
Type
QueueId
Response.Queue
Queue ID
String
Name
Response.Queue
queue name
String
State
Response.Queue
Current status, Active or Paused
String
NotifyConfig
Response.Queue
callback configuration
Container
MaxSize
Response.Queue
queue maximum length
Int
MaxConcurrent
Response.Queue
Maximum number of tasks executed in parallel in the current queue
Int
Category
Response.Queue
queue type
String
UpdateTime
Response.Queue
Update time
String
CreateTime
Response.Queue
Creation time
String

Error Code

This request returns common error responses and error codes. For more information, see Error Codes.

Practical Case

Request

PUT /picqueue/p4a17eeea29334bf499b7e20e2fbfd99d HTTP/1.1
Host: test-1234567890.ci.ap-chongqing.myqcloud.com
Authorization: q-sign-algorithm=sha1&q-ak=************************************&q-sign-time=1497530202;1497610202&q-key-time=1497530202;1497610202&q-header-list=&q-url-param-list=&q-signature=****************************************

Content-Length: 162
Content-Type: application/xml

<Request>
<Name>My-Queue-pic</Name>
<State>Active</State>
<NotifyConfig>
<State>On</State>
<Url>http://callback.demo.com</Url>
<Type>Url</Type>
<Event>TaskFinish</Event>
<ResultFormat>JSON</ResultFormat>
</NotifyConfig>
</Request>

Response

HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: 100
Connection: keep-alive
Date: Thu, 09 Aug 2022 16:23:12 GMT
Server: tencent-ci
x-ci-request-id: NjJmNDczY2RfOTBmYTUwNjRfNTA4ZV85

<Response>
<RequestId>NjJmNDczY2RfOTBmYTUwNjRfNTA4ZV85</RequestId>
<Queue>
<QueueId>p4a17eeea29334bf499b7e20e2fbfd99d</QueueId>
<Name>My-Queue-pic</Name>
<State>Active</State>
<NotifyConfig>
<Url>http://callback.demo.com</Url>
<Event>TaskFinish</Event>
<Type>Url</Type>
<State>On</State>
<ResultFormat>JSON</ResultFormat>
<MqMode/>
            <MqName/>
            <MqRegion/>
</NotifyConfig>
<MaxSize>10000</MaxSize>
<MaxConcurrent>10</MaxConcurrent>
<Category>PicProcessing</Category>
<UpdateTime>2022-08-09T16:23:11+0800</UpdateTime>
<CreateTime>2022-08-09T16:13:05+0800</CreateTime>
</Queue>
</Response>


도움말 및 지원

문제 해결에 도움이 되었나요?

피드백