获取产物下载链接
接口说明
获取产物内容下载链接,适用于大文件。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
GET /digitalEmployee/{name}/artifacts/downloadUrl HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| name |
string |
是 |
数字员工名称 |
sample-agent |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| artifactPath |
string |
是 |
产物文件路径,相对于数字员工产物根目录 |
reports/summary.pdf |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| requestId |
string |
请求 ID |
0A1B2C3D-4E5F-6789-ABCD-1234567890AB |
| url |
string |
临时下载链接 |
https://example-bucket.oss-cn-shanghai.aliyuncs.com/agents/123/sample-agent/home/starops/reports/summary.pdf?response-content-disposition=attachment&Expires=1770000000&OSSAccessKeyId=LTAI******&Signature=****** |
| expire |
integer |
下载链接过期时间,Unix 时间戳,单位为秒 |
1770000000 |
示例
正常返回示例
JSON格式
{
"requestId": "0A1B2C3D-4E5F-6789-ABCD-1234567890AB",
"url": "https://example-bucket.oss-cn-shanghai.aliyuncs.com/agents/123/sample-agent/home/starops/reports/summary.pdf?response-content-disposition=attachment&Expires=1770000000&OSSAccessKeyId=LTAI******&Signature=******",
"expire": 1770000000
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。
该文章对您有帮助吗?