API | 说明 |
用于异步提交文件解压任务 |
def ci_create_file_uncompress_job(self, Bucket, InputObject,FileUncompressConfig, QueueId=None, CallBack=None, CallBackFormat=None,CallBackType=None, CallBackMqConfig=None, UserData=None, **kwargs)
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
参数名称 | 描述 | 类型 |
Bucket | 对象所在存储桶 | String |
InputObject | 对象文件名,例如 folder/document.pdf | String |
FileUncompressConfig | dict | |
QueueId | 任务所在的队列 ID | String |
CallBack | 任务回调地址,优先级高于队列的回调地址,设置为 no 时,表示队列的回调地址不产生回调 | string |
CallBackFormat | 任务回调格式,JSON 或 XML,默认 XML,优先级高于队列的回调格式 | string |
CallBackType | 任务回调类型,Url 或 TDMQ,默认 Url,优先级高于队列的回调类型 | string |
CallBackMqConfig | dict | |
UserData | 透传用户信息,可打印的 ASCII 码,长度不超过1024 | String |
{"Response": {"JobsDetail": {"Code": "Success","Message": "","JobId": "f93984788066911ed89ed352d4d9d2084","State": "Submitted","CreationTime": "2022-07-18T15:16:43+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."}}}}
参数名称 | 描述 | 类型 |
Response | dict |
本页内容是否解决了您的问题?