tencent cloud

Cloud File Storage

CreateLifecycleDataTask

Unduh
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-11-26 16:30:25

1. API Description

Domain name for API request: cfs.intl.tencentcloudapi.com.

Support proactive settlement/preheat API.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: CreateLifecycleDataTask.
Version Yes String Common Params. The value used for this API: 2019-07-19.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
FileSystemId Yes String

Unique file system ID.

Type Yes String

Lifecycle task type. archive: archiving; restore: preheating; release: data release; metaload: metadata loading.

TaskName Yes String

Task name.

TaskPath No String

Path or file to be archived. Only one path is supported and it cannot be empty.

DataFlowId No String

Data flow ID. It can be queried through DescribeDataFlow.

IsOverwrite No Boolean

Whether to overwrite a file in CFSTurbo if it has the same name as a file in the external storage. true: overwrite; false: do not overwrite (and hot storage data will not be released). If this parameter is left empty, the default value is false.

ListPath No String

Path of the data manifest file. Each line in the manifest file is the full path of a file to be processed. All paths (including the manifest file path and the paths of files to be processed in each line of the manifest file) must start with /cfs and point to existing files in the CFS file system. Specify either this parameter or TaskPath.
Example:

  • If the CFS root directory / is mounted and the manifest file is located at lists/archive_list.txt under the mount path, set this parameter to /cfs/lists/archive_list.txt.
  • If the CFS subdirectory /subdir is mounted and the manifest file is located at lists/archive_list.txt under the mount path, set this parameter to /cfs/subdir/lists/archive_list.txt.

3. Output Parameters

Parameter Name Type Description
TaskId String

Task ID.

RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 CreateLifecycleDataTask

Input Example

POST / HTTP/1.1
Host: cfs.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateLifecycleDataTask
<Common request parameters>

{
    "FileSystemId": "cfs-4agcdretg",
    "Type": "archive",
    "TaskPath": "/cfs/data",
    "TaskName": "dataarchive"
}

Output Example

{
    "Response": {
        "TaskId": "task-abcdefg",
        "RequestId": "req-gagagagagag"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
InvalidParameter.ListPathAndTaskPathConflict ListPath and TaskPath are both specified or both empty.
InvalidParameter.ListPathInvalidPrefix The manifest path must start with /cfs.
InvalidParameterValue.InvalidDataFlowId Parameter value error: data flow ID invalid.
InvalidParameterValue.InvalidDataFlowSourceStorageType Parameter value error: data flow source storage type invalid.
InvalidParameterValue.InvalidDataFlowTargetPath Parameter value error: data flow target path invalid.
InvalidParameterValue.InvalidFileSystemId FileSystemId is invalid.
InvalidParameterValue.InvalidFsStatus Invalid file system status.
InvalidParameterValue.InvalidLifecycleDataTaskType Parameter value error: lifecycle task type invalid.
InvalidParameterValue.ListPathFileInvalid Invalid manifest file format. Specify a full file path starting with /cfs/.
InvalidParameterValue.ListPathFileNotFound The manifest file specified by ListPath does not exist in CFS.
InvalidParameterValue.WaitingTaskLimitExceeded The number of lifecycle data tasks exceeds the limit.

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan