更新同步任务
更新同步任务
Path Parameters
订阅
资源组
可用区
Possible values: <= 63 characters
, Value must match regular expression ^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$
数据同步工具资源名称
数据同步任务id
Request Body required
Possible values: [PAUSE
, RECOVER
, CANCEL
, RETRY
]
数据同步任务操作
- 200
- default
OK
Schema
- Array [
- ]
数据同步任务id
数据同步任务名称
数据同步工具资源 uuid
创建DataSync task的用户id
租户id
Possible values: [AOSSTOFS
, FSTOAOSS
, THIRDTOAOSS
, THIRDTOFS
, AOSSTOAOSS
, FSTOFS
]
当前数据同步任务类型
Possible values: [SCANNING
, DOING
, PAUSED
, COMPLETED
, FAILED
, CANCELLED
]
当前数据同步任务状态
src_info object[]
数据同步任务源路径信息
源或目的路径id:bucket或volume_id
源或目的路径地域
源或目的路径前缀
源或目的路径名:bucket或volume_name
桶endpoint
源或目的路径可用区
dst_info object
数据同步任务路径信息结构
源或目的路径id:bucket或volume_id
源或目的路径地域
源或目的路径前缀
源或目的路径名:bucket或volume_name
桶endpoint
源或目的路径可用区
Possible values: [EB
, PB
, TB
, GB
, MB
, KB
, B
]
数据同步任务大小单位
数据同步任务大小
数据同步任务开始时间
数据同步任务结束时间
数据同步任务进度百分比
数据同步任务速率
数据同步任务耗时
数据同步任务创建时间
src_third_info object
第三方云信息
Possible values: [OSS
, COS
, OBS
, BOS
, S3
, KS3
, QINIU
, WASB
, UFILE
]
第三方云类型
第三方云域名
第三方云用户公钥
第三方云用户私钥
第三方云数据存储路径
任务失败原因
文件总数
成功传输个数
已存在文件个数
{
"task_id": "string",
"task_name": "string",
"uid": "string",
"user_id": "string",
"tenant_id": "string",
"type": "AOSSTOFS",
"state": "SCANNING",
"src_info": [
{
"id": "string",
"region": "string",
"prefix": "string",
"name": "string",
"endpoint": "string",
"zone": "string"
}
],
"dst_info": {
"id": "string",
"region": "string",
"prefix": "string",
"name": "string",
"endpoint": "string",
"zone": "string"
},
"size_unit": "EB",
"size": 0,
"start": 0,
"end": 0,
"percent": 0,
"rate": "string",
"time_cost": "string",
"create": 0,
"src_third_info": {
"type": "OSS",
"host": "string",
"ak": "string",
"sk": "string",
"path": "string"
},
"err_msg": "string",
"total_num": 0,
"complete_num": 0,
"exist_num": 0
}
Default error response
Schema
- Array [
- ]
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
details object[]
A list of messages that carry the error details. There is a common set of message types for APIs to use.
The type of the serialized message.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}