获取本地上传分片上传URL
功能介绍
获取本地上传分片上传URL。
请求
- 请求样例
{ "append": false, "dataPath": [ { "fullPath": "/1+.sql" }, { "fullPath": "/src7792798983675863740.sql" } ], "fileArray": [ { "filePath": "/1+.sql", "fileName": "1+.sql", "partNumber": 1 }, { "filePath": "/src7792798983675863740.sql", "fileName": "src7792798983675863740.sql", "partNumber": 1 } ], "fileType": "data", "obsPath": "037b1714-5802-6ab5-4c14-45c75994d86a", "taskId":"eabc123456acbaee" }
- 参数说明
参数名
是否必选
参数类型
说明
append
是
boolean
是否追加场景。
fullPath
是
String
文件全路径。
fileName
是
String
文件名。
filePath
是
String
文件路径。
partNumber
是
int
分片数。
fileType
是
String
文件类型。
obsPath
是
String
OBS路径。
taskId
否
String
上传任务ID。
响应
- 响应样例
{ "success": true, "returnData": [ { "fileName": "1+.sql", "uploadId": "0000017A7ABF491C4011542EA79070BB", "headers": { "property": "property-value", "Host": "bucket-hvnngyjf.obs.cn-north-7.ulanqab.huawei.com:443", "Content-Type": "text/plain" }, "urls": [ { "filePath": "bucket-hvnngyjf.obs.cn-north-7.ulanqab.huawei.com:443/DataAssets/PLDA/Collection/LocalUpload/f7c09ebb-4ef6-16a9-6c91-8e686d7834fd/data/", "fileName": "1%2B.sql", "fileParam": "AccessKeyId003dBV3MN664OE0KLBQECRRZ0026Expires003d16255605940026partNumber003d10026uploadId003d0000017A7ABF491C4011542EA79070BB0026Signature003dW%2FhKSdq4YKxdU557zRnPwSVTxFU%3D" } ], "filePath": "/1+.sql", "obsPath": "DataAssets/PLDA/Collection/LocalUpload/f7c09ebb-4ef6-16a9-6c91-8e686d7834fd" }, { "fileName": "src7792798983675863740.sql", "uploadId": "0000017A7ABF494B401154597EBF1BCB", "headers": { "property": "property-value", "Host": "bucket-hvnngyjf.obs.cn-north-7.ulanqab.huawei.com:443", "Content-Type": "text/plain" }, "urls": [ { "filePath": "bucket-hvnngyjf.obs.cn-north-7.ulanqab.huawei.com:443/DataAssets/PLDA/Collection/LocalUpload/f7c09ebb-4ef6-16a9-6c91-8e686d7834fd/data/", "fileName": "src7792798983675863740.sql", "fileParam": "AccessKeyId003dBV3MN664OE0KLBQECRRZ0026Expires003d16255605940026partNumber003d10026uploadId003d0000017A7ABF494B401154597EBF1BCB0026Signature003dCWBnJcYweX3u035qi%2BcWJ1a6cUM%3D" } ], "filePath": "/src7792798983675863740.sql", "obsPath": "DataAssets/PLDA/Collection/LocalUpload/f7c09ebb-4ef6-16a9-6c91-8e686d7834fd" } ] }
- 要素说明
状态码
具体请参考状态码。