cURL
Authorizations
string
header
required
阿里云 AccessKey (AK/SK) V3 签名认证。此处非 Bearer Token;调用时需按 ACS3-HMAC-SHA256 算法计算请求签名,详见阿里云 API 签名机制文档。
Path Parameters
string
required
百炼业务空间 ID
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Apply for a temporary file upload permission, then upload the file yourself. This API is intended for pro-code deployment.
curl --request POST \
--url 'https://bailian.{regionId}.aliyuncs.com/{WorkspaceId}/datacenter' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data '
{
"FileName": "example.txt",
"SizeInBytes": 1024
}
'{
"Code": "",
"Data": {
"TempStorageLeaseId": "1e6a159107384782be5e45ac4759b247.1719325231035",
"Param": {
"Headers": "Content-Type: application/json",
"Method": "PUT",
"Url": "https://bailian-datahub-data-origin-prod.oss-cn-hangzhou.aliyuncs.com/xxx.pdf?Expires=1716699536"
}
},
"Message": "",
"RequestId": "778C0B3B-xxxx-5FC1-A947-36EDD13606AB",
"Status": "200",
"Success": true
}阿里云 AccessKey (AK/SK) V3 签名认证。此处非 Bearer Token;调用时需按 ACS3-HMAC-SHA256 算法计算请求签名,详见阿里云 API 签名机制文档。
百炼业务空间 ID
curl --request POST \
--url 'https://bailian.{regionId}.aliyuncs.com/{WorkspaceId}/datacenter' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data '
{
"FileName": "example.txt",
"SizeInBytes": 1024
}
'{
"Code": "",
"Data": {
"TempStorageLeaseId": "1e6a159107384782be5e45ac4759b247.1719325231035",
"Param": {
"Headers": "Content-Type: application/json",
"Method": "PUT",
"Url": "https://bailian-datahub-data-origin-prod.oss-cn-hangzhou.aliyuncs.com/xxx.pdf?Expires=1716699536"
}
},
"Message": "",
"RequestId": "778C0B3B-xxxx-5FC1-A947-36EDD13606AB",
"Status": "200",
"Success": true
}