tencent cloud

Cloud Infinite

Submitting File Decompression Job

下载
聚焦模式
字号
最后更新时间: 2025-10-09 15:58:40
本文档由 AI 翻译

Overview

This document provides an overview of APIs and SDK code samples for async file decompression requests.
API
Description
Submits a file decompression job asynchronously.

Async Request API

Feature description

This API is used to submit an async file decompression request.

Method prototype

def ci_create_file_uncompress_job(self, Bucket, InputObject,
FileUncompressConfig, QueueId=None, CallBack=None, CallBackFormat=None,
CallBackType=None, CallBackMqConfig=None, UserData=None, **kwargs)

Sample request

def ci_create_file_uncompress_job():
body = {
'Prefix': 'output/',
}
response = client.ci_create_file_uncompress_job(
Bucket=bucket_name,
InputObject='test.zip',
FileUncompressConfig=body
)
print(response)
return response

Parameter description

Parameter
Description
Type
Bucket
Bucket of the object
String
InputObject
Object name, such as folder/document.pdf
String
FileUncompressConfig
File decompression rule. For more information, see "FileUncompressConfig" in Submitting File Decompression Job.
dict
QueueId
ID of the queue where the job is in
String
CallBack
Job callback address, which takes priority over that of the queue. If it is set to no, no callbacks will be generated at the callback address of the queue.
string
CallBackFormat
Job callback format, which can be JSON or XML (default). It takes priority over that of the queue.
string
CallBackType
Job callback type, which can be Url (default) or TDMQ. It takes priority over that of the queue.
string
CallBackMqConfig
TDMQ configuration for job callback. This parameter is required if CallBackType is TDMQ. For more information, see "CallBackMqConfig" in Structure.
dict
UserData
The user information passed through, which is printable ASCII codes of up to 1,024 in length.
String

Response description

{
"Response": {
"JobsDetail": {
"Code": "Success",
"Message": "",
"JobId": "f93984788066911ed89ed352d4d9d2084",
"State": "Submitted",
"CreationTime": "2022-07-18T15:4:43 PM+0800",
"EndTime": "-",
"StartTime": "-",
"QueueId": "p2911917386e148639319e13c285cc774",
"Tag": "FileUncompress",
"Input": {
"BucketId": "test-1234567890",
"Object": "input/test.zip",
"Region": "ap-chongqing"
},
"Operation": {
"FileUncompressConfig": {
"Prefix": "output/",
"PrefixReplaced": 1
},
"Output": {
"Region": "ap-chongqing",
"Bucket": "test-1234567890"
},
"UserData": "This is my data."
}
}
}
}
Parameter
Description
Type
Response
Response details. For more information, see "Response" in Submitting File Decompression Job.
dict


帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈