tencent cloud

APIs

CreateDataRetrieval

ダウンロード
フォーカスモード
フォントサイズ
最終更新日: 2026-11-26 16:30:21

1. API Description

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

This API is used to create data retrieval.

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: CreateDataRetrieval.
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

File system instance ID, which can be obtained through the DescribeCfsFileSystems API. Example value: cfs-xxxxxx

DataRetrievalName Yes String

Data retrieval name. Example value: DataDive

CompoundCondition No String

Aggregated retrieval condition. Example value: from entries|where size >4096

QueryCondition No String

List retrieval condition.

DayOfMonth No String

Monthly data retrieval. Valid values: 1–31. The retrieval will be automatically created on the specified day of each month. For example, 1 indicates the 1st day of a month. You must specify either this parameter or DayOfWeek. Example value: 1

DayOfWeek No String

Day of the week for data retrieval repetition. Valid values: 1–7. 1 indicates Monday and 7 indicates Sunday. You must specify either this parameter or DayOfMonth. Example value: 2,3

Hour No String

Hour of the day for repetition. Valid values: 0–23. Example value: 1,3,5

3. Output Parameters

Parameter Name Type Description
DataRetrievalId String

Data retrieval ID. Example: dataretrieval-123456

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 Creating a Data Retrieval Policy

This example shows you how to retrieve data, which is supported only for Turbo series file systems.

Input Example

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

{
    "FileSystemId": "cfs-4e5e76ff8",
    "DataRetrievalName": "default",
    "DayOfWeek": "3,4",
    "Hour": "12,13"
}

Output Example

{
    "Response": {
        "DataRetrievalId": "dataretrieval-1234bdbc",
        "RequestId": "b3df3eb8-cd14-4c0a-8b8d-11a7ad082b40"
    }
}

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
InvalidParameterValue.DataRetrievalScheduleConflict Data retrieval schedule rule conflict.

ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック