The multi-file zipping feature of COS based on SCF allows you to add multi-file zipping rules to your bucket. You can specify the URLs of files that need to be zipped, and then trigger the cloud function to zip the files and save the generated package to the specified path in the bucket.
If you haven't activated SCF, go to the SCF console to activate it and authorize the service as instructed.
Function Name: Uniquely identifies a function and cannot be modified after it is created. You can view the function in the SCF console.
Execution Method: Execution method for the function. If you set this field to Sync, the execution results will be returned after the zipping task is complete. If you set this field to Async, the function will respond directly and execute the zipping task in the background.
Authentication Method: Authentication method for the function
If you select SCF, you need to trigger the function by using a role that has permission to call the function.
If you select No, you need to select an appropriate API gateway to receive requests. If you don't have an API gateway in this region, click Create API Gateway service, and we will configure an API gateway suitable for this function in this region.
API Path/Request Method: For more information on API gateway configurations, see Overview.
SCF Authorization: You need to authorize SCF so that it can read files in your bucket and save the generated package to the specified path.
Click Instructions to view the field description, where
ClientContext is in JSON format. For the configuration demo, see Using APIs to Zip Files.
Click Next to go to Calling Test page.
Click Start, and the function will be called as configured. You can view the response of the function in Response.
You can perform the following operations on the created function:
Hubungi tim penjualan atau penasihat bisnis kami untuk membantu bisnis Anda.
Buka tiket jika Anda mencari bantuan lebih lanjut. Tiket kami tersedia 7x24.
Apakah halaman ini membantu?