Domain name for API request: cfs.tencentcloudapi.com.
This API is used to get the list of migration tasks.
To use this API, submit a ticket for us to add you to the allowlist.
A maximum of 20 requests can be initiated per second for this API.
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: DescribeMigrationTasks. |
Version | Yes | String | Common Params. The value used for this API: 2019-07-19. |
Region | No | String | Common Params. This parameter is not required for this API. |
Offset | No | Integer | The pagination offset. Default value: 0. |
Limit | No | Integer | Maximum number of entries per page. Default value: 20. Maximum value: 100. |
Filters.N | No | Array of Filter | Filter by migration task ID Type: String Required: No Fuzzy filter by migration task name Type: String Required: No Each request can have up to 10 Filters and 100 Filter.Values . |
Parameter Name | Type | Description |
---|---|---|
TotalCount | Integer | Number of migration tasks |
MigrationTasks | Array of MigrationTaskInfo | Migration task details |
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
This example shows you how to get the migration task list.
POST / HTTP/1.1
Host: cfs.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeMigrationTasks
<Common request parameters>
{
"Limit": 20,
"Offset": 0
}
{
"Response": {
"MigrationTasks": [
{
"TaskName": "taskName",
"TaskId": "cfsmigrate-29d43e98",
"MigrationType": 0,
"MigrationMode": 0,
"BucketName": "bucket-1",
"BucketRegion": "oss-cn-beijing",
"BucketAddress": "https://test-1.oss-cn-beijing.aliyuncs.com",
"BucketPath": "",
"ListAddress": "",
"FsName": "t1",
"FileSystemId": "cfs-qz5c44o1",
"FsPath": "/ahh",
"CoverType": 0,
"Status": 6,
"FileTotalCount": 0,
"FileMigratedCount": 0,
"FileFailedCount": 0,
"FileTotalSize": 0,
"FileMigratedSize": 0,
"FileFailedSize": 0,
"FileTotalList": null,
"FileCompletedList": null,
"FileFailedList": null,
"CreateTime": 1662023240000,
"EndTime": 1662023548000
}
],
"TotalCount": 2,
"RequestId": "c0f7c5d9-c8c4-401a-a6da-2106f3c6db76"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
There is no error code related to the API business logic. For other error codes, please see Common Error Codes.
本页内容是否解决了您的问题?