调用DescribeProjectAttachments获取项目附件列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeProjectAttachments |
系统规定参数。取值:DescribeProjectAttachments。 |
InstanceId | String | 是 | 4****89 |
云市场业务实例ID |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Success | Boolean | true |
成功状态标识 |
RequestId | String | e03a9f78-7b40-4fb3-a015-350913e37e3f |
请求标识 |
Result | Array of ProjectAttachment | ||
FileLinkGmtExpired | Long | 1589334682404 |
文件地址生效截止时间(unix时间戳) |
StepNo | Integer | 3 |
流程节点序号 |
AttachmentToken | String | Mzc4NDAtODQ3MjY4MzI= |
附件MD5 |
FileName | String | f8-test-perview.jpeg |
文件名称 |
OperatorRole | String | Provider |
操作人角色 |
NodeName | String | 等待服务开通 |
节点名称 |
OperatorName | String | **科技技术有限公司 |
操作人名称 |
FileLink | String | http://delivery-center.oss-cn-shanghai.aliyuncs.com/6a8****0e2/e0a***f3.jpg?Expires=1589334682&OSSAccessKeyId=wI2r*********&Signature=JWB39pUxs7RCqrcw58qXPEGu6M0%3D |
文件访问地址 |
GmtCreate | Long | 1587968858000 |
附件上传时间(Unix时间戳) |
FileSuffix | String | jpg |
文件后缀 |
Operator | Long | 45261111**** |
操作人阿里云UID |
Content | String | 无 |
内容文本 |
NodeId | Long | 8472 |
附件上传的流程节点ID |
AttachmentType | String | File |
附件类型 |
FileSize | Long | 109124 |
文件大小(byte) |
示例
请求示例
http(s)://market.aliyuncs.com/?Action=DescribeProjectAttachments
&InstanceId=4****89
&<公共请求参数>
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<?xml version="1.0" encoding="UTF-8"?>
<DescribeProjectAttachmentsResponse>
<requestId>e03a9f78-7b40-4fb3-a015-350913e37e3f</requestId>
<result>
<attachmentToken>Mzc4NDAtODQ3MjY4MzI=</attachmentToken>
<attachmentType>File</attachmentType>
<content />
<fileLink>http://delivery-center.oss-cn-shanghai.aliyuncs.com/6a8****0e2/e0a***f3.jpg?Expires=1589334682&OSSAccessKeyId=wI2r********&Signature=JWB39pUxs7RCqrcw58qXPEGu6M0%3D</fileLink>
<fileLinkGmtExpired>1589334682404</fileLinkGmtExpired>
<fileName>f8-test-perview.jpeg</fileName>
<fileSize>109124</fileSize>
<fileSuffix>jpg</fileSuffix>
<gmtCreate>1587968858000</gmtCreate>
<nodeId>8472</nodeId>
<nodeName>等待服务开通</nodeName>
<operator>45261111****</operator>
<operatorName>**科技技术有限公司</operatorName>
<operatorRole>Provider</operatorRole>
<stepNo>3</stepNo>
</result>
<success>true</success>
</DescribeProjectAttachmentsResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"requestId": "e03a9f78-7b40-4fb3-a015-350913e37e3f",
"result": [
{
"attachmentToken": "Mzc4NDAtODQ3MjY4MzI=",
"attachmentType": "File",
"content": "",
"fileLink": "http://delivery-center.oss-cn-shanghai.aliyuncs.com/6a8****0e2/e0a***f3.jpg?Expires=1589334682&OSSAccessKeyId=wI2r********&Signature=JWB39pUxs7RCqrcw58qXPEGu6M0%3D",
"fileLinkGmtExpired": 1589334682404,
"fileName": "f8-test-perview.jpeg",
"fileSize": 109124,
"fileSuffix": "jpg",
"gmtCreate": 1587968858000,
"nodeId": 8472,
"nodeName": "等待服务开通",
"operator": 45261111****,
"operatorName": "**科技技术有限公司",
"operatorRole": "Provider",
"stepNo": 3
}
],
"success": true
}
错误码
访问错误中心查看更多错误码。
访问错误中心查看更多错误码。